- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
MariaDB [cinder]> select id,volume_id,user_id,status,display_name from snapshots where id= '71146765-659d-47c9-9682-5e077461f6ba';
. Y t4 U' \) S4 h% R4 X7 ]+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+' x# w0 c! Z' Y- b5 j" b1 e
| id | volume_id | user_id | status | display_name |9 L$ x# j7 m$ T/ i% M
+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+
6 t6 i% b* F# g) R| 71146765-659d-47c9-9682-5e077461f6ba | ff5717c6-301d-48a3-9833-9b1722557903 | 07ccc7c9772349a582e20f1e0ad5b054 | available | test1snap2 |
9 K$ L n0 w1 t7 c% I, p+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+
# x( ~* ^' ^" W9 G' ^
$ {9 d& f4 ?. v; ^9 U, j, K; N* B4 i0 Y* }. `2 i# w
mysql -ucinder -p cinder -h192.168.6.2330 P8 z; o6 y Q0 p* s0 ~8 x
Enter password:
9 O4 H7 K3 b1 ^) DReading table information for completion of table and column names6 J$ x2 {: ?2 l& q0 c7 D1 J! W: Q; O
You can turn off this feature to get a quicker startup with -A* `3 E6 G8 a& j6 j
U c8 d' x/ r9 H% l
Welcome to the MariaDB monitor. Commands end with ; or \g./ [- @4 c0 C* T
Your MariaDB connection id is 157266
( S+ H8 ^$ ]0 @+ H4 v4 YServer version: 10.1.20-MariaDB MariaDB Server
& ^/ G3 o; o; ~$ c1 Z& \5 V- x- E! \. O) m' z+ ?" t* K- P# W
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. t2 q4 Q! L2 y% T
, x' r, E; q3 i6 K. y' I: YType 'help;' or '\h' for help. Type '\c' to clear the current input statement.0 ?9 d% i7 R0 e& Z5 l3 F% R# c
# } p# ~6 S4 M) c7 D
MariaDB [cinder]> - B4 f5 T8 v: v$ t0 t& J4 X
MariaDB [cinder]> select id,volume_id,user_id,status,display_name from snapshots where id= '6fdd4a5d-fb65-46bf-80c1-2716c5b4834a';
. o! p) y6 B' S( M, \+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+4 V: J% D( g2 O, y. n1 f i
| id | volume_id | user_id | status | display_name |
1 y2 [4 C) ?9 i) S: z3 l) |. A+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+- M/ s0 t, m+ x' V2 w
| 6fdd4a5d-fb65-46bf-80c1-2716c5b4834a | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | 07ccc7c9772349a582e20f1e0ad5b054 | available | test2snap12 |
! f! K- M% \/ ^( g+--------------------------------------+--------------------------------------+----------------------------------+-----------+--------------+
9 H: x6 l Q1 {. V( u1 row in set (0.00 sec)
. U5 Q9 I) \8 p7 @, c; W9 P. E, P2 ~% R) [
MariaDB [cinder]> select * from volume_glance_metadata where volume_id = '8ac8ded1-2ade-46de-8c2f-75ec9bf194af';& A" w0 z' v' {9 s' r
+---------------------+------------+------------+---------+----+--------------------------------------+-------------+------------------+--------------------------------------+1 R0 ]+ ?1 x) [# A4 Y% P
| created_at | updated_at | deleted_at | deleted | id | volume_id | snapshot_id | key | value |3 |. A- E- P2 i5 L
+---------------------+------------+------------+---------+----+--------------------------------------+-------------+------------------+--------------------------------------+
) ]9 O4 } Z! j, ~- G| 2021-05-18 07:08:10 | NULL | NULL | 0 | 51 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | container_format | bare |+ {3 u7 p1 S' Y: f
| 2021-05-18 07:08:10 | NULL | NULL | 0 | 54 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | min_ram | 0 |
) L* c7 o3 Z6 c9 R6 G| 2021-05-18 07:08:10 | NULL | NULL | 0 | 57 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | disk_format | raw |& ?. u& |9 l. F9 m( M$ A) O
| 2021-05-18 07:08:10 | NULL | NULL | 0 | 60 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | image_name | cirros-0.4 |
4 t. _/ n+ X- C B| 2021-05-18 07:08:10 | NULL | NULL | 0 | 63 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | image_id | 5062aa42-bb5e-4793-964f-b6dcc61d5fc6 |
: t$ }. r& O* T, E/ z! Q| 2021-05-18 07:08:10 | NULL | NULL | 0 | 66 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | checksum | 443b7623e27ecf03dc9e01ee93f67afe |# `/ o3 ?5 ^! j
| 2021-05-18 07:08:10 | NULL | NULL | 0 | 69 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | min_disk | 0 |
' j* ]0 c& q7 [, F4 [/ N| 2021-05-18 07:08:10 | NULL | NULL | 0 | 72 | 8ac8ded1-2ade-46de-8c2f-75ec9bf194af | NULL | size | 12716032 |, u% |3 N9 t4 @# w- m
+---------------------+------------+------------+---------+----+--------------------------------------+-------------+------------------+--------------------------------------+
- }& B: [, |5 j4 U6 u; e; O
0 [: t( D: v9 V+ q+ c' @0 u8 rows in set (0.00 sec)2 R* q5 \1 p6 H/ o" q
. `- \% v! _* f x
G( M6 d- @" N* n; d, k/ x" J7 C' YMariaDB [cinder]> delete from volume_glance_metadata where id='51';
1 E! ?0 N9 e3 w; i6 ?Query OK, 1 row affected (0.00 sec)' d0 `$ T4 Y1 U9 D7 z
5 H/ T5 S- L2 z
MariaDB [cinder]> delete from volume_glance_metadata where id='54';
. s, y* k; x5 D( H7 N [, HQuery OK, 1 row affected (0.00 sec), P# @( P3 a- `, N A" M; ?7 G! n R9 Q
( t5 d6 R1 {! w. q$ ^MariaDB [cinder]> delete from volume_glance_metadata where id='57';# d/ ^: S) T1 j( Y
Query OK, 1 row affected (0.00 sec) `) E$ R6 [' H& ?/ r
; b5 S% ~+ C& V7 h( r0 l1 Z6 xMariaDB [cinder]> delete from volume_glance_metadata where id='60';
+ ?7 t/ H9 Z4 L7 }Query OK, 1 row affected (0.00 sec)9 T! ~) s" t: V* v# B
6 K8 @1 U% j# U) d9 R1 J' D: m+ V! K
MariaDB [cinder]> delete from volume_glance_metadata where id='63';7 N5 z- I ]: {. f# ^5 F
Query OK, 1 row affected (0.00 sec)1 _; L% I: T# b" D/ P/ a4 G4 x, U
0 z# H1 H& z6 h% ^* O+ m, z* N
MariaDB [cinder]> delete from volume_glance_metadata where id='66';
3 G% f' E6 K8 e ?9 Z& RQuery OK, 1 row affected (0.00 sec)
: u4 I, ^/ B) _8 Y, h' H6 A) i. f. O
6 a" C4 b6 d4 z% C! \ MMariaDB [cinder]> delete from volume_glance_metadata where id='69';
- T* E% G, o2 I r: w0 q5 ~! [Query OK, 1 row affected (0.01 sec)2 A8 P4 f; e6 l: V, g4 ?) S
7 |% W3 W1 O/ t6 T* W3 l# y' c: h4 c
MariaDB [cinder]> delete from volume_glance_metadata where id='72';0 |' X+ [, F! q& y' B* ~
Query OK, 1 row affected (0.01 sec)
4 b3 ~2 f1 f) o$ C8 u
5 C0 O, j+ N& `* {
4 b5 K& Z: p$ |4 ]MariaDB [cinder]> delete from snapshots where id= '6fdd4a5d-fb65-46bf-80c1-2716c5b4834a';
- U' K* y8 }& u5 r( v8 IERROR 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`))! _; S% M( {7 k
MariaDB [cinder]> delete from snapshots where id= '6fdd4a5d-fb65-46bf-80c1-2716c5b4834a';+ M1 y4 X' {. V5 c
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`))7 V; W2 x- W2 a+ B7 o
MariaDB [cinder]> delete from snapshots where volume_id= '8ac8ded1-2ade-46de-8c2f-75ec9bf194af';+ D3 {+ l* s" f) V, j
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`)), {2 I2 @$ @/ b4 ?
MariaDB [cinder]> ' q$ V1 ?! s2 [; ~2 Q: ^
; d+ p, _: J9 z$ e3 C
; [8 x5 t( N7 q/ j; V8 d0 ~4 s9 E+ k
1 V7 P0 E j _$ D+ y( ]. x7 \* j9 z+ v# u% B4 g! G& s& u! K
|
|