找回密码
 注册
查看: 6274|回复: 1

ERROR nova.api Unauthorized: The request you have made requires authentication.

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-12-16 15:05:28 | 显示全部楼层 |阅读模式
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi [req-42faf9b7-778b-42fc-a6ef-cbca85033b51 9d43966f82de4cab8db3696c634d98ba f563fd1031a246d7aa182ccb79abc996 - default default] Unexpected exception in API method: Unauthorized: The request you have made requires authentication. (HTTP 401)
2 u' ~: }  i8 n) `% c2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
& c, S( B# p$ O  I2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 788, in wrapped. p+ k, X8 g0 ?6 n" ?
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return f(*args, **kwargs)% O" s) b6 y% }+ u
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper( l! x& U6 F/ K
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
% |, O! O; p( ~0 ~3 {& M7 t2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper( l) M" u4 u! E8 Z6 _8 z( h
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
# L- H7 N! a& C; K2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
4 D; V: G& a+ `2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)9 n) e$ G+ \( r# p+ `+ k* Y! S) Z1 v
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper2 A4 F# R4 Q2 s% X  r- V
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)9 F4 w/ L7 q( m4 l
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
( M; j) ~* K5 y" F% u1 `2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
. l! {: p! N. G" {! |% J9 j4 _2 `2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 939, in _action_rebuild
8 v. z2 D) ?0 A/ e$ q" U! R2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     **kwargs)
# v; Z' Y; f0 j, k" v" l+ c, W2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 204, in inner% P8 j7 @) q* n; n7 _% U# v( X
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return function(self, context, instance, *args, **kwargs)
) W/ x4 C* |7 H# U2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 212, in _wrapped
% z; o- [' k% b' `2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return fn(self, context, instance, *args, **kwargs)9 j6 F# i, D$ g( A+ ?3 Q  \. A
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 152, in inner
; r% a# S% b7 g4 M3 y2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return f(self, context, instance, *args, **kw)7 r8 O" ?: J5 s
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 3127, in rebuild
5 k; s4 _2 {9 o: S  m! g2 l: f2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     volume = self.volume_api.get(context, root_bdm.volume_id)% `& z7 Y0 S/ d7 o8 `$ V( L7 @
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 379, in wrapper
3 A, ^( p1 Q/ w8 S; ~- ?# m2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     res = method(self, ctx, *args, **kwargs). O) n9 |$ [3 |- V4 H# C$ G
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 401, in wrapper8 A' g. k+ F; y  |- I
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     res = method(self, ctx, volume_id, *args, **kwargs)
9 P/ y  ~% Y* g. b( @/ k2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 467, in get8 i% \+ |4 W2 [. j; z
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     context, microversion=microversion).volumes.get(volume_id)# V  }( Y; w* S$ ?" u/ g
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/cinderclient/v2/volumes.py", line 308, in get
+ W' `# ?; i- j3 A* S2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return self._get("/volumes/%s" % volume_id, "volume")
% X' Y6 V& S: P2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 321, in _get
+ V' ?6 D$ G/ U7 C4 I5 A/ e8 M9 P2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     resp, body = self.api.client.get(url)' \4 u) W; i" B: X: f. x2 ^
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 200, in get
% i0 Z- n' t# ?& S2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return self._cs_request(url, 'GET', **kwargs)
, `: d" e  i4 |3 g9 k2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 191, in _cs_request
, U+ F# y% j3 |/ f, r2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return self.request(url, method, **kwargs)/ Y2 X" |! Z; }# }4 s" g- M3 A
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 177, in request
' A9 [, j4 t% D& l5 \) m2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     raise exceptions.from_response(resp, body)0 D0 j4 w. \% `1 N2 ]+ B6 f
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi Unauthorized: The request you have made requires authentication. (HTTP 401)1 t; `  c' x" |' u+ r- E
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi , m4 E: d5 \+ a# v4 U$ `
2018-12-16 15:03:27.883 90700 INFO nova.api.openstack.wsgi [req-42faf9b7-778b-42fc-a6ef-cbca85033b51 9d43966f82de4cab8db3696c634d98ba f563fd1031a246d7aa182ccb79abc996 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
( ~8 E* q' P+ s- U' k7 ~<class 'cinderclient.exceptions.Unauthorized'>
) K9 _3 S+ ~9 j5 ?( T/ J7 H( Z2018-12-16 15:03:27.885 90700 INFO nova.osapi_compute.wsgi.server [req-42faf9b7-778b-42fc-a6ef-cbca85033b51 9d43966f82de4cab8db3696c634d98ba f563fd1031a246d7aa182ccb79abc996 - default default] 192.168.17.65 "POST /v2.1/f563fd1031a246d7aa182ccb79abc996/servers/9aaf2b74-24ca-4bc4-97ac-925fceb42f81/action HTTP/1.1" status: 500 len: 643 time: 0.1560080  c4 t, `0 ~' }4 J3 j2 j# @8 P
2018-12-16 15:03:27.958 90700 INFO nova.osapi_compute.wsgi.server [req-cf8b77ec-5501-4e33-8cb1-8cf309177c3e 9d43966f82de4cab8db3696c634d98ba f563fd1031a246d7aa182ccb79abc996 - default default] 192.168.17.65 "GET /v2.1/f563fd1031a246d7aa182ccb79abc996/flavors/detail HTTP/1.1" status: 200 len: 3513 time: 0.0294249, X- @) e# k: E: X4 D
2018-12-16 15:03:27.996 90700 INFO nova.osapi_compute.wsgi.server [req-929011b5-0a25-4ac1-a8be-86bd7caab3f7 9d43966f82de4cab8db3696c634d98ba f563fd1031a246d7aa182ccb79abc996 - default default] 192.168.17.65 "GET /v2.1/f563fd1031a246d7aa182ccb79abc996 HTTP/1.1" status: 404 len: 382 time: 0.00507093 k) c# x9 p4 B/ t- {+ o2 q
2018-12-16 15:03:28.004 90700 INFO nova.osapi_compute.wsgi.server [req-4aa0e686-e6aa-4e62-916f-17489c40eb36 9d43966f82de4cab8db3696c634d98ba f563fd1031a246d7aa182ccb79abc996 - default default] 192.168.17.65 "GET /v2.1/ HTTP/1.1" status: 200 len: 783 time: 0.0049670
. c' b" s2 A. F: O. g4 O! G2018-12-16 15:03:28.425 90699 INFO nova.osapi_compute.wsgi.server [req-f77507c7-6b6b-4c69-b406-1135eed3049a 9d43966f82de4cab8db3696c634d98ba f563fd1031a246d7aa182ccb79abc996 - default default] 192.168.17.65 "GET /v2.1/f563fd1031a246d7aa182ccb79abc996/servers/detail?limit=21&project_id=f563fd1031a246d7aa182ccb79abc996 HTTP/1.1" status: 200 len: 4335 time: 0.3625159
3 a; s/ v. s  i

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-12-16 15:12:47 | 显示全部楼层
I am in the process of installing Pike and when I logged into Horizon and selected an item in the tree on the left such as instances. I would get logged out stating that was not authorized. I figured out that the auth_uri is wrong in the [keystone_authtoken]
' X0 E' o- ?! E- y$ j, _8 O& T% a$ ^
Original line: auth_uri = http://controller:5000, t* ^4 X7 A, ~* ^- Q/ z
) O6 [& Q+ N% [" j
Update line: auth_uri = http://controller:5000/v3
, \6 H6 D8 l8 f' n* _
* l2 {( _& U- }, W4 hYou can see in the admin-openrc and demo-openrc files they use the http://controller:5000/v3 for authentication.6 ^: d- k( S2 N& Y6 ~9 X* i2 L1 p

/ N0 R. n4 Z0 g( i" V6 x# sOnce I made this change in all of the appropriate files and rebooted i was able to log into Horizon and navigate as expected. This is an error in their documentation for installing Pike.- @( b. U3 `2 J/ o) U3 g

4 K# P+ k8 M# V2 F/ ?/ ~I am not sure if this will fix your problem but it sounds like a similiar authentication issue to me.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:38 , Processed in 0.020855 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表