找回密码
 注册
查看: 638|回复: 2

Unable to set password on instance (HTTP 501) 解决办法

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-9-23 17:35:34 | 显示全部楼层 |阅读模式
Unable to set password on instance (HTTP 501)
$ x5 O! g# h; z( E$ X$ h! Q% v[root@controller1 ~]# openstack server set 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4 --root-password  * n7 V0 W, y+ U
New password: 0 z- F6 \% X8 }) k3 C% f; e
Retype new password:
0 ?2 ?) ^3 D9 c, ~- [! ]5 gUnable to set password on instance (HTTP 501) (Request-ID: req-3b3bed29-6e91-4136-b522-7076a019044a): r/ D& t) Q+ H/ t
: Q/ \7 J8 K& y& S( x' X, l& B
使用openstack命令失败,可以尝试使用nova 命令。[root@controller1 ~]# nova get-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4
) N" V' @+ a/ K; p$ \; Q+ _2 O. O7 S  d3 c* N1 E: T2 i) a
[root@controller1 ~]# nova set-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4% l1 v5 m% _6 {9 o1 W% }6 Z, y
New password: 7 n, {7 o/ L4 g. ^* x, t; ^8 n# D
Again: . B, E% e8 X' j; n4 r& @' O
[root@controller1 ~]# nova set-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4
, \6 O& t5 y9 J: [5 [New password: 6 K6 s1 `3 f9 p
Again:
4 c2 c  K. \  v+ o[root@controller1 ~]# nova get-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4: l$ }7 ~" |/ p/ _0 o! Q
* W. B$ p  |7 Y2 K' j1 A4 ~4 `
4 m) B0 P* t; T9 G9 O

5 h, U: Q1 n/ i3 E# ?

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 17:41:21 | 显示全部楼层
检查又是正常的(nova-libvirt)[root@compute06 /]# virsh qemu-agent-command instance-000003a3 '{"execute":"guest-info"}' | python -m json.tool | grep 'name' | cut -d ':' -f 2 | tr -d '",'& x1 a* W9 h8 b5 w4 X4 e
guest-get-osinfo
  N5 k. c2 ]$ k2 a$ V; A5 B guest-get-timezone
, ]+ y3 G/ I5 A- Q1 S guest-get-users' {/ V, k) R# p, t3 |2 Z+ j  D) U% v
guest-get-host-name3 W6 c- h3 M! n. A1 ]
guest-exec5 r9 N2 n3 o& m/ ?+ M  m$ J2 l3 a: V
guest-exec-status
5 A7 N* Z, r; [9 X5 E guest-get-memory-block-info
5 O" G1 U# r9 y6 Q! F guest-set-memory-blocks
/ w7 S8 H: P9 n guest-get-memory-blocks3 F: M; B+ ~3 k& L7 O" z1 B8 C9 k
guest-set-user-password2 P. d, t& L; p  l
guest-get-fsinfo8 I# G0 O+ Y- l+ g* L' I" X; Z
guest-set-vcpus
9 [  w- E7 y" E+ S% i- G) B# O guest-get-vcpus" h- }3 Q1 l. q! T$ ]; Z& ]& A$ u
guest-network-get-interfaces
6 n4 R) ]4 f3 } guest-suspend-hybrid6 ^& v! i* u  f$ D$ F
guest-suspend-ram
" y' E3 x: I$ e1 h# H) p1 e) O/ e guest-suspend-disk2 J( f! b+ K4 g& v) {
guest-fstrim
. V3 O, k" P2 \) d guest-fsfreeze-thaw
: ?' c- C: d+ d( I4 c guest-fsfreeze-freeze-list
1 T, m/ x; \. A6 X guest-fsfreeze-freeze
- g6 a% o: @3 ~! f guest-fsfreeze-status
  F/ h) h2 j) ]. u guest-file-flush
; f8 Q: p4 D9 |; n- ? guest-file-seek
" y4 z0 Y" I% L0 ], l" x guest-file-write
  J3 J# I8 W. q1 \! X: R1 Q guest-file-read- T" z7 D2 ^( H2 t2 C5 A+ k/ C
guest-file-close& }* w0 S  {' L3 k1 Q( K1 i: H
guest-file-open
& o3 @9 \* `1 \: W* C' Q/ w guest-shutdown
$ _2 V( c& g6 S+ @$ q: D+ @  g guest-info( h% R- ~' w  u. r3 X
guest-set-time
$ E5 H( e! R! l( C# i1 C guest-get-time2 N+ h. {: ~$ v0 D* {$ j
guest-ping
6 r3 f+ p4 U# ?+ _7 H- B/ D guest-sync, S+ P& O7 {# I4 h
guest-sync-delimited" e& W( T5 r3 f; {! s

( j! f/ ^& }4 X  i/ F7 s! I

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-26 09:37:49 | 显示全部楼层
[root@controller1 ~]# nova --help|grep pa
* U* U5 R; U1 a$ u- {            [--os-endpoint-override <bypass-url>] [--insecure]
! H6 {) u% ?9 V. U0 N) g( m            [--os-password OS_PASSWORD]
# Y1 p0 x) V! D5 c: G/ o    clear-password              Clear the admin password for a server from the/ E& J2 B: t& O6 C
                                change the instance server password.
. f9 Y- ^8 Z5 B  X1 N- R% ?  y    get-password                Get the admin password for a server. This7 ~3 @+ o. H; N0 }
                                password information from the server itself.6 z& V8 W3 c) D2 H9 [
    keypair-add                 Create a new key pair for use with servers.
& n3 A$ G6 _2 u/ U9 g    keypair-delete              Delete keypair given by its name. (Supported) A) R& a: Z8 g& K) J/ \" h) O# t
    keypair-list                Print a list of keypairs for a user (Supported
! X. T" N1 W, G& k9 K    keypair-show                Show details about the given keypair.
+ ?3 I5 p* e: y3 I/ o, ?- h; w# p/ G$ q    pause                       Pause a server.# m. D+ M1 g9 y. u0 M- H7 D1 j
    set-password                Change the admin password for a server.7 E; V6 _5 O  J+ O( R% Z
    unpause                     Unpause a server.
5 O, n7 g3 l8 Y: x! R" i" d* h                                minor part) or "X.latest", defaults to9 a! V$ S  G1 G( Q/ X8 n3 p# ?
  --os-endpoint-override <bypass-url>
% P5 K1 l) X  R' }# U  Options specific to the password plugin.1 R% c# ^9 u' S/ _
                                parameters. It will be used for both the user
. A5 {5 D8 T8 _6 Y. e* b6 S- }                                parameters. It will be used for both the user) M* t4 T4 ~7 l, ]! k
  --os-password OS_PASSWORD     User's password
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:02 , Processed in 0.027174 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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