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

网友投稿 318 2022-11-13

记一次云计算测试实验-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 --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 --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 --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 --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=p_w_picpath --description="OpenStack Image Service"

keystone endpoint-create \

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

--publicurl=\

--internalurl=\

--adminurl=openstack-glance-api restart

service openstack-glance-registry restart

chkconfig openstack-glance-api on

chkconfig openstack-glance-registry on

cd /var/ftp/iaas/p_w_picpaths/

file centos_65_x86_6420140327.qcow2

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

glance p_w_picpath-list

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Java Swing编写一个简单的计算器软件
下一篇:bios识别不到固态硬盘
相关文章

 发表评论

暂时没有评论,来抢沙发吧~