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

易陆发现论坛

 找回密码
 开始注册
查看: 323|回复: 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/
  p2 V% V, g: J  y. `6 [2021-09-04 14:17:24.961 9795 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
4 \% ^, V2 J6 ~3 x3 N; p2021-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
/ ~: M' O3 s1 i4 y4 r$ E2021-09-04 14:17:24.967 9795 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/& ~1 Y3 R' G( {6 ?5 t1 d# v
2021-09-04 14:17:24.968 9795 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
! N6 J& h2 R* Y& _/ N; D7 |8 p5 B) z! ?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.0019002
+ X& M4 l- V$ G/ U2021-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& d/ B( @- M$ s- [; L3 c
2021-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.
- G8 }6 Z, a4 P# c2021-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 2004 w6 o) D, ?# A4 i8 V/ G- y
2021-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.0208907
  ^! }2 Q, L7 p+ i. @2 k2021-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; Y5 j/ }2 [. S8 F
2021-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
: m* m! M; O4 b, V) S2021-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
6 ^& p* c6 {0 N$ A1 L3 k2021-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
5 B0 g$ o! B! x7 s# L2021-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.
; L9 s) |. \% @6 ^4 }7 \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 200) I9 x4 L1 D2 r* q) G) e- V: d8 n
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' l5 ?# p% T: G2 [" f7 q
2021-09-04 14:17:25.127 9783 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/3 ~" Q9 x  t- E! ~; E- s
2021-09-04 14:17:25.128 9783 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
0 P6 k6 S8 F. a) ?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) a: O- n# s# L# E/ B& ]
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=True, Y# @' o: `1 L7 C
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 2000 h: P' w+ a/ y# ?' e
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; Q9 z( ^1 i  r' n' m. I
2021-09-04 14:17:25.978 9784 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/( `7 {0 E9 z  a4 l5 ^0 W/ N
2021-09-04 14:17:25.979 9784 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
, H# \; [  Z( j  t' E2021-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! G! j' c9 R- j! u! K+ P; w
2021-09-04 14:17:25.997 9789 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
" x$ R% f4 m6 B9 z3 J* A! t" F$ T+ z! {2021-09-04 14:17:25.998 9789 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 3005 h" L8 q% i0 [* k
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* k: ~: `' L0 j# h' V
2021-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) T- _& l8 q$ V( [' n5 m; }
2021-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& G; H4 Z. q( \' H1 G* F
2021-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
9 r, u5 E  `4 W( h0 k4 X4 g! D! ~2021-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.0216942
3 M. Q1 L2 X$ Q% w8 P2021-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
! q9 z+ q) ?; E2 b4 S. W2021-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 ~5 N0 I9 b7 v: }* S' C2021-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: O: I, z$ d, N( b
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- s+ Q) ?' M2 W, a$ i- @
2021-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.  E& G  J9 ^' W0 M5 ~
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 2000 T. c( j3 K+ o
2021-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.07511540 G! p, [$ H3 n" o4 E$ @) t
2021-09-04 14:17:26.128 9783 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/* p9 `6 ~5 a) |# C, V! N
2021-09-04 14:17:26.128 9783 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
' q! P8 p- T7 }! [. Y, _2021-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.0021574( n$ s* O& i+ L4 F9 F5 U* C: \4 l" ]
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
. H' g+ }; h* ?8 d2021-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
+ ~% h3 [: w# R5 S. g* k) E2021-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.0129299, J$ ^2 r) ^2 y3 r
2021-09-04 14:17:26.503 9782 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/8 o- @- B! G  ?/ p* c* ?5 P$ k6 k
2021-09-04 14:17:26.504 9782 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
& ^2 j2 G/ o. c" F2021-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.00238012 M, S$ z# O3 W. V1 p
2021-09-04 14:17:26.523 9782 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
- @9 Z/ O, e: l2021-09-04 14:17:26.523 9782 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
: z# H" @7 E3 i4 M' A4 C2021-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.00190501 O! I2 S7 n# b  H8 P/ U
2021-09-04 14:17:26.609 9782 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
! ]- P6 l% G! E5 U) @% O% p2021-09-04 14:17:26.610 9782 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
, j8 t% S0 a) \* D& A7 J( o2021-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.00194671 ~- ?0 Y- x2 y: i3 h
2021-09-04 14:17:26.627 9782 INFO cinder.api.openstack.wsgi [-] GET http://controller:8776/
  a/ @5 A& m  z; A7 f# o2021-09-04 14:17:26.628 9782 INFO cinder.api.openstack.wsgi [-] http://controller:8776/ returned with HTTP 300
* i9 T3 ]) l1 {  S2021-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, L6 u+ _* H2 {  i5 x5 d- V
^C& K' F: F' S2 n. Y4 e! U5 ]- Q3 X
[root@controller ~]# : U- @- l8 ^4 V: L* Y
[root@controller ~]#
# l$ W. p3 R5 S. \& i  y3 k[root@controller ~]# 3 l$ u6 x& T0 P
[root@controller ~]# cinder
: G* ~0 c5 d6 N* Ycinder                     cinder-api                 cinder-manage              cinder-rtstool             cinder-status              cinder-volume-usage-audit
; `% [/ {' Z8 h, D8 P7 z& r- b+ scinder-3                   cinder-backup              cinder-rootwrap            cinder-scheduler           cinder-volume              cinder-wsgi. N' }1 e$ B1 f; N* S! l& W
[root@controller ~]# cinder service-
. P* q1 c' Y6 F0 Q$ D" N) v9 G4 gservice-disable  service-enable   service-list     3 r3 j0 ?' D3 [' Z- s
[root@controller ~]# cinder service-list # R8 A2 l9 w  a0 O" a3 Z- ]
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
% X1 O1 Q. n" f* s| Binary           | Host            | Zone | Status  | State | Updated_at                 | Disabled Reason |8 n1 Y" b) G5 [" I
+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
& N, Q. a# r% v5 j" o0 F8 h0 [0 f| cinder-backup    | controller      | nova | enabled | up    | 2021-09-04T06:18:16.000000 | -               |0 [  G7 i5 O5 L6 R  x; l) b- A4 S
| cinder-scheduler | controller      | nova | enabled | up    | 2021-09-04T06:18:21.000000 | -               |. l& |/ _( f% \! x- }5 ^
| cinder-volume    | controller@ceph | nova | enabled | up    | 2021-09-04T06:18:21.000000 | -               |
" g3 S& U9 a# p0 u' _- }+------------------+-----------------+------+---------+-------+----------------------------+-----------------+
6 @, k$ ]$ N8 l8 f1 U[root@controller ~]# vim /etc/cinder/cinder.conf
( H% d, y6 p0 g[root@controller ~]# systemctl restart openstack-cinder-
! I6 }! Q: e0 V2 A9 Aopenstack-cinder-api.service        openstack-cinder-backup.service     openstack-cinder-scheduler.service  openstack-cinder-volume.service
+ S  T4 S% f9 V: e[root@controller ~]# systemctl restart openstack-cinder-api.service openstack-cinder-backup.service openstack-cinder-scheduler.service openstack-cinder-volume.service 1 i- z, e2 o' b6 h$ ~: I- m

' ^5 ~/ i9 h4 c1 \2 d; ODelete 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)5 j3 t' V: e3 k: y
ERROR: Unable to delete any of the specified volumes.
) y" u" w/ ~( l5 x, n& w: y2 Z) ]. U3 T
删除失败:+ e! ?1 }7 L, {. r6 a
! T5 T; l" F, }- B0 h$ K) q. P% z

- l- a6 X6 r8 _# L! v9 Q% o: P1 J! e" L. s/ ~$ X7 T/ t" Z
 楼主| 发表于 2021-9-5 01:00:04 | 显示全部楼层
[root@controller ~]# cinder list
' Z' q1 t" A) O) X$ [" L+--------------------------------------+-----------+------+------+-------------+----------+-------------+, b. ]- U, p" o9 G- b' y. T7 h
| ID                                   | Status    | Name | Size | Volume Type | Bootable | Attached to |
! G- G% i+ Z* M/ H+--------------------------------------+-----------+------+------+-------------+----------+-------------+0 n) L$ f( b2 B- I- D* B
| 409f3a86-2bd6-413c-86f0-f41f59b8d840 | available | test | 1    | __DEFAULT__ | true     |             |7 h$ p7 J- p" E6 K
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
+ c0 p3 z- M7 E6 l$ g2 C, [$ n  y5 N4 g- N- o* h+ p$ Z! d
还是删除失败:
0 ?2 f: F* {& m% b: R只能清理数据库了:3 y, _; U' q7 `" t% [# T0 L# k, D
这就需要在控制节点在数据库删除了,因为此时虽然在物理机上已经删除了,但是数据库中还有该记录 ,不能直接删除记录,数据库有外键依赖,要把 cinder 卷的 deleted 改成 “1”3 Q% q: o$ h% a+ C% z% R& _# C

% z. i9 e! U4 _7 V5 U+ G9 z
/ ]! c. {) H# g6 \" S( o9 d$ t
在控制节点操作删除卷
1) 进入数据库
mysql -u cinder -pxxxxxx -hIP cinder
[root@controller ~]# mysql -u cinder -pxxxx cinder+ a3 Z6 i5 t# n' U: O1 G3 X
Reading table information for completion of table and column names( f4 z+ Y$ \7 s1 A& D
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor.  Commands end with ; or \g.
$ w+ q1 q" h. C4 ?  s5 L/ TYour MariaDB connection id is 4292 \# b. I8 R9 v/ d: C
Server 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';
+ ?2 Z) }1 s: }9 A5 C8 _3 i+--------------------------------------+-----------+--------------+% L  _0 E! }7 c/ p8 _/ d+ r
| id                                   | status    | display_name |: }6 n; f8 ]6 B- M
+--------------------------------------+-----------+--------------+
9 w) {, R# r( P& `. ]+ I| 409f3a86-2bd6-413c-86f0-f41f59b8d840 | available | test         |) I% D$ U; U; M
+--------------------------------------+-----------+--------------+, O( N( w& o, x0 _4 |3 I
1 row in set (0.000 sec)
4) 修改数据库 cinder 相关卷记录
MariaDB [cinder]> update volumes set deleted='1' where id='409f3a86-2bd6-413c-86f0-f41f59b8d840';
5 [( z& b" e( t, S# D0 oQuery OK, 1 row affected (0.001 sec)) U7 I0 W# g  i, b4 q
Rows matched: 1  Changed: 1  Warnings: 0
到此问题解决  
注意别忘了重新打开刚才 stop 的 cinder 相关服务
# L* u# {5 W5 T, f4 I& d
" _  ~4 h+ m$ N7 O' l+ i
# d. G1 L  `3 k, b
 楼主| 发表于 2021-9-5 01:00:05 | 显示全部楼层
登录控制节点查看是否正常:7 o6 W- t' }3 L+ V
[root@controller ~]# cinder list
0 h/ x7 Q1 B' f0 g+----+--------+------+------+-------------+----------+-------------+
  T5 W, N! g0 [| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
: X- v$ }0 b  [6 [$ m+----+--------+------+------+-------------+----------+-------------+; K+ {4 w2 N7 ]2 [8 f
+----+--------+------+------+-------------+----------+-------------+
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2021-10-28 16:56 , Processed in 0.045313 second(s), 21 queries .

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

© 2012-2022 Comsenz Inc.

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