openstack glance组件上传镜像时报错

蓝咒 提交于 2020-08-16 00:06:09

[root@controller ~]# glance image-create --name "examimage" --disk-format "qcow2" --container-format bare --progress < /root/CentOS-68.qcow2

下面是执行上面命令所报错:
You must provide a username via either --os-username or env[OS_USERNAME]
此时需要执行:source /etc/keystone/admin-openrc.sh

[root@controller ~]# glance image-create --name "examimage" --disk-format "qcow2" --container-format bare --progress < /root/CentOS-68.qcow2
public endpoint for image service not found

此时执行:openstack service create --name glance --description "OpenStack Image" image
openstack endpoint create --region RegionOne image public http://controller:9292
openstack endpoint create --region RegionOne image internal http://controller:9292
openstack endpoint create --region RegionOne image admin http://controller:9292
systemctl restart openstack-glance-api.service
systemctl restart openstack-glance-registry.service




易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!