将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

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

openstack上卷 错误:您被禁止执行 删除卷: test 无法删除提示错误排查过程:

[复制链接]
发表于 2021-9-5 01:00:03 | 显示全部楼层 |阅读模式

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

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

x
2021-09-04 14:17:24.960 9795 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/! n/ i2 O; {7 Y8 L
2021-09-04 14:17:24.961 9795 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
7 O6 N8 u9 A& R* j9 _2021-09-04 14:17:24.962 9795 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.0022697
3 f& l0 ]* ]+ a: ~2021-09-04 14:17:24.967 9795 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
3 C" k5 u+ v8 C( X: h8 m2 D2021-09-04 14:17:24.968 9795 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300$ w* g2 ^7 C* R4 S  U2 t  h5 U
2021-09-04 14:17:24.968 9795 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.00190024 h" _) o: a6 e9 d4 t$ t* ~
2021-09-04 14:17:24.989 9795 INFO cinder.api.openstack.wsgi [req-5e1a0c05-d38c-4924-958e-dca2edec7096 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] GET http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/snapshots/detail?all_tenants=True
, K0 o2 _/ i; }+ e0 D+ I& w2021-09-04 14:17:25.004 9795 INFO cinder.volume.api [req-5e1a0c05-d38c-4924-958e-dca2edec7096 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] Get all snapshots completed successfully./ t9 r( M/ O+ V9 m" C9 Q; _
2021-09-04 14:17:25.005 9795 INFO cinder.api.openstack.wsgi [req-5e1a0c05-d38c-4924-958e-dca2edec7096 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/snapshots/detail?all_tenants=True returned with HTTP 200
) R# B; D/ ^# G! _6 o, J2021-09-04 14:17:25.006 9795 INFO eventlet.wsgi.server [req-5e1a0c05-d38c-4924-958e-dca2edec7096 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] 192.168.8.65 "GET /v3/51c784a90f3c4b16baf606b5bc6ac917/snapshots/detail?all_tenants=True HTTP/1.1" status: 200  len: 827 time: 0.02089078 e' j1 K9 j1 U$ B6 i4 A7 g
2021-09-04 14:17:25.024 9795 INFO cinder.api.openstack.wsgi [req-632fe033-d339-4a36-af6c-211a262e2703 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] GET http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/os-volume-transfer/detail?all_tenants=True
( K6 A: |7 \" z3 A2021-09-04 14:17:25.031 9795 INFO cinder.api.openstack.wsgi [req-632fe033-d339-4a36-af6c-211a262e2703 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/os-volume-transfer/detail?all_tenants=True returned with HTTP 200
1 u/ v* g/ X9 |" `' p) |2021-09-04 14:17:25.032 9795 INFO eventlet.wsgi.server [req-632fe033-d339-4a36-af6c-211a262e2703 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] 192.168.8.65 "GET /v3/51c784a90f3c4b16baf606b5bc6ac917/os-volume-transfer/detail?all_tenants=True HTTP/1.1" status: 200  len: 343 time: 0.0167577
; h& u6 [9 f/ Y; G- C2021-09-04 14:17:25.039 9795 INFO cinder.api.openstack.wsgi [req-cce9ab92-b80a-4500-ab3a-9a0bf557ff1a fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] GET http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/volumes/detail?all_tenants=True&limit=21&sort=created_at%3Adesc
3 @4 H2 t4 I) G3 \* _' I2021-09-04 14:17:25.109 9795 INFO cinder.volume.api [req-cce9ab92-b80a-4500-ab3a-9a0bf557ff1a fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] Get all volumes completed successfully.  b3 u/ w0 @) d" P4 s. X
2021-09-04 14:17:25.118 9795 INFO cinder.api.openstack.wsgi [req-cce9ab92-b80a-4500-ab3a-9a0bf557ff1a fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/volumes/detail?all_tenants=True&limit=21&sort=created_at%3Adesc returned with HTTP 2008 b: s. l0 _2 t6 I) _+ t6 ]* H
2021-09-04 14:17:25.119 9795 INFO eventlet.wsgi.server [req-cce9ab92-b80a-4500-ab3a-9a0bf557ff1a fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] 192.168.8.65 "GET /v3/51c784a90f3c4b16baf606b5bc6ac917/volumes/detail?all_tenants=True&limit=21&sort=created_at%3Adesc HTTP/1.1" status: 200  len: 1469 time: 0.0823586
, Q7 x# q* a5 c  o& ]2021-09-04 14:17:25.127 9783 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/& q/ F! o8 g( P, C1 V; J! z3 X
2021-09-04 14:17:25.128 9783 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300) K5 h( ]. u5 A! g7 k' R' f+ T* R
2021-09-04 14:17:25.129 9783 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.0021579- l$ j9 c; f8 O4 D- J; x
2021-09-04 14:17:25.139 9783 INFO cinder.api.openstack.wsgi [req-5b106f17-1ad4-4251-a596-63012f85bd1f fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] GET http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/groups/detail?all_tenants=True6 H$ O+ w# _/ y+ I4 ~$ q
2021-09-04 14:17:25.147 9783 INFO cinder.api.openstack.wsgi [req-5b106f17-1ad4-4251-a596-63012f85bd1f fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/groups/detail?all_tenants=True returned with HTTP 200
. c5 T+ f0 b7 n- ]2021-09-04 14:17:25.148 9783 INFO eventlet.wsgi.server [req-5b106f17-1ad4-4251-a596-63012f85bd1f fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] 192.168.8.65 "GET /v3/51c784a90f3c4b16baf606b5bc6ac917/groups/detail?all_tenants=True HTTP/1.1" status: 200  len: 341 time: 0.0134308" g5 z& l) x0 o
2021-09-04 14:17:25.978 9784 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
, V% B3 z) E7 M6 O2021-09-04 14:17:25.979 9784 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300: T- Y/ Q% b6 Y1 v: k5 e
2021-09-04 14:17:25.980 9784 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.0022991
7 ~6 [* ~2 _9 I1 f& |  ]2021-09-04 14:17:25.997 9789 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/5 A+ L0 J  N2 k$ m2 T
2021-09-04 14:17:25.998 9789 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
. X% d( y1 j6 h! L) ]2021-09-04 14:17:25.999 9789 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.0029099
9 s" W4 |( W" R& I0 R3 p3 ~6 O) K2021-09-04 14:17:26.023 9787 INFO cinder.api.openstack.wsgi [req-52a28b4f-d863-4433-a00e-2b201a348aa9 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] GET http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/snapshots/detail?all_tenants=True
. h4 w7 [2 w5 b2021-09-04 14:17:26.029 9784 INFO cinder.api.openstack.wsgi [req-cd10e9d3-3a48-4b02-90d6-945de299111c fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] GET http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/os-volume-transfer/detail?all_tenants=True
! h2 k5 O% Y! |1 v  y2021-09-04 14:17:26.041 9784 INFO cinder.api.openstack.wsgi [req-cd10e9d3-3a48-4b02-90d6-945de299111c fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/os-volume-transfer/detail?all_tenants=True returned with HTTP 200
8 y0 O1 h- a: I1 n' m! a+ H2021-09-04 14:17:26.042 9784 INFO eventlet.wsgi.server [req-cd10e9d3-3a48-4b02-90d6-945de299111c fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] 192.168.8.65 "GET /v3/51c784a90f3c4b16baf606b5bc6ac917/os-volume-transfer/detail?all_tenants=True HTTP/1.1" status: 200  len: 343 time: 0.02169425 ^4 Z$ B% T5 @" s
2021-09-04 14:17:26.052 9784 INFO cinder.api.openstack.wsgi [req-443c97d0-68bf-4f3d-91a4-20fc7e8ec142 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] GET http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/volumes/detail?all_tenants=True&limit=21&sort=created_at%3Adesc. e& V' N: o2 x# b0 F% V8 u) W
2021-09-04 14:17:26.054 9787 INFO cinder.volume.api [req-52a28b4f-d863-4433-a00e-2b201a348aa9 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] Get all snapshots completed successfully.
9 y* a0 F) R1 k" D2021-09-04 14:17:26.056 9787 INFO cinder.api.openstack.wsgi [req-52a28b4f-d863-4433-a00e-2b201a348aa9 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/snapshots/detail?all_tenants=True returned with HTTP 200  {) S( l+ f2 V& L. h. @6 m$ p' O
2021-09-04 14:17:26.058 9787 INFO eventlet.wsgi.server [req-52a28b4f-d863-4433-a00e-2b201a348aa9 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] 192.168.8.65 "GET /v3/51c784a90f3c4b16baf606b5bc6ac917/snapshots/detail?all_tenants=True HTTP/1.1" status: 200  len: 827 time: 0.0399590
3 x3 V1 Z0 \6 q6 v2021-09-04 14:17:26.113 9784 INFO cinder.volume.api [req-443c97d0-68bf-4f3d-91a4-20fc7e8ec142 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] Get all volumes completed successfully.( B# p1 u/ o3 Q
2021-09-04 14:17:26.121 9784 INFO cinder.api.openstack.wsgi [req-443c97d0-68bf-4f3d-91a4-20fc7e8ec142 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/volumes/detail?all_tenants=True&limit=21&sort=created_at%3Adesc returned with HTTP 200
+ `7 Q+ Z+ U: @7 v2021-09-04 14:17:26.122 9784 INFO eventlet.wsgi.server [req-443c97d0-68bf-4f3d-91a4-20fc7e8ec142 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] 192.168.8.65 "GET /v3/51c784a90f3c4b16baf606b5bc6ac917/volumes/detail?all_tenants=True&limit=21&sort=created_at%3Adesc HTTP/1.1" status: 200  len: 1469 time: 0.0751154
4 k7 D5 U$ C; i# r0 x- C# j) A5 M2021-09-04 14:17:26.128 9783 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/  {2 P+ S$ c. i3 ]
2021-09-04 14:17:26.128 9783 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
% J+ R& S! o, h+ g& n2021-09-04 14:17:26.129 9783 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.00215748 J- I2 C# Y/ d2 _7 w
2021-09-04 14:17:26.136 9793 INFO cinder.api.openstack.wsgi [req-2ace5d43-cef1-442d-a688-593af50f61b5 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] GET http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/groups/detail?all_tenants=True
0 b: \. x/ C  V0 \% `2021-09-04 14:17:26.144 9793 INFO cinder.api.openstack.wsgi [req-2ace5d43-cef1-442d-a688-593af50f61b5 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] http://controller:8776/v3/51c784a90f3c4b16baf606b5bc6ac917/groups/detail?all_tenants=True returned with HTTP 200) Y, u2 ?3 y$ F8 p
2021-09-04 14:17:26.145 9793 INFO eventlet.wsgi.server [req-2ace5d43-cef1-442d-a688-593af50f61b5 fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917 - default default] 192.168.8.65 "GET /v3/51c784a90f3c4b16baf606b5bc6ac917/groups/detail?all_tenants=True HTTP/1.1" status: 200  len: 341 time: 0.01292993 R7 h- j- T9 s3 b, G6 n* y
2021-09-04 14:17:26.503 9782 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
, L% z7 f1 ]7 }2 r* Z- W4 F2021-09-04 14:17:26.504 9782 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
8 D/ h2 {& c6 X: Z# X2021-09-04 14:17:26.505 9782 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.0023801! D7 [3 ]9 Z% B" z. Q+ A
2021-09-04 14:17:26.523 9782 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/+ a6 I' [5 K; A8 o* d
2021-09-04 14:17:26.523 9782 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
! K4 _3 a6 b: _0 e4 T2021-09-04 14:17:26.524 9782 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.0019050
- U2 W; |/ K6 [4 m3 J9 b7 `! L2021-09-04 14:17:26.609 9782 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
5 L1 E/ @) W% l, E6 P2021-09-04 14:17:26.610 9782 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300- }3 K2 o0 g5 i/ i5 _
2021-09-04 14:17:26.611 9782 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.0019467
/ k2 O% l+ q2 D9 R/ b+ b( f$ }2021-09-04 14:17:26.627 9782 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
0 j+ z/ E+ c2 Z' e* _, l2021-09-04 14:17:26.628 9782 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300# z! i4 I8 O+ n! o
2021-09-04 14:17:26.629 9782 INFO eventlet.wsgi.server [-] 192.168.8.65 "GET / HTTP/1.1" status: 300  len: 959 time: 0.0018127& w4 k! H1 a3 y9 n% G
^C
' C3 d3 f/ S) [% \! X[root@controller ~]#
: j* \0 _' e, c' n0 r[root@controller ~]# + _8 [, c; W  O* n" s
[root@controller ~]#
% k( \7 ?) V6 V' F7 ?: M[root@controller ~]# cinder: t/ e8 z$ V8 N5 M( q
cinder                     cinder-api                 cinder-manage              cinder-rtstool             cinder-status              cinder-volume-usage-audit
; [* o6 d0 {% ucinder-3                   cinder-backup              cinder-rootwrap            cinder-scheduler           cinder-volume              cinder-wsgi
0 L4 R- s. x+ U4 Y[root@controller ~]# cinder service-5 {* r" \1 C8 O: I. l0 S; V
service-disable  service-enable   service-list     
! B' _$ \' [4 J- t1 k& r* I[root@controller ~]# cinder service-list ! P% e3 d: q1 q% C
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+# }0 @" \5 q3 s
| Binary           | Host            | Zone | Status  | State | Updated_at                 | Disabled Reason |1 s9 }! w$ T2 J, e, k
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+3 F) c7 d6 {! o3 _- Z" Y
| cinder-backup    | controller      | nova | enabled | up    | 2021-09-04T06:18:16.000000 | -               |
- }* a: M/ L3 _- M1 Z  X| cinder-scheduler | controller      | nova | enabled | up    | 2021-09-04T06:18:21.000000 | -               |
- u  C9 H' ?$ A1 J| cinder-volume    | controller@ceph | nova | enabled | up    | 2021-09-04T06:18:21.000000 | -               |
% U0 i, t: H  j3 m2 C+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
, w" _  D1 d7 {8 v9 W2 \, t4 d2 L[root@controller ~]# vim /etc/cinder/cinder.conf- l( v8 k& d" B( B* x2 Z5 z
[root@controller ~]# systemctl restart openstack-cinder-, v+ b. F) K/ \! W2 }" ]
openstack-cinder-api.service        openstack-cinder-backup.service     openstack-cinder-scheduler.service  openstack-cinder-volume.service
3 g. ^3 B2 b0 A  I( `[root@controller ~]# systemctl restart openstack-cinder-api.service openstack-cinder-backup.service openstack-cinder-scheduler.service openstack-cinder-volume.service & j8 a% y' Q" E9 f

9 _. e  j9 B  {Delete for volume 409f3a86-2bd6-413c-86f0-f41f59b8d840 failed: Invalid volume: Volume status must be available or error or error_restoring or error_extending or error_managing and must not be migrating, attached, belong to a group, have snapshots or be disassociated from snapshots after volume transfer. (HTTP 400) (Request-ID: req-6e03b5c3-4637-4aa1-ba97-214e1e755e1e)
- s8 ], C! r6 L) i' J% J4 L$ B: }ERROR: Unable to delete any of the specified volumes.7 @# J* L- F' Q0 r# ^9 d% t

" }( L. a2 H3 e! N# I+ b删除失败:
* z" p* I8 [( [. a# @
: v, O! a. ?! t1 n( V; i9 e. s* ]
* v8 r9 h3 r' v, M6 Y  w9 c, j1 D2 e. R& |
 楼主| 发表于 2021-9-5 01:00:04 | 显示全部楼层
[root@controller ~]# cinder list
- n, B" X" _  X: X5 ?+--------------------------------------+-----------+------+------+-------------+----------+-------------+
- s2 t' U$ j/ V5 O4 i" b7 ?9 ~8 k| ID                                   | Status    | Name | Size | Volume Type | Bootable | Attached to |4 e7 g7 i' q* Q# L, Q' m
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
6 R" D, k) S" N, B% s* R| 409f3a86-2bd6-413c-86f0-f41f59b8d840 | available | test | 1    | __DEFAULT__ | true     |             |( [+ V' U2 B& Z. B( L
+--------------------------------------+-----------+------+------+-------------+----------+-------------+: i9 ~! `! E& N/ \3 k& O$ {
' {) G9 V! ^% v9 W+ n! w+ E3 A# B* b8 r
还是删除失败:
( C/ M$ K' L- d5 d9 g1 U4 h! B只能清理数据库了:
! N2 K/ k0 D8 ^" f这就需要在控制节点在数据库删除了,因为此时虽然在物理机上已经删除了,但是数据库中还有该记录 ,不能直接删除记录,数据库有外键依赖,要把 cinder 卷的 deleted 改成 “1”* Q1 [2 Z3 U9 w: K% R+ c0 x

7 _" r2 L$ f- s; \$ ^9 Z+ ^8 i

- ?: |$ ]+ c8 Y在控制节点操作删除卷
1) 进入数据库
mysql -u cinder -pxxxxxx -hIP cinder
[root@controller ~]# mysql -u cinder -pxxxx cinder
5 C1 A1 q7 M/ O* M( J* M  lReading table information for completion of table and column names, a* H& m2 X- j4 ~) B, E# i6 H; P
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor.  Commands end with ; or \g.
( D& r: p/ y7 q% U( R8 d) n( ~- |Your MariaDB connection id is 429
6 \; d) Q. C! J: Q" E0 b+ c7 YServer version: 10.3.28-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [cinder]>
2) 进入 cinder 数据库表
或者使用 mysql -u cinder -pxxxx
use cinder;
3) selete 找到出错的表
MariaDB [cinder]> select id,status,display_name from volumes where id='409f3a86-2bd6-413c-86f0-f41f59b8d840';
/ u3 h6 ?* X2 {" i+--------------------------------------+-----------+--------------+
7 n0 I# O! n) X5 L( C$ v| id                                   | status    | display_name |
. u( m7 X$ O4 |, l+--------------------------------------+-----------+--------------+1 {7 S& ?# N7 G# U$ r
| 409f3a86-2bd6-413c-86f0-f41f59b8d840 | available | test         |# y! j! T0 E" ~% B
+--------------------------------------+-----------+--------------+8 D: M! R: N( G3 N) l
1 row in set (0.000 sec)
4) 修改数据库 cinder 相关卷记录
MariaDB [cinder]> update volumes set deleted='1' where id='409f3a86-2bd6-413c-86f0-f41f59b8d840';8 }: A7 q/ c1 U1 B' s1 r
Query OK, 1 row affected (0.001 sec), k, p; |( W# @9 `" }0 _9 e5 f! o: k. n
Rows matched: 1  Changed: 1  Warnings: 0
到此问题解决  
注意别忘了重新打开刚才 stop 的 cinder 相关服务
0 r4 q/ {+ O' |

1 P0 H) b$ [4 f4 v
  R/ w" m, l) N7 @: k
 楼主| 发表于 2021-9-5 01:00:05 | 显示全部楼层
登录控制节点查看是否正常:8 o4 z' q0 Y8 ~9 _! w6 u3 q
[root@controller ~]# cinder list
; h7 k9 T- j: ?8 U# Y5 v" x; D+----+--------+------+------+-------------+----------+-------------+
2 h8 W2 P8 p- @| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
  T4 U, d! d1 _; v+----+--------+------+------+-------------+----------+-------------+
; o+ I! F+ d$ |3 a, B, f* R+----+--------+------+------+-------------+----------+-------------+
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-11-28 19:16 , Processed in 0.046759 second(s), 21 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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