找回密码
 注册
查看: 2072|回复: 1

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-9-7 11:29:33 | 显示全部楼层 |阅读模式
[root@controller1 ~]# openstack compute service list   `5 `# w. B% Z0 A3 P
+----+------------------+-------------+----------+---------+-------+----------------------------+* M6 \, Y/ }0 [" o. b
| ID | Binary           | Host        | Zone     | Status  | State | Updated At                 |
* J* N7 S4 S" [7 S2 x& j; `+----+------------------+-------------+----------+---------+-------+----------------------------+
7 }8 W" G2 K5 {| 19 | nova-scheduler   | controller2 | internal | enabled | down  | 2021-09-07T02:31:45.000000 |- @$ _$ r4 J2 D: K4 D
| 22 | nova-scheduler   | controller3 | internal | enabled | down  | 2021-09-07T02:31:52.000000 |% w& n' {, e. H- V( F7 ^
| 23 | nova-scheduler   | controller1 | internal | enabled | down  | 2021-09-07T02:31:49.000000 |
* J8 ]0 P3 [/ W7 Y# W' o| 24 | nova-conductor   | controller3 | internal | enabled | up    | 2021-09-07T02:54:26.000000 |
! O3 N* t8 X: h$ z. b! T| 28 | nova-conductor   | controller1 | internal | enabled | up    | 2021-09-07T02:54:25.000000 |
' T" }+ C1 W  ^% U| 33 | nova-conductor   | controller2 | internal | enabled | up    | 2021-09-07T02:54:25.000000 |
  ]+ Y, y8 R, H4 d0 c( \& D| 34 | nova-consoleauth | controller2 | internal | enabled | down  | 2021-09-07T02:31:40.000000 |( K# T! g* U& c8 q( m
| 36 | nova-consoleauth | controller1 | internal | enabled | up    | 2021-09-07T02:54:25.000000 |  o% N: l. q3 T3 t& w
| 38 | nova-consoleauth | controller3 | internal | enabled | down  | 2021-09-07T02:31:42.000000 |* ]1 S$ h5 S* P1 d$ b/ o
| 42 | nova-compute     | compute02   | nova     | enabled | up    | 2021-09-07T02:54:21.000000 |! n3 a& x# |% a* t. O% x
| 43 | nova-compute     | compute03   | nova     | enabled | up    | 2021-09-07T02:54:17.000000 |
! k! X9 E& O0 ?1 q. t- A# M| 45 | nova-compute     | compute01   | nova     | enabled | up    | 2021-09-07T02:54:22.000000 |4 ?8 T. t. @5 E0 r) ^
+----+------------------+-------------+----------+---------+-------+----------------------------+
: v4 n/ c/ x2 u( }+ V# s* Y6 n! C7 x2 U4 y
删除虚机命令:
: c! q8 a+ Z! i) d[root@controller1 ~]# openstack server delete 69088d55-eb76-4674-98fe-7909ba5476746 c1 [7 o# q" X& Q: W
No server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.
0 m2 l! ~' l$ |' G/ p3 Z无法删除,头疼:1 b: ]  G# {! p* l( l4 p7 k2 G
[root@controller1 ~]# openstack server list
( ]- G# J+ h0 i7 F# ~( Y/ x+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
4 `9 p) t" q8 j7 H( D| ID                                   | Name     | Status | Networks                                                          | Image             | Flavor         |
4 v3 p1 k7 m3 A+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
& ]; @8 k* h) Z: d3 |' u9 t| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201                                              | Centos7.9-x86_x64 | type-1c-1g-10g |
# b2 A# `0 ]- j7 F( u: g- }% r" a, Q| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223                                              | Centos7.9-x86_x64 | type-1c-1g-10g |, h# U4 ^" p' T; p. J
| 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 |: V. [4 x( j, m
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                                                                   |                   | type-1c-1g-10g |3 Z2 a. E5 ]8 Z+ U5 m- l8 [1 X7 ^) k
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
4 I" A% R! E" O+ G1 J# F) T6 L! ]- d) D7 L4 W$ I# f! g' ]
. h1 e9 j& a: f6 h* f- l! |1 E
[root@controller1 ~]# openstack server delete 69088d55-eb76-4674-98fe-7909ba5476741 {  J: B( K8 O& w' S5 N
No server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.
" a! I; K" J1 @7 L5 w+ D2 Y$ W[root@controller1 ~]# 3 l4 S! }& \) j& `3 Z% X
还是删不掉:$ N4 Z* i4 s& ?  M" A
[root@controller1 ~]# openstack server list 3 d1 b5 k: S8 r
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+) G0 i& k1 y0 x/ G  O# x
| ID                                   | Name     | Status | Networks                                                          | Image             | Flavor         |
' b6 k1 k; u: R+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
1 x. T$ Y6 m: {8 j* f  y3 D4 }| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201                                              | Centos7.9-x86_x64 | type-1c-1g-10g |
4 d) ?0 z6 l( {| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223                                              | Centos7.9-x86_x64 | type-1c-1g-10g |
" Q  w: I) K3 E| 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 |) y; e% j9 i$ w; [
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                                                                   |                   | type-1c-1g-10g |$ E/ q4 X% \# D
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
( q8 J) w& R! r. |, Q[root@controller1 ~]# openstack server list 8 q3 l8 y& c9 K- \/ }/ O
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
7 d- s5 `# }4 D| ID                                   | Name     | Status | Networks                                                          | Image             | Flavor         |
: ^; [: n* c1 F+ d' G+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+( M, y+ K- v( u2 C& ]
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201                                              | Centos7.9-x86_x64 | type-1c-1g-10g |) `+ L# Y7 Y4 E7 X
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223                                              | Centos7.9-x86_x64 | type-1c-1g-10g |8 Q( n( S5 s  X* l$ h$ \
| 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 |" o1 L7 E3 E9 `' X% f+ e
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                                                                   |                   | type-1c-1g-10g |
4 r; i' U, ^* @7 g$ d& ]- Q+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+# v! ~7 [& V2 j) F8 F/ Q) K
- R$ {) t- p3 S8 P1 i+ `0 D
[root@controller1 ~]# openstack server ) w- ?' {2 [$ _# S3 F( g0 R* L
add             dump            list            reboot          resize          resume          ssh             unlock          unshelve        / |/ H5 b1 F7 P% F, D
backup          event           lock            rebuild         resize_confirm  set             start           unpause         
/ S% X0 T9 @# i6 A: ?1 ]2 D: Dcreate          group           migrate         remove          resize_revert   shelve          stop            unrescue        
+ t6 [, k/ O& f& y' hdelete          image           pause           rescue          restore         show            suspend         unset           
" v% N  H9 c+ u4 E2 S8 t( e6 r0 l[root@controller1 ~]# openstack server
  A1 \( D' Y- A9 H( zadd             dump            list            reboot          resize          resume          ssh             unlock          unshelve        
( q) P, l) n/ X( h4 Z1 z  `& qbackup          event           lock            rebuild         resize_confirm  set             start           unpause         
( x; v& l2 p- c/ W8 `2 A: ucreate          group           migrate         remove          resize_revert   shelve          stop            unrescue        
1 b! `% Q2 {! j8 ddelete          image           pause           rescue          restore         show            suspend         unset           
! W# \8 K% {) m; i7 E% n3 G2 s+ I4 G$ B2 F: k2 I
也无法show:
7 B( R3 w* X3 W# c$ i[root@controller1 ~]# openstack server show 69088d55-eb76-4674-98fe-7909ba547674/ w/ f6 D& q8 a: C, V
No server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.
- r6 n' F; _" M. }) d[root@controller1 ~]# openstack server list
* q1 c- {; g* u8 i$ w6 D9 s+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
/ d( u9 ^: Q. j| ID                                   | Name     | Status | Networks                                                          | Image             | Flavor         |
" s7 n% d" P% o- B% z+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+( U% H) ~# ~' R+ M
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201                                              | Centos7.9-x86_x64 | type-1c-1g-10g |
: `3 o3 ~: P7 d* u. W% X# c| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223                                              | Centos7.9-x86_x64 | type-1c-1g-10g |5 v- n: a% I8 d
| 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 |
7 g1 `0 P$ G3 x1 F4 O| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                                                                   |                   | type-1c-1g-10g |9 K, J4 C  x- ]- a
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+' k$ G- _) L* b; {8 q6 P8 C4 u" q

2 [% {% ^0 Z$ x# H& G上面的有问题,只能去数据库查看了:$ y! E+ c0 S3 L, J0 ^
' E1 ~4 E4 f* |9 X

; P+ V- a/ C) }[root@controller1 ~]# openstack server list
- J# Q8 l  g+ z$ {8 I% w# [+--------------------------------------+----------+--------+----------------------+-------------------+----------------+5 y: p& Y  Z$ u9 {; R
| ID                                   | Name     | Status | Networks             | Image             | Flavor         |% T2 j' d, o, D' J4 p" k6 r! G
+--------------------------------------+----------+--------+----------------------+-------------------+----------------+  c6 _* K) H' i6 q/ L
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |$ ?' i0 l3 p: c& t
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |0 n* m* [2 m4 e* ^
| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                      |                   | type-1c-1g-10g |
' N/ V! s! c9 U/ M+--------------------------------------+----------+--------+----------------------+-------------------+----------------+6 S/ S( f; Z8 B. T- M6 T& m1 f7 y
[root@controller1 ~]# openstack server delete test1 3 F! e* }' C; [* X! |- E5 ~
No server with a name or ID of 'test1' exists.
% @' _& |* \  e6 g, ]' N[root@controller1 ~]#
$ t* O! i( o7 o$ ^5 a) D- ]7 v# ^) e" g# B: Q: T# C1 v' r
[root@controller1 ~]# openstack server list
8 J& n9 k+ u8 H1 B% k2 B, A+--------------------------------------+----------+--------+----------------------+-------------------+----------------+* S+ w! @1 b: u5 o1 u0 e
| ID                                   | Name     | Status | Networks             | Image             | Flavor         |- v) p9 P! h* m$ q9 o; h* J) F
+--------------------------------------+----------+--------+----------------------+-------------------+----------------+7 b4 S0 i( U- j! X4 V* I# o# G
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |
5 i3 s# i' j, O7 h' B9 j3 R| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |
0 l! h' j2 U% r! v2 d| 69088d55-eb76-4674-98fe-7909ba547674 | test1    | BUILD  |                      |                   | type-1c-1g-10g |4 A) _# u0 U; _- W3 ~
+--------------------------------------+----------+--------+----------------------+-------------------+----------------+/ v5 L/ l7 Q" X, F$ M
[root@controller1 ~]# mysql -u root -pdxFxylGX6K65rDh8hu2TWhWTKcIkZVZM6fEvmuW7 -h 192.168.6.233
" [$ I6 d' x4 G  V) c# |* sWelcome to the MariaDB monitor.  Commands end with ; or \g.
8 G! _7 N/ [2 j* x( z; {4 [4 HYour MariaDB connection id is 1669555' E! v9 s# o5 h0 w5 }
Server version: 10.1.20-MariaDB MariaDB Server
* }) x* w& \# h# N/ SCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
6 s* T! B# w' ]9 b- d: uType 'help;' or '\h' for help. Type '\c' to clear the current input statement./ A' \. U% ]% k4 N5 {
MariaDB [(none)]> use nova: n, U' \# G3 M6 p, D0 {- P
Reading table information for completion of table and column names/ o; ~# `# n" ^0 C0 s& K' y
You can turn off this feature to get a quicker startup with -A+ t/ i3 G! ^/ B) p% L8 ^
Database changed4 U; O0 T  }9 W; V5 Z% H) C
MariaDB [nova]> select * from in
! [3 o; e0 k' C) b3 ODisplay all 219 possibilities? (y or n)
5 N9 F4 W1 D/ r- r; t6 V7 ]in_use                                      instance_groups.created_at                  instance_types.root_gb' k' n6 U8 D: j
information_schema                          instance_groups.deleted                     instance_types.rxtx_factor  o* K" d. q# A0 t+ i
injected                                    instance_groups.deleted_at                  instance_types.swap, F* i& d% A. `$ B6 I) w' {" z
instance_actions                            instance_groups.id                          instance_types.updated_at( L+ S- B) Z  e; c9 Z& W/ A
instance_actions.action                     instance_groups.name                        instance_types.vcpu_weight) l) a# c6 z3 _7 `) g. U7 a; v# O
instance_actions.created_at                 instance_groups.project_id                  instance_types.vcpus" }& t4 F; I& a
instance_actions.deleted                    instance_groups.updated_at                  instance_uuid
, y) Q- y: n0 einstance_actions.deleted_at                 instance_groups.user_id                     instances
# k7 A& u- c. V0 }% y; Hinstance_actions.finish_time                instance_groups.uuid                        instances.access_ip_v4& \$ Q- Z- |" c! `* M
instance_actions.id                         instance_id                                 instances.access_ip_v6! l: {% A: k- \7 W; X
instance_actions.instance_uuid              instance_id_mappings                        instances.architecture  M  U9 l* E1 k, L1 y7 K
instance_actions.message                    instance_id_mappings.created_at             instances.auto_disk_config+ C: r8 @; q; w
instance_actions.project_id                 instance_id_mappings.deleted                instances.availability_zone. _' [+ s. L, H
instance_actions.request_id                 instance_id_mappings.deleted_at             instances.cell_name/ {, _  J4 f3 b% v' Y# @
instance_actions.start_time                 instance_id_mappings.id                     instances.cleaned$ H/ i0 A) v9 O- W$ U) q
instance_actions.updated_at                 instance_id_mappings.updated_at             instances.config_drive% X, V% S: Z! @4 V0 [: u; t
instance_actions.user_id                    instance_id_mappings.uuid                   instances.created_at7 N; x3 ?" |6 h. I) [
instance_actions_events                     instance_info_caches                        instances.default_ephemeral_device
0 Y" S  ?0 E, C/ M+ }1 ~# Uinstance_actions_events.action_id           instance_info_caches.created_at             instances.default_swap_device
' O4 @$ M" u3 J: N/ H5 yinstance_actions_events.created_at          instance_info_caches.deleted                instances.deleted$ U! l& \/ e1 j6 c
instance_actions_events.deleted             instance_info_caches.deleted_at             instances.deleted_at
& B1 d# ^& d& _$ p- `instance_actions_events.deleted_at          instance_info_caches.id                     instances.disable_terminate' M7 k9 P8 P. H3 `2 r. v
instance_actions_events.details             instance_info_caches.instance_uuid          instances.display_description
% ?! \$ ^8 m% ~/ a/ cinstance_actions_events.event               instance_info_caches.network_info           instances.display_name
) u9 @" f. o& p  tinstance_actions_events.finish_time         instance_info_caches.updated_at             instances.ephemeral_gb
. S+ Z# _  Q8 x- B5 m0 Ginstance_actions_events.host                instance_metadata                           instances.ephemeral_key_uuid
/ ?) n* |- `7 w: w+ V! ~& F+ F7 |instance_actions_events.id                  instance_metadata.created_at                instances.host
: [* ^( x: C; h  J2 S0 s3 Winstance_actions_events.result              instance_metadata.deleted                   instances.hostname- F3 \; N) A: m! P
instance_actions_events.start_time          instance_metadata.deleted_at                instances.id5 ]9 f: g3 ]! b- d, |
instance_actions_events.traceback           instance_metadata.id                        instances.image_ref
% h* f5 r" I2 \% F5 ~instance_actions_events.updated_at          instance_metadata.instance_uuid             instances.instance_type_id
# V9 q. d% E! H. D# T! _5 b6 yMariaDB [nova]> select * from instance7 P; o3 d* i2 i  j; g
Display all 203 possibilities? (y or n)
% e( {. o5 V" x1 a0 ^; I+ n4 t4 yMariaDB [nova]> select * from instance;
3 \9 `( Q- d( |& z+ CERROR 1146 (42S02): Table 'nova.instance' doesn't exist
% K  B- U* J  x8 M3 |MariaDB [nova]> select * from instance;
1 ]8 u& |3 R4 F$ z0 F: AERROR 1146 (42S02): Table 'nova.instance' doesn't exist, \& L* M$ n# W" ]3 @" _: l
MariaDB [nova]> select * from instance;
$ o  l5 y9 N) ~6 g+ X# dDisplay all 203 possibilities? (y or n)! ]# _$ v7 T* l% J( @
instance_actions                            instance_group_policy.updated_at            instance_types.disabled6 L* x9 K( m* Q
instance_actions.action                     instance_groups                             instance_types.ephemeral_gb: H( w# l- b) ~/ R2 c
instance_actions.created_at                 instance_groups.created_at                  instance_types.flavorid1 b; d( n9 L' L% U3 l- @
instance_actions.deleted                    instance_groups.deleted                     instance_types.id
9 Z0 _1 l$ G7 x& Ninstance_actions.deleted_at                 instance_groups.deleted_at                  instance_types.is_public% V$ K+ `/ N, z$ ^# b& C" }7 ^- I
instance_actions.finish_time                instance_groups.id                          instance_types.memory_mb! Q" k5 [6 D+ v3 u1 t: S
instance_actions.id                         instance_groups.name                        instance_types.name
! P1 v# i: p  v8 i+ ]instance_actions.instance_uuid              instance_groups.project_id                  instance_types.root_gb
$ U% ~) J2 |3 s7 S+ Binstance_actions.message                    instance_groups.updated_at                  instance_types.rxtx_factor' c: G# _& ~- V3 A8 @
instance_actions.project_id                 instance_groups.user_id                     instance_types.swap
0 m" I9 ~7 w( O8 C5 L8 v* ?instance_actions.request_id                 instance_groups.uuid                        instance_types.updated_at
$ |& k# a+ t. t+ einstance_actions.start_time                 instance_id                                 instance_types.vcpu_weight/ O, k2 `4 ~4 H3 i
instance_actions.updated_at                 instance_id_mappings                        instance_types.vcpus
& Z% M1 O' B5 ]. H2 K3 ginstance_actions.user_id                    instance_id_mappings.created_at             instance_uuid' n- n0 S% T( }0 _3 c# D
instance_actions_events                     instance_id_mappings.deleted                instances5 ]: F- e6 r+ v! i2 v- t, K
instance_actions_events.action_id           instance_id_mappings.deleted_at             instances.access_ip_v4/ V& |; K8 Y% ]! i! L3 G
instance_actions_events.created_at          instance_id_mappings.id                     instances.access_ip_v6
9 w" C* L) Y" i- B. c/ b) I, binstance_actions_events.deleted             instance_id_mappings.updated_at             instances.architecture0 b  P9 l6 \. o
instance_actions_events.deleted_at          instance_id_mappings.uuid                   instances.auto_disk_config1 h; x: i3 A4 h% H0 ?* p
instance_actions_events.details             instance_info_caches                        instances.availability_zone
% ~9 ~7 m1 s" ~0 X. linstance_actions_events.event               instance_info_caches.created_at             instances.cell_name$ B! ^( L8 u4 H! b
instance_actions_events.finish_time         instance_info_caches.deleted                instances.cleaned
# q% v9 J9 h  r7 {& Oinstance_actions_events.host                instance_info_caches.deleted_at             instances.config_drive; p' y0 M( r) _
instance_actions_events.id                  instance_info_caches.id                     instances.created_at9 M6 K3 w8 D4 z8 f9 F1 c
instance_actions_events.result              instance_info_caches.instance_uuid          instances.default_ephemeral_device
8 q6 H* x% l# A/ D7 O: |; Linstance_actions_events.start_time          instance_info_caches.network_info           instances.default_swap_device. I$ T1 S% e- K$ q4 K
instance_actions_events.traceback           instance_info_caches.updated_at             instances.deleted
9 V% H8 ^# L/ [: _instance_actions_events.updated_at          instance_metadata                           instances.deleted_at* }# D, _& g/ K" y3 g# C1 ?
instance_extra                              instance_metadata.created_at                instances.disable_terminate
7 Y6 U4 j3 d% ]5 t+ Xinstance_extra.created_at                   instance_metadata.deleted                   instances.display_description
8 ?+ j$ D9 w  j2 [) oinstance_extra.deleted                      instance_metadata.deleted_at                instances.display_name+ a! U/ v# s/ }$ }; Q- g* C
MariaDB [nova]> select * from instances;: c, B/ f5 q- L& m* F
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
- A8 Y2 A( ^0 G" \6 ~| 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 |# U( I* f: O8 D/ L) y0 {. x
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+; @- }/ \9 G3 ?
| 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               |
' Y9 {2 E6 ]" t| 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               |
7 @2 \+ J# S$ V3 m; n7 w8 w| 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               |
, g; w/ P" u. n# P3 F4 X| 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               |  w; O# g& M( D
| 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               |5 B! `# A# M, k3 Z1 t
| 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               |& a  B. ]  ?4 c' }3 S
| 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               |
8 Y- B- ?3 O% L0 M& R3 a  z| 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               |
' h0 i8 _6 g2 S8 C6 |) W" j| 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               |3 W6 X' i/ s: |
| 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               |1 H! L1 w9 G: M0 J4 p3 s
| 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               |
& T! b2 u2 B+ u/ W7 n| 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               |
. s$ f4 ^: P2 Y! ~/ y+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
$ a; \/ t# r4 [  D% W12 rows in set (0.01 sec)3 V: |" W5 \, S7 Y9 p! H  x/ k# x/ x# ?
MariaDB [nova]> select * from instances where id="69088d55-eb76-4674-98fe-7909ba547674";
1 z  t) D7 R" ^/ KEmpty set (0.00 sec)
5 B! q, S- P. w- G4 DMariaDB [nova]> select id,vmstate,hostname,instance_type_id,uuid from instances;
) o' ~; }) D& G9 _4 Z! kERROR 1054 (42S22): Unknown column 'vmstate' in 'field list'5 n% Z3 I* b$ F& Z/ f
MariaDB [nova]> select id,hostname,instance_type_id,uuid from instances;6 Y6 n& Z6 v8 G4 A
+----+-------------+------------------+--------------------------------------+- _& g- m, L+ [- Z$ b
| id | hostname    | instance_type_id | uuid                                 |( h% Z5 N, S) n
+----+-------------+------------------+--------------------------------------+
8 _- a2 B+ ]7 w! ], }8 c! V|  2 | test1       |                3 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 |
/ x* C& ?, {( g6 w0 W: z! u/ W|  4 | zhangyj     |                3 | 7c6e79e3-2d94-40ba-b45f-087d559f12ee |
) F, L" c0 D5 z: ?0 J: a|  6 | test8subnet |                3 | bfabb27e-cf5a-4409-a464-5162dde24df1 |
8 Y: \9 E3 S* R0 e: p3 t* U  i|  7 | zhangyj1    |                6 | 075e0dcb-8992-4a92-b1ad-ad09167e391d |! \3 {7 O0 [, I% r9 f  v( [; V
|  9 | zhangyj1    |                3 | 1ecefb25-d285-4d1b-9257-2960a765605e |
, T5 z' y7 u9 D9 E2 h# j| 10 | zhangyj     |                3 | f3cfa018-51f3-4c00-a549-1cac5a4c4857 |; B4 l5 j- N5 f( _" z/ a
| 13 | zhangyj     |                3 | 6269828d-fb8b-474c-81e1-2c13652a5892 |
( b, v3 x2 G- U, y! p: c| 15 | zhangyj     |                3 | e1df84c5-f049-49fc-b7ae-885660ff2238 |. _1 Q: Q: m. S2 W9 c
| 21 | zhangyj     |                3 | f8f4dfe7-ada7-4b25-94f4-5c00e414b0c8 |
, C) X- L% c; y# V; h. D" H| 24 | zhangyj1    |                3 | bd25efff-f97f-4576-a0ab-f4da6821cfce |0 X+ W9 j3 T0 X) n
| 25 | zhangyj     |                3 | 590e3822-085b-4273-bce1-bf0e7a09b9f7 |
3 u6 K1 \# V# L" v| 27 | zhangyj     |                3 | 347d5d2e-1516-41ef-b247-a42bc72e093c |" o7 t6 `5 n8 R+ U4 n, I4 U
+----+-------------+------------------+--------------------------------------+
& i& s( k% `9 C! ]- u  N( b12 rows in set (0.01 sec)4 E: W. ?& n6 p: z- s
MariaDB [nova]> select * from instances where uuid="69088d55-eb76-4674-98fe-7909ba547674";
( Z) J) e( B  ]Empty set (0.00 sec)! N* _$ k% r: f1 i
MariaDB [nova]> select id,hostname,instance_type_id,uuid,deleted from instances;
8 u8 r0 Q' k" @# N* F; c; R+----+-------------+------------------+--------------------------------------+---------+$ ^! d1 N2 {' B" O$ r
| id | hostname    | instance_type_id | uuid                                 | deleted |6 S; K' f; i( J: n
+----+-------------+------------------+--------------------------------------+---------+
% f# q5 r# I  L: G3 |! p|  2 | test1       |                3 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 |       2 |
' x' v( j- F9 {, Z4 ^, l|  4 | zhangyj     |                3 | 7c6e79e3-2d94-40ba-b45f-087d559f12ee |       4 |; F- \; Z6 c2 f8 P# a; Z2 M6 [: E4 U
|  6 | test8subnet |                3 | bfabb27e-cf5a-4409-a464-5162dde24df1 |       6 |; ]4 ^% {' r* l/ U
|  7 | zhangyj1    |                6 | 075e0dcb-8992-4a92-b1ad-ad09167e391d |       7 |. @% S. V. `- H, {& M8 P
|  9 | zhangyj1    |                3 | 1ecefb25-d285-4d1b-9257-2960a765605e |       9 |) {0 k# k: [$ S6 E/ y0 m
| 10 | zhangyj     |                3 | f3cfa018-51f3-4c00-a549-1cac5a4c4857 |      10 |
3 l6 @1 C5 E. L| 13 | zhangyj     |                3 | 6269828d-fb8b-474c-81e1-2c13652a5892 |      13 |% R  Q$ |2 G* T$ z9 I" ]1 ^
| 15 | zhangyj     |                3 | e1df84c5-f049-49fc-b7ae-885660ff2238 |      15 |
0 l  x3 ^2 H* v7 U| 21 | zhangyj     |                3 | f8f4dfe7-ada7-4b25-94f4-5c00e414b0c8 |      21 |
& ?7 t0 t) t) g* [, d+ i$ S| 24 | zhangyj1    |                3 | bd25efff-f97f-4576-a0ab-f4da6821cfce |      24 |
# d7 e2 o) Y" I6 |* F# W| 25 | zhangyj     |                3 | 590e3822-085b-4273-bce1-bf0e7a09b9f7 |       0 |
5 w& f- Q6 W9 G' ^. ]  \| 27 | zhangyj     |                3 | 347d5d2e-1516-41ef-b247-a42bc72e093c |       0 |4 |. g; k' ]& M
+----+-------------+------------------+--------------------------------------+---------+0 I' G# I4 v' p# d7 @2 u6 {) t
12 rows in set (0.03 sec)' t) S$ o# A% b
MariaDB [nova]> select * from instances where  display_name='test1';, D$ X  S7 W; t
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
' u. c" N% z2 u2 u8 [; G( C4 _| 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 |. p* {0 h6 t1 m  d1 y
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
/ p1 @3 ?9 p( T+ G4 m; h) Z| 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               |
2 g& ?) E/ o& e; U+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
0 J2 a6 R+ u* h( e1 row in set (0.01 sec)2 n- J1 }+ c0 d+ M8 `$ w
MariaDB [nova]> select id,uuid from instances where  display_name='test1';
- i) A! M7 [0 A* u1 Z! [: o4 u+----+--------------------------------------+9 K, O& w( d- h4 _0 {
| id | uuid                                 |
- `, T+ g" r; ^* b. V1 W! T: }+----+--------------------------------------+; b  n. o6 C' T# [3 N/ b/ O
|  2 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 |
. {' L0 H# M9 t4 B+ {% e+----+--------------------------------------++ L# [2 G! l9 o5 h
1 row in set (0.01 sec)! m' `" H! t% l! F+ k
MariaDB [nova]> select id,uuid,display_name  from instances where  display_name='test1';" h/ _# U7 q) [$ c
+----+--------------------------------------+--------------+/ L. K0 {4 k* X5 p+ I3 X  m: \  Y6 d
| id | uuid                                 | display_name |0 k5 {- p. z3 M1 a! H
+----+--------------------------------------+--------------+( Q& [- W9 M9 _1 p
|  2 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | test1        |  Q8 ^9 r. G/ P8 ~0 B. b: E* j
+----+--------------------------------------+--------------+
' ?8 ?' n% V) c% h1 row in set (0.01 sec)
$ u8 P- \9 F0 Z7 k6 C# C. Z
! ^; i; F$ T) H3 O7 G# [( a! i数据库也无法查询到:, A, g# g, M6 I
放弃吧,反正也不影响openstack平台使用:
1 _, N7 G/ F; @6 _0 t$ u& i
6 q2 q' Y5 X/ g/ u1 f: W. a0 b/ S8 C9 a" }
另外解锁下我们界面上看到的被锁虚机:5 d% M0 Z- s8 t3 @. Q/ C
[root@controller1 ~]# openstack server unlock  7b01d71a-40d4-45fa-bf5c-97e676b2b9a2
+ c. H$ w3 i) P) O; j5 t/ |
1 e" n4 O& V) v) Q, W+ u" s今天的处理就这么多
3 |! f  i3 R: e4 M( K/ O+ |2 x1 _4 r

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-9-7 11:31:29 | 显示全部楼层
上面说可以通过更新数据库的方式来清理:  F: Y# K8 l# |" c! K' U
vm其实已经删掉,通过virsh list命令可以看出。但是nova命令显示还有:nova show xx  ;
, V9 k( }) c6 C' P: d很明显是实际VM已经干掉,但是nova去数据库查还有记录
- B& d/ g( {$ P) l( W" T$ h" i操作数据库:1 |( X9 M, `; L

) O- k3 a8 ]0 @7 I8 S4 Vroot@controller1# mysql -uroot -p -D nova
! l% R6 f: b* }% N9 cEnter password:
2 f* I' E5 h3 J' r; U, R; Umysql> use nova;
$ l" p( W- K# E% G: t
5 j3 ]; s' t0 s, v/ tmysql> update  instances set deleted=1 where display_name='test1';
, y" \1 d0 `- h8 q( WQuery OK, 1 row affected (0.03 sec)
( T! j) O6 @- z" N6 hRows matched: 1  Changed: 1  Warnings: 05 ?# P4 \! y; n4 B

+ p3 J1 v' U/ E' `9 q5 I/ G# amysql> quit
2 m7 }/ ~# \4 u' z$ V- K9 ABye
3 O7 S+ y  L9 G
" ]5 L* N6 h& v; D: [( P0 ~& I6 H- _- s
结果还是无法更新。
: W( |4 m" S1 D0 {' Q3 F
& c3 a3 {! r, A3 H( X  K
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 04:25 , Processed in 0.018293 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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