找回密码
 注册
查看: 28|回复: 4

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2025-2-20 11:15:36 | 显示全部楼层 |阅读模式
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  x% ]3 O! i7 J4 \
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE
) J9 |4 n: Z2 R" |% o* W( TFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'.
1 A5 ~7 T1 X) ]6 o- W3 }9 }Feb 20 10:33:02 streamcompute1 systemd[1]: Failed to start OpenStack Nova Compute Server.
: X' E, g. E! i7 B% VFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Consumed 2.965s CPU time.2 q% c0 ?$ }- N$ P9 K
, i# \9 U0 ]' H( [0 K  r
3 v$ i6 s5 K" F8 [# ^; E4 ^/ ~' ^

. c0 T! Z4 m0 o7 R% M8 C3 E  S4 [1 w6 i* P
[root@streamcompute1 ~]# vim /etc/nova/nova.conf0 z& k' L/ g4 ]* U' m: P
[root@streamcompute1 ~]# systemctl restart openstack-nova-compute.service 5 n6 Y# p4 c$ O4 r
Job for openstack-nova-compute.service failed because the control process exited with error code.
4 O, p2 I6 s% B6 OSee "systemctl status openstack-nova-compute.service" and "journalctl -xeu op
# a: P7 C3 K$ M" d8 t  M8 K
! L% r6 O2 N6 s, b7 g* K3 A$ E7 a9 }8 J8 R
后来发先是因为没配置default参数。# ^" m0 f- C9 }0 h
在/etc/nova/nova.conf 中添加参数
" P; i. ?5 O- Y4 L+ e8 I4 i1 w8 R* l  B) M
rootwrap_config=/etc/nova/rootwrap.conf
; }+ O+ |/ |# Z, D& u, y2 _0 `compute_driver=libvirt.LibvirtDriver5 G1 h9 i& ~3 ]% O( Q3 ]. \# P0 ^

  C# Y; a5 S8 |* g0 I7 z- J$ O: r0 r' I+ r
* f6 b5 [$ L4 C6 ^
加上参数之后,重启不再报错,问题解决;
" L/ e6 z4 u9 N1 k8 U. O  J+ M* p" F7 w# f8 F

* D4 U# p; _$ K4 u[root@streamcompute1 ~]# nova-compute --config-dir=/etc/nova/nova.conf / G6 {7 H/ U4 i2 A

' {0 C8 ~$ ]  j  ^[root@streamcompute1 log]# systemctl restart openstack-nova-compute.service
: J+ ~/ k8 p' `. r' c[root@streamcompute1 log]#
- v. v) W9 ?$ j2 o4 d* {  C( m* T! _5 z2 O; _$ W

5 f1 |' t( {' I1 w1 U. u) R) L7 I6 S& Y9 C5 b3 H0 f
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
7 j3 C0 H) Q6 W4 h9 W● openstack-nova-compute.service - OpenStack Nova Compute Server& j1 @. w9 z0 I$ ]- a+ N( l" |
     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
  |  u0 Q3 \/ a& s* |( E     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 7min ago
) P; O. G0 ?) h+ b! m7 |) J   Main PID: 10940 (nova-compute)
+ t/ ]6 Q& H) G4 q      Tasks: 22 (limit: 100203)
# W! N" n, N) ^1 P' u     Memory: 125.1M
+ g+ p; x) U. z  G        CPU: 3.881s
( `0 \3 u, f- o! @     CGroup: /system.slice/openstack-nova-compute.service
) m/ U$ R9 r$ m9 E9 }
: ]: ?  x7 l* O* X& P: {: G' [
+ o8 N+ L5 z$ o! q3 j0 L; S; a, }1 {6 k) G! e

& n( a2 _8 D) X2 i9 e: T+ z) J

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 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:
- I4 n" B3 [% S; t4 d  J' o
0 {8 S+ K5 }3 h  R5 R, mERROR nova.virt.driver [req-00c7fc03-5657-45ab-b656-e24002e6d52d - - - - -] Compute driver option required, but not specified$ @  k, O- x6 ^5 u1 J% e) p$ W

3 P7 X* j) O/ w0 ZSo, the driver has to set as well on [DEFAULT]:, i1 i7 w0 p# _# M# c
compute_driver=libvirt.LibvirtDriver

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-2-20 17:07:36 | 显示全部楼层
[root@streamcontroller ~]# nova service-list
: P, }# H- W  @# r3 A3 Onova CLI is deprecated and will be removed in a future release/ L" m% K0 G+ P2 X( v9 H; `8 f
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+4 e- [4 [3 R; Q7 f. `
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |9 I! G  j0 }" Q
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+0 p# G+ l2 U4 t! O7 \. N+ ]8 l
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
: d& [9 t6 o  d- j' o| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
6 O+ g9 k; B9 y| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:06:56.000000 | -                                   | False       |5 Y7 l3 k+ v4 ?" g9 m! o
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |
+ |# b" r  P5 q# ~7 C, Q& h- a+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+$ Z' U0 `# s6 i. ]
[root@streamcontroller ~]# nova service-list
7 r2 l% V7 h& ~3 ~6 K* Fnova CLI is deprecated and will be removed in a future release, ^4 @1 v; o6 D9 h! V! m
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+  M3 b# [$ g# k# l5 P4 x* J
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |
+ K: Q% r9 P) {" K+ z. S- Z. c+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+) t% b+ |/ Y1 S; W' V
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
8 m' l* G- c( k$ X) q| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
1 c' v0 A) h8 a* w! B: g| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:07:06.000000 | -                                   | False       |
3 l3 X/ O( I* y) K$ V$ 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       |
4 a. N% O9 s8 l5 @% I  r8 `+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+. |1 J$ s/ Z5 R
[root@streamcontroller ~]# nova service-list
. ?" D) ^0 V2 Y9 bnova CLI is deprecated and will be removed in a future release+ ^1 C8 K7 O* _( v8 o4 q  a
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+& }9 ^: R8 v: u; n
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |7 \; r! D" n% Y, e8 W/ j' q( |# t
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+$ H: {1 E/ |/ P
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
0 s$ X8 C( o1 K7 ?| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
+ O7 ?3 X" |2 }5 o6 R| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:16.000000 | -               | False       |
4 T7 d) Q, a& [0 R4 g| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |
9 ^# n$ m% H8 `* w+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+3 `0 M8 B6 F- |! z8 Q8 l0 |; {
[root@streamcontroller ~]# nova service-list
1 i" Z. Y5 t$ F; \  x! ?+ o8 f: F5 R* snova CLI is deprecated and will be removed in a future release0 ~, M$ e! n. Q' t& N0 f6 T: y* A" t
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------++ s9 Q2 D3 J& X$ q8 S
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |6 S9 ~* P% b, k" }7 ~+ z; ^
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+% d7 X( m5 X  y( V( N
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
/ ~! O3 l3 I  ], a' R| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
( S2 W. }; E2 k0 h7 n| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:26.000000 | -               | False       |
) O$ K0 ~! e) O4 N% V6 A) a| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |
9 Q9 j- v' q( G+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
) `: k9 N! N! w6 M- T8 u

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-2-20 17:07:52 | 显示全部楼层
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service " J4 q$ e0 ~: v; x8 ]$ I+ R2 `9 H, p
● openstack-nova-compute.service - OpenStack Nova Compute Server. M" f- i) b1 S0 m! {) C2 U
     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
/ V5 G% M3 ~4 G* g( n  x" n     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 5h 57min ago  u  u! g5 j8 p. k' e; I% M- h0 A
   Main PID: 10940 (nova-compute)
" `5 |1 t8 I; v* V      Tasks: 22 (limit: 100203)
0 r5 }- H* s% t8 U  P     Memory: 130.1M! V! |8 Y" v' r. O# |% h
        CPU: 45.176s
9 T. t- P  F0 p/ k& q$ H' R     CGroup: /system.slice/openstack-nova-compute.service) g7 i& p( B) _
             └─10940 /usr/bin/python3 -s /usr/bin/nova-compute
- e0 L" C/ {7 m& q* m$ M" I
" \* L" s% M4 X3 C' ^7 IFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
) f1 r$ ~9 ?0 O3 c# r2 Z* }) eFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
! _0 v0 [4 V! eFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager 7 o2 d$ \( T+ [$ W. b  M, d! Q7 \
Feb 20 17:04:17 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:17.873 10940 DEBUG oslo_service.periodi>3 U( A% t4 K- H$ Q/ `( i2 o. e+ f" t
Feb 20 17:04:21 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:21.852 10940 DEBUG oslo_service.periodi>1 Y* a2 g9 m0 J, j* N! s, p; }. p! Q
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.866 10940 DEBUG oslo_service.periodi>
& C7 X& l4 j5 n  S! _! v5 yFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>, e5 a5 N+ L8 R& |9 i/ s
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>3 L! @; j  D7 V
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.884 10940 DEBUG nova.compute.manager>' q3 ^* L. w4 h/ w: T
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.885 10940 DEBUG oslo_service.periodi>
4 G0 I# X0 E6 g$ Q! @3 r6 e, W[root@streamcompute1 ~]#
) q$ y3 B, I$ F* }% H7 T0 e0 p& z/ s0 b[root@streamcompute1 ~]#
) N  Y& X, n" l) F2 X7 Q

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 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>
- `8 H) p; ^) F8 y- h0 l7 p9 kFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>( T6 l4 N( v! v  m; L' l  W& ~% D
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>" K4 }5 f; {( j4 `+ @* H" F. {
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
, `) x8 q* G" q1 xFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>, \8 K5 V6 a5 M" {- u% a
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>2 \2 Y7 r9 G- Z- S% |
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>9 B# ~" P9 s/ ~# `' }
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
! `+ v7 ~- |! z8 d) o* zFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>  x0 @! K% B) E% x" o' D/ Y! P6 l
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>; I5 q- @$ ^" \
重启libvirtd服务。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 04:22 , Processed in 0.019405 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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