易陆发现互联网技术论坛

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

ERROR nova.virt.driver [None req-7e442f3c-378f-4261-828a-f4881516f366 - - - - -

[复制链接]
发表于 2025-2-20 11:15:36 | 显示全部楼层 |阅读模式

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

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

x
Feb 20 10:33:01 streamcompute1 nova-compute[7155]: 2025-02-20 10:33:01.769 7155 ERROR nova.virt.driver [None req-7e442f3c-378f-4261-828a-f4881516f366 - - - - - -] Compute driver option required, but not specified#033[00m
! [8 l7 t. U! V" v, rFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE# y* j) v) v; W; \% @
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'.+ c3 x* g6 i8 o% U/ h
Feb 20 10:33:02 streamcompute1 systemd[1]: Failed to start OpenStack Nova Compute Server.
: J# B, R/ ~1 t4 b4 ^$ \Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Consumed 2.965s CPU time.9 T3 L& l" L" M. G

% o  r9 W8 w, J/ N' O9 t# V" }3 Q% b: c0 T

5 q! C& X) m7 F, Q1 K' e; R6 x3 t
[root@streamcompute1 ~]# vim /etc/nova/nova.conf
! N- _( C( T/ s7 D[root@streamcompute1 ~]# systemctl restart openstack-nova-compute.service ) F; I) }) v$ g" h- ]' p6 R
Job for openstack-nova-compute.service failed because the control process exited with error code.7 i- m( W% S/ L& m* R2 s) u
See "systemctl status openstack-nova-compute.service" and "journalctl -xeu op$ \+ j& r: \* ]0 u' n

: g' ~7 r: t  O+ Q) ?, U
% G0 c9 S$ x" g6 D$ r1 c- z8 R后来发先是因为没配置default参数。& z9 k5 i% {5 d# K' D, P
在/etc/nova/nova.conf 中添加参数
# Q/ \* A+ w- K0 I+ {2 q) ~7 i; c7 A0 e1 m
rootwrap_config=/etc/nova/rootwrap.conf
3 }. C$ W3 T4 u" E4 s2 r: Gcompute_driver=libvirt.LibvirtDriver' w5 \7 e( P* N
7 v3 i! W+ ], q# c  M5 q# k. v

7 A, i9 K% N; x& }; t" ]- N/ K- e$ H0 s  v" m/ `: Y
加上参数之后,重启不再报错,问题解决;
8 o5 b4 T  k5 u7 r- U5 C8 Q8 `$ d" J4 r5 C" G. U8 E

, e4 j, P: O1 k" v  l( N[root@streamcompute1 ~]# nova-compute --config-dir=/etc/nova/nova.conf - m" o$ F2 W, v0 T' x2 C+ O

8 T3 x' v. T2 z1 t[root@streamcompute1 log]# systemctl restart openstack-nova-compute.service 6 I( F) f+ V: N. u5 Y' y( {" v
[root@streamcompute1 log]#
  y" F* U* q* @5 o6 j6 c7 |4 d

3 X  {8 z0 I; h! u1 l, v2 D7 V% M5 A  D. T& N: ]% S9 a( P9 C, t
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
3 m" T" c2 `+ {5 V2 {! I$ Z& p● openstack-nova-compute.service - OpenStack Nova Compute Server: L5 Y$ u$ i8 G# u: |7 t% a
     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)2 |! z6 _. B! s
     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 7min ago( R- `& ?6 H8 f# z( O
   Main PID: 10940 (nova-compute)' T5 _/ C) P) C8 r
      Tasks: 22 (limit: 100203)
& d$ @4 s& [! ]6 }     Memory: 125.1M
, d$ f9 Q4 o: S4 g( `        CPU: 3.881s- F3 \/ }) @, z' R  G
     CGroup: /system.slice/openstack-nova-compute.service
; Q' k! D$ [# u/ a9 j( h. P
2 D5 D9 p, e4 C: i. ]* ~! q/ R: \5 H/ t; f

/ O' d( @  m' A+ b2 U% l
! }$ ~  R1 H$ ^* v! m
 楼主| 发表于 2025-2-20 14:54:24 | 显示全部楼层
Just have been bitten by this bug. But before it, it was throwing an error about the compute driver:4 D7 q6 z5 N# c
! J% l7 v% N) _: L6 e
ERROR nova.virt.driver [req-00c7fc03-5657-45ab-b656-e24002e6d52d - - - - -] Compute driver option required, but not specified8 e8 g( B' |! m4 ~& y+ Y3 L0 \

) ~% g4 Z& C2 w- n3 `& N1 d$ sSo, the driver has to set as well on [DEFAULT]:$ z0 f' h3 v6 B0 f0 |' M* N! S: K
compute_driver=libvirt.LibvirtDriver
 楼主| 发表于 2025-2-20 17:07:36 | 显示全部楼层
[root@streamcontroller ~]# nova service-list3 Y: N% r6 h5 e2 S
nova CLI is deprecated and will be removed in a future release
5 D# S& s4 h# Q* K' Q9 b* D0 \6 Q+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+; k! @+ [; {, l* Q. @
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |3 b6 ~% Q. N0 p* j
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+. Q8 i: _7 _8 r0 z% ~) P+ ~
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |( I; v) U9 b) g. [0 i" B4 R
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
0 ~# s& H9 p, M. f* J# s, K| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:06:56.000000 | -                                   | False       |
0 [* v( k+ h; f, B, [5 ~: Z| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |
2 H0 t: f5 q$ c* S+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
6 z" a: {  D: F$ |; t/ \[root@streamcontroller ~]# nova service-list9 q6 K) m1 j1 n5 ?: |! c
nova CLI is deprecated and will be removed in a future release7 T8 N" T  c; R4 d0 ~: B8 D  C/ e
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+5 {5 q% L& r4 _. J
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |+ q% n, p  W( ]+ a' I# @2 x
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
' q% @. J4 d( C1 k% ?| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |% K: \& \: `9 E7 ~* j
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
4 X) B5 ^9 e1 d+ F| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:07:06.000000 | -                                   | False       |
5 M6 |7 u" A' g| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |2 ^6 \5 e, [; }2 Y
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
+ p# h9 D( X& M: R9 D  @[root@streamcontroller ~]# nova service-list
; R* n  _& [; h# m; Dnova CLI is deprecated and will be removed in a future release2 ?  Q1 e, ^  s. [! p/ u& O
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
0 z) B# Z3 t! Z3 n2 ?| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |6 d7 u6 |+ V1 t4 y/ R  n
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
! C6 y, c, i3 Q7 A" K7 ^% a6 S| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |6 }4 Z) ]7 `  B- v0 V! \9 y2 n. B
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
$ q: R. W- Y0 ?1 e| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:16.000000 | -               | False       |
% c6 d# B/ H3 t| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |6 e9 d9 i# |( @
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
% b- ^( K5 G6 @$ l0 F+ s[root@streamcontroller ~]# nova service-list* ?! V1 v% ^6 P  J$ [/ j: i& o2 {
nova CLI is deprecated and will be removed in a future release" P( Y" t, W& S7 f7 {, N( H* D$ k7 Q
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+, E) Z% E$ |, Y" h
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
# q: O0 o" f6 d+ P$ p2 y+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+! s% u" _; Z! l+ g
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |1 M% ]( J$ i* W. q5 I" k; G, M) G
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |3 m0 E3 r1 `) I8 o( U
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:26.000000 | -               | False       |: n3 P7 K  t3 u  g: Q7 U
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |7 x1 {: p( W6 e7 [3 v! S% j& j% P
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
9 d; I! ]" l+ \# G$ p5 o
 楼主| 发表于 2025-2-20 17:07:52 | 显示全部楼层
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service 0 ?3 X  U4 H: w3 s8 I6 M4 ^
● openstack-nova-compute.service - OpenStack Nova Compute Server
, a. _- Q) a6 N2 ~" B* h     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
9 @) {2 P: I6 d2 x2 b8 @     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 5h 57min ago
( G: u) h2 V8 R& `; M5 s  N   Main PID: 10940 (nova-compute): l9 i# t) L' t. T# \# `$ h3 K6 \9 `
      Tasks: 22 (limit: 100203)) Z# A, @" W* h, F: t' a
     Memory: 130.1M! `2 N" o2 R) [7 g' l
        CPU: 45.176s; t$ F1 H0 b! w* y
     CGroup: /system.slice/openstack-nova-compute.service+ {' R6 `( h2 i0 S5 D  k
             └─10940 /usr/bin/python3 -s /usr/bin/nova-compute9 ^3 R# B' g, T, q
0 o" {1 \% V0 O4 i3 O
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>2 B5 Z4 ]( Z! l8 k
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
% E8 S9 X( ]( f- N7 kFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager % D  z: `  J/ ~
Feb 20 17:04:17 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:17.873 10940 DEBUG oslo_service.periodi>
- K  G. h7 d0 L' H+ n9 L+ cFeb 20 17:04:21 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:21.852 10940 DEBUG oslo_service.periodi>
' A2 K1 ^3 E/ a# k; ]Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.866 10940 DEBUG oslo_service.periodi>; [6 u$ e  i! A0 t4 t3 }. [9 y
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>
7 R7 q1 H, z. J6 A+ i# B. O/ MFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>" L* g% T( r9 ]! B5 O7 f9 i# }
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.884 10940 DEBUG nova.compute.manager>
" o# y  h* z: T4 s8 EFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.885 10940 DEBUG oslo_service.periodi>% Y# q7 O2 l! B/ ~* |- ^+ c6 j. k1 ]
[root@streamcompute1 ~]# $ }. }7 X9 p0 G6 [0 T& ]: \5 ~- Q& a
[root@streamcompute1 ~]# 9 C# z6 d  B( v! I6 H
 楼主| 发表于 2025-2-20 17:12:27 | 显示全部楼层
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>. B5 @( d. \& C3 b4 V  \( i
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>$ y4 A7 k" A+ @5 S
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>  u# ~& Y. K& Y' ~7 Q
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
, y, b1 Y$ X% r( Q4 K( X. y" IFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
4 q, q: Y; R. q* w, eFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
+ e3 V+ ?! _9 ^. n; O! ~Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>2 N7 [- b: G7 _& k$ E4 ^3 i9 s) S
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>3 ~; E% V# d6 J8 w7 a
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>4 U5 m  ]0 @! i8 ^3 R' ^# ?
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
5 R$ x! K7 f( s( M% i* L重启libvirtd服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 19:57 , Processed in 0.047212 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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