[原]openstack-kilo--issue(六):Authorization Failed: The resource could not be found. (HTTP 404)
本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.
=======1.问题点:======
在安装调试openstack-kilo版本的时候,使用keystone endpoint-list的时候出现了问题。
如下:
[root@controller ~]# keystone --debug endpoint-list
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated
'python-keystoneclient.', DeprecationWarning)
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://controller:35357/v3/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1" 404 93
DEBUG:keystoneclient.session:Request returned failure status: 404
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-79664a21-5f68-4ece-86a0-322
======2.在google上看到一篇文章,最后发现是命令的格式问题=========
原文如此说:
To move to the new python-openstackclient, simply install it. On RHEL7.1:
yum install -y python-openstackclient.noarch After that it will be available as the command “openstack”. It can be invoked in interactive mode just by typing “openstack” or directly from
the command line to get information. For example, to list users:
Old Keystone CLI: “keystone user-list”
New Openstack CLI: “openstack user list” To be more similar to the output of the old command issue “openstack user list --long” to get the extra fields.
如果使用New Openstack CLI 就能正常显示:
使用旧命令:会报错(如下)
[root@controller ~]# keystone endpoint-list
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated
in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-2959b997-b7bb-4387-b8e9-aeb6fa5b0c63)
使用新命令:(正常显示)
[root@controller ~]# openstack endpoint list
+----------------------------------+-----------+--------------+--------------+
| ID | Region | Service Name | Service Type |
+----------------------------------+-----------+--------------+--------------+
| 204d0abf4a39402e8f0c0f49fdb07772 | RegionOne | glance | image |
| 0f54b94c8a084e0baeb5655091c411ae | RegionOne | neutron | network |
| 0259f8b1d4784e3fba653c2bd89e5638 | RegionOne | keystone | identity |
| efa64e47b3c04b6c952c55bd0c95403f | RegionOne | cinder | volume |
| 6e596cf3369e4ee7b295c064a0080ba6 | RegionOne | nova | compute |
| 1aedfe9471504fb2b9aafa28f8651ca8 | RegionOne | cinderv2 | volumev2 |
+----------------------------------+-----------+--------------+--------------+
或者查看详细的信息,在后面加上--long
[root@controller ~]# openstack endpoint list --long
+----------------------------------+-----------+--------------+--------------+-----------------------------------------+-----------------------------------------+-----------------------------------------+
| ID | Region | Service Name | Service Type | PublicURL | AdminURL | InternalURL |
+----------------------------------+-----------+--------------+--------------+-----------------------------------------+-----------------------------------------+-----------------------------------------+
| 204d0abf4a39402e8f0c0f49fdb07772 | RegionOne | glance | image | http://controller:9292 | http://controller:9292 | http://controller:9292 |
| 0f54b94c8a084e0baeb5655091c411ae | RegionOne | neutron | network | http://controller:9696 | http://controller:9696 | http://controller:9696 |
| 0259f8b1d4784e3fba653c2bd89e5638 | RegionOne | keystone | identity | http://controller:5000/v2.0 | http://controller:35357/v2.0 | http://controller:5000/v2.0 |
| efa64e47b3c04b6c952c55bd0c95403f | RegionOne | cinder | volume | http://controller:8776/v2/%(tenant_id)s | http://controller:8776/v2/%(tenant_id)s | http://controller:8776/v2/%(tenant_id)s |
| 6e596cf3369e4ee7b295c064a0080ba6 | RegionOne | nova | compute | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s |
| 1aedfe9471504fb2b9aafa28f8651ca8 | RegionOne | cinderv2 | volumev2 | http://controller:8776/v2/%(tenant_id)s | http://controller:8776/v2/%(tenant_id)s | http://controller:8776/v2/%(tenant_id)s |
+----------------------------------+-----------+--------------+--------------+-----------------------------------------+-----------------------------------------+-----------------------------------------+
进一步查看openstack状态:使用openstack-status的时候发现也有错误:
[root@controller ~]# openstack-status
。。。
。。。
== Keystone users ==
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated
in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
'python-keystoneclient.', DeprecationWarning)
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-0b2eaa04-ba6b-435d-bafd-1674b919fa24)
。。。
。。。
解决方法是修改/usr/bin/openstack-status文件 在line 227的地方修改为:
# keystone user-list
openstack user list
再测试
[root@controller ~]# openstack-status
。。。
。。。
== Keystone users ==
+----------------------------------+---------+
| ID | Name |
+----------------------------------+---------+
| 0ac3a46f50014e318b050003e869b574 | cinder |
| 349ba9e056ca47859faa1008d7c9c608 | neutron |
| 5e95a6f269e54a50bfd5d988eb518a77 | glance |
| 9bae0df144814717a3065921eebe24b6 | admin |
| aa9f69fdedfc4269bfa56330afc5adfe | nova |
| fe649df8cd0048928a93cca7bda3e4b9 | demo |
+----------------------------------+---------+ 。。。
。。。
总结:openstack版本更新较快,有些命令已经改变。多google一下,也许就能解决。
在kilo版本中还有一些命令也是通过openstack来查看的,如下:
aggregate add host ip fixed remove server rescue
aggregate create ip floating add server resize
aggregate delete ip floating create server resume
aggregate list ip floating delete server set
aggregate remove host ip floating list server show
aggregate set ip floating pool list server ssh
aggregate show ip floating remove server suspend
availability zone list keypair create server unlock
backup create keypair delete server unpause
backup delete keypair list server unrescue
backup list keypair show server unset
backup restore limits show service create
backup show module list service delete
catalog list network create service list
catalog show network delete service show
command list network list snapshot create
complete network set snapshot delete
compute agent create network show snapshot list
compute agent delete object create snapshot set
compute agent list object delete snapshot show
compute agent set object list snapshot unset
compute service list object save token issue
compute service set object show token revoke
console log show project create usage list
console url show project delete usage show
container create project list user create
container delete project set user delete
container list project show user list
container save project usage list user role list
container show quota set user set
ec2 credentials create quota show user show
ec2 credentials delete role add volume create
ec2 credentials list role create volume delete
ec2 credentials show role delete volume list
endpoint create role list volume set
endpoint delete role remove volume show
endpoint list role show volume type create
endpoint show security group create volume type delete
extension list security group delete volume type list
flavor create security group list volume type set
flavor delete security group rule create volume type unset
flavor list security group rule delete volume unset
flavor set security group rule list
flavor show security group set
flavor unset security group show
help server add security group
host list server add volume
host show server create
hypervisor list server delete
hypervisor show server image create
hypervisor stats show server list
image create server lock
image delete server migrate
image list server pause
image save server reboot
image set server rebuild
image show server remove security group
ip fixed add server remove volume
参考文章:http://jonamiki.com/2015/11/20/the-keystone-cli-is-deprecated-in-favor-of-python-openstackclient/
[原]openstack-kilo--issue(六):Authorization Failed: The resource could not be found. (HTTP 404)的更多相关文章
- [原]openstack-kilo--issue(十五) WARNING keystonemiddleware.auth_token Authorization failed for token Could not find token
在创建vm的时候在controller node报错: -- :: INFO neutron.wsgi [req-a815cde4-f49c-4d23-b9c3-030bfc2a75d4 ] /Jan ...
- openstack kilo部署-基础环境
公司也想搞个私有云玩玩,于是展开了一系列的调研,部署测试,openstack 有几个版本真是坑爹!!,如果喜欢被虐有兄弟,你就试试 openstack 的 juno , icehouse等版本,用不了 ...
- [译] OpenStack Kilo 版本中 Neutron 的新变化
OpenStack Kilo 版本,OpenStack 这个开源项目的第11个版本,已经于2015年4月正式发布了.现在是个合适的时间来看看这个版本中Neutron到底发生了哪些变化了,以及引入了哪些 ...
- svn上传报Authorization failed错误解决办法
svn上传文件时没有弹出用户登录界面,而是直接报Authorization failed错误.出现该问题基本都是三个配置文件的问题,下面把这个文件列出来 svnserve.conf配置文件中的 [ge ...
- [转]SVN客户端解决authorization failed问题
转载地址:http://blog.csdn.net/patdz/article/details/7669591 1. 创建文件夹 E:\STWSource\STWLibrarySVN 2.在文件夹ST ...
- SVN svnserve.conf: Option expected 的解决方法 以及 Authorization failed 的解决方法
① 在 CentOS 6.5 上安装配置了 SVN,在本地 Checkout 的时候报错: 显示:/www/svnroot/webfile/conf/svnserve.conf:12: Option ...
- 【转】解决svn Authorization failed错误
转载地址:http://blog.sina.com.cn/s/blog_4b93170a0100leb2.html 出现该问题基本都是三个配置文件的问题,下面把这个文件列出来 svnserve.con ...
- SVN客户端解决authorization failed问题
遇到authorization failed问题 进人 [root@localhost conf]# pwd /opt/svndata/shell/conf [root@localhost conf] ...
- linux svn authorization failed错误
authorization failed错误主要是conf/auth文件配置错误,可以参考如下配置: [aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O ...
随机推荐
- dmesg 的时间戳处理
dmesg_with_human_timestamps () { $(type -P dmesg) "$@" | perl -w -e 'use strict; my ($upti ...
- jquery的ajax可以传入的三种参数类型
在jquery的ajax函数中,可以传入3种类型的数据 1.文本:"uname=alice&mobileIpt=110&birthday=1983-05-12" 2 ...
- Verilog学习笔记简单功能实现(五)...............序列检测设计
这里采用夏宇闻教授第十五章的序列检测为例来学习; 从以上的状态转换图可以写出状态机的程序: module seqdet(x,out,clk,rst); input x,clk,rst; output ...
- mysql定时任务简单例子
mysql定时任务简单例子 ? 1 2 3 4 5 6 7 8 9 如果要每30秒执行以下语句: [sql] update userinfo set endtime = now() WHE ...
- GJM :用JIRA管理你的项目(二)JIRA语言包支持及插件支持 [转载]
感谢您的阅读.喜欢的.有用的就请大哥大嫂们高抬贵手"推荐一下"吧!你的精神支持是博主强大的写作动力以及转载收藏动力.欢迎转载! 版权声明:本文原创发表于 [请点击连接前往] ,未经 ...
- java RSA加解密以及用途
在公司当前版本的中间件通信框架中,为了防止非授权第三方和到期客户端的连接,我们通过AES和RSA两种方式的加解密策略进行认证.对于非对称RSA加解密,因为其性能耗费较大,一般仅用于认证连接,不会用于每 ...
- treeview bootstrap 多级下拉树
bootstrap-treeview.js1是一款强大的树菜单插件,本文演示bootstrap-treeview.js15种不同的调用方法.它可一次性加载数据,也可异步加载.支持Checkbox,se ...
- css通用小笔记02——浮动、清除(三个例子)
css中通常会用到浮动与清除,也是一个必须掌握的知识点,概念性的东西不多说,下面举几个例子,来说明它的用法:1.文字环绕效果 2.多个div并排显示 3.清除浮动(默认显示) 一.文字环绕效果: h ...
- 微信网页授权(OAuth2.0) PHP 源码简单实现
提要: 1. 建议对OAuth2.0协议做一个学习. 2. 微信官方文档和微信官网工具要得到充分利用. 比较简单,直接帖源代码了.其中“xxxxxxxxxx”部分,是需要依据自己环境做替换的 /** ...
- BFC布局原理
写这篇博客的初衷其实是在解决浮动的时候看到的这个方法,就想着BFC是什么,为什么可以清除浮动.结果不看不知道,一看越看越不明白,潜下心来研究看看,总结一下学习心得. 1.BFC是什么 BFC就是Box ...