找回密码
 注册
查看: 27|回复: 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" C" D8 k1 ?8 N
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE) O. z6 k- I; d- a
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'.6 u% f  u! e: Q4 k" H- S
Feb 20 10:33:02 streamcompute1 systemd[1]: Failed to start OpenStack Nova Compute Server.
6 @( p$ k$ s/ LFeb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Consumed 2.965s CPU time.
# |& ]- L. |" W. F; ?1 w8 X# U+ M
( G: w5 v) ]% i9 A  S+ |. I
2 L  |- U# ?- k6 t) A, j, d+ [, d% p5 r9 u! G0 e: e

7 b% J+ |9 U: E[root@streamcompute1 ~]# vim /etc/nova/nova.conf
- n1 n9 B( J' o9 v) ?* ]4 x[root@streamcompute1 ~]# systemctl restart openstack-nova-compute.service 4 Z; t( M7 N2 Z- h9 @) X& X
Job for openstack-nova-compute.service failed because the control process exited with error code.
8 A* L0 e; v# G% ]( b" USee "systemctl status openstack-nova-compute.service" and "journalctl -xeu op0 X9 L+ H& o: b  W) [

5 o' v3 \; k  b: w# p+ l) ^. d+ b  i8 \& D9 g% |) x) r
后来发先是因为没配置default参数。
( V% v0 ]- U6 r6 A# |1 v, c, I在/etc/nova/nova.conf 中添加参数1 G3 p$ c- A) D9 N
8 F1 m8 X% }* z" ~# _! a% O% T' {
rootwrap_config=/etc/nova/rootwrap.conf* E  q! [3 w- r/ D: z
compute_driver=libvirt.LibvirtDriver# u+ @  ?) A7 x' U" v$ b1 y! I
- w+ h& b9 M! \; i! x

! f& ?& M+ W; k2 S% q* R0 s  q. V% y) m, q% h' w& V0 N0 x
加上参数之后,重启不再报错,问题解决;
" {/ n" d% \) e$ C2 j% c  f: i/ {1 ~/ V

- b9 }2 k/ V. g% X, W6 M/ o[root@streamcompute1 ~]# nova-compute --config-dir=/etc/nova/nova.conf ' F& a2 G$ Q: B8 S
# E7 q! ^% {  w3 w1 y  k! R- G
[root@streamcompute1 log]# systemctl restart openstack-nova-compute.service # W" q. _% G6 Q. c) A7 ?( T! ^; s
[root@streamcompute1 log]#
4 ?: \7 g8 G" \! ?( c* |& |$ w" x( G6 }2 [! ]
, T; b1 J( U4 R# u
  ^7 F* h# [0 R( {6 j
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
- y% x1 t- T( b● openstack-nova-compute.service - OpenStack Nova Compute Server
, h8 [8 Q8 Z/ l5 K$ t; M     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
9 d- `& L, W, N+ ^2 e     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 7min ago
' V; D, Y! r9 ]8 H8 |" W   Main PID: 10940 (nova-compute)
' J3 f0 O5 X2 h; @; [; a      Tasks: 22 (limit: 100203)- t/ x; W! V' y; v: ?# [
     Memory: 125.1M) u* R' c* a: F  E7 R- c, }3 ?
        CPU: 3.881s
5 g4 i% m, d4 w8 V2 d& L: W- |5 V# s     CGroup: /system.slice/openstack-nova-compute.service/ ~( n! {( h% x2 }7 V+ X
0 d) g$ n, d. e" B8 M0 N: q/ z
) a' J$ b2 I2 k

, e) l  r# i. c$ [, ^! ]; Q
9 R% O4 X: q# {' ?$ X  s" G

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:
6 J2 ?( ~5 x, e) R2 u
! ~& S- W3 Q) Y# y, W) D3 E! [- J( QERROR nova.virt.driver [req-00c7fc03-5657-45ab-b656-e24002e6d52d - - - - -] Compute driver option required, but not specified9 X8 ?" ^0 P$ t
* L! k- ]  `- R9 |
So, the driver has to set as well on [DEFAULT]:
  }) J' i6 M( F, ^8 D9 [/ ncompute_driver=libvirt.LibvirtDriver

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-2-20 17:07:36 | 显示全部楼层
[root@streamcontroller ~]# nova service-list
8 {4 w2 n+ p+ c* i/ jnova CLI is deprecated and will be removed in a future release
/ m+ w) ]( u9 [+ d) h  @+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
( @8 F2 P) {' z( W4 D| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |# x  e" J! ^" g. G4 L! g# J6 N
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
/ I1 a* w: Q: i5 C! q: t* z| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |6 [' I4 g6 e. \; H" t; n! U
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |1 ~3 \1 ?) [8 i. E7 o
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:06:56.000000 | -                                   | False       |" K$ n. i3 e6 L; [( F
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |
8 k& L1 Z+ ?1 e+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
4 E9 b$ Q9 H% n+ z[root@streamcontroller ~]# nova service-list
7 C" Y) X1 J/ }$ Inova CLI is deprecated and will be removed in a future release
9 p7 z1 g2 \) \+ h6 d# D" D' _0 r+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
# Q$ h' y) a9 w9 y& |. W! J| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |! \' ?2 v, Q4 D* W' G
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
" e* B" o( X' H) {| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
; U& m8 r6 I' S. R| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |- Z* ?* t" A1 d$ H
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:07:06.000000 | -                                   | False       |, Q! Q0 Y! ^2 B0 ~# H) ?1 Z8 N
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |
& R! H% g& {7 w  q3 h' t9 M+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
5 @4 L$ }# d9 c/ l7 X: \' V. F9 Y[root@streamcontroller ~]# nova service-list0 j. |( h3 z3 |1 A/ }
nova CLI is deprecated and will be removed in a future release9 B* g. i6 w7 L( z
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+% d8 D7 C0 k$ Q. u. v6 J
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
- g4 y6 s1 N% Q# S/ n1 s. ^+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
2 O! {' T1 H3 {; f| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |' w8 ~) ?6 ~- G# z/ a  I3 ]. `1 O  n
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |$ y$ b; T# e* s1 b8 G* q: J
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:16.000000 | -               | False       |! W* E/ G4 s+ j; ~3 h7 S4 {
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |* ?% W. H+ Q2 ~  [5 Z
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
; o; A2 ^+ U' `[root@streamcontroller ~]# nova service-list: O" }" M6 S8 u0 X# [
nova CLI is deprecated and will be removed in a future release1 N7 H+ K8 j7 C/ g3 m/ a% w, x
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+8 t/ S7 T( D+ `5 b/ Z! x# y
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
* \' d9 V& k& x5 u( e3 N+ {  u! H+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+6 G) P+ e3 F4 Y
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |, u) e7 |. }0 D( Y# ]& c$ X& t+ }
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
: f& B( j1 Y  |4 h+ C3 l| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:26.000000 | -               | False       |
# B! p0 N! k1 X| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |
/ Q8 P- r! Z. V/ p5 W1 @! J" p+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
: o, O5 |4 h0 B8 z. o

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-2-20 17:07:52 | 显示全部楼层
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
6 b. \/ t- ^. M! J9 [$ O● openstack-nova-compute.service - OpenStack Nova Compute Server% p9 E  H1 r% M/ k0 J; |
     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
& G/ Q( j( E  a$ U5 Z     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 5h 57min ago
& I! l4 p  u  j! L2 w   Main PID: 10940 (nova-compute)
5 u7 U! U; B3 K" C2 v( H2 r7 U      Tasks: 22 (limit: 100203)# N0 O; ]5 r0 e1 z& B( G
     Memory: 130.1M* U2 `' |6 P2 S0 h6 a  H
        CPU: 45.176s
: ^& d: v  c' ?  n     CGroup: /system.slice/openstack-nova-compute.service; }0 Y7 q0 B$ D. C& p; V! h
             └─10940 /usr/bin/python3 -s /usr/bin/nova-compute5 }' ], W) f% A0 N9 H( f) J
  b0 H6 h" L$ u. _: z
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
0 c8 [3 z& @& {4 P2 LFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>* T- A2 u. p5 @3 D2 N
Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager
6 B3 c2 P0 y4 m, yFeb 20 17:04:17 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:17.873 10940 DEBUG oslo_service.periodi>
6 P* ~7 S6 g, IFeb 20 17:04:21 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:21.852 10940 DEBUG oslo_service.periodi>* P- Y1 U- G1 P+ ?4 f8 R
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.866 10940 DEBUG oslo_service.periodi>& x  P5 j$ f, h, H
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>
8 ~- y. R. m0 t1 @; w. }: X( v5 yFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>
$ d; t/ S) m; R5 N9 h$ f4 I8 ^Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.884 10940 DEBUG nova.compute.manager>
, Q9 Q: l. Q" a2 w9 RFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.885 10940 DEBUG oslo_service.periodi>" G6 I: w, q5 t7 u2 c
[root@streamcompute1 ~]#
7 g! M1 |# d! t5 W7 I0 `[root@streamcompute1 ~]# / N  W# o* e. e- ~+ K+ f: J+ r& T

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>2 c# X+ O8 R. @$ Z) g6 P+ B! j$ I
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
( U* C8 d" ^4 l7 y. M; jFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
. J% u$ n" ?7 \1 k$ _# m, Z' L4 ?0 BFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>! m% i1 w# \1 N
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>' s: J, f) F8 K
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
, G7 S3 |5 n" W: E5 ^Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>: ~. E* H5 E  t
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>* j! W5 v, x# C
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
& Y. f" Z. `# i$ [& L8 [Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>5 o* s9 j; a: g* W
重启libvirtd服务。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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