- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@controller1 ~]# openstack compute service list # D$ d/ D* }/ L+ ]6 K
+----+------------------+-------------+----------+---------+-------+----------------------------+4 h z. z; P# x5 b9 k8 f' L) [
| ID | Binary | Host | Zone | Status | State | Updated At |7 r+ ]/ t) M% Y$ I5 P* B' M
+----+------------------+-------------+----------+---------+-------+----------------------------+1 K- V. m, [& s0 b6 j
| 19 | nova-scheduler | controller2 | internal | enabled | down | 2021-09-07T02:31:45.000000 |' o8 ~) X* D" \1 H9 |6 }+ E0 B. L/ ^
| 22 | nova-scheduler | controller3 | internal | enabled | down | 2021-09-07T02:31:52.000000 |
& X) C, w% j3 E: `! ]2 k6 l6 d| 23 | nova-scheduler | controller1 | internal | enabled | down | 2021-09-07T02:31:49.000000 |1 d2 _) s. \, I% o0 ?- n2 V" @+ B
| 24 | nova-conductor | controller3 | internal | enabled | up | 2021-09-07T02:54:26.000000 |
) }6 r( G0 s5 y| 28 | nova-conductor | controller1 | internal | enabled | up | 2021-09-07T02:54:25.000000 |
2 ]+ b/ s% q# _( j3 s* n7 a| 33 | nova-conductor | controller2 | internal | enabled | up | 2021-09-07T02:54:25.000000 |
: m+ `9 g2 o. u& @! {% E| 34 | nova-consoleauth | controller2 | internal | enabled | down | 2021-09-07T02:31:40.000000 |( m. a6 o' e) K
| 36 | nova-consoleauth | controller1 | internal | enabled | up | 2021-09-07T02:54:25.000000 |
" o% {" d. `5 [+ @9 K# e| 38 | nova-consoleauth | controller3 | internal | enabled | down | 2021-09-07T02:31:42.000000 |
. M; \% N3 V% }| 42 | nova-compute | compute02 | nova | enabled | up | 2021-09-07T02:54:21.000000 |8 U4 a. ^9 v7 d" E( q) t4 `& l
| 43 | nova-compute | compute03 | nova | enabled | up | 2021-09-07T02:54:17.000000 |
1 g9 E5 X7 {5 H4 N, q0 Q" c9 ?| 45 | nova-compute | compute01 | nova | enabled | up | 2021-09-07T02:54:22.000000 |
+ C" p+ j+ A Q$ o0 c+----+------------------+-------------+----------+---------+-------+----------------------------+
{& a4 W5 m/ A
3 |7 `. q, D+ \! j- w% z+ V删除虚机命令:
! b* n- s6 B* @5 f+ b[root@controller1 ~]# openstack server delete 69088d55-eb76-4674-98fe-7909ba547674
+ _2 ?. \5 r2 {" @No server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.
3 B7 U/ u+ B* Q8 a w无法删除,头疼:
: _' W' w, {' f, g: f' c) Y[root@controller1 ~]# openstack server list
- @0 d" R( g# X0 z+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+1 P$ e# G% P: U U0 z$ M
| ID | Name | Status | Networks | Image | Flavor |
# V( X, b+ N' F3 F+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+. T! _$ N4 v3 {4 e
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |
+ @) k, x, m3 L1 s| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |
T6 @) E8 L! a| 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 |- X+ s+ Q8 M# j, C6 x
| 69088d55-eb76-4674-98fe-7909ba547674 | test1 | BUILD | | | type-1c-1g-10g |5 `4 D# Y" i. f: H. W! E
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
0 [3 L4 ~) x( e: H& }2 [# Y5 {7 m4 d# t/ Z2 ]
% u% I: D1 }, Y7 k$ n
[root@controller1 ~]# openstack server delete 69088d55-eb76-4674-98fe-7909ba547674
0 ^# u/ e3 e$ y* Z# q4 WNo server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.6 c* _& M! V1 S" a" ?9 D: \
[root@controller1 ~]# 7 }7 v, t3 J# z: F
还是删不掉:
' w$ z9 P! j$ T[root@controller1 ~]# openstack server list + j s m% n0 E% m/ m
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+; R& K+ A& J8 T* a
| ID | Name | Status | Networks | Image | Flavor |) F% z. u% \' t8 W, {( u- ]/ u, S
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+, a7 l9 n9 L9 V9 _
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |! O+ _ g) Y0 J' R, Z! W
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |1 U) ?: N0 q4 T! v" F% \& X
| 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 |
5 n0 ^$ @9 X$ u0 `6 W| 69088d55-eb76-4674-98fe-7909ba547674 | test1 | BUILD | | | type-1c-1g-10g | r$ @. f! m3 U
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
% b8 c5 o1 b+ s5 @* \0 b1 K[root@controller1 ~]# openstack server list S' t- C1 |6 U& J' ?, @1 v
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+! `7 v2 t6 i3 z2 u; ^5 e0 F
| ID | Name | Status | Networks | Image | Flavor |
2 `( K m) L% s# I* q }- _" z% W+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+4 ?$ b( G! [" d R, C8 V
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |
: A1 x" ^& d# C! f0 {| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |
6 T2 U$ J* b: r! i| 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 |$ _$ B7 l7 Q6 k4 c
| 69088d55-eb76-4674-98fe-7909ba547674 | test1 | BUILD | | | type-1c-1g-10g |/ F3 I$ j' c r% }- u1 L2 R
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+# n5 h7 l: ^: h4 w$ U
% S; {" {# H! I6 |[root@controller1 ~]# openstack server
3 e6 \% ~7 ?- C4 B4 q) Qadd dump list reboot resize resume ssh unlock unshelve ! A% W7 ?# ]' W; K( f
backup event lock rebuild resize_confirm set start unpause
; d% J4 p7 s4 W. Rcreate group migrate remove resize_revert shelve stop unrescue 9 ], e Q7 D' W
delete image pause rescue restore show suspend unset . L: E, i2 h$ {! u
[root@controller1 ~]# openstack server
2 u+ B5 K" p# j7 O! n, G2 G! r2 Ladd dump list reboot resize resume ssh unlock unshelve % d/ T" O( _5 h( s% @
backup event lock rebuild resize_confirm set start unpause
6 W( @4 P: P4 f- Z3 Hcreate group migrate remove resize_revert shelve stop unrescue
. ]" H$ s5 b1 Z* ?$ p+ F* n; tdelete image pause rescue restore show suspend unset ' T7 c% c9 x) o
: v* N% ?' y9 ^4 l. y7 T* E# `- Y也无法show:- y3 q9 a, [ c
[root@controller1 ~]# openstack server show 69088d55-eb76-4674-98fe-7909ba547674
. I1 S4 A" m* }' t0 @1 Q) m6 tNo server with a name or ID of '69088d55-eb76-4674-98fe-7909ba547674' exists.
* c0 R& J$ [/ i* z/ @3 _0 w/ Y[root@controller1 ~]# openstack server list
7 }' ~$ h( _0 G, X2 _( s+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
- K$ f% y0 B6 s, O0 ~$ h| ID | Name | Status | Networks | Image | Flavor |9 z7 S$ P& e8 d7 H* h1 d" N
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+
, m5 G- ? w" M" t; O- L| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |' a! I" [, E _. @+ v0 @. z* t' @, L
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |# i ] [2 {3 ^& r9 |0 R
| 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 |
! `, u. W. G) l# l7 Z; n* N| 69088d55-eb76-4674-98fe-7909ba547674 | test1 | BUILD | | | type-1c-1g-10g |4 P6 Y& t+ A( K& l7 x0 |
+--------------------------------------+----------+--------+-------------------------------------------------------------------+-------------------+----------------+, a8 J% X. P( U8 t( O2 }: t
( z! v) x! w; T7 d$ y7 `( ]" v上面的有问题,只能去数据库查看了:, g5 |7 L6 r6 @0 J
% v1 F8 @+ [) t6 ^0 b+ {% l+ _( N7 A7 h! X3 e/ U
[root@controller1 ~]# openstack server list . X6 {! p# Y1 K
+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
& b O& t( T" Z7 W; W! }| ID | Name | Status | Networks | Image | Flavor |
8 _/ k; B( ~. `. U( k+--------------------------------------+----------+--------+----------------------+-------------------+----------------+% `2 h5 v* a/ i" {8 S$ g" M
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |
; k9 g) W5 i6 _7 |7 ^| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |
/ ~( t- n F5 X3 F2 M2 U, n+ g* c( [| 69088d55-eb76-4674-98fe-7909ba547674 | test1 | BUILD | | | type-1c-1g-10g |
7 \0 Z6 h; ^. }9 Y+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
, e& O9 x) r+ O! F/ _/ B$ g[root@controller1 ~]# openstack server delete test1 ' \+ ], w, f& [1 e* a4 M6 g
No server with a name or ID of 'test1' exists.
9 v5 v3 G6 c0 D2 P* K s[root@controller1 ~]# 2 j: d1 n( `! p% D7 Y6 g
9 N5 x, I: ^: @/ V
[root@controller1 ~]# openstack server list
% Q. O. g& n: S' t: W+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
' a& e0 P; ^' y9 @5 F( o| ID | Name | Status | Networks | Image | Flavor |
# a* b% R6 D5 U! Q6 ]' x! j+--------------------------------------+----------+--------+----------------------+-------------------+----------------+- e# o& j/ {, }+ F
| 347d5d2e-1516-41ef-b247-a42bc72e093c | zhangyj2 | ACTIVE | bridge=192.168.0.201 | Centos7.9-x86_x64 | type-1c-1g-10g |+ Q3 k2 Y9 x# F+ U+ s( R, p
| 590e3822-085b-4273-bce1-bf0e7a09b9f7 | zhangyj1 | ACTIVE | bridge=192.168.0.223 | Centos7.9-x86_x64 | type-1c-1g-10g |
2 \" }/ R1 M/ }' v X7 Z$ x| 69088d55-eb76-4674-98fe-7909ba547674 | test1 | BUILD | | | type-1c-1g-10g |' X4 m% u# A( O2 u, x5 w
+--------------------------------------+----------+--------+----------------------+-------------------+----------------+
# f& {3 ]( C3 Y- z2 B6 ^[root@controller1 ~]# mysql -u root -pdxFxylGX6K65rDh8hu2TWhWTKcIkZVZM6fEvmuW7 -h 192.168.6.233( n1 A2 Z5 d. Z9 `, _, `$ `
Welcome to the MariaDB monitor. Commands end with ; or \g.
" P8 v) z& `# l5 u5 o# e: ~ MYour MariaDB connection id is 1669555
" [# [( m# m7 I2 h7 i6 LServer version: 10.1.20-MariaDB MariaDB Server
- B, d4 h- E6 Y! m' R! s# ^' FCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
t7 }) G O# V+ sType 'help;' or '\h' for help. Type '\c' to clear the current input statement.
% {" h" {( y/ }1 m- dMariaDB [(none)]> use nova
4 u. ?% j* E! U' K4 xReading table information for completion of table and column names d: `0 R6 Q1 Q. G% s, K$ `# R
You can turn off this feature to get a quicker startup with -A3 p$ m1 A% E3 l3 g @. [
Database changed# z' g" N6 m+ _: x& j* L
MariaDB [nova]> select * from in! |$ G: l" X- f) x3 _- V9 R
Display all 219 possibilities? (y or n)/ \+ @7 l$ R$ N9 z: v3 v5 f
in_use instance_groups.created_at instance_types.root_gb
+ i& y6 z$ r' B- Q# Q& Pinformation_schema instance_groups.deleted instance_types.rxtx_factor u/ l6 q4 |: Y+ v: ?9 i
injected instance_groups.deleted_at instance_types.swap1 J6 h! o: c6 [( E3 h! A
instance_actions instance_groups.id instance_types.updated_at
8 Q" h( U9 E- k- e1 U0 i0 qinstance_actions.action instance_groups.name instance_types.vcpu_weight
7 D+ D) |' \5 Q6 c2 A/ L, t) \5 binstance_actions.created_at instance_groups.project_id instance_types.vcpus; n6 u( B9 l6 V& @7 F2 j1 j! R4 A9 I
instance_actions.deleted instance_groups.updated_at instance_uuid
5 A3 n( w/ h/ f( W o* Binstance_actions.deleted_at instance_groups.user_id instances
5 \, E) w+ _2 X* Y: A& ^7 N( x/ }instance_actions.finish_time instance_groups.uuid instances.access_ip_v4# P$ a. Z# e! w, O4 x" ~" r
instance_actions.id instance_id instances.access_ip_v6/ m% p, B0 H- z2 W
instance_actions.instance_uuid instance_id_mappings instances.architecture f! M6 F/ j+ k0 t5 n
instance_actions.message instance_id_mappings.created_at instances.auto_disk_config0 t0 z5 j- G& ?3 I) o
instance_actions.project_id instance_id_mappings.deleted instances.availability_zone
0 W. R9 N9 Y# ?1 w* G, o- n* Ninstance_actions.request_id instance_id_mappings.deleted_at instances.cell_name
' u# [" U; @% Linstance_actions.start_time instance_id_mappings.id instances.cleaned9 U2 U( X0 k% V
instance_actions.updated_at instance_id_mappings.updated_at instances.config_drive
! I6 V$ H( ^/ Z: o( z7 p6 W$ einstance_actions.user_id instance_id_mappings.uuid instances.created_at# u$ q T2 h. V
instance_actions_events instance_info_caches instances.default_ephemeral_device
4 q4 ^/ t4 Y8 ?4 Binstance_actions_events.action_id instance_info_caches.created_at instances.default_swap_device
_$ l$ N% ^8 k+ T) D: `& W; Oinstance_actions_events.created_at instance_info_caches.deleted instances.deleted. t+ i" A% x4 ?! y# V
instance_actions_events.deleted instance_info_caches.deleted_at instances.deleted_at" Y+ A& H' i8 y8 Z9 V4 Y
instance_actions_events.deleted_at instance_info_caches.id instances.disable_terminate6 v2 a, p2 I$ }
instance_actions_events.details instance_info_caches.instance_uuid instances.display_description* S/ {3 B- [0 s7 O0 T$ j' F& E
instance_actions_events.event instance_info_caches.network_info instances.display_name0 T! [/ r2 |7 H* k/ O
instance_actions_events.finish_time instance_info_caches.updated_at instances.ephemeral_gb# f2 L* Q8 k8 E- g) G
instance_actions_events.host instance_metadata instances.ephemeral_key_uuid+ Z" P8 d0 U6 Z1 Q3 ^" C% ]& ]. m
instance_actions_events.id instance_metadata.created_at instances.host
2 o- i" x: L, F/ [instance_actions_events.result instance_metadata.deleted instances.hostname7 l+ ]3 F2 b# C. b
instance_actions_events.start_time instance_metadata.deleted_at instances.id
5 T( a( ~* z7 h' xinstance_actions_events.traceback instance_metadata.id instances.image_ref
, }6 ~( J, d# Z$ B5 z; n# \instance_actions_events.updated_at instance_metadata.instance_uuid instances.instance_type_id
1 z! A5 y, Z! L+ e/ gMariaDB [nova]> select * from instance" \8 _3 _5 `2 T% u, U
Display all 203 possibilities? (y or n)/ ^* r% E1 ^: l- _. |
MariaDB [nova]> select * from instance;& Q5 j* u0 o5 g- p5 J
ERROR 1146 (42S02): Table 'nova.instance' doesn't exist
7 S" r0 f4 U$ ?% l' a9 F0 f( qMariaDB [nova]> select * from instance;
- c0 l& a1 P' }3 l& X6 jERROR 1146 (42S02): Table 'nova.instance' doesn't exist) j$ k" e7 J0 K4 G3 H, c
MariaDB [nova]> select * from instance;
) a2 n7 o% V( b) k/ B) ?: r$ MDisplay all 203 possibilities? (y or n)$ L- _6 o+ p5 @' c
instance_actions instance_group_policy.updated_at instance_types.disabled
! K0 B: v# _1 a5 w: Xinstance_actions.action instance_groups instance_types.ephemeral_gb L+ T: z0 O+ x
instance_actions.created_at instance_groups.created_at instance_types.flavorid' Z8 s2 W: W9 ^7 B3 N
instance_actions.deleted instance_groups.deleted instance_types.id
) h. O7 f& R, F# O' N ]5 ]instance_actions.deleted_at instance_groups.deleted_at instance_types.is_public; b* o8 {2 {. _' r7 u- m! G, P
instance_actions.finish_time instance_groups.id instance_types.memory_mb
# {( }7 v9 p$ G" E4 Kinstance_actions.id instance_groups.name instance_types.name
$ O$ @* y; F' kinstance_actions.instance_uuid instance_groups.project_id instance_types.root_gb
* n. @: G( r, M( o* k5 x$ cinstance_actions.message instance_groups.updated_at instance_types.rxtx_factor* Q; q, b* ^6 s) U) I
instance_actions.project_id instance_groups.user_id instance_types.swap, N' J8 M ` I' L0 X5 G: Y+ B0 h
instance_actions.request_id instance_groups.uuid instance_types.updated_at
8 I& a6 C: d) H# c8 G6 F# O$ Ninstance_actions.start_time instance_id instance_types.vcpu_weight, P, y% d) e) ]4 O. S& Q
instance_actions.updated_at instance_id_mappings instance_types.vcpus. N2 p9 v5 L" O% W
instance_actions.user_id instance_id_mappings.created_at instance_uuid
2 K, Y# h, I+ n7 L) \# D% B1 P" V: r1 hinstance_actions_events instance_id_mappings.deleted instances$ D: S7 G* ]/ i: t' G/ W! {
instance_actions_events.action_id instance_id_mappings.deleted_at instances.access_ip_v4
+ h) H% I* o) ~0 R; sinstance_actions_events.created_at instance_id_mappings.id instances.access_ip_v60 j+ k: k8 [1 h1 ~) S8 D( a$ d7 u
instance_actions_events.deleted instance_id_mappings.updated_at instances.architecture
1 _2 X$ ?* p8 r2 z; m8 V5 P, Cinstance_actions_events.deleted_at instance_id_mappings.uuid instances.auto_disk_config! U& y1 T4 e( D! O5 c$ F
instance_actions_events.details instance_info_caches instances.availability_zone
* [3 F# |, A4 Oinstance_actions_events.event instance_info_caches.created_at instances.cell_name
! \2 n% _7 n/ w+ h: kinstance_actions_events.finish_time instance_info_caches.deleted instances.cleaned( W4 t5 Y# B2 g; m
instance_actions_events.host instance_info_caches.deleted_at instances.config_drive0 M% Z" o% k7 b4 ~- r' w
instance_actions_events.id instance_info_caches.id instances.created_at$ E8 ^ ?+ ?, _* R, C0 @; J
instance_actions_events.result instance_info_caches.instance_uuid instances.default_ephemeral_device
/ H: F# {% G ainstance_actions_events.start_time instance_info_caches.network_info instances.default_swap_device
* H; W7 r8 H! c9 l6 z2 J' uinstance_actions_events.traceback instance_info_caches.updated_at instances.deleted: i9 A# \$ Q* O8 g
instance_actions_events.updated_at instance_metadata instances.deleted_at/ ^( t( u5 e9 E% o) r5 x
instance_extra instance_metadata.created_at instances.disable_terminate
; e& d" ?: k2 ^' U# l+ F( Ainstance_extra.created_at instance_metadata.deleted instances.display_description- [5 Q$ f8 L* m; b
instance_extra.deleted instance_metadata.deleted_at instances.display_name
7 U3 m" e' q1 k6 x) HMariaDB [nova]> select * from instances;
* {: E) D; _( y- Q! {+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
' U! W' O8 ^# l| 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 |5 {/ T1 F P. c% j* }/ V; B/ B
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
& X4 u' K; ^* c1 C9 R| 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 |/ @$ \3 X; I# Q# }% p6 n
| 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 |8 T" g: U2 ?' t, t; ]
| 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 E" n1 y, f \' [ ~| 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 |6 l' U% }4 `" r* j
| 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 |
4 ?5 Q: C- k. V- X6 I| 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 |
) e& s7 ^7 \4 j. _| 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 |" u4 }& T1 y# A/ P+ I
| 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 |
, n' M6 y, O) Z8 b+ ]| 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 |. v/ ?+ H6 Z3 }: v: [
| 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 |
! Q7 B2 r* I z. t# P5 p% 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 |/ f* W5 H3 u0 o( r
| 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. d+ ?6 O! \: r# [5 S
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+--------------------------------------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+-------------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
# ~# c+ v0 d" D# U! E: ~& n b& N6 R0 R, w12 rows in set (0.01 sec)
. b( Q; ]) Y9 |. X2 R5 `' lMariaDB [nova]> select * from instances where id="69088d55-eb76-4674-98fe-7909ba547674";3 A% @! u* I( H; W
Empty set (0.00 sec)
" d/ b0 f5 P) mMariaDB [nova]> select id,vmstate,hostname,instance_type_id,uuid from instances;
# a) j, j" {7 r" `- \2 t* V: gERROR 1054 (42S22): Unknown column 'vmstate' in 'field list'
5 s3 f9 I8 P/ S2 ?6 _- xMariaDB [nova]> select id,hostname,instance_type_id,uuid from instances;
/ [ {4 R# u% V- U( j+----+-------------+------------------+--------------------------------------+
+ z- a6 u/ c0 E| id | hostname | instance_type_id | uuid |( y, f4 d' |: v9 O& S" d
+----+-------------+------------------+--------------------------------------+$ M1 I" H y( C% i9 j
| 2 | test1 | 3 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 |
# I. {; T$ T! N: N3 @| 4 | zhangyj | 3 | 7c6e79e3-2d94-40ba-b45f-087d559f12ee |1 p/ J4 x9 d, M
| 6 | test8subnet | 3 | bfabb27e-cf5a-4409-a464-5162dde24df1 |1 l3 ]/ _1 z0 Q/ x7 o2 ~# v9 f
| 7 | zhangyj1 | 6 | 075e0dcb-8992-4a92-b1ad-ad09167e391d |
- u! ^- x: r1 @; k2 a1 l/ f' h) T| 9 | zhangyj1 | 3 | 1ecefb25-d285-4d1b-9257-2960a765605e |6 r$ m4 A) b! S
| 10 | zhangyj | 3 | f3cfa018-51f3-4c00-a549-1cac5a4c4857 |- y; f& D5 X: Q- p
| 13 | zhangyj | 3 | 6269828d-fb8b-474c-81e1-2c13652a5892 |: e* l% Q" B. u1 R; D r! f9 C
| 15 | zhangyj | 3 | e1df84c5-f049-49fc-b7ae-885660ff2238 |
1 u0 s- Z- t6 O7 i0 S' ]| 21 | zhangyj | 3 | f8f4dfe7-ada7-4b25-94f4-5c00e414b0c8 |- s/ C8 A# L$ H1 q
| 24 | zhangyj1 | 3 | bd25efff-f97f-4576-a0ab-f4da6821cfce |3 I/ \7 S; f+ L
| 25 | zhangyj | 3 | 590e3822-085b-4273-bce1-bf0e7a09b9f7 |
1 M6 h& ^' u) `( z* @| 27 | zhangyj | 3 | 347d5d2e-1516-41ef-b247-a42bc72e093c |
5 o. \3 V& e* N+----+-------------+------------------+--------------------------------------+
7 [% L, V6 }; {. w1 v0 Q12 rows in set (0.01 sec)
. L0 e% D9 f4 D& yMariaDB [nova]> select * from instances where uuid="69088d55-eb76-4674-98fe-7909ba547674";
: F5 v# s6 f6 k- X1 |Empty set (0.00 sec)
2 a8 A: n* m$ k) {) zMariaDB [nova]> select id,hostname,instance_type_id,uuid,deleted from instances;; q' y) H* m" F1 S0 p; Y j
+----+-------------+------------------+--------------------------------------+---------+0 w* ], c& o1 K; b6 ~- @
| id | hostname | instance_type_id | uuid | deleted |; l/ [8 a! G4 z4 P: u, k6 {& ^" X
+----+-------------+------------------+--------------------------------------+---------+( @- l9 q5 ?6 |8 L
| 2 | test1 | 3 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | 2 |1 n7 G5 w" \7 ]4 s- u
| 4 | zhangyj | 3 | 7c6e79e3-2d94-40ba-b45f-087d559f12ee | 4 |
2 Y3 \; j- [* B c| 6 | test8subnet | 3 | bfabb27e-cf5a-4409-a464-5162dde24df1 | 6 |' j4 R* T1 `9 M3 Q7 M8 z
| 7 | zhangyj1 | 6 | 075e0dcb-8992-4a92-b1ad-ad09167e391d | 7 |! W, ?. H) X8 E+ Q/ ^& W! ?; k4 \ ]
| 9 | zhangyj1 | 3 | 1ecefb25-d285-4d1b-9257-2960a765605e | 9 |
5 g) t4 R2 s* a- i5 [+ X$ c| 10 | zhangyj | 3 | f3cfa018-51f3-4c00-a549-1cac5a4c4857 | 10 |1 J2 y7 b; p* g, P3 f; J8 w2 G
| 13 | zhangyj | 3 | 6269828d-fb8b-474c-81e1-2c13652a5892 | 13 |
( e9 }7 x8 a6 w x. m4 V" U| 15 | zhangyj | 3 | e1df84c5-f049-49fc-b7ae-885660ff2238 | 15 |
0 ]( t$ `2 n6 A| 21 | zhangyj | 3 | f8f4dfe7-ada7-4b25-94f4-5c00e414b0c8 | 21 |) `$ T2 l/ X3 m. F% o
| 24 | zhangyj1 | 3 | bd25efff-f97f-4576-a0ab-f4da6821cfce | 24 |8 b% e4 M% e- m8 O% H5 Y. h
| 25 | zhangyj | 3 | 590e3822-085b-4273-bce1-bf0e7a09b9f7 | 0 |6 j: N" ~# v# Z/ ]! u `
| 27 | zhangyj | 3 | 347d5d2e-1516-41ef-b247-a42bc72e093c | 0 |
: q$ O+ {. X& u% p+----+-------------+------------------+--------------------------------------+---------+6 @. B' v3 v+ j" J8 l: z' f" J" q
12 rows in set (0.03 sec)& Y* A" K; M* K; ~* l
MariaDB [nova]> select * from instances where display_name='test1';8 {+ j# I7 r) m9 s. f7 c/ V
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+8 v- P. R+ e% u( C$ K- z- d: _
| 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 |* o1 s/ t; V' ]0 C5 `1 ~6 S0 d' m
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+: E6 Y% g+ o4 x# ~
| 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 |" D6 Q' y% H& ?5 V
+---------------------+---------------------+---------------------+----+-------------+----------------------------------+----------------------------------+-----------+-----------+------------+--------------+----------+----------+-------------+----------+-----------+-------+----------+-----------+-----------+----------------+---------------------+---------------------+--------------+---------------------+-------------------+--------+---------+-------------+------------------+---------+--------------------------------------+--------------+------------------+--------------+--------------+--------------+------------+--------------------------+---------------------+----------+------------------+--------------------+-------------------+---------+--------------+-----------+-----------+---------+-----------+---------+--------------------+
7 v* Q1 `, B* X$ t4 W6 T1 row in set (0.01 sec)% A1 w6 L* j# R6 X
MariaDB [nova]> select id,uuid from instances where display_name='test1';
8 I! r, h% S7 }3 k+----+--------------------------------------+0 U/ `4 ~$ K& Z& v# k- J
| id | uuid |2 ~+ i; S ^3 g3 T! D; d' l
+----+--------------------------------------++ w6 h, a5 f$ D7 g% Z
| 2 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 |
9 j$ E4 V, h0 T) ?* h+----+--------------------------------------+, \% u5 H9 j1 g! R
1 row in set (0.01 sec)
6 O+ c) d9 V8 w9 ^# d: e) }MariaDB [nova]> select id,uuid,display_name from instances where display_name='test1';
2 v+ o$ ~8 [. h) o+----+--------------------------------------+--------------+
3 N; m% G# w& s6 I| id | uuid | display_name | C+ ?& V4 ^$ W% {$ [0 }0 F2 m
+----+--------------------------------------+--------------+
& J% M! v8 N+ y| 2 | 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2 | test1 |
. h5 Q* C' e4 W+----+--------------------------------------+--------------+
1 g4 }2 [. O8 n' r3 X' f1 row in set (0.01 sec)
( D. t2 I- Q. A# V8 B
, _ Z4 T" v4 [9 Y. c数据库也无法查询到:
6 {6 O/ r7 r h% w: N, ^. j放弃吧,反正也不影响openstack平台使用:$ {9 }" _. z( u% X5 w
, V- J I2 h8 W
; f1 _% R9 v$ L- I! @另外解锁下我们界面上看到的被锁虚机:
$ @! d5 m) k0 a6 N, J+ {[root@controller1 ~]# openstack server unlock 7b01d71a-40d4-45fa-bf5c-97e676b2b9a2
3 u; A5 z* `" ^/ T: D5 a2 P; }( M$ K: j9 L
今天的处理就这么多
3 c9 O9 ?) P* `9 f) B- s |
|