易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 640|回复: 2
收起左侧

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

[复制链接]
发表于 2022-9-23 17:35:34 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
Unable to set password on instance (HTTP 501)
& ~7 T) ]+ N2 r3 W[root@controller1 ~]# openstack server set 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4 --root-password    m9 W% `9 \$ @% [- D
New password:
% s% C+ ?4 v' D1 k/ a5 ]Retype new password:
$ V0 |2 i4 e, ]0 S8 m1 wUnable to set password on instance (HTTP 501) (Request-ID: req-3b3bed29-6e91-4136-b522-7076a019044a)9 X" \  r# G! t7 H+ i/ H
* @9 a: }# x4 |. s) D0 s- I
使用openstack命令失败,可以尝试使用nova 命令。[root@controller1 ~]# nova get-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4" y3 r9 o9 u4 d( m/ \
2 o# @  m1 |2 c" N- u6 ^6 P0 b# i4 e
[root@controller1 ~]# nova set-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4! m" C& A' u- G& r% f! t
New password: # a. G7 D& `2 Q5 U9 Z2 h
Again: ' ?7 x1 }0 G$ b! W8 U3 \7 ^# M
[root@controller1 ~]# nova set-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4
9 r+ r3 J- b3 ~New password: 5 Z3 ?9 P$ [# _# A! M$ r
Again: . P6 a' Q7 t+ B$ {
[root@controller1 ~]# nova get-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4
! k: s/ R- `4 ?; d7 r& g
3 s% p4 w$ o' a9 ]& Z2 O( O! H
9 @6 l2 B% x. S' b, y3 k% g
7 E$ y  y$ c" S8 G
 楼主| 发表于 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 '",'# V1 ^! |& G& b
guest-get-osinfo
0 J5 f- T' y1 M* G) j, a: Z# L guest-get-timezone0 T$ c4 B) k8 ?5 b
guest-get-users
4 |; y8 `+ p" ]# _  C2 I( \ guest-get-host-name
- x& f  H# Y9 }, d! y3 u guest-exec3 P" n4 u' J+ j5 j
guest-exec-status
6 I+ {; x; j/ ~2 ? guest-get-memory-block-info
; t: {, J0 G! x% q9 a  b1 N  H guest-set-memory-blocks
. n' Y3 l1 t8 a7 b7 u6 w/ Z+ ?7 y7 j guest-get-memory-blocks) o. k7 ~4 M! U1 b% G5 w
guest-set-user-password2 j$ T/ N& o9 a. A
guest-get-fsinfo3 y) d: S, J  A4 x6 C. Y; k2 O
guest-set-vcpus1 ^9 [3 m* U, s9 b2 O$ @2 U8 j
guest-get-vcpus
- X# R; s1 D4 p  ] guest-network-get-interfaces! h+ K6 D- b4 {2 x
guest-suspend-hybrid
2 r' s. N( K2 w' z$ N3 q guest-suspend-ram
/ T( M! T' K0 A% Q9 a* E# R. E9 } guest-suspend-disk
) _# I% x9 M% r  i guest-fstrim: `# }2 o, z0 y/ m
guest-fsfreeze-thaw  P+ n& h+ b6 |
guest-fsfreeze-freeze-list
- n7 Q( ]2 f( J& O5 K9 a guest-fsfreeze-freeze
; W- n5 W" F8 Y guest-fsfreeze-status! @9 i" P$ ^) k6 p; G# }7 Z4 }
guest-file-flush+ B: {0 l3 w2 ]
guest-file-seek
' w5 U5 C2 p( o3 U, [& R/ S: f$ O guest-file-write( E! T8 ~- k6 [, b/ y, Z( t1 q
guest-file-read
+ ~) _+ p3 U+ J: q9 B guest-file-close2 l% e7 \% B7 [+ G
guest-file-open* y! }9 X! N( Z5 R* R
guest-shutdown
$ |& }0 `) B+ m( `1 n* t guest-info) K! y! G/ S7 a3 i9 N
guest-set-time) k9 C) C* Q6 O4 ?* E
guest-get-time
# E& R7 z! N- N  z guest-ping
3 o2 V, r  O; Z% x  `# ]) | guest-sync
3 H! o, s8 m! p5 z# v guest-sync-delimited
! j' {$ @$ X5 q# e% M/ g
2 A' ?! O$ \1 H5 C) n/ _. r
 楼主| 发表于 2022-9-26 09:37:49 | 显示全部楼层
[root@controller1 ~]# nova --help|grep pa: }$ K# d/ v' n  a! I# |2 P
            [--os-endpoint-override <bypass-url>] [--insecure], {7 r2 F0 }% |1 v0 e1 F# t
            [--os-password OS_PASSWORD]# E" j6 m8 M& H6 w- E
    clear-password              Clear the admin password for a server from the
4 ?3 O9 B8 G) C+ f+ j6 T                                change the instance server password.
% A+ f+ T+ r+ g5 V( O& S# G    get-password                Get the admin password for a server. This
6 Z5 |9 L8 k& b                                password information from the server itself.% c& o" k) ?" i. S/ D3 [
    keypair-add                 Create a new key pair for use with servers.3 R/ _( R) h/ n# y
    keypair-delete              Delete keypair given by its name. (Supported
# e% B7 L& R; L, ?    keypair-list                Print a list of keypairs for a user (Supported  A2 ~  F! {- _& U6 i: K, R& }
    keypair-show                Show details about the given keypair.
; ^! I2 m8 |: J" a: L1 y3 L: t% |    pause                       Pause a server.
+ s" y0 `* x% d7 J$ D* ?8 x, ~2 S    set-password                Change the admin password for a server.
; t/ u8 a& C; ?: z    unpause                     Unpause a server.
. C9 M9 o" ?$ U, c, U% [                                minor part) or "X.latest", defaults to
0 J6 W) E7 H! D  --os-endpoint-override <bypass-url>8 v1 B  r4 V5 U; ?: A0 V6 n
  Options specific to the password plugin.
/ |$ j; k5 f9 w. P$ E* K7 b                                parameters. It will be used for both the user
4 c; G- F9 ~3 Z3 W! W* r8 P% C                                parameters. It will be used for both the user1 P! }( a2 |- V+ ]' E
  --os-password OS_PASSWORD     User's password
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 15:29 , Processed in 0.041936 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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