|
|
Unexpected API Error. <class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) 解决办法2 C+ A5 T$ ?! M( q1 o. g
- o% a5 l$ g" |2 L- N
http://controller:8774 "POST /v2.1/servers HTTP/1.1" 500 None
& Y* F7 Q6 x/ E0 p1 h6 \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
* Q" g0 D/ [/ K* @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'>"}}
: i& q5 X# b c; B& C* ^POST call to compute for http://controller:8774/v2.1/servers used request id req-af926773-9a0d-4738-b788-16283f94be0d
$ d" t1 q0 Y& h- yUnexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
& _) J' O$ d( |% ?, A# v6 {% d& ^" m<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)
) L+ Y3 x7 |+ [; f; kTraceback (most recent call last):" u8 E( a* t2 z" ]
File "/usr/lib/python3/dist-packages/cliff/app.py", line 410, in run_subcommand
; e, K, Z. ~ K$ }, p8 |$ c! j result = cmd.run(parsed_args)
6 |: r: h# W% J/ ^$ \9 t ^^^^^^^^^^^^^^^^^^^^$ _0 V) t" A# A- u. U
File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 39, in run
9 o9 r* ~* Z) T: H/ u return super(Command, self).run(parsed_args)
# D( M& e+ \# H8 e' E7 f# m2 g; E6 f) D ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^' o' p0 l7 Y& t9 M
File "/usr/lib/python3/dist-packages/cliff/display.py", line 115, in run
& g+ |, ^: a: \) t. Q1 h2 X ?7 @ column_names, data = self.take_action(parsed_args)! S3 [# v1 k8 v* I4 k
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/ p& P4 `8 J2 g# _9 T i* ^ File "/usr/lib/python3/dist-packages/openstackclient/compute/v2/server.py", line 1729, in take_action
w' D2 G; Z n% F/ |9 v, x server = compute_client.servers.create(*boot_args, **boot_kwargs)7 |9 X7 x+ {% j% ~8 z4 T
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ m1 Y+ [1 i: a
File "/usr/lib/python3/dist-packages/novaclient/v2/servers.py", line 1562, in create
1 q9 P; e4 Y H0 y2 K$ z# T+ X0 t5 Z; S return self._boot(response_key, *boot_args, **boot_kwargs)
L* c$ U. T! l0 j ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/ X3 M; D3 s0 k6 j File "/usr/lib/python3/dist-packages/novaclient/v2/servers.py", line 887, in _boot
1 _! @5 Q: b) M; R% V9 b return self._create('/servers', body, response_key,
1 k9 ^, r) Z& \7 w6 J) |9 O' W ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^6 I! o. z+ p7 Z4 j! m* |
File "/usr/lib/python3/dist-packages/novaclient/base.py", line 363, in _create
9 P' n$ I: J' c- b ], N+ |* |, E resp, body = self.api.client.post(url, body=body)
/ J, \& s2 x1 d8 i& |- a ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^1 y* W' q3 W- g0 B
File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 401, in post& x/ J) X6 B3 Q& R- N/ X& U% S
return self.request(url, 'POST', **kwargs)
! w0 T0 A2 C+ e ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^9 e$ c' J( o0 w8 I2 `% y5 g6 K$ y
File "/usr/lib/python3/dist-packages/novaclient/client.py", line 78, in request
4 n% K2 O; p U1 W2 t( o' ^! | raise exceptions.from_response(resp, body, url, method)
/ Q- R8 d* g% e2 s# v7 Inovaclient.exceptions.ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.: J l$ s3 z0 @ }/ A+ E1 A) x
<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)
5 x" W4 }+ x8 R- vclean_up CreateServer: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.+ x" W: M- U# z' O5 P' R. c M
<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)
* g6 V8 Q8 { y* V4 WEND return value: 1
+ D+ N7 N2 c% }8 G6 |. {
% r1 @- ^, q1 T( | }( x4 c& z1 j* X6 f% M6 y
解决办法:
' o b' O. }! l& G) S5 Q修改nova.conf和neutron.conf 文件中 keystone_authtoken项 service_token_roles_required = false , 如果是true 一定要改成false。
7 T4 `. n2 Y- b |
|