易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 24|回复: 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( y7 u6 M. r# v# }
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE
. T8 m& [( E0 K" W$ ]Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'." h" v$ B  z: e+ R5 W
Feb 20 10:33:02 streamcompute1 systemd[1]: Failed to start OpenStack Nova Compute Server.
' M1 N& K: R8 S# n# \8 M/ sFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Consumed 2.965s CPU time.* l7 Q! ^9 b3 y8 r; Q" M
+ o- h3 S0 W/ L- |$ z7 N1 Y
8 h' W7 y  A1 F+ w" f  C
$ x! z: P, o) |) [3 d

2 q7 H6 O* K1 o' v- }5 \[root@streamcompute1 ~]# vim /etc/nova/nova.conf, O  z* J% o7 [. ?9 K
[root@streamcompute1 ~]# systemctl restart openstack-nova-compute.service ) K) x5 m9 f# z  ^0 v+ P
Job for openstack-nova-compute.service failed because the control process exited with error code.7 @& f" I4 z  ]5 i9 `
See "systemctl status openstack-nova-compute.service" and "journalctl -xeu op
$ A$ f" H8 W! c, \* G; A, E# z+ M2 L' C8 `; F' C6 C7 M

( K6 j0 `* w) n9 g- ~后来发先是因为没配置default参数。
) @4 t" D7 ^% p2 G: ~) Z9 j4 M在/etc/nova/nova.conf 中添加参数* p* [2 _; [: a0 k

3 {9 x- C- E  ?" \$ ]rootwrap_config=/etc/nova/rootwrap.conf5 ~9 E3 @# |& g, _8 V4 a! K
compute_driver=libvirt.LibvirtDriver* k% L8 i" x0 q1 f9 C2 G0 s
$ a: R% W2 M7 \
' G: |) o1 \; P+ X: R

  J) j+ s; J9 ~+ T7 V4 O- g$ j加上参数之后,重启不再报错,问题解决;
) |! {: O3 G: R+ n0 q& s" A$ V4 Q! V
1 Z$ _* ]7 u6 n0 w- p. [( z, i( c1 T! Z' |
[root@streamcompute1 ~]# nova-compute --config-dir=/etc/nova/nova.conf
( H: B# E" p+ X& r' v3 ]3 |5 n& p& I( q! t0 r/ s1 i
[root@streamcompute1 log]# systemctl restart openstack-nova-compute.service
% h* G! x- n2 u* n' ][root@streamcompute1 log]# : q$ p+ t8 M8 q6 W" `

5 M& K. ~% }- A8 v. n$ i; j' [/ K" l3 H) M* Y- ?- H) j4 O

$ j# `2 E+ X) ^  N7 u1 }[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
' h4 _) q( x, o, M% o● openstack-nova-compute.service - OpenStack Nova Compute Server
$ e. D% X7 G& s6 y; t0 J+ w     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)8 T6 l8 {9 W  l+ a
     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 7min ago7 g9 I) y4 v+ _
   Main PID: 10940 (nova-compute)
* G! R2 i" R' K, }$ l* p6 W+ {) m) Z      Tasks: 22 (limit: 100203)8 D6 |7 t% {  \- Y. m9 w2 I
     Memory: 125.1M- c. R# I7 `5 v5 R! C" j  S
        CPU: 3.881s9 J6 K" Q0 G2 g5 b) b9 U. K
     CGroup: /system.slice/openstack-nova-compute.service
, Q1 c5 e( b) H& C& e) l; M6 m
0 k- v; \* c3 h2 O9 \( |( z/ R0 _5 b
5 S6 w/ J* o( v+ u( q

% D* ]; C2 y: f+ L8 i3 c
 楼主| 发表于 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:$ j- Z5 F, M) x, m
' p7 H( x! c; Y8 G' A
ERROR nova.virt.driver [req-00c7fc03-5657-45ab-b656-e24002e6d52d - - - - -] Compute driver option required, but not specified% d1 Z# ~3 t4 z1 c6 _0 x

$ c$ x4 c/ c3 D1 Q& ISo, the driver has to set as well on [DEFAULT]:
' |0 |' k0 P/ L. dcompute_driver=libvirt.LibvirtDriver
 楼主| 发表于 2025-2-20 17:07:36 | 显示全部楼层
[root@streamcontroller ~]# nova service-list" K( v7 ~' g6 ?# S7 G+ {+ m
nova CLI is deprecated and will be removed in a future release9 K. M: P0 S' _
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+1 Z1 P5 k# A$ U" Z9 r, p: I
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |) e' T. ^% S# y+ I. S- F8 J
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+" ]5 E' J( J- t: N3 Y  F. C* b
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
1 G( U; H: y( I| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
& s* m1 o! m, r5 L| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:06:56.000000 | -                                   | False       |" t( q6 ]; Q; Y
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |" U( _2 }( [1 }! e1 H7 C. a
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+  a3 u+ k, {' ~/ \; t
[root@streamcontroller ~]# nova service-list  v! H1 N3 e' R
nova CLI is deprecated and will be removed in a future release( ?# _8 {7 N3 X: d8 y2 A1 Z
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+. R$ ?, r1 I9 R" i, u
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |
; O4 c9 b( n; f+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
. L0 b4 [( a/ @# A. Y& C( f5 t| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |0 a: \" |: l: L& Q$ W4 [
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |# Q# N7 e) E1 E, f! b
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:07:06.000000 | -                                   | False       |" F5 R% x0 |9 B% p, ?  `
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |
! h) x& }% J) K* f" q8 |+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
& R: \, [* l1 {) B6 ~3 G: N[root@streamcontroller ~]# nova service-list/ t4 m5 D7 k  r- m$ C
nova CLI is deprecated and will be removed in a future release7 w8 _! @, l' a
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+$ ?( w6 w" A! }! C  d0 a
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |1 k7 M4 ~" X7 u5 [6 r. Q2 |
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+2 i8 |6 [( z$ D0 Z3 l
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
2 f- n6 S* I1 r- y| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
+ ^* Q1 D# b7 F, P1 k) H3 ~6 j% e| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:16.000000 | -               | False       |# }7 _) T+ V; C7 }
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |
9 J3 x4 ~; b6 t2 q5 ?+ f8 `+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+7 g* {7 D: [  `
[root@streamcontroller ~]# nova service-list
- p& ^" |* c7 J6 ]! h8 ^6 }nova CLI is deprecated and will be removed in a future release
3 j% U4 N; _$ c8 `2 N+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
" Q" R# }/ f! O9 {7 t/ E4 r" m$ e| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |% C. {* ]7 K6 a) V
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+$ j* `3 f( e$ ~& G7 \" @
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |6 e& h0 ]( L$ K9 ]0 ~4 q& C* [/ }3 [3 I
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
2 \+ d3 c: @7 o/ _| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:26.000000 | -               | False       |8 C7 ^+ n" I9 o- R
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |
+ J7 Y% l3 g" r1 @9 i7 ^/ ~* X+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
- m( K% T/ S/ O; W# p+ J/ ^
 楼主| 发表于 2025-2-20 17:07:52 | 显示全部楼层
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
4 N  T" a# x7 k2 R/ W● openstack-nova-compute.service - OpenStack Nova Compute Server
$ r4 {4 _/ j3 n     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
0 t  x! H/ V8 X2 ]7 v- ?' y2 h     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 5h 57min ago# D3 o, Y) n5 Y3 b
   Main PID: 10940 (nova-compute)
; i6 W. P3 A9 f( q! S) J! x      Tasks: 22 (limit: 100203)  {5 l0 H9 a7 o
     Memory: 130.1M; i! |! p% M4 A- q
        CPU: 45.176s
* u4 q, w7 U9 V8 u4 \     CGroup: /system.slice/openstack-nova-compute.service* T. d$ \+ v" D$ C) e- H
             └─10940 /usr/bin/python3 -s /usr/bin/nova-compute' d' F  N' k/ t& |( S/ I- R! ~

" {$ ]4 k5 }1 mFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
) q% h- ~5 g5 P1 ]2 b3 }" ~& iFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>! {  q$ o+ ]+ ?) h7 K
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager
2 U4 ^. h3 e& ^$ Z- gFeb 20 17:04:17 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:17.873 10940 DEBUG oslo_service.periodi>: V# q: r0 m3 z; @4 t
Feb 20 17:04:21 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:21.852 10940 DEBUG oslo_service.periodi>
& M: a! ~9 |: ^5 Q7 ~3 T% p1 j- WFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.866 10940 DEBUG oslo_service.periodi>
4 l5 }1 x0 H- R6 M7 fFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>( r4 p, e( e8 L( {* M& |
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>' s4 c& u9 u: k6 h' ]
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.884 10940 DEBUG nova.compute.manager>
7 `5 H; o$ ^) }7 d- JFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.885 10940 DEBUG oslo_service.periodi>
" G1 g! W: e/ b8 R+ Q& f[root@streamcompute1 ~]# % I+ A' z% n& e9 P) w# A4 h
[root@streamcompute1 ~]# 0 i4 @- x8 ^7 p& A# }  ]
 楼主| 发表于 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>
+ s/ |0 ]- u( p" rFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>1 X- R) }" ]& O  ~  H! }: ~: w. }
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
7 w6 r7 Y* I3 b1 L7 q  T" MFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
& }9 a+ d7 {) b5 i( {. T) ZFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>2 i& F+ o3 Z8 T9 ^' y. E' X+ Y
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
% h7 z; j8 B7 c3 W* K  |Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>+ a2 n* v) I, E! c
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr># g1 x8 U. Y: H+ ^
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>7 O6 E9 [$ `4 f4 B2 a9 Q1 I% ~
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
# \" B+ B( p* q2 l6 a4 B重启libvirtd服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 13:40 , Processed in 0.046675 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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