yum -y install openstack-utils
openstack-config --set /etc/glance/glance-registry.conf database connection mysql+pymysql://glance:000000@controller/glance
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken www_authenticate_uri http://controller:5000
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken auth_url http://controller:5000
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken memcached_servers controller:11211
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken auth_type password
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken project_domain_name demo
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken user_domain_name demo
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken project_name service
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken username glance
openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken password 000000
openstack-config --set /etc/glance/glance-registry.conf paste_deploy flavor keystone#su glance mysql
su -s /bin/sh -c "glance-manage db_sync" glance
#restart
systemctl enable openstack-glance-api.service openstack-glance-registry.service
systemctl restart openstack-glance-api.service openstack-glance-registry.service
rz上传cirros文件cirros-0.3.4-x86_64-disk.img
openstack image create --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --property os_version=1.1.1 cirros