Chinaunix首页 | 论坛 | 博客
  • 博客访问: 260101
  • 博文数量: 78
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 852
  • 用 户 组: 普通用户
  • 注册时间: 2013-05-06 11:01
个人简介

不做第二个别人,永远做第一个自己。

文章分类

全部博文(78)

文章存档

2014年(60)

2013年(18)

分类: 云计算

2014-04-10 10:46:08

# Install Glance
[root@cloud01 ~]# yum –enablerepo=epel-openstack-grizzly,epel -y install openstack-glance
 
# set database ( set any password you like for “password” section )
[root@cloud01 ~]# openstack-db –init –service glance –password password 
Please enter the password for the ‘root’ MySQL user:                          # MySQL root password
Verified connectivity to MySQL.
Creating ‘glance’ database.
Updating ‘glance’ database password in /etc/glance/glance-registry.conf /etc/glance/glance-api.conf
Initializing the glance database, please wait…
2013-09-29 15:41:25.399 4983 INFO glance.db.sqlalchemy.migration [-] Upgrading database to version latest
2013-09-29 15:41:25.428 4983 INFO glance.db.sqlalchemy.migrate_repo.schema [-] creating table images
2013-09-29 15:41:25.473 4983 INFO glance.db.sqlalchemy.migrate_repo.schema [-] creating table image_properties
2013-09-29 15:41:25.648 4983 INFO glance.db.sqlalchemy.migrate_repo.schema [-] creating table image_members
2013-09-29 15:41:25.941 4983 INFO glance.db.sqlalchemy.migrate_repo.schema [-] creating table image_tags
2013-09-29 15:41:26.133 4983 INFO glance.db.sqlalchemy.migrate_repo.schema [-] creating table image_locations
Complete!
[root@cloud01 ~]# vi /etc/glance/glance-registry.conf 
 
# line 74: change like follows (value is just the one you added in Keystone)
[keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name =service
admin_user =glance
admin_password =servicepassword
# add at the last
flavor = keystone 
 
[root@cloud01 ~]# vim /etc/glance/glance-api.conf 
 
# line 340: change like follows
[keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name =service
admin_user =glance
admin_password =servicepassword
# add at the last
flavor = keystone 
[root@cloud01 ~]# for service in api registry; do
> /etc/rc.d/init.d/openstack-glance-$service start
> chkconfig openstack-glance-$service on
> done 
Starting openstack-glance-api:                             [  OK  ]
Starting openstack-glance-registry:                        [  OK  ]
阅读(336) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~