易陆发现互联网技术论坛

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

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

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

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

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

x
Unable to set password on instance (HTTP 501)
  _) g6 }4 x/ }5 l& w& H. `[root@controller1 ~]# openstack server set 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4 --root-password  
# t9 j0 }$ ?4 dNew password:
2 C  C% ^" B5 a" b6 iRetype new password:
9 U/ Y$ `2 Z3 T7 ]; r6 XUnable to set password on instance (HTTP 501) (Request-ID: req-3b3bed29-6e91-4136-b522-7076a019044a)
) V, s5 P2 r  }9 ^% v7 X/ C: X0 B- t( K
使用openstack命令失败,可以尝试使用nova 命令。[root@controller1 ~]# nova get-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4- G9 v& U0 r! q* c" B, t% S# j; u4 j

1 Q6 G$ @5 q: a6 ?; r4 J' n  h[root@controller1 ~]# nova set-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4
' N/ `3 b) ]' J5 k) N* eNew password: . H% J+ x% w# c! y! Q+ |7 G, I
Again: 2 {. V9 I2 |/ E" W: J5 m
[root@controller1 ~]# nova set-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4
8 g, \: H1 k2 k1 t& D" {: y* `$ \New password: 3 i; s. j5 ?# h4 F1 Y
Again: 5 S$ T. l" Q, _- d
[root@controller1 ~]# nova get-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4/ g- ]- D+ {" F

4 {2 ~. q! `$ c" M# B! b( F  g. |

2 |( s2 ~1 \" K. ~; A+ C
 楼主| 发表于 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 '",'
% h. y) S& f, J( r guest-get-osinfo
8 U$ d5 e& q- y" [ guest-get-timezone
$ c. N. G$ Q& U guest-get-users, }' P$ E  s- h4 h2 M. k
guest-get-host-name; p" }6 Y; I% `; _
guest-exec
9 F7 D0 }0 x8 m6 P guest-exec-status
  |0 G. G- P( X5 K guest-get-memory-block-info% |- y3 l4 v; M3 Y' v/ \: g  D
guest-set-memory-blocks/ ]: M+ n1 d( A- ]
guest-get-memory-blocks. m1 H! y; d$ k, J
guest-set-user-password+ s9 ]5 a/ ~- P! K
guest-get-fsinfo
4 i& h  w# ~$ c5 r8 |% \8 i guest-set-vcpus
. {) ]8 r6 v$ u  n guest-get-vcpus* J9 Z- F2 q5 O. ]' D
guest-network-get-interfaces
6 d: m1 G0 k! v: _ guest-suspend-hybrid
5 e6 x" S- i" A) G guest-suspend-ram
0 P( u( I( D& ~+ V( G; v) m guest-suspend-disk9 B3 T$ ?" }( h& E9 b5 N
guest-fstrim+ }8 I+ N9 N: i% q# L
guest-fsfreeze-thaw9 k5 _. l* y3 W6 L7 O
guest-fsfreeze-freeze-list
- r) m1 L6 s- ~; g' o" [ guest-fsfreeze-freeze# U) Z  k' e) g
guest-fsfreeze-status
0 c' ~! a0 D0 ]4 Q! Y4 w' M* _" o guest-file-flush
1 {! n* V1 l  y5 L# k5 _$ y! ^/ L6 g guest-file-seek, y: n& Z% M  C" Y; f; t* M
guest-file-write4 ?8 Q$ d! q' L
guest-file-read  s/ }, h. M7 Q
guest-file-close
# I# M) r1 ~- y4 |0 T guest-file-open
9 S( P2 g4 j6 t$ Y& W guest-shutdown
: h3 |. F9 I1 \+ ]( e* a: T guest-info% O- r! c1 T) Y9 M/ m. W2 K
guest-set-time
) n8 N1 N8 s' i" X0 E8 Y5 o1 z guest-get-time9 |' h8 A  Y. }+ N) |: _% n) G' C2 U
guest-ping  S& }7 J( p; l% }% k0 q/ h4 [
guest-sync
, [7 F% ]" S% a" e: V guest-sync-delimited
: N- O6 l( r1 ?8 `1 V$ ^9 N! }, \3 @- K9 z8 H: L0 b' U
 楼主| 发表于 2022-9-26 09:37:49 | 显示全部楼层
[root@controller1 ~]# nova --help|grep pa
' J' W- R% I/ l- t) m1 b, D            [--os-endpoint-override <bypass-url>] [--insecure], {  \# H' ~0 J0 r0 ~: ]
            [--os-password OS_PASSWORD], M% X3 p4 V! Y. _- F9 U' Y
    clear-password              Clear the admin password for a server from the
- m- }, T' t, y8 ]$ B+ V                                change the instance server password.3 x% T: n0 o" `$ I. {% Z- W
    get-password                Get the admin password for a server. This
2 `6 N  e6 G5 c; x" V5 `7 _                                password information from the server itself.
; u1 Q) m) k' b& k' r6 g; V6 |% X- O    keypair-add                 Create a new key pair for use with servers.9 X# M6 h: o  W  x
    keypair-delete              Delete keypair given by its name. (Supported
" {) `5 X2 J: x" A    keypair-list                Print a list of keypairs for a user (Supported
$ Q% y( ?4 m+ k7 w# X" B& m8 P5 x    keypair-show                Show details about the given keypair.: c- [5 F4 a& x% S; g
    pause                       Pause a server.
5 e  z  f& a4 Z8 f& i% n9 |6 y    set-password                Change the admin password for a server.% C  @) r$ e" S/ K1 c, P
    unpause                     Unpause a server.
& v0 P4 \+ B! U                                minor part) or "X.latest", defaults to
2 ~/ ?& b% t' J% b# j4 _$ q5 l9 c+ Z  --os-endpoint-override <bypass-url>- s* ]4 N4 j( T
  Options specific to the password plugin." K' T" B2 n! j. B9 ~
                                parameters. It will be used for both the user
, U. W( ~7 ?. j& |6 L( e+ l                                parameters. It will be used for both the user: R: o* T) I9 a1 q9 b5 K
  --os-password OS_PASSWORD     User's password
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-9 00:03 , Processed in 0.056200 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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