搭建openstack环境时,镜像无法上传
新人提问,求各位前辈指点迷津
按照网上的一篇教程搭建openstack,一步步走到安装glance遇到了问题,我试图执行上传镜像的命令
glance image-create --name myFirstImage --is-public true --container-format bare --disk-format qcow2 --location http://download.cirros-cloud.net ... 3.1-x86_64-disk.img
结果报错
raise exception.NotAuthenticated(res.read())
NotAuthenticated: 401 Unauthorized
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
Authentication required
(HTTP 500)
我看了一下,大约是权限不对,密码错误。在论坛上浏览了一下帖子,感觉是环境变量的问题。
这是我的环境变量
export OS_TENANT_NAME="admin"
export OS_USERNAME="admin"
export OS_PASSWORD="admin_pass"
export OS_AUTH_URL="http://192.168.1.50:5000/v2.0/"
注册用户时使用的参数是
HOST_IP=10.10.10.51
ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin_pass}
SERVICE_PASSWORD=${SERVICE_PASSWORD:-service_pass}
export SERVICE_TOKEN="ADMIN"
export SERVICE_ENDPOINT="http://${HOST_IP}:35357/v2.0"
SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service}
实在不知道哪里的问题,当我把password从admin_pass改为其他时,会直接提示
Unable to communicate with identity service: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Not Authorized"}}. (HTTP 401)
累感不爱,还望各位大神拨冗解答
按照网上的一篇教程搭建openstack,一步步走到安装glance遇到了问题,我试图执行上传镜像的命令
glance image-create --name myFirstImage --is-public true --container-format bare --disk-format qcow2 --location http://download.cirros-cloud.net ... 3.1-x86_64-disk.img
结果报错
raise exception.NotAuthenticated(res.read())
NotAuthenticated: 401 Unauthorized
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
Authentication required
(HTTP 500)
我看了一下,大约是权限不对,密码错误。在论坛上浏览了一下帖子,感觉是环境变量的问题。
这是我的环境变量
export OS_TENANT_NAME="admin"
export OS_USERNAME="admin"
export OS_PASSWORD="admin_pass"
export OS_AUTH_URL="http://192.168.1.50:5000/v2.0/"
注册用户时使用的参数是
HOST_IP=10.10.10.51
ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin_pass}
SERVICE_PASSWORD=${SERVICE_PASSWORD:-service_pass}
export SERVICE_TOKEN="ADMIN"
export SERVICE_ENDPOINT="http://${HOST_IP}:35357/v2.0"
SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service}
实在不知道哪里的问题,当我把password从admin_pass改为其他时,会直接提示
Unable to communicate with identity service: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Not Authorized"}}. (HTTP 401)
累感不爱,还望各位大神拨冗解答
...全文
相关推荐
基于CentOS的OpenStack环境部署详细教程(OpenStack安装)
这个教程详细介绍了在CentOS上部署OpenStack环境的步骤,对于学习OpenStack的初学者或需要搭建云环境的IT专业人士来说,具有很高的参考价值。
Openstack云平台搭建与管理
"本资源是一份关于OpenStack云平台搭建与管理的详细教程,包含了从基础环境配置到各个关键服务的安装和配置的多个实验。尽管所使用的版本可能较旧,但依然具有参考价值,适用于学习OpenStack基础
openstack(云平台搭建)
"OpenStack(云平台搭建) - 使用Ubuntu 14.04的OpenStack Installation Guide (Juno版)"OpenStack是一个强大的开源云操作系统,它允许
搭建openstack私有云-一键部署
下面将详细介绍搭建openstack私有云平台的步骤。一、环境准备1. 安装两个虚拟机:控制节点(controller)和计算节点(compute)2.
OpenStack web界面使用ISO镜像安装启动实例
掌握这一技能,将有助于提升你在OpenStack云环境中的管理效率。


OpenStack
