|
|
MariaDB [cinder]> select id,volume_id,user_id,status,display_name from snapshots where id= '71146765-659d-47c9-9682-5e077461f6ba';
9 j7 G$ q) I4 p+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+
6 V# k! U! O* L| id | volume_id | user_id | status | display_name |
5 K! [6 P9 M6 W+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+( P; H. W+ @1 N' p, _5 l! v
| 71146765-659d-47c9-9682-5e077461f6ba | ff5717c6-301d-48a3-9833-9b1722557903 | 07ccc7c9772349a582e20f1e0ad5b054 | available | test1snap2 |4 K+ z& _9 w6 m) [1 G
+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+
! S" S- N) _# ^- O% X9 r8 V# O/ h* _) y) G) c- F! j
" [5 X" C4 o) L8 N% y' ?
mysql -ucinder -p cinder -h192.168.6.233- C9 N) u' a j
Enter password: # f3 v4 d) `$ @& L! A4 Z, |, @
Reading table information for completion of table and column names/ k' P1 m. q; e) j8 e; R* X0 R2 f% F
You can turn off this feature to get a quicker startup with -A% _9 z5 x. \/ h& I0 y7 k
3 m+ r6 S! P+ N4 y. e! B% z# {Welcome to the MariaDB monitor. Commands end with ; or \g.
. e e" j) ~8 e; S/ c- {/ ZYour MariaDB connection id is 157266
0 _2 q; @! X/ q" u3 D' OServer version: 10.1.20-MariaDB MariaDB Server
# ^, F1 a0 C& R# K/ O
4 w6 p+ s4 U4 c2 i, P5 LCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
$ M- I) H$ u$ a a; ]
1 g, j, N% s8 [9 r& I2 e& C" yType 'help;' or '\h' for help. Type '\c' to clear the current input statement./ x4 m* @2 f" u: J, w
' U( z/ E* B/ r9 SMariaDB [cinder]> ' c3 [+ W& R2 x; {# p0 c0 w
MariaDB [cinder]> select id,volume_id,user_id,status,display_name from snapshots where id= '6fdd4a5d-fb65-46bf-80c1-2716c5b4834a';2 L# l Y) h: U# q+ n" [* z6 ~
+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+4 I1 v- x! F; L @( \7 m1 o
| id | volume_id | user_id | status | display_name |
% W6 a) k. `' G7 d+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+
, u4 h& X p& v4 k. ?/ s| 6fdd4a5d-fb65-46bf-80c1-2716c5b4834a | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | 07ccc7c9772349a582e20f1e0ad5b054 | available | test2snap12 |6 ^2 ~3 q6 I5 n: y
+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+* s9 l+ B5 y2 A3 g% B
1 row in set (0.00 sec)
. I( o- y u8 X: x# p3 V; A! _+ y, I# w4 Q( v2 S
MariaDB [cinder]> select * from volume_glance_metadata where volume_id = '8ac8ded1-2ade-46de-8c2f-75ec9bf194af';
, { u5 Q- M7 ~% a' x1 m! d9 w+---------------------+------------+------------+---------+----+--------------------------------------+-------------+------------------+--------------------------------------+
: o7 \& F I/ f2 U* L| created_at | updated_at | deleted_at | deleted | id | volume_id | snapshot_id | key | value |" N5 H' f* { R' K# I0 i
+---------------------+------------+------------+---------+----+--------------------------------------+-------------+------------------+--------------------------------------+$ ?! k) [# e7 n6 ]
| 2021-05-18 07:08:10 | NULL | NULL | 0 | 51 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | container_format | bare |! b, Q+ F) y- b& D0 @/ ~
| 2021-05-18 07:08:10 | NULL | NULL | 0 | 54 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | min_ram | 0 |
) s! M# D# {( z0 R. j% _6 R7 c& e| 2021-05-18 07:08:10 | NULL | NULL | 0 | 57 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | disk_format | raw |
! F7 E" {- M f1 e| 2021-05-18 07:08:10 | NULL | NULL | 0 | 60 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | image_name | cirros-0.4 |
# e3 d" K) ?- Z8 V3 _. [. f3 b& y! G* _| 2021-05-18 07:08:10 | NULL | NULL | 0 | 63 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | image_id | 5062aa42-bb5e-4793-964f-b6dcc61d5fc6 |) c; u: N' T4 q2 c* R
| 2021-05-18 07:08:10 | NULL | NULL | 0 | 66 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | checksum | 443b7623e27ecf03dc9e01ee93f67afe |
; O E* g3 u# g' o0 R9 Q| 2021-05-18 07:08:10 | NULL | NULL | 0 | 69 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | min_disk | 0 |+ X+ O/ i9 {. n: f! ?* x0 E z
| 2021-05-18 07:08:10 | NULL | NULL | 0 | 72 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | size | 12716032 |7 W! {2 E# c/ r$ @
+---------------------+------------+------------+---------+----+--------------------------------------+-------------+------------------+--------------------------------------+7 w+ J0 H) g3 G: V
j' K8 l7 c0 W1 c* n/ r
8 rows in set (0.00 sec); n6 o6 G% o9 Q% {; a* X
" q$ D2 r# i* J) v2 p- M m3 D7 c3 q9 v
! \. e' o) p" ^' lMariaDB [cinder]> delete from volume_glance_metadata where id='51';8 n0 \& H6 X, ]# X$ n- C; {
Query OK, 1 row affected (0.00 sec)6 R+ V, W d* C4 g9 C
1 l9 u3 m! x( P; c8 a; {
MariaDB [cinder]> delete from volume_glance_metadata where id='54';
# d7 ], N; T0 S$ a# OQuery OK, 1 row affected (0.00 sec)' G% h5 F$ h$ C5 t) m8 v7 F! Y
5 F' g6 t3 @1 Q4 n5 R+ S% E/ pMariaDB [cinder]> delete from volume_glance_metadata where id='57';
8 y9 ~; [3 ]* X2 K4 }2 c7 ~: g2 AQuery OK, 1 row affected (0.00 sec)1 n6 E7 Z4 F3 {2 x7 U
" e+ k+ o7 m' ~& F+ U* N3 G3 r: Z" R# R
MariaDB [cinder]> delete from volume_glance_metadata where id='60';
$ l2 N$ v% R9 h, B2 W5 z+ ZQuery OK, 1 row affected (0.00 sec)
) \0 u; o, h! W5 F4 @ B$ I5 W& u9 I4 v9 t2 f7 D: }
MariaDB [cinder]> delete from volume_glance_metadata where id='63';" W5 }7 P( N# m& K
Query OK, 1 row affected (0.00 sec)% j- R. K+ q2 O; N; s; z3 [% |) c
# L& h2 B! }5 TMariaDB [cinder]> delete from volume_glance_metadata where id='66';3 j& a/ ]. e- j! z
Query OK, 1 row affected (0.00 sec)
( Q, D$ Z2 U8 K( o. C4 @! m+ j }2 x @3 A7 E$ A
MariaDB [cinder]> delete from volume_glance_metadata where id='69';
% m4 v! F% a/ B3 H2 q7 ^6 p; l. WQuery OK, 1 row affected (0.01 sec)" p5 b, j! z; I( ]# R/ j
; n! o8 f' P% V6 F
MariaDB [cinder]> delete from volume_glance_metadata where id='72';
7 T7 j2 z0 Z/ f; \6 \! ~) AQuery OK, 1 row affected (0.01 sec)- F% I" g( {9 e, b* i, g# s* ]
4 g' Q' c, ^% K" v$ {6 D
4 Y0 i9 k K/ G' B( v- I# _! B
MariaDB [cinder]> delete from snapshots where id= '6fdd4a5d-fb65-46bf-80c1-2716c5b4834a';
7 E% C, X+ ~+ T8 ^ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`cinder`.`volume_glance_metadata`, CONSTRAINT `volume_glance_metadata_ibfk_2` FOREIGN KEY (`snapshot_id`) REFERENCES `snapshots` (`id`))
: u* p/ [; L6 @1 ?) y+ |MariaDB [cinder]> delete from snapshots where id= '6fdd4a5d-fb65-46bf-80c1-2716c5b4834a';
% J9 l0 v2 l" Z& S7 BERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`cinder`.`volume_glance_metadata`, CONSTRAINT `volume_glance_metadata_ibfk_2` FOREIGN KEY (`snapshot_id`) REFERENCES `snapshots` (`id`))
0 d! ^2 ?3 F% \$ b4 L/ u3 VMariaDB [cinder]> delete from snapshots where volume_id= '8ac8ded1-2ade-46de-8c2f-75ec9bf194af';& t, B3 l/ o i J7 V) W7 E. }
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`cinder`.`volume_glance_metadata`, CONSTRAINT `volume_glance_metadata_ibfk_2` FOREIGN KEY (`snapshot_id`) REFERENCES `snapshots` (`id`))+ U& ]2 {8 l" `5 V; h6 p: B4 x
MariaDB [cinder]> A \+ F5 r8 C# X$ W
# J7 m" C |% Q, {; F
- K" J0 M- a# a' N3 U4 ?8 Y% k9 N/ @; q5 b- O+ t' n! s
" Z: X( }$ w e/ |8 ~
|
|