易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 19|回复: 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
4 C* T1 Q- b9 ]& _: qFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE
5 v& B+ a# v* v! C& a* B- z; Q* W" bFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'.
! m: ~6 |: ?6 V- D8 g% o7 }+ |" JFeb 20 10:33:02 streamcompute1 systemd[1]: Failed to start OpenStack Nova Compute Server.
. D* p1 K# |# _6 B+ U- F# yFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Consumed 2.965s CPU time.# Q* y! A+ _/ x$ g0 |
5 r/ O% G. V% [. p, V
! a( |* c  ~' G
2 @( P1 z- s, Y7 n' I# {$ r& Y
# m& N& ?% Q7 W5 J8 D
[root@streamcompute1 ~]# vim /etc/nova/nova.conf: u+ S% @: n" i6 T" `2 r2 \
[root@streamcompute1 ~]# systemctl restart openstack-nova-compute.service 7 o0 i% ~+ k* `
Job for openstack-nova-compute.service failed because the control process exited with error code.( o: d$ n' J3 D$ b8 }1 ^1 J" u" {
See "systemctl status openstack-nova-compute.service" and "journalctl -xeu op
6 ^7 E( S1 @/ ]  b7 w1 Q
5 O% N9 y' {1 u) o& B7 M5 v# ?. C8 ^/ a
后来发先是因为没配置default参数。
( E, ^" Z, g+ ^+ K& o在/etc/nova/nova.conf 中添加参数; J* o7 o1 z7 L# G' ^5 N
# {$ h( O. G: T7 o
rootwrap_config=/etc/nova/rootwrap.conf
9 ]7 r, O1 ]+ I9 G0 Ecompute_driver=libvirt.LibvirtDriver
: i8 ]* K' [  \; O
; l  F  \9 \' n3 T! u7 a" B* y1 B+ D- i( a: ]$ g

. s/ N6 t6 p" f; i3 e1 K加上参数之后,重启不再报错,问题解决;+ k( j; R6 z. w5 M: ?( T2 p* K
2 P% s4 a* |4 H* _6 u  z0 f2 p

5 p: q% ~; V9 {8 v9 h# a[root@streamcompute1 ~]# nova-compute --config-dir=/etc/nova/nova.conf 2 s! n- ^" Z) w( \5 c. X

3 s" U/ g1 i# {# T! F( B[root@streamcompute1 log]# systemctl restart openstack-nova-compute.service
) s+ D9 b+ V, y+ _: ]0 P4 z+ M8 V[root@streamcompute1 log]#
- [# v- R( @' [# ]0 b: C3 i* V1 f/ `1 W- N, p

8 c2 A0 f& x" m$ d6 V
# b( }! ^. X: T6 e8 r[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service 8 Q$ ^6 J. T$ N
● openstack-nova-compute.service - OpenStack Nova Compute Server
% i/ f1 O1 z4 x$ q, G! u     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
/ m5 B7 |" [. W( T! A     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 7min ago. S& Z  q! ^  F' c$ \8 u' I
   Main PID: 10940 (nova-compute)" [+ M8 j' O4 I* u. r
      Tasks: 22 (limit: 100203)
& ], r* W' @$ D$ @     Memory: 125.1M
. [! \5 }5 E& d8 N        CPU: 3.881s! f4 f8 L6 _2 A0 s* A' c! G
     CGroup: /system.slice/openstack-nova-compute.service
) I# T# }- z( i9 T* a! x& c: {* e/ n9 v  p& {" o
* T2 u: E6 v$ h( c1 S1 \& r1 n, o5 q4 U

4 Z: y4 a, t' m* m+ l: C$ C; w9 F0 q/ ?" B' U: o4 h0 N9 a
 楼主| 发表于 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:
, B* y) I0 a+ E. F1 L# {) K& S; M1 }9 D/ P
ERROR nova.virt.driver [req-00c7fc03-5657-45ab-b656-e24002e6d52d - - - - -] Compute driver option required, but not specified6 `/ I5 @) I: ^+ X* C- F

% J' B. |' E0 D& a/ g* ^* ASo, the driver has to set as well on [DEFAULT]:
* \0 _: i5 G1 {' Q) tcompute_driver=libvirt.LibvirtDriver
 楼主| 发表于 2025-2-20 17:07:36 | 显示全部楼层
[root@streamcontroller ~]# nova service-list
  u2 ~2 c/ `$ v" R) x% t+ _% J/ v1 d8 rnova CLI is deprecated and will be removed in a future release, O9 Y- o6 L: o# E) a
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+; G7 M0 X$ i' q- X+ L5 y, i8 b
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |
) M$ v" j9 O- }/ m* w+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
  Y8 Q8 Q/ ]' \8 _0 W. M* R  T| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
/ o1 ~+ R/ T5 W' S3 \& B| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |# }! x3 x5 W7 _4 j( \' Y) X8 N: I
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:06:56.000000 | -                                   | False       |
3 l4 [$ X4 f+ O7 l' T4 O0 D& Z; J% d| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |7 K0 |) m0 b7 }) n0 b
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
4 @, N) y; o: E, Q1 Y+ j[root@streamcontroller ~]# nova service-list  G; q" ?# y6 n
nova CLI is deprecated and will be removed in a future release; K9 [3 z8 e  F! K  B0 L
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
0 e& y+ Q. v% L( w$ u/ F| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |
7 y3 k* q7 ~' C7 g) y& L% E+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
/ S  x6 U$ z& t) N| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |, c# r& s( ~# f# Y6 }
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |* U+ Y: v9 i+ e+ F. U7 `
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:07:06.000000 | -                                   | False       |% S" ?/ g. v7 k" S; }) P2 u" _+ _
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |7 V6 `) z; u( q$ ?) L" A: t! d
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
% O3 r: E% S& X( v[root@streamcontroller ~]# nova service-list
0 z$ @. q& J& h2 }; h" Wnova CLI is deprecated and will be removed in a future release
6 }  i$ N6 b4 T. x7 ~, g# j3 C9 l+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
5 t9 o& e! c9 n| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |: b9 |) Q) B9 r1 w
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
& [! I- |' y! \1 h4 @  y* ~" r) ]/ u| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
: f. D9 ], V5 f0 I, G| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |9 ~: A7 s! L4 I! P! N
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:16.000000 | -               | False       |
- C) c) f) C1 a' {2 l. b| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |+ w4 S9 T6 H8 Q4 z& L* ^4 O
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+9 Q( `9 i9 X, t7 x$ w8 `: B4 _
[root@streamcontroller ~]# nova service-list
# h6 ?& F  X/ ~8 qnova CLI is deprecated and will be removed in a future release+ E( p5 O0 Q3 [  U# d* u1 R
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+6 r! H" r8 C  q5 |6 U! o
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |! r9 d3 y6 w4 p
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
/ ?& S4 z; n4 u- N( l7 h| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |6 \; \: I! g% I1 X4 M( t- i5 D0 C
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
' o& B1 W. ]' n; [' {2 \- n| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:26.000000 | -               | False       |7 Z7 ]$ `; v( O  l6 _) q6 c0 P* J
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |
/ i! V4 [7 y# [$ F/ {+ A+ L1 K% V+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
; N" d1 ^' Q1 ]# L. a$ n
 楼主| 发表于 2025-2-20 17:07:52 | 显示全部楼层
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
+ N$ k3 }. b9 x● openstack-nova-compute.service - OpenStack Nova Compute Server2 T$ V( b, d0 ~
     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)6 I* z, B3 O. }# j
     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 5h 57min ago
9 F& d9 ^& J; v$ \% s, e3 [   Main PID: 10940 (nova-compute): J2 d; H0 g' h. k: Q0 q
      Tasks: 22 (limit: 100203)$ x% m5 E% W; I
     Memory: 130.1M; q% \/ K; U8 W* e7 N3 [
        CPU: 45.176s7 G% ~. c$ H. }( D& ]: }# ?
     CGroup: /system.slice/openstack-nova-compute.service
: U7 D, B6 i1 e$ n( j) V             └─10940 /usr/bin/python3 -s /usr/bin/nova-compute* G: G* v+ f7 y
1 B9 A' ?: b8 N. }) a
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
' m# H4 v7 q' _  u" j0 u# d7 EFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>6 ?% k+ o( F0 C& q7 J: {( @+ h6 v
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager
. N7 f3 V; I2 U1 tFeb 20 17:04:17 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:17.873 10940 DEBUG oslo_service.periodi>9 P( G1 v: M  j  a  m. K
Feb 20 17:04:21 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:21.852 10940 DEBUG oslo_service.periodi>8 [  O4 R0 n2 x# }1 E+ ~9 z
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.866 10940 DEBUG oslo_service.periodi>& i$ {; W8 L( z6 R- n
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>
" Y: O6 O4 u' U, v4 b, pFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>/ j7 Z6 _7 }: ]$ s1 `
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.884 10940 DEBUG nova.compute.manager>; Y; t4 D8 g6 Y. r6 i# Q0 {
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.885 10940 DEBUG oslo_service.periodi>! d( p5 a9 |8 N( V+ Z7 e
[root@streamcompute1 ~]#
0 ~& @6 q  U/ O8 G; t9 x9 ~3 h[root@streamcompute1 ~]#
0 K- `6 N+ Z) B! }3 b( ?( y
 楼主| 发表于 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>! o; F4 l% w9 }" H; V4 H( o
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
2 L8 t0 {  m( M% Y- YFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr># \5 x# m1 H6 Q7 r) c
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
/ `* ^2 l8 }7 F: a% vFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
- g! n7 L' W  s& W) m# A& zFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
; l$ N( |1 R7 I8 V; s2 sFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
3 j* X' v( s. H( |9 }2 gFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>" s5 ~" l6 T% }
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
, \$ g( x0 L; r# b+ D# o& D% }; SFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>+ ]- Q9 ~$ v/ h$ K8 G4 z
重启libvirtd服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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