在控制节点执行以下操作。
1
|
yum -y install openstack-glance |
vi /etc/glance/glance-api.conf
1 2 |
[database] connection = mysql+pymysql://glance:PASSWORD@controller/glance |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[keystone_authtoken] www_authenticate_uri = http://controller:5000 auth_url = http://controller:5000 memcached_servers = controller:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = glance password = PASSWORD [paste_deploy] flavor = keystone |
1 2 3 4 |
[glance_store] stores = file,http default_store = file filesystem_store_datadir = /var/lib/glance/images/ |
vi /etc/glance/glance-registry.conf
1 2 |
[database] connection = mysql+pymysql://glance:PASSWORD@controller/glance |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[keystone_authtoken] www_authenticate_uri = http://controller:5000 auth_url = http://controller:5000 memcached_servers = controller:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = glance password = PASSWORD [paste_deploy] flavor = keystone |
1
|
su -s /bin/sh -c "glance-manage db_sync" glance |
1 2 |
systemctl enable openstack-glance-api.service openstack-glance-registry.service systemctl start openstack-glance-api.service openstack-glance-registry.service |