易陆发现互联网技术论坛

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

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

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

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

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

x
Unable to set password on instance (HTTP 501) ' F) {- Z2 W: X" r
[root@controller1 ~]# openstack server set 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4 --root-password  
: k9 H/ Z# Z+ L7 \New password:
7 Z& }2 e; q; f  NRetype new password: 3 i' g  d2 S! W; G. F
Unable to set password on instance (HTTP 501) (Request-ID: req-3b3bed29-6e91-4136-b522-7076a019044a)
5 C' y( j2 I% e% L9 c# K
* X! [" u5 M& N; b使用openstack命令失败,可以尝试使用nova 命令。[root@controller1 ~]# nova get-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4
+ b) L" F" \$ g. J$ C
8 u, l0 F; d, A  ]5 l  ?8 E[root@controller1 ~]# nova set-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f45 h6 T* H5 c/ e& B2 |
New password: * N# F* D: u! M3 _+ K- J3 f' ~- ]
Again: + o4 s% g4 W1 h
[root@controller1 ~]# nova set-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f44 Q# E7 Z/ J* A3 o4 h3 F
New password:
! ~/ h3 z4 v! C' `/ h) x( @Again: 0 G7 ~: T+ {8 _/ @$ o
[root@controller1 ~]# nova get-password 8d2350ee-4aad-4aa9-bdc9-2f5c94d780f4: o) H9 W/ Z- U4 a% e

5 \/ A, M, ~, C( c
  h& H* m0 l2 e+ z7 s2 ]1 Z6 p0 H( u, W+ b4 r* @
 楼主| 发表于 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 '",'0 Z5 l" K) Z+ ~0 H
guest-get-osinfo
' _: F* Z5 j5 u: A guest-get-timezone" g; ?0 I) R% n0 @
guest-get-users6 f7 b4 @& }) C/ e
guest-get-host-name6 S  @* h! C$ [
guest-exec
" @, x6 W6 X% @* g! z" U* t guest-exec-status
- W- ]5 g( ?- Z+ \& v/ a guest-get-memory-block-info0 J. e" N3 x; z: F" m6 W
guest-set-memory-blocks
( u, K3 ]- D: b# s9 s% r' N+ A guest-get-memory-blocks6 W5 O$ ~+ |$ i- N
guest-set-user-password* f% K6 s% f9 M( ~
guest-get-fsinfo
* S4 P  L, {) ~! d& t, C guest-set-vcpus
: z/ r: q8 z3 V" f* r guest-get-vcpus
; ^1 K' @2 u' }1 l. g guest-network-get-interfaces; V7 H0 X; |& Q6 c: j- S
guest-suspend-hybrid$ B! q! C8 l6 X6 K/ \: v; [
guest-suspend-ram
& w, s- B1 Y8 S guest-suspend-disk1 Q) e% ~  X/ L8 u
guest-fstrim+ ?' P0 o. f. W
guest-fsfreeze-thaw+ K. h4 p: F- O$ Z& c4 C
guest-fsfreeze-freeze-list
2 J, @) J7 H& B3 @8 N9 K& | guest-fsfreeze-freeze
6 \# n& p7 h1 Q* T guest-fsfreeze-status
- Z/ E6 E) r1 N guest-file-flush& z& X& P1 ~( e8 z/ s- r# l
guest-file-seek
! }/ ^& J4 y3 u4 c; ^9 k guest-file-write
7 ~- X3 G3 O5 C guest-file-read
; _" G7 }' u- S. }( u8 x$ | guest-file-close
( M6 G! U2 G+ k) D; w5 a7 L9 b guest-file-open
  h9 g2 G, u! j3 [2 ] guest-shutdown" h+ P" c! R6 h3 H
guest-info
" q5 @+ ?2 r& X. R$ d guest-set-time; u3 H" c/ s/ j- Y% l- H
guest-get-time
7 U( A! P2 a8 t( ]! | guest-ping
, }7 l. h. g1 R, O2 H2 [% l guest-sync& c8 W& k# J- P+ z
guest-sync-delimited
9 P' H, J- g8 m3 t5 b5 o0 V9 o; \4 a; }5 x; \& l3 X
 楼主| 发表于 2022-9-26 09:37:49 | 显示全部楼层
[root@controller1 ~]# nova --help|grep pa
/ y. }' G9 n/ `# W& N            [--os-endpoint-override <bypass-url>] [--insecure]
; U7 E% k/ h" v/ P7 \: ]1 {1 U            [--os-password OS_PASSWORD]  \6 B- m$ P3 U
    clear-password              Clear the admin password for a server from the
9 S. E* ]( Q+ z3 V                                change the instance server password./ R8 o; H( K" k& P+ @0 h) q, w3 g
    get-password                Get the admin password for a server. This6 s6 O# T- g$ M9 A+ Z
                                password information from the server itself.8 B# T# G* I9 @2 A# x% f: N9 M0 q
    keypair-add                 Create a new key pair for use with servers.
& o, i; D+ \9 s  s) q- I; M    keypair-delete              Delete keypair given by its name. (Supported4 e8 j3 V2 e. i0 F$ x5 t
    keypair-list                Print a list of keypairs for a user (Supported3 Y( u3 E# w' e
    keypair-show                Show details about the given keypair.+ C  }# u; j* l8 t7 _3 z: V
    pause                       Pause a server.
% S, T4 m+ W! |1 a7 ?    set-password                Change the admin password for a server.
5 Z: |6 ^2 C$ k) F    unpause                     Unpause a server.. u4 U4 ~" I: ]( w9 L) p
                                minor part) or "X.latest", defaults to- Q. t( m; l5 O, ?
  --os-endpoint-override <bypass-url>3 X4 }6 Q$ X  i( _; R4 [# w$ L6 w
  Options specific to the password plugin.1 j: W+ K7 A. ]
                                parameters. It will be used for both the user! W2 ?0 k3 P7 K9 X7 Z+ E. R! p
                                parameters. It will be used for both the user4 N& b. A, u! ~  H
  --os-password OS_PASSWORD     User's password
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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