本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.

=======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)的更多相关文章

  1. [原]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 ...

  2. openstack kilo部署-基础环境

    公司也想搞个私有云玩玩,于是展开了一系列的调研,部署测试,openstack 有几个版本真是坑爹!!,如果喜欢被虐有兄弟,你就试试 openstack 的 juno , icehouse等版本,用不了 ...

  3. [译] OpenStack Kilo 版本中 Neutron 的新变化

    OpenStack Kilo 版本,OpenStack 这个开源项目的第11个版本,已经于2015年4月正式发布了.现在是个合适的时间来看看这个版本中Neutron到底发生了哪些变化了,以及引入了哪些 ...

  4. svn上传报Authorization failed错误解决办法

    svn上传文件时没有弹出用户登录界面,而是直接报Authorization failed错误.出现该问题基本都是三个配置文件的问题,下面把这个文件列出来 svnserve.conf配置文件中的 [ge ...

  5. [转]SVN客户端解决authorization failed问题

    转载地址:http://blog.csdn.net/patdz/article/details/7669591 1. 创建文件夹 E:\STWSource\STWLibrarySVN 2.在文件夹ST ...

  6. SVN svnserve.conf: Option expected 的解决方法 以及 Authorization failed 的解决方法

    ① 在 CentOS 6.5 上安装配置了 SVN,在本地 Checkout 的时候报错: 显示:/www/svnroot/webfile/conf/svnserve.conf:12: Option ...

  7. 【转】解决svn Authorization failed错误

    转载地址:http://blog.sina.com.cn/s/blog_4b93170a0100leb2.html 出现该问题基本都是三个配置文件的问题,下面把这个文件列出来 svnserve.con ...

  8. SVN客户端解决authorization failed问题

    遇到authorization failed问题 进人 [root@localhost conf]# pwd /opt/svndata/shell/conf [root@localhost conf] ...

  9. linux svn authorization failed错误

    authorization failed错误主要是conf/auth文件配置错误,可以参考如下配置: [aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O ...

随机推荐

  1. gcd和ex_gcd

    gcd就是欧几里得算法,可以快速的求出俩个数的最大公因数,进而也可以求其最大公倍数(俩数之积除以最大公因数),比较简单直接看代码就好了,一般用递归版,简短精简,敲得快,但如果数剧奇葩,怕溢出,那就用递 ...

  2. get/post时中文乱码问题的解决办法

    1.文章1 最近遇到一个问题:用get方法传递中文有问题,用post没有问题. 问题简单的描述是这样的: <a href="userGroup.jsp?userGroupName=&l ...

  3. INFO: task java:27465 blocked for more than 120 seconds不一定是cache太大的问题

    这几天,老有几个环境在中午收盘后者下午收盘后那一会儿,系统打不开,然后过了一会儿,进程就消失不见了,查看了下/var/log/message,有如下信息: Dec 12 11:35:38 iZ23nn ...

  4. rabbitmq启动异常之error,{not_a_dets_file recovery.dets

    中午,公司群里面测试人员@笔者说,早上测试服务器异常,MQ起不来,重启os了也起不来,报错,上去看下了早上又因为内存oom被内核killed了,启动了下,确实启动报错,erl vm进程起来了,但是be ...

  5. 如何停止CSS3的动画?

    前言 我们在移动端一般使用zepto框架,与其说zepto是jquery的轻量级替代版,不如说是html5替代版我们在js中会用到animate方法执行动画,这个家伙可是真资格的动画,完全是css一点 ...

  6. 【初探HTML本相】道之真谛不过自然,html标签脱俗还真

    前言 须弥般若有无空,阴阳道化真虚同:洗尽前恩本非相,还吾面目下九重. 咳咳,其实老夫对佛教文化有点点研究啦,说以我们这里来了一点很有哲理的东西,因为我这里准备干一件很戳的事情,我准备来看看我们的ht ...

  7. VS2012 asp.net mvc 4 运行项目提示:"错误消息 401.2。: 未经授权: 服务器配置导致登录失败"

    创建mvc4 应用程序发布,运行出错.出现未经授权: 服务器配置导致登录失败.请验证您是否有权基于您提供的凭,后来找得解决方法: 打开点站的web.confg文件,将: <authorizati ...

  8. ST05 跟踪SQL

          SAP R/3 提供标准ABAP SQL 跟踪工具.使用T-Code:ST05 可以进入追踪设定画面:          在Trace Modes 区域中选择需要在SAP R/3 Serv ...

  9. Tomcat https自制证书和浏览器配置

    Tomcat配置成https后,如过使用的是自己的证书,登陆首页时,总是提示证书安全问题,网上的很多资料有描述,但比较复杂,找了几个配置不成功,现在描述一个比较简单的方法. 生成证书的脚本 #!/bi ...

  10. 【Leafletjs】6.Control.Loading推展-在地图上边框添加加载动态条

    在已有的Control.Loading控件基础上结合CSS3 animation属性实现 .nz-loading .nz-loader { display: block; -webkit-animat ...