找回密码
 注册
查看: 6272|回复: 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). ?8 o- y9 R& U6 O* L' u% }
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
  ~1 ~2 ]5 ?) D8 {2 u2018-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
# J  M- E( ~) g+ C1 X# e2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return f(*args, **kwargs)% j2 l4 x5 L5 Z+ ]. D* c
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
4 q7 Z- A8 p5 Q  I, T" G/ O2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)8 l: [' I# j6 u! W/ R8 X
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 wrapper6 Q: |5 j. I. E: z" p
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)  T. b) x0 n0 A
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
( ~' N9 B! n* k% |; Y9 t2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2 c# A7 ], J  d, 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
9 [4 R# j0 i1 @. Z7 w% R; i5 A# F2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
6 r7 v' c$ E. r2018-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
, Y* b$ t" f8 i! A2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
, Z( H* Q, h, N' c2018-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
) \& ]! v7 \; O% Q2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     **kwargs)
4 |4 v: w: o% }% p2018-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
  {* ?* V* a5 c( I2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return function(self, context, instance, *args, **kwargs)
9 c; V( M0 y3 f# E+ M3 c% f2018-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
, F! y3 }+ }; E, @) G: Z& T7 n2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return fn(self, context, instance, *args, **kwargs)
6 |+ E- k) A1 S; ~& T; j. k$ t; m2018-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
& g; h* L$ Q, m3 B( s! j9 X2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return f(self, context, instance, *args, **kw)
2 x' j& Q# R9 U" M( Y2018-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! P4 R- P- y' k5 P) b
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     volume = self.volume_api.get(context, root_bdm.volume_id)& x( e6 `% e; E8 N( t8 z* x
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
- P# O+ Q1 n0 T# M8 d2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     res = method(self, ctx, *args, **kwargs)
  b. S0 F4 g9 _# S2 E2018-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 wrapper
+ x: u7 R: J& X% M6 @7 t2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     res = method(self, ctx, volume_id, *args, **kwargs)9 Y' F3 l+ Z$ B
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 467, in get: M! U& W- _+ \# P8 [$ z2 G
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     context, microversion=microversion).volumes.get(volume_id)
/ y) W8 D) @& i# B" l/ C' B! ?; o7 M" [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
! F# H7 O" Z1 q! @& q# r2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return self._get("/volumes/%s" % volume_id, "volume")
& O5 o8 G  O0 Q; M2018-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
& u# P' l' Q- `2 Y4 A# q8 G; @+ b; I2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     resp, body = self.api.client.get(url)
) X: u/ W. \2 f( T3 j2018-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
6 d& p% A9 x& D# Y" F! s' ~2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return self._cs_request(url, 'GET', **kwargs)  b  F: t+ k$ d- o$ k4 {
2018-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
+ i4 R2 ]6 U! x6 Y2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     return self.request(url, method, **kwargs)
' v: H% g) Q- e" ~5 ~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 request9 S: L5 d8 n4 t' B" X) }
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi     raise exceptions.from_response(resp, body)
* p. J7 t' I7 P. y! l5 `: ^9 C2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi Unauthorized: The request you have made requires authentication. (HTTP 401). i$ G+ t- E5 S0 E# L2 O
2018-12-16 15:03:27.882 90700 ERROR nova.api.openstack.wsgi
5 I* @- c0 l1 U, ]) t2018-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.
0 |: j, f$ q+ b3 G: R<class 'cinderclient.exceptions.Unauthorized'>$ E4 J/ p& C' @+ a! k
2018-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
4 e" k" w4 K( s2018-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
3 x% Z  w' l, g3 g/ ?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.0050709
1 I3 L5 U# ~9 P% l* c# v$ X  p2018-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$ B6 M% P1 T! m* d' A5 n
2018-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; y( i9 ~. W( F

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]6 n' l6 U3 s& t: |8 X+ _& l2 E; _

* H: f! ^# O; SOriginal line: auth_uri = http://controller:5000
4 E; F2 q* F5 ?) K- X" P5 ^: |6 l
Update line: auth_uri = http://controller:5000/v3
4 b* p! v- z7 c
% ?* `4 @: e) D  t2 {5 @You can see in the admin-openrc and demo-openrc files they use the http://controller:5000/v3 for authentication.! E  o) n3 ^( w8 z

# G/ z- j. A! S6 ]+ ]1 GOnce 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.
) ]0 N# _. m) I7 v2 @
& f( d7 r( H  l8 B. ]6 QI 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 02:27 , Processed in 0.016710 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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