找回密码
 注册
查看: 31|回复: 0

Unexpected API Error. <class 'nova.exception.NeutronAdminCredentialConfigurat

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2025-3-31 10:00:01 | 显示全部楼层 |阅读模式
Unexpected API Error. <class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) 解决办法
& q6 o) R+ r6 }$ L/ [* H
# d$ r0 p% L+ Z* ?http://controller:8774 "POST /v2.1/servers HTTP/1.1" 500 None9 G# X+ b6 w& K) [* U( I* l
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& r# ?2 s9 q$ S& {$ k. t$ T
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'>"}}
1 ^& O- h, p( e' A0 ]& W6 gPOST call to compute for http://controller:8774/v2.1/servers used request id req-af926773-9a0d-4738-b788-16283f94be0d
3 j, F/ Y3 J- |" n; d! F6 |/ e- U; cUnexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
9 _. i/ {! Q4 S! P<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)
8 O9 w$ U( c" b: GTraceback (most recent call last):& K- F+ m0 v* p# |( |
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 410, in run_subcommand
$ f9 B5 i) i& I0 J3 h    result = cmd.run(parsed_args)
5 {$ [& t* f+ h5 y! e5 O+ X             ^^^^^^^^^^^^^^^^^^^^
& l' C! n* G( R& }& H  File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 39, in run9 u  y  b7 g  d( R5 ]" q( u9 Z
    return super(Command, self).run(parsed_args)  V0 ]" m4 |- l, U8 ?1 g9 E; w
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ n1 H. d+ t3 \1 p) V& H  File "/usr/lib/python3/dist-packages/cliff/display.py", line 115, in run( X5 \" }, G- Z, ~
    column_names, data = self.take_action(parsed_args)
& x; u6 [3 V) h, P, w% _                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ q$ a: g  ~' D7 q- `  File "/usr/lib/python3/dist-packages/openstackclient/compute/v2/server.py", line 1729, in take_action& Z, G2 V* }# D+ s2 N3 V9 \
    server = compute_client.servers.create(*boot_args, **boot_kwargs)
1 P3 j' [5 \* N/ a' B& D* {             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ y. y- I+ Y+ }  File "/usr/lib/python3/dist-packages/novaclient/v2/servers.py", line 1562, in create7 n6 S" F" X0 J$ j% S/ _1 M* d+ m
    return self._boot(response_key, *boot_args, **boot_kwargs)
* _3 M1 ^) D1 @* ^1 [4 |. ~! C5 f           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^3 w: c; g9 J" F: A! J- c1 L
  File "/usr/lib/python3/dist-packages/novaclient/v2/servers.py", line 887, in _boot/ a$ [/ n" D  @* m# ?/ g( Q/ P% R
    return self._create('/servers', body, response_key,
8 Z5 J0 w0 K; J1 W           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^, C1 f9 J1 u% r' \
  File "/usr/lib/python3/dist-packages/novaclient/base.py", line 363, in _create
% Q5 N9 N3 q, C. l3 n* w    resp, body = self.api.client.post(url, body=body)! t% [0 `5 @# H5 S- L' M+ f
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^* z9 Y( ^. i  ~) @$ b$ f
  File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 401, in post
+ s4 V6 R& i7 j9 r    return self.request(url, 'POST', **kwargs)
" A5 _; s% _1 U) y3 l           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2 `$ M3 T' L7 D7 M- u7 i
  File "/usr/lib/python3/dist-packages/novaclient/client.py", line 78, in request
) ~1 O( A( y2 }8 u2 h+ t    raise exceptions.from_response(resp, body, url, method)( S/ {6 S  @* `
novaclient.exceptions.ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
4 ?3 q  q* F% X, p5 {% J<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)
9 V2 t* h" F; e: O% u( Qclean_up CreateServer: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.( Y1 E& K$ b# Q6 y6 _" F3 X
<class 'nova.exception.NeutronAdminCredentialConfigurationInvalid'> (HTTP 500) (Request-ID: req-af926773-9a0d-4738-b788-16283f94be0d)
/ u: l8 l+ u3 G, f2 o/ ]END return value: 1% ~, D2 }4 N" m$ N
1 w: x- M7 N: `! Y; {" M/ U' e5 `$ C

" y1 Q, ?7 Q0 |解决办法:* t# h: c9 T* ^& D# y6 X
修改nova.conf和neutron.conf 文件中 keystone_authtoken项 service_token_roles_required = false  ,   如果是true 一定要改成false。, s0 @. V" t3 w* ^
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:01 , Processed in 0.014634 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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