|
|
Unexpected API Error. <class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) 解决办法
. J- i2 K8 X" {3 z% n
5 `6 U" H" U4 jhttp://controller:8774 "POST /v2.1/servers HTTP/1.1" 500 None3 l7 K4 [: @4 c U( y
RESP: [500] Content-Type: application/json; charset=UTF-8 openstack-API-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.1 x-compute-request-id: req-af926773-9a0d-4738-b788-16283f94be0d x-openstack-request-id: req-af926773-9a0d-4738-b788-16283f94be0d
5 ~" K. u4 M k" a# d* ?RESP BODY: {"computeFault": {"code": 500, "message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'>"}}5 x* i& O9 Y5 l f. ?# k: [9 ~
POST call to compute for http://controller:8774/v2.1/servers used request id req-af926773-9a0d-4738-b788-16283f94be0d5 w+ ]! j5 @3 y
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.2 g- \. j0 p% L/ x" n/ v
<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)* H# R3 Q1 }6 ~8 {1 e/ Q, Q
Traceback (most recent call last):/ G& Z9 c7 ]! D7 E$ v
File "/usr/lib/python3/dist-packages/cliff/app.py", line 410, in run_subcommand- `+ K, H1 K: _/ D* c4 ~, i6 Y6 _
result = cmd.run(parsed_args)+ D9 O& _# u+ Y5 U l
^^^^^^^^^^^^^^^^^^^^+ q) Z1 N5 [- I# U7 z4 W- A
File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 39, in run
. m: C" {! V7 s: z return super(Command, self).run(parsed_args). x( T& N; @, \' V- S" E3 ?+ H
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 o7 y; r( ?) r, K3 B File "/usr/lib/python3/dist-packages/cliff/display.py", line 115, in run$ V' B* r) p0 X$ |1 w5 ~# ^* `. S
column_names, data = self.take_action(parsed_args)
9 Z6 Z3 G7 z& X {: n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 h2 V. J4 V# c, d D File "/usr/lib/python3/dist-packages/openstackclient/compute/v2/server.py", line 1729, in take_action
$ n& q* Y, j4 z4 R, F, @ server = compute_client.servers.create(*boot_args, **boot_kwargs)" s: t1 s& Q- C. I5 v
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
; u% x+ y o+ c' p File "/usr/lib/python3/dist-packages/novaclient/v2/servers.py", line 1562, in create
T- d5 U3 t$ C* w return self._boot(response_key, *boot_args, **boot_kwargs)2 j; l1 B* i5 y1 E" r$ l
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 u5 ?, F3 O' v/ w) a File "/usr/lib/python3/dist-packages/novaclient/v2/servers.py", line 887, in _boot& }' u( g0 Z# ?$ o7 R, x
return self._create('/servers', body, response_key,
3 x& e+ I" O% [$ |! E. ~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^) G, K/ X- a; w: k
File "/usr/lib/python3/dist-packages/novaclient/base.py", line 363, in _create, V+ |- E8 {6 n
resp, body = self.api.client.post(url, body=body)% n! q1 f3 N* ~1 c
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
. V+ j0 N6 P8 o- m7 m0 Z; V File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 401, in post
( K: O! w o- D5 G& k) n return self.request(url, 'POST', **kwargs)# t) G3 a, a2 l+ B5 Y% Q
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^3 w5 C+ @8 l7 |* K- _
File "/usr/lib/python3/dist-packages/novaclient/client.py", line 78, in request
, @& Z$ |% p9 f2 e, H; n7 r raise exceptions.from_response(resp, body, url, method)1 Z2 u+ S# ~" ~5 J3 G: S7 v
novaclient.exceptions.ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.# S! f+ G" c0 P9 c! H6 s' d" S
<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)
' ~: K1 b- E7 N1 ?8 D5 xclean_up CreateServer: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
7 A/ g6 t. N! C/ U4 K<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)6 w) d% U6 ]* u3 E' @& @
END return value: 1
4 x/ v3 v! }5 F# M' Q$ W( i4 h* T/ W9 p. Q' n! P/ i; w7 q3 \: P* {% C2 d
3 J0 [+ u- j, {4 V$ Z0 p. ~解决办法:
; u1 i5 y% {7 J* y3 |" T" H" Z修改nova.conf和neutron.conf 文件中 keystone_authtoken项 service_token_roles_required = false , 如果是true 一定要改成false。
" @ N' p7 P8 ]* I' [& s |
|