码迷,mamicode.com
首页 > 其他好文 > 详细

记一次云计算测试实验-openstack-icehouse-安装glance

时间:2015-06-03 10:09:16      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:云计算测试实验-openstack-icehouse-安装glance

source admin-openrc.sh


yum install openstack-glance python-glanceclient -y


openstack-config --set /etc/glance/glance-api.conf database connection mysql://glance:000000@controller/glance

openstack-config --set /etc/glance/glance-registry.conf database connection mysql://glance:000000@controller/glance


su -s /bin/sh -c "glance-manage db_sync" glance


keystone user-create --name=glance --pass=000000 --email=glance@localhost

keystone user-role-add --user=glance --tenant=service --role=admin


openstack-config --set /etc/glance/glance-api.conf keystone_authtoken auth_uri http://controller:5000

openstack-config --set /etc/glance/glance-api.conf keystone_authtoken auth_host controller

openstack-config --set /etc/glance/glance-api.conf keystone_authtoken auth_port 35357

openstack-config --set /etc/glance/glance-api.conf keystone_authtoken auth_protocol http

openstack-config --set /etc/glance/glance-api.conf keystone_authtoken admin_tenant_name service

openstack-config --set /etc/glance/glance-api.conf keystone_authtoken admin_user glance

openstack-config --set /etc/glance/glance-api.conf keystone_authtoken admin_password 000000

openstack-config --set /etc/glance/glance-api.conf paste_deploy flavor keystone


openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken auth_uri http://controller:5000

openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken auth_host controller

openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken auth_port 35357

openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken auth_protocol http

openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken admin_tenant_name service

openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken admin_user glance

openstack-config --set /etc/glance/glance-registry.conf keystone_authtoken admin_password 000000

openstack-config --set /etc/glance/glance-registry.conf paste_deploy flavor keystone


keystone service-create --name=glance --type=image --description="OpenStack Image Service"


keystone endpoint-create \

   --service-id=$(keystone service-list | awk ‘/ image / {print $2}‘) \

   --publicurl=http://controller:9292 \

   --internalurl=http://controller:9292 \

   --adminurl=http://controller:9292


service openstack-glance-api restart

service openstack-glance-registry restart

chkconfig openstack-glance-api on

chkconfig openstack-glance-registry on



cd /var/ftp/iaas/images/

file centos_65_x86_6420140327.qcow2 

glance image-create --name CentOS-6.5-x86_64 --disk-format qcow2 --container-format bare --is-public True --progress < centos_65_x86_6420140327.qcow2


glance image-list


本文出自 “茉莉爱学习” 博客,请务必保留此出处http://molilinzi.blog.51cto.com/8282931/1657712

记一次云计算测试实验-openstack-icehouse-安装glance

标签:云计算测试实验-openstack-icehouse-安装glance

原文地址:http://molilinzi.blog.51cto.com/8282931/1657712

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!