易陆发现互联网技术论坛

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

openstack 查看、删除,show虚机相关命令处理过程

[复制链接]
发表于 2021-9-7 11:29:33 | 显示全部楼层 |阅读模式

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

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

x
[root@controller1 ~]# openstack compute service list
  D4 e9 w6 L) I9 v6 u4 z+----+------------------+-------------+----------+---------+-------+----------------------------+
: ~/ O& T6 S: I+ q| ID | Binary           | Host        | Zone     | Status  | State | Updated At                 |4 V' X! T, N$ U/ P5 N" O0 F, L
+----+------------------+-------------+----------+---------+-------+----------------------------+  B/ C2 R3 u# Q) W8 p; H
| 19 | nova-scheduler   | controller2 | internal | enabled | down  | 2021-09-07T02:31:45.000000 |+ ~" @" J& ^* |" n  }' Y: ~
| 22 | nova-scheduler   | controller3 | internal | enabled | down  | 2021-09-07T02:31:52.000000 |: X+ g# r9 F9 @/ Q- E' n
| 23 | nova-scheduler   | controller1 | internal | enabled | down  | 2021-09-07T02:31:49.000000 |
% n2 c  t$ K' p# e9 X| 24 | nova-conductor   | controller3 | internal | enabled | up    | 2021-09-07T02:54:26.000000 |8 e0 k1 K' f0 k2 S8 X9 |
| 28 | nova-conductor   | controller1 | internal | enabled | up    | 2021-09-07T02:54:25.000000 |- E+ w" n5 E% }/ Z
| 33 | nova-conductor   | controller2 | internal | enabled | up    | 2021-09-07T02:54:25.000000 |. V, t% X9 ~; r
| 34 | nova-consoleauth | controller2 | internal | enabled | down  | 2021-09-07T02:31:40.000000 |' g4 ~$ G3 ]9 [
| 36 | nova-consoleauth | controller1 | internal | enabled | up    | 2021-09-07T02:54:25.000000 |8 }7 P( I3 F, j
| 38 | nova-consoleauth | controller3 | internal | enabled | down  | 2021-09-07T02:31:42.000000 |! E( B. w0 Q" [/ [$ m
| 42 | nova-compute     | compute02   | nova     | enabled | up    | 2021-09-07T02:54:21.000000 |/ L1 X8 Q. Q! @6 V" `5 U
| 43 | nova-compute     | compute03   | nova     | enabled | up    | 2021-09-07T02:54:17.000000 |; g" D7 i' L" C2 g4 o! H
| 45 | nova-compute     | compute01   | nova     | enabled | up    | 2021-09-07T02:54:22.000000 |
3 ~1 z2 q: M2 j+ e9 Z: d8 ^+----+------------------+-------------+----------+---------+-------+----------------------------+' O) T2 ~& ]2 f/ s
  y, [: w5 f- g8 g( P# s
删除虚机命令:
0 g/ Z; I- j- R, a/ u[root@controller1 ~]# openstack server delete 69088d55-eb76-4674-98fe-7909ba547674
# n$ m- e' V1 \- _9 Y7 A3 cNo server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.* d; T* A- K3 S( K/ S$ L: L
无法删除,头疼:
& H" n3 U( e3 x4 f8 z; Q[root@controller1 ~]# openstack server list ( t5 s0 Q$ H7 L7 j9 e
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
: y; b" }% i- H! n: t# f7 L+ y6 [9 Q% H| ID                                   | Name     | Status | Networks                                                          | Image             | Flavor         |
$ Z  b8 @" m, P; f1 y# |/ \3 d4 O+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+: f7 |: f. b) z. a# `3 m
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201                                              | Centos7.9-x86_x64 | type-1c-1g-10g |% f. p5 ]' o; F( R& \# [1 \  f
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223                                              | Centos7.9-x86_x64 | type-1c-1g-10g |, s1 {5 F, w7 M) ]
| 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | test1    | ACTIVE | bridge=192.168.0.206, 192.168.0.233; zhangyj_network=192.168.1.20 |                   | type-1c-1g-10g |4 w% o# ]* B. f7 J9 I: w
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                                                                   |                   | type-1c-1g-10g |+ n1 v5 f1 d/ l& M! g+ w) P
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+& k: H1 Y& |1 c, p
- F2 m- J! a! r2 o* K
) c3 t! s  A+ y# n8 _
[root@controller1 ~]# openstack server delete 69088d55-eb76-4674-98fe-7909ba547674
6 m2 {- n$ z- g# T; i2 tNo server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.
2 @. V" j) @/ y& R[root@controller1 ~]#
# S7 a/ S! R+ f: v) V0 l( S) t" f还是删不掉:) }: O! j5 ^8 \7 Y' y
[root@controller1 ~]# openstack server list & Q" I- A2 \. |& M7 ~5 Z3 \
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
" G6 v4 {3 q$ O% y1 s* a) m| ID                                   | Name     | Status | Networks                                                          | Image             | Flavor         |
- z: p0 H0 ^: V& h+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+; T; M0 d% D5 l! X, D. C
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201                                              | Centos7.9-x86_x64 | type-1c-1g-10g |& `6 O, D6 U6 Z- w' H3 p: ]
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223                                              | Centos7.9-x86_x64 | type-1c-1g-10g |8 W- C# H" h) F8 p; f
| 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | test1    | ACTIVE | bridge=192.168.0.206, 192.168.0.233; zhangyj_network=192.168.1.20 |                   | type-1c-1g-10g |$ q7 u3 `) t$ I
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                                                                   |                   | type-1c-1g-10g |
3 l  o8 `7 k# Q0 l0 {  ?+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
2 s: b4 O) h) O% ^: m: S[root@controller1 ~]# openstack server list # t9 C6 }+ u3 M% |  a8 L9 n* R
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+) I. u/ i0 ^2 W$ U
| ID                                   | Name     | Status | Networks                                                          | Image             | Flavor         |# u. Q8 D5 O* ?& |5 f
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
* S' E  H5 f8 [) ^3 }* F4 y% C3 W: ]$ @| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201                                              | Centos7.9-x86_x64 | type-1c-1g-10g |
4 g; n8 [& {& c| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223                                              | Centos7.9-x86_x64 | type-1c-1g-10g |
6 V9 R( ^* D9 _; k$ T5 t9 m+ ~- G| 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | test1    | ACTIVE | bridge=192.168.0.206, 192.168.0.233; zhangyj_network=192.168.1.20 |                   | type-1c-1g-10g |
9 V8 U5 Z$ |/ _$ o3 Y. U| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                                                                   |                   | type-1c-1g-10g |/ Y2 S) M( z; C; D9 L
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
$ l' @/ w/ D5 g% h) f9 k* {
  v9 H# K3 P" m7 @1 \[root@controller1 ~]# openstack server " X8 k" J, V7 A. j
add             dump            list            reboot          resize          resume          ssh             unlock          unshelve        
! ?( k) x/ _( x; p. ?3 w$ X9 \backup          event           lock            rebuild         resize_confirm  set             start           unpause         ' F. @  e/ Y) g9 @' ?& A0 H
create          group           migrate         remove          resize_revert   shelve          stop            unrescue        # H) f' L9 e4 L0 ~. x6 X7 {+ D1 ?
delete          image           pause           rescue          restore         show            suspend         unset           ( ~) S! }% Q* H  \& o; i
[root@controller1 ~]# openstack server % H) }6 ]) u) l  H! v4 a
add             dump            list            reboot          resize          resume          ssh             unlock          unshelve        
- i2 f1 u( Y, o% U# ]backup          event           lock            rebuild         resize_confirm  set             start           unpause         
, }+ O$ e/ l; V. U; W/ z. H% o0 lcreate          group           migrate         remove          resize_revert   shelve          stop            unrescue        0 ?$ }. J; j  K+ I4 n8 Q( t, I$ j! l
delete          image           pause           rescue          restore         show            suspend         unset           
- C6 P. G, h3 d* S% b/ Q" u" `9 A) G; a5 n
也无法show:
, K$ j0 T8 V% o/ B# M& }[root@controller1 ~]# openstack server show 69088d55-eb76-4674-98fe-7909ba547674* ]& V0 C' J" m; I$ Y
No server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.
9 C4 {" L7 D& z4 h[root@controller1 ~]# openstack server list
1 j- d+ C2 a: P' W4 C6 g  t& H+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+# w. H- p& x( [8 p% N8 ~
| ID                                   | Name     | Status | Networks                                                          | Image             | Flavor         |' u1 M0 o9 i" W: A6 C5 ?( e1 J
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
5 v) H! d3 C" x8 h, ^9 f2 \| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201                                              | Centos7.9-x86_x64 | type-1c-1g-10g |% x1 h  l" M2 d' z( p
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223                                              | Centos7.9-x86_x64 | type-1c-1g-10g |3 D- `# F  b* K$ f3 `
| 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | test1    | ACTIVE | bridge=192.168.0.206, 192.168.0.233; zhangyj_network=192.168.1.20 |                   | type-1c-1g-10g |. c7 r  s4 H2 i9 Y
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                                                                   |                   | type-1c-1g-10g |' H+ a( }8 ?/ h$ }) H
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+! x/ ]7 C9 v% `/ r/ q

1 S! u0 E1 I; z0 O, c上面的有问题,只能去数据库查看了:+ ~" R, Y3 S/ A2 h, E
6 [  @) I( r$ c) \+ Y( r5 v  \3 ^

- X1 _/ U, K: n6 ]0 ~: V[root@controller1 ~]# openstack server list 4 E! B8 F+ ]' F, R
+--------------------------------------+----------+--------+----------------------+-------------------+----------------+. ?6 _- i" s8 ]- [1 C9 u( `
| ID                                   | Name     | Status | Networks             | Image             | Flavor         |
9 [. M6 H  }; |2 r# f8 I/ e+ U+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
" v: i7 Q# J1 P9 K1 s| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |% W, C. L$ y% m' r$ @/ }# Z3 X
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |6 o7 y! [4 n$ n# i0 T0 `
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                      |                   | type-1c-1g-10g |
4 f, g/ Z: }# E8 F% |+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
1 G# W1 `1 a$ o' T  p$ M[root@controller1 ~]# openstack server delete test1
: \! K3 E' [2 \  r0 @$ X5 cNo server with a name or ID of 'test1' exists.. S: }1 k2 n9 P3 p' y6 r+ _/ h
[root@controller1 ~]#
; B+ L- R# j2 O/ c$ v% j
% w: @" U. \( T0 I+ G[root@controller1 ~]# openstack server list 7 K+ |! ^$ @! I4 z; g2 ^) j) \
+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
6 [9 o$ |. J, P5 Q! O| ID                                   | Name     | Status | Networks             | Image             | Flavor         |0 P5 V8 y) @8 C
+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
! I) D) u* Y! G  Z* M| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |
- D5 ^3 S( @, T& U0 y* w% ~| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |% R7 O4 U% `( M5 @3 p6 ^, {) I
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                      |                   | type-1c-1g-10g |
9 x5 p  h! H3 j! {: r6 Z+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
( m) n: M' b$ ?; P* `; D1 B- j[root@controller1 ~]# mysql -u root -pdxFxylGX6K65rDh8hu2TWhWTKcIkZVZM6fEvmuW7 -h 192.168.6.233
) Z) Y& y6 Y( R) A9 e- A7 s) vWelcome to the MariaDB monitor.  Commands end with ; or \g.- @  V! {# N" O, k2 i1 C3 D
Your MariaDB connection id is 1669555
' B1 _4 C; ?! s4 z( I& w) vServer version: 10.1.20-MariaDB MariaDB Server( O; }* I2 l1 z/ _/ C
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.$ E7 L2 e* G3 Z  ^; S- ]# B4 }
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
* L! ~/ O% {6 \1 P7 tMariaDB [(none)]> use nova+ }# G# n6 d# M: t6 h: m
Reading table information for completion of table and column names) o- F. T7 u& j0 A
You can turn off this feature to get a quicker startup with -A8 p& C4 O; b$ }) S. `/ g4 o
Database changed
- y# F" s, R1 e0 @2 oMariaDB [nova]> select * from in
- i5 i: W* u* C% JDisplay all 219 possibilities? (y or n)
0 \1 B# g8 c' q$ }8 u/ fin_use                                      instance_groups.created_at                  instance_types.root_gb
0 ]- D8 a4 ]% q; t! |7 Winformation_schema                          instance_groups.deleted                     instance_types.rxtx_factor
, m, D* Q# u( l2 ~" \4 {injected                                    instance_groups.deleted_at                  instance_types.swap" C& @- J+ _( i& A. J" M* i( b
instance_actions                            instance_groups.id                          instance_types.updated_at7 N/ f" s! r! q- k  u
instance_actions.action                     instance_groups.name                        instance_types.vcpu_weight
+ V* T1 F( H. S5 Y9 Dinstance_actions.created_at                 instance_groups.project_id                  instance_types.vcpus
6 C2 T2 N- V. L1 }instance_actions.deleted                    instance_groups.updated_at                  instance_uuid
) z3 p* M7 k' q6 Y8 p2 _2 c# hinstance_actions.deleted_at                 instance_groups.user_id                     instances
" S5 y( `# h. c5 l' ninstance_actions.finish_time                instance_groups.uuid                        instances.access_ip_v4# j& C8 W9 i4 Q
instance_actions.id                         instance_id                                 instances.access_ip_v6+ x% V7 B/ H9 v3 K& i
instance_actions.instance_uuid              instance_id_mappings                        instances.architecture5 ]( S! v8 K, p7 D$ G
instance_actions.message                    instance_id_mappings.created_at             instances.auto_disk_config
4 _( _$ ?, d3 z) i; l; Einstance_actions.project_id                 instance_id_mappings.deleted                instances.availability_zone: G: N1 L! o: k, G* \
instance_actions.request_id                 instance_id_mappings.deleted_at             instances.cell_name
- t2 `( c9 [- h* @: @0 I4 Hinstance_actions.start_time                 instance_id_mappings.id                     instances.cleaned4 ]7 u2 T& \, }
instance_actions.updated_at                 instance_id_mappings.updated_at             instances.config_drive
) F8 c  e; g9 h0 cinstance_actions.user_id                    instance_id_mappings.uuid                   instances.created_at
" {: |: i9 H0 @# L4 j$ u. |instance_actions_events                     instance_info_caches                        instances.default_ephemeral_device( K; h2 ~, v$ I% t9 K5 z
instance_actions_events.action_id           instance_info_caches.created_at             instances.default_swap_device
1 B7 o, b1 J$ uinstance_actions_events.created_at          instance_info_caches.deleted                instances.deleted9 K6 k* P2 P! W% E: d1 _
instance_actions_events.deleted             instance_info_caches.deleted_at             instances.deleted_at9 i0 K% ~! d1 U. V% G* ]
instance_actions_events.deleted_at          instance_info_caches.id                     instances.disable_terminate% ^/ u& l( ]1 x  v% Z* _; a
instance_actions_events.details             instance_info_caches.instance_uuid          instances.display_description
8 P- z7 [6 M- B$ h& Linstance_actions_events.event               instance_info_caches.network_info           instances.display_name
% Z9 G, E4 e. F* I! ?instance_actions_events.finish_time         instance_info_caches.updated_at             instances.ephemeral_gb
$ Z& ^8 y) @6 Dinstance_actions_events.host                instance_metadata                           instances.ephemeral_key_uuid9 _& j3 F; R4 w( Z" `" \
instance_actions_events.id                  instance_metadata.created_at                instances.host4 S* v' y5 s( H9 j1 I9 V4 R
instance_actions_events.result              instance_metadata.deleted                   instances.hostname; i4 V% S# {$ A. \4 F) \. Q2 r2 w
instance_actions_events.start_time          instance_metadata.deleted_at                instances.id
& D! `( W: `0 sinstance_actions_events.traceback           instance_metadata.id                        instances.image_ref
/ f* t+ h2 D* r, Iinstance_actions_events.updated_at          instance_metadata.instance_uuid             instances.instance_type_id' q$ e& |) a: I# ]8 Q
MariaDB [nova]> select * from instance' }4 I5 b3 c: H' y/ \1 h7 s
Display all 203 possibilities? (y or n)
0 X. g$ d! {; b  tMariaDB [nova]> select * from instance;
# p* B- |9 Y* U. EERROR 1146 (42S02): Table 'nova.instance' doesn't exist; p( i3 F0 E4 p! `" m9 h- J1 n
MariaDB [nova]> select * from instance;
/ h1 J/ b. l. Z7 LERROR 1146 (42S02): Table 'nova.instance' doesn't exist) w; k* @  @# T2 c5 W
MariaDB [nova]> select * from instance;) m0 n. O  [+ m$ V& _
Display all 203 possibilities? (y or n)! [% W5 l; V1 l1 }- I* O
instance_actions                            instance_group_policy.updated_at            instance_types.disabled( ^8 Y5 M/ V# o' S  H
instance_actions.action                     instance_groups                             instance_types.ephemeral_gb! p- [$ A; I) F" _  _8 s4 |
instance_actions.created_at                 instance_groups.created_at                  instance_types.flavorid
+ M' U* V# Q$ H8 D  v$ ^instance_actions.deleted                    instance_groups.deleted                     instance_types.id
- t3 l6 k# Q: Binstance_actions.deleted_at                 instance_groups.deleted_at                  instance_types.is_public. r$ T; ?) c4 K6 e9 H
instance_actions.finish_time                instance_groups.id                          instance_types.memory_mb; W$ l- k. [/ K
instance_actions.id                         instance_groups.name                        instance_types.name2 [8 H& l6 Y6 z$ X/ c2 q6 b% |% U: k6 ]% V
instance_actions.instance_uuid              instance_groups.project_id                  instance_types.root_gb* X* R! W/ M7 @
instance_actions.message                    instance_groups.updated_at                  instance_types.rxtx_factor
4 z% |. W0 A5 ?  n  C2 |' g# f+ c' x7 |instance_actions.project_id                 instance_groups.user_id                     instance_types.swap$ X& y8 U& V3 Y/ |
instance_actions.request_id                 instance_groups.uuid                        instance_types.updated_at
9 I% `. u1 Z& ^! p& `instance_actions.start_time                 instance_id                                 instance_types.vcpu_weight9 s+ q: M" z0 |7 m6 j" z: [
instance_actions.updated_at                 instance_id_mappings                        instance_types.vcpus( T! Q& U1 z: q( ~- X& d* }( _  w
instance_actions.user_id                    instance_id_mappings.created_at             instance_uuid' q/ |9 H! b9 A; J" ~) A6 {
instance_actions_events                     instance_id_mappings.deleted                instances
. u; m- C  Z/ [. i- }: Yinstance_actions_events.action_id           instance_id_mappings.deleted_at             instances.access_ip_v44 ^0 C) w# s. k& @! o
instance_actions_events.created_at          instance_id_mappings.id                     instances.access_ip_v6
) r/ O: d  c: `0 A# pinstance_actions_events.deleted             instance_id_mappings.updated_at             instances.architecture
" \; }+ o+ e( g5 Linstance_actions_events.deleted_at          instance_id_mappings.uuid                   instances.auto_disk_config
+ L8 V5 h* I; O' v- _instance_actions_events.details             instance_info_caches                        instances.availability_zone
% Y& R1 H1 {, L5 L- A+ l2 winstance_actions_events.event               instance_info_caches.created_at             instances.cell_name$ O* {/ x% {# \) Y2 N4 ~9 e
instance_actions_events.finish_time         instance_info_caches.deleted                instances.cleaned2 r; ?0 Y( z8 K" O9 t3 ]9 `
instance_actions_events.host                instance_info_caches.deleted_at             instances.config_drive
( Y8 r, Q- b6 U. }instance_actions_events.id                  instance_info_caches.id                     instances.created_at
/ r. t& t4 q+ G8 `instance_actions_events.result              instance_info_caches.instance_uuid          instances.default_ephemeral_device
( S3 ?+ _3 z7 N6 Ainstance_actions_events.start_time          instance_info_caches.network_info           instances.default_swap_device0 I9 Q! m5 F. Q% a
instance_actions_events.traceback           instance_info_caches.updated_at             instances.deleted2 x0 C$ O2 D6 E3 j. S7 k7 E# x
instance_actions_events.updated_at          instance_metadata                           instances.deleted_at
- N8 O6 O; x4 J. A1 minstance_extra                              instance_metadata.created_at                instances.disable_terminate( d( \6 T$ |5 I' k  E& m" Y
instance_extra.created_at                   instance_metadata.deleted                   instances.display_description
0 E- c: Q) z$ ]# k* `; U/ x) dinstance_extra.deleted                      instance_metadata.deleted_at                instances.display_name. ]/ A* o% Q) Y0 U7 T" ~
MariaDB [nova]> select * from instances;
9 a  n& {+ ?& \8 Y/ E+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+5 F& R, w- |: t5 z8 |' v6 O+ \2 z5 o
| created_at          | updated_at          | deleted_at          | id | internal_id | user_id                          | project_id                       | image_ref                            | kernel_id | ramdisk_id | launch_index | key_name | key_data | power_state | vm_state | memory_mb | vcpus | hostname    | host      | user_data | reservation_id | launched_at         | terminated_at       | display_name | display_description | availability_zone | locked | os_type | launched_on | instance_type_id | vm_mode | uuid                                 | architecture | root_device_name | access_ip_v4 | access_ip_v6 | config_drive | task_state | default_ephemeral_device | default_swap_device | progress | auto_disk_config | shutdown_terminate | disable_terminate | root_gb | ephemeral_gb | cell_name | node      | deleted | locked_by | cleaned | ephemeral_key_uuid |
3 H3 O! l* s9 ]$ G7 h8 C+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
) o4 N5 x$ B1 a| 2021-08-25 07:37:43 | 2021-09-07 03:02:01 | 2021-09-07 03:02:01 |  2 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 |                                      |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | test1       | compute02 | NULL      | r-uqofhf0v     | 2021-08-31 03:10:00 | 2021-09-07 03:02:01 | test1        | NULL                | nova              |      0 | NULL    | compute02   |                3 | NULL    | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                1 |                  0 |                 0 |      10 |            0 | NULL      | compute02 |       2 | NULL      |       1 | NULL               |: W, q# P/ x( Q
| 2021-08-25 08:02:10 | 2021-08-25 08:11:58 | 2021-08-25 08:11:58 |  4 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | zhangyj     | compute03 | NULL      | r-9nkzr3zg     | 2021-08-25 08:02:43 | 2021-08-25 08:11:57 | zhangyj      | zhangyj             | nova              |      0 | NULL    | compute03   |                3 | NULL    | 7c6e79e3-2d94-40ba-b45f-087d559f12ee | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute03 |       4 | NULL      |       1 | NULL               |
' M) i' }  d' [# a| 2021-08-25 08:10:10 | 2021-08-25 08:37:55 | 2021-08-25 08:37:56 |  6 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 |                                      |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | test8subnet | compute01 | NULL      | r-xi06wdxe     | 2021-08-25 08:10:46 | 2021-08-25 08:37:55 | test8subnet  | NULL                | nova              |      0 | NULL    | compute01   |                3 | NULL    | bfabb27e-cf5a-4409-a464-5162dde24df1 | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                1 |                  0 |                 0 |      10 |            0 | NULL      | compute01 |       6 | NULL      |       1 | NULL               |8 o# I: Y6 C% @/ H, A
| 2021-08-25 08:15:40 | 2021-08-25 08:21:25 | 2021-08-25 08:21:25 |  7 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 |                                      |           |            |            0 | NULL     | NULL     |           0 | deleted  |      2048 |     1 | zhangyj1    | compute03 | NULL      | r-sp42737c     | 2021-08-25 08:16:11 | 2021-08-25 08:21:25 | zhangyj1     | NULL                | nova              |      0 | NULL    | compute03   |                6 | NULL    | 075e0dcb-8992-4a92-b1ad-ad09167e391d | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                1 |                  0 |                 0 |      20 |            0 | NULL      | compute03 |       7 | NULL      |       1 | NULL               |' T$ `, u% P" h* v
| 2021-08-25 08:22:04 | 2021-08-25 08:24:16 | 2021-08-25 08:24:16 |  9 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | zhangyj1    | compute03 | NULL      | r-e4g5sj3u     | 2021-08-25 08:22:29 | 2021-08-25 08:24:16 | zhangyj1     | zhangyj1            | nova              |      0 | NULL    | compute03   |                3 | NULL    | 1ecefb25-d285-4d1b-9257-2960a765605e | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute03 |       9 | NULL      |       1 | NULL               |' y' t5 q2 b* i) N
| 2021-08-25 08:25:33 | 2021-08-25 08:33:26 | 2021-08-25 08:33:26 | 10 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | zhangyj     | compute03 | NULL      | r-xnkibj5d     | 2021-08-25 08:25:56 | 2021-08-25 08:33:26 | zhangyj      | zhangyj             | nova              |      0 | NULL    | compute03   |                3 | NULL    | f3cfa018-51f3-4c00-a549-1cac5a4c4857 | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute03 |      10 | NULL      |       1 | NULL               |
* O1 |0 d3 f$ b2 C: D) b+ h| 2021-08-25 08:34:22 | 2021-08-25 09:09:13 | 2021-08-25 09:09:13 | 13 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | zhangyj     | compute03 | NULL      | r-103iot04     | 2021-08-25 08:59:43 | 2021-08-25 09:09:13 | zhangyj      | zhangyj             | nova              |      0 | NULL    | compute03   |                3 | NULL    | 6269828d-fb8b-474c-81e1-2c13652a5892 | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute03 |      13 | NULL      |       1 | NULL               |9 Y4 i9 r- G. N: ^
| 2021-08-25 09:12:15 | 2021-08-25 10:04:15 | 2021-08-25 10:04:15 | 15 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | zhangyj     | compute03 | NULL      | r-6wb8qpjq     | 2021-08-25 09:12:40 | 2021-08-25 10:04:14 | zhangyj      | zhangyj             | nova              |      0 | NULL    | compute03   |                3 | NULL    | e1df84c5-f049-49fc-b7ae-885660ff2238 | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute03 |      15 | NULL      |       1 | NULL               |0 |1 v  g8 _5 H- P
| 2021-08-26 01:27:07 | 2021-08-27 07:11:08 | 2021-08-27 07:11:08 | 21 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | zhangyj     | compute03 | NULL      | r-ygnc68le     | 2021-08-26 06:23:17 | 2021-08-27 07:11:08 | zhangyj      | zhangyj             | nova              |      0 | NULL    | compute03   |                3 | NULL    | f8f4dfe7-ada7-4b25-94f4-5c00e414b0c8 | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute03 |      21 | NULL      |       1 | NULL               |
1 A8 W$ X3 _. D, [| 2021-08-26 01:30:14 | 2021-08-27 07:10:50 | 2021-08-27 07:10:50 | 24 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | zhangyj1    | compute01 | NULL      | r-38rbbj0w     | 2021-08-27 06:44:13 | 2021-08-27 07:10:50 | zhangyj2     | zhangyj1            | nova              |      0 | NULL    | compute01   |                3 | NULL    | bd25efff-f97f-4576-a0ab-f4da6821cfce | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute01 |      24 | NULL      |       1 | NULL               |! d* z( K5 m: K; \+ |0 w; ^
| 2021-08-27 07:11:59 | 2021-09-03 01:13:48 | NULL                | 25 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           1 | active   |      1024 |     1 | zhangyj     | compute01 | NULL      | r-56pwl8q1     | 2021-08-27 07:12:25 | NULL                | zhangyj1     | zhangyj             | nova              |      0 | NULL    | compute01   |                3 | NULL    | 590e3822-085b-4273-bce1-bf0e7a09b9f7 | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute01 |       0 | NULL      |       0 | NULL               |. Q; C3 |3 P5 v8 Y/ c6 s
| 2021-08-30 08:55:34 | 2021-08-31 09:34:34 | NULL                | 27 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 | 96e683e6-18b5-4912-b9ad-2f3846bd931c |           |            |            0 | NULL     | NULL     |           1 | active   |      1024 |     1 | zhangyj     | compute01 | NULL      | r-3jdx8v5m     | 2021-08-31 09:34:33 | NULL                | zhangyj2     | zhangyj             | nova              |      0 | NULL    | compute03   |                3 | NULL    | 347d5d2e-1516-41ef-b247-a42bc72e093c | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                0 |                  0 |                 0 |      10 |            0 | NULL      | compute01 |       0 | NULL      |       0 | NULL               |
, A$ V# r$ W3 B' V- i+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+' N" ?' _2 x$ r# M  C
12 rows in set (0.01 sec)
9 _$ e6 T* @. l) Q' l: ~. YMariaDB [nova]> select * from instances where id="69088d55-eb76-4674-98fe-7909ba547674";
, p2 J) R- H# u2 L: d% Z" i* TEmpty set (0.00 sec)2 _( G' z9 u& ~: O" e- q# M$ `
MariaDB [nova]> select id,vmstate,hostname,instance_type_id,uuid from instances;9 r$ W) D# h8 p8 m. y1 t
ERROR 1054 (42S22): Unknown column 'vmstate' in 'field list'& x$ `. C6 U4 `2 k
MariaDB [nova]> select id,hostname,instance_type_id,uuid from instances;
; f/ o  `6 _  L/ B; V% Q4 b+----+-------------+------------------+--------------------------------------+  M" O# ]9 F. m8 E: b2 Q
| id | hostname    | instance_type_id | uuid                                 |& P, y5 q. M8 D- u: A! B
+----+-------------+------------------+--------------------------------------+
9 B. n) s9 s' ~: A3 K( X( D2 ~|  2 | test1       |                3 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 |
7 }' F) U% Y4 M/ p|  4 | zhangyj     |                3 | 7c6e79e3-2d94-40ba-b45f-087d559f12ee |
, f3 ~. Z( F8 S/ }: f|  6 | test8subnet |                3 | bfabb27e-cf5a-4409-a464-5162dde24df1 |9 f5 K, L+ t7 T9 b  r  x; Z
|  7 | zhangyj1    |                6 | 075e0dcb-8992-4a92-b1ad-ad09167e391d |) Z1 Q  L2 P, c, R
|  9 | zhangyj1    |                3 | 1ecefb25-d285-4d1b-9257-2960a765605e |, I( N9 i  `" {; D" p  t8 H
| 10 | zhangyj     |                3 | f3cfa018-51f3-4c00-a549-1cac5a4c4857 |. R; F( {% ]" f, N- [
| 13 | zhangyj     |                3 | 6269828d-fb8b-474c-81e1-2c13652a5892 |
0 `+ w( q7 J% H) e! W| 15 | zhangyj     |                3 | e1df84c5-f049-49fc-b7ae-885660ff2238 |# G, I4 |. h- O* G! n0 r# m( ]
| 21 | zhangyj     |                3 | f8f4dfe7-ada7-4b25-94f4-5c00e414b0c8 |
+ k" y3 c3 w7 t  G8 E' F. }| 24 | zhangyj1    |                3 | bd25efff-f97f-4576-a0ab-f4da6821cfce |& r4 E3 m' K- `! e1 j; s. z/ d( H
| 25 | zhangyj     |                3 | 590e3822-085b-4273-bce1-bf0e7a09b9f7 |$ }9 ]5 `8 i" ]( h5 a
| 27 | zhangyj     |                3 | 347d5d2e-1516-41ef-b247-a42bc72e093c |
+ R  K' Q* h4 H0 e6 m& [# G+----+-------------+------------------+--------------------------------------+4 ^+ J! n+ e8 z) v) M2 q0 k) p
12 rows in set (0.01 sec). Z: d  q5 S6 G5 S9 [7 `
MariaDB [nova]> select * from instances where uuid="69088d55-eb76-4674-98fe-7909ba547674";/ M8 T4 G' z2 r& c' x  Z& J  C  V/ N
Empty set (0.00 sec)
* T) K5 E9 n2 p1 [# G) MMariaDB [nova]> select id,hostname,instance_type_id,uuid,deleted from instances;# f- `3 ^2 c+ t
+----+-------------+------------------+--------------------------------------+---------+& `( v9 R" O$ ^+ O
| id | hostname    | instance_type_id | uuid                                 | deleted |0 u2 z8 f3 D3 w0 i
+----+-------------+------------------+--------------------------------------+---------+1 [2 }9 v0 K2 b1 c1 m+ a: T
|  2 | test1       |                3 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 |       2 |6 W1 W, g  r4 p" p
|  4 | zhangyj     |                3 | 7c6e79e3-2d94-40ba-b45f-087d559f12ee |       4 |8 ]! ~5 Y* S1 X# U3 S
|  6 | test8subnet |                3 | bfabb27e-cf5a-4409-a464-5162dde24df1 |       6 |
/ K8 }, r7 p( u+ L7 M; _& @|  7 | zhangyj1    |                6 | 075e0dcb-8992-4a92-b1ad-ad09167e391d |       7 |' v9 [" o0 M- y6 e1 r% n; v3 N
|  9 | zhangyj1    |                3 | 1ecefb25-d285-4d1b-9257-2960a765605e |       9 |
" e9 l% z% A# y' _  X| 10 | zhangyj     |                3 | f3cfa018-51f3-4c00-a549-1cac5a4c4857 |      10 |
2 I3 p2 R. d; {2 V1 Z7 M| 13 | zhangyj     |                3 | 6269828d-fb8b-474c-81e1-2c13652a5892 |      13 |& h, I2 V& A+ f( r9 r
| 15 | zhangyj     |                3 | e1df84c5-f049-49fc-b7ae-885660ff2238 |      15 |+ p" n2 k' y8 R+ S6 R( P$ W2 H
| 21 | zhangyj     |                3 | f8f4dfe7-ada7-4b25-94f4-5c00e414b0c8 |      21 |
6 J1 ]9 q6 F% O1 ~% _! S. J5 w| 24 | zhangyj1    |                3 | bd25efff-f97f-4576-a0ab-f4da6821cfce |      24 |
$ x* _, D1 c( x4 ^# s' d| 25 | zhangyj     |                3 | 590e3822-085b-4273-bce1-bf0e7a09b9f7 |       0 |$ ]. t3 {6 H. P& p
| 27 | zhangyj     |                3 | 347d5d2e-1516-41ef-b247-a42bc72e093c |       0 |
" ~) g) R) x$ j7 r$ k+----+-------------+------------------+--------------------------------------+---------+: y/ O, ^3 l4 z! r! e( o
12 rows in set (0.03 sec)) o1 A6 K# ~$ l( ]/ @3 j
MariaDB [nova]> select * from instances where  display_name='test1';
, N5 h+ J& ~5 j5 l+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+1 d* a9 I6 n" d9 Y+ W$ [
| created_at          | updated_at          | deleted_at          | id | internal_id | user_id                          | project_id                       | image_ref | kernel_id | ramdisk_id | launch_index | key_name | key_data | power_state | vm_state | memory_mb | vcpus | hostname | host      | user_data | reservation_id | launched_at         | terminated_at       | display_name | display_description | availability_zone | locked | os_type | launched_on | instance_type_id | vm_mode | uuid                                 | architecture | root_device_name | access_ip_v4 | access_ip_v6 | config_drive | task_state | default_ephemeral_device | default_swap_device | progress | auto_disk_config | shutdown_terminate | disable_terminate | root_gb | ephemeral_gb | cell_name | node      | deleted | locked_by | cleaned | ephemeral_key_uuid |
* |7 f6 O7 F" @! e+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
" f& H3 I+ x3 x  q  P2 h. w| 2021-08-25 07:37:43 | 2021-09-07 03:02:01 | 2021-09-07 03:02:01 |  2 |        NULL | b1ffbc1f84cf42c99a8e59fdaf7f1cf5 | 92a5a26fc14d418d881ade0ccbcffc59 |           |           |            |            0 | NULL     | NULL     |           0 | deleted  |      1024 |     1 | test1    | compute02 | NULL      | r-uqofhf0v     | 2021-08-31 03:10:00 | 2021-09-07 03:02:01 | test1        | NULL                | nova              |      0 | NULL    | compute02   |                3 | NULL    | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | NULL         | /dev/vda         | NULL         | NULL         |              | NULL       | NULL                     | NULL                |        0 |                1 |                  0 |                 0 |      10 |            0 | NULL      | compute02 |       2 | NULL      |       1 | NULL               |
9 `3 P# n3 r3 d! ~+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
$ y9 M6 h1 B3 H- d1 row in set (0.01 sec)- J4 n7 D& w: D
MariaDB [nova]> select id,uuid from instances where  display_name='test1';
8 [6 f7 D2 o$ f$ u9 `5 u7 s. u+----+--------------------------------------+5 G$ N3 V3 Z. e; ^
| id | uuid                                 |! {7 V* [* w" Z6 c
+----+--------------------------------------+
# f  q: u- R# s- x|  2 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 |; t& Q3 T, g4 p  T3 y1 H% I
+----+--------------------------------------+: G4 e1 e7 v/ y
1 row in set (0.01 sec)
4 o  f$ P3 d1 S# T4 KMariaDB [nova]> select id,uuid,display_name  from instances where  display_name='test1';
" V; ^1 B: U6 `. n& s: Q9 l; }- X+----+--------------------------------------+--------------+
& b  w: g# }1 o+ n% t. h* l| id | uuid                                 | display_name |
  H0 l) Y- R; h1 u( f+----+--------------------------------------+--------------+
! ?, J0 a# P, f& z/ ^|  2 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | test1        |
# q) c4 \7 b" W* z+----+--------------------------------------+--------------+
4 p( Y9 Y, R; A8 a2 q1 row in set (0.01 sec). R. `! d$ e; Q. o4 ^' c' u

# q+ U. V2 E8 Y: r5 ~数据库也无法查询到:; Y+ W. \% y9 w8 N  F
放弃吧,反正也不影响openstack平台使用:
( L" Z8 }( }% ?  r7 E3 l' V; d7 _
' l6 I" A  s' I# |2 P
另外解锁下我们界面上看到的被锁虚机:
( c/ a) G4 L/ ~  }9 h+ V[root@controller1 ~]# openstack server unlock  7b01d71a-40d4-45fa-bf5c-97e676b2b9a2
" y, T: N; C5 J, {) T2 R. [
+ |4 C/ I2 m( x) g$ M- N6 R今天的处理就这么多
* W, U6 @6 N* P% j8 f
 楼主| 发表于 2021-9-7 11:31:29 | 显示全部楼层
上面说可以通过更新数据库的方式来清理:9 y2 b* ]2 b2 F! C" N
vm其实已经删掉,通过virsh list命令可以看出。但是nova命令显示还有:nova show xx  ;8 y1 {1 G8 O1 e. o' Y
很明显是实际VM已经干掉,但是nova去数据库查还有记录
; F, ^+ p% `! V4 Y操作数据库:7 A# u8 l5 [  g' R- u7 w3 T

# L/ A4 }/ W1 H/ s# [root@controller1# mysql -uroot -p -D nova; C3 {- [7 v' F
Enter password:
3 x' \4 ]6 I8 k, Nmysql> use nova;( P7 t; Y$ l$ j' ~$ |$ `) h0 T$ s

2 j- B$ L; F- J% |; r$ P; d# q5 S$ K. amysql> update  instances set deleted=1 where display_name='test1';
0 _) J. M* Z2 M; Q; p* r- R3 R$ @7 wQuery OK, 1 row affected (0.03 sec)- B! x! G3 k9 X- k
Rows matched: 1  Changed: 1  Warnings: 0& i, i0 e* C! a8 F! Z5 _9 K
/ C  y: @' [& ~* I* E& z9 ^+ H
mysql> quit$ B6 ~' K6 e# ~! e- I' J# x8 ^: `5 V4 L
Bye
4 R, d* \9 F2 R' Z% l
% u% ]9 Z, V: t; W/ j4 _' A8 i& @
9 v6 O8 k$ a: P8 M( D7 R结果还是无法更新。8 j1 v0 W* z+ E# w1 S4 N1 i% \
% w1 N" w- C. Y5 g; ]7 ~& D% ^
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:24 , Processed in 0.063064 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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