找回密码
 注册
查看: 25|回复: 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[00m5 E( b* w8 Y- ^* i# [6 W
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE
3 g& r5 o9 h( c% G5 Y: ?" tFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'.& t: V: x* j' G
Feb 20 10:33:02 streamcompute1 systemd[1]: Failed to start OpenStack Nova Compute Server.0 [# C8 C- e# d& f8 N2 q% e, `1 A
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Consumed 2.965s CPU time.
' r4 H# m3 J* W* e: j
3 }" `9 N: j1 ]4 e
4 \% E+ F+ ]' m# x$ N+ w; V$ n% R  i- b- S7 }# N$ x( d

( M* L, T7 S9 T5 @2 I: W[root@streamcompute1 ~]# vim /etc/nova/nova.conf
( M( w2 _- I& H. S8 l+ }, m[root@streamcompute1 ~]# systemctl restart openstack-nova-compute.service
* w# x5 j" S1 yJob for openstack-nova-compute.service failed because the control process exited with error code.
- j4 {+ P5 i3 b" D! pSee "systemctl status openstack-nova-compute.service" and "journalctl -xeu op
6 @) g# ]" c2 u0 B( Z  a2 V: X2 I% k, v2 {& ~  v+ _

% T' I9 j0 n. D0 }( |# [  |5 x后来发先是因为没配置default参数。/ r9 |. k/ m  h8 V+ E* w, C
在/etc/nova/nova.conf 中添加参数
! y( c6 T* x. F! r2 I; u: a( @4 H5 N% Y/ X! `+ Z3 |
rootwrap_config=/etc/nova/rootwrap.conf
* O+ U9 P4 [8 v% k, F" r1 ]' Ccompute_driver=libvirt.LibvirtDriver
4 g+ {0 E* f4 B- d: U: C4 E7 _+ o3 B
& C4 `; h! e  W  V
, O# S6 c! f/ p1 R' w4 Y/ X! r7 x. x
加上参数之后,重启不再报错,问题解决;
. N. P. a3 f4 j) I, E) {
3 d. }, @! I- w. A
. P) K/ ~  \! S/ v[root@streamcompute1 ~]# nova-compute --config-dir=/etc/nova/nova.conf 2 N: Y2 N, k3 {8 u6 U4 w

1 |# w$ i! x3 y$ T, B& d[root@streamcompute1 log]# systemctl restart openstack-nova-compute.service - F# s2 s7 d3 J9 ]
[root@streamcompute1 log]# 7 g/ W5 k9 R4 |# Y! c& ?, N; N

6 O5 v) D# f' }) n9 G( g. E7 G# M$ `  U  _1 I; N6 P

/ K7 p4 N- L8 \3 R1 c[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service : ?4 ^! V2 d! U
● openstack-nova-compute.service - OpenStack Nova Compute Server0 _; n& Q" m  j7 p3 N! T
     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)4 J3 C: \$ a3 |( A0 R" s2 L
     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 7min ago
: r- s  k4 S8 A2 R   Main PID: 10940 (nova-compute)8 m& d' z$ _) X! v  `7 {4 L0 l
      Tasks: 22 (limit: 100203)/ }5 d  e; b" m1 p# P
     Memory: 125.1M8 g/ \: p. \* h- A- L; j9 R
        CPU: 3.881s4 H' r9 H0 l! M& G  a; d/ L
     CGroup: /system.slice/openstack-nova-compute.service, b: ~, S/ u: u5 _: {- b( R

3 Y$ h2 D6 A- B' h; J( z0 L' L1 C' V" N. [: \( g6 \- A; C
: B6 O6 k- S' Q4 {4 ]
- y, Z3 X# z+ x8 O

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:. i3 y4 q3 u% J  T  Q/ V

: l5 A6 L1 D! j0 K0 fERROR nova.virt.driver [req-00c7fc03-5657-45ab-b656-e24002e6d52d - - - - -] Compute driver option required, but not specified6 i, l6 P1 `5 I: O( {

+ J( O7 I0 E5 p, c: f& xSo, the driver has to set as well on [DEFAULT]:: H0 ?! ?/ J1 |- W' E# R
compute_driver=libvirt.LibvirtDriver

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-2-20 17:07:36 | 显示全部楼层
[root@streamcontroller ~]# nova service-list
, |. [' b/ B" b& cnova CLI is deprecated and will be removed in a future release* z2 o6 }: K' p+ |  z& S! R6 j" Q0 |
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+* B$ d+ E7 P9 m
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |
/ k# {! k$ e" k6 l4 e' Y+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
' T$ h; ^/ y$ F8 f" J4 I| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |/ m; M- f' f7 P& Z# {" w5 E% D
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
' }5 C3 V" r+ u/ C. f- g| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:06:56.000000 | -                                   | False       |
1 o7 j& @, {3 P( 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       |/ w4 r* G1 S. {" u) P' O4 Y
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
6 p% i* F1 M. t[root@streamcontroller ~]# nova service-list
7 m9 e* Z$ E6 @& n- _# H* anova CLI is deprecated and will be removed in a future release
+ S) `9 Y- m% \; R+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
8 q1 ?0 j7 @& k5 k9 S' D- S: || Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |3 [! K0 ]# J; t. L, }3 E
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------++ M0 h  j( o& N' B  X$ r, r' k4 d
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |% C3 x# K: d8 S$ n+ k9 n
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |+ v6 v  \3 q$ x0 q0 e
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:07:06.000000 | -                                   | False       |5 I0 B& R$ u% V
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |
. T& v  Q4 ]3 R9 ?% L: x8 w+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+" l' f4 e' c. }9 \
[root@streamcontroller ~]# nova service-list
4 U* q. }+ S/ b2 O4 enova CLI is deprecated and will be removed in a future release
0 w; E3 ]! ]5 x4 `) C) O+ G9 y! G+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------++ s+ t- b+ s, w  A8 d
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
/ s' ^; |- t2 v# a$ B( `+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
! [4 `+ n3 b& r9 K& M2 V  z' ?. w4 L| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |' ~: M0 L0 S0 ?  m9 r& {
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |  Z8 v9 t8 n6 m' n7 {
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:16.000000 | -               | False       |9 X% j, X0 I/ \4 q+ Q! ^
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |
! D+ O6 g4 p; s# @4 b: _( p+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+; k. |. x+ F/ Z
[root@streamcontroller ~]# nova service-list: w# ~" `6 M( `% V# b8 B) u9 k
nova CLI is deprecated and will be removed in a future release
0 U5 W6 D% K3 O$ _+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
4 g2 G0 B! |4 D2 x4 X& D. x| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
; b% C. |8 G9 o) X! l4 y0 N" f: d+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
* G/ J" b8 h  h+ z7 U& ?7 f& G( s| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
8 G4 l2 P+ s/ M/ w5 e+ ]% D| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
& z, O9 {" m  B' Z! F3 F| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:26.000000 | -               | False       |4 K6 m: U+ c' B
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |& F! y  B) b, L* z8 D* E
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+4 M" ~; K# H* p: [9 `# i

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-2-20 17:07:52 | 显示全部楼层
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
8 w+ A: J3 C( R- Y4 r* w7 {  y$ y● openstack-nova-compute.service - OpenStack Nova Compute Server+ A7 e% W+ P7 _7 F
     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled); z/ l( B' U4 I/ ^6 q- _! ~' i6 b8 S* N
     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 5h 57min ago
+ A, A) i2 k  A) }: Q   Main PID: 10940 (nova-compute)
4 P/ Y& ~) `7 s* \      Tasks: 22 (limit: 100203)( F1 c/ |: i6 D0 S; P5 H
     Memory: 130.1M
8 s4 S) ?5 m6 j" x        CPU: 45.176s$ j1 y' ~0 y: D7 o5 X' \
     CGroup: /system.slice/openstack-nova-compute.service
! M% t) p6 h+ ]             └─10940 /usr/bin/python3 -s /usr/bin/nova-compute/ s8 b" C9 C0 Q. b5 C2 l
, Y0 \1 }/ D$ i# b0 f
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
2 h3 Z$ {; k5 O) v4 g9 {Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>- s4 F& y: e, Y9 o; y8 H
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager ' u5 C3 i$ D- X
Feb 20 17:04:17 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:17.873 10940 DEBUG oslo_service.periodi>
, s0 I9 q( G' }$ w) G, C) [Feb 20 17:04:21 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:21.852 10940 DEBUG oslo_service.periodi>
% v0 c. }+ D. x& E7 S& O+ ~Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.866 10940 DEBUG oslo_service.periodi>
! N. X5 G0 _% Z% _Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>
! W4 o, u$ y2 E$ f5 n8 tFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>
! Q8 Q3 E) Z2 }9 K- c$ KFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.884 10940 DEBUG nova.compute.manager>
3 D- ~9 C( }; y3 U7 o% L4 gFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.885 10940 DEBUG oslo_service.periodi>
9 b& z& C9 n7 A7 v% e[root@streamcompute1 ~]# 0 r4 }& l- x5 |; r
[root@streamcompute1 ~]# ) `0 @9 l, M* A' ^7 x

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>
) C; E* }' x0 B0 v" XFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
# ~: t  Q* |5 f/ }Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>8 G7 F4 ^8 B" x& I8 I
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
; K8 k! M7 i6 h/ e" D! V/ a6 WFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
% T) U: x5 Z" B5 U; n$ XFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
: ~, F5 C2 A2 JFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
0 ]4 [5 F3 Q; l8 D+ G) C0 uFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>' H/ l7 B( h( f! t/ y
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
3 C' I3 i# Y; Y" J7 `Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
6 A9 ~* F( X, U1 c+ X1 u重启libvirtd服务。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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