易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 25|回复: 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[00m1 ^0 @& r0 i9 l+ [
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Main process exited, code=exited, status=1/FAILURE' b( t8 a3 o6 X. [4 d& z4 a
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Failed with result 'exit-code'.
$ S# l" }3 e+ ^5 [  k- YFeb 20 10:33:02 streamcompute1 systemd[1]: Failed to start OpenStack Nova Compute Server.. Z. z' L0 y+ A2 `: S& n* {
Feb 20 10:33:02 streamcompute1 systemd[1]: openstack-nova-compute.service: Consumed 2.965s CPU time.9 ]1 d: b; ?% A
/ N) s8 a+ W7 W) J' Q& ^

- i6 B3 ^- x+ k9 G, r, v0 C' r3 t# _* X' V

4 t  I0 S7 i- V8 \$ f: n[root@streamcompute1 ~]# vim /etc/nova/nova.conf$ B9 \4 c7 e0 S% I1 g
[root@streamcompute1 ~]# systemctl restart openstack-nova-compute.service
- g+ I3 k" ]- ^" ?# lJob for openstack-nova-compute.service failed because the control process exited with error code.
. Z4 y. Q4 C. n/ r1 rSee "systemctl status openstack-nova-compute.service" and "journalctl -xeu op
% @8 f4 c; B5 r  R/ U' K6 C& l4 |6 [- l7 N, P# p

7 J( `0 C- M5 n2 l$ e后来发先是因为没配置default参数。
! Q" s0 u( f! Z# d5 [% o在/etc/nova/nova.conf 中添加参数  {- f( ~* N" d3 d

% C$ W2 O( ]8 E8 P8 a  xrootwrap_config=/etc/nova/rootwrap.conf! S7 v" @( Z0 T* i$ y
compute_driver=libvirt.LibvirtDriver: H$ e& s' y, G* Q- e* w

7 m7 h/ f3 M: Q. X" k* d8 Q  h4 a/ F# |* S
* m8 t( ^. Z+ \" I
加上参数之后,重启不再报错,问题解决;" D) S! T1 f8 @" x- p5 t

& {% @3 Z/ T5 {3 Y( |  S, m
) Q+ l$ R& @! i1 K* \: g[root@streamcompute1 ~]# nova-compute --config-dir=/etc/nova/nova.conf 7 y! L+ i8 b' `6 r

; ?0 {) z* R* l) n- [[root@streamcompute1 log]# systemctl restart openstack-nova-compute.service
6 R& q1 D- r' w8 R$ Z7 m[root@streamcompute1 log]#
3 M* r+ D' K1 a  z2 ?9 L4 t% J& J: x) m/ L6 \
) F7 B& M1 Y8 C4 K2 U
( g% M3 z! V" \3 G; p+ `
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service ; G! \5 E% O8 ^+ V4 ~. r
● openstack-nova-compute.service - OpenStack Nova Compute Server3 B9 H2 n& H! d- |* g
     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
- ~$ n2 ]2 S8 i: E% q+ J     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 7min ago3 J- K$ \/ w! f% @5 g
   Main PID: 10940 (nova-compute)# ~( M9 _7 R# [+ P
      Tasks: 22 (limit: 100203)
8 T8 @3 u* ]' }1 e7 P- V" |     Memory: 125.1M/ l* ]. S  J5 h, g; C- J8 X; [
        CPU: 3.881s" B5 \0 s4 I/ }  L+ u
     CGroup: /system.slice/openstack-nova-compute.service
  e) Y* d5 v7 A: P# G# E$ j) _' A, L

- T/ j! v( m% L. @+ f7 `& M  B
1 C$ f4 Q  s/ u: _; O+ k3 z  k7 W  _4 ]* E4 ?. G
 楼主| 发表于 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:
% w1 x; U; z1 ?0 U0 D
7 T6 ]8 S, x% e2 E4 \2 \ERROR nova.virt.driver [req-00c7fc03-5657-45ab-b656-e24002e6d52d - - - - -] Compute driver option required, but not specified
$ h0 F/ r2 o0 R5 w8 u7 K
- F9 z" J: \; ?" ~+ F6 z. BSo, the driver has to set as well on [DEFAULT]:. g( ^: v; f3 d
compute_driver=libvirt.LibvirtDriver
 楼主| 发表于 2025-2-20 17:07:36 | 显示全部楼层
[root@streamcontroller ~]# nova service-list' |$ j' S- k4 i: w
nova CLI is deprecated and will be removed in a future release
$ ~" W  Q4 e# z1 D  Q& z8 t+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
! `3 X& l$ }0 G7 m- G| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |
  Y/ l+ X( ]/ f( X4 ?+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
* R; o+ C) o8 a5 ?9 z, l| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |4 A7 E4 `6 g5 J8 n
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |
# y3 {- \' y  |( H( @$ ]| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:06:56.000000 | -                                   | False       |4 o1 M/ `) K( s6 T/ d1 W8 h/ {% r
| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | disabled | up    | 2025-02-20T09:07:03.000000 | AUTO: Connection to libvirt lost: 1 | False       |5 N8 h0 E, ^1 n) b0 |& d1 s
+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+
9 {0 g" k8 @8 `7 d' \[root@streamcontroller ~]# nova service-list
" @7 C$ m- w1 Snova CLI is deprecated and will be removed in a future release
! D% |7 e% ~4 b" x/ ~+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+& v8 g# i# ~% Q: A6 B/ `9 e" C% |
| Id                                   | Binary         | Host             | Zone     | Status   | State | Updated_at                 | Disabled Reason                     | Forced down |
% H6 a% H+ B. l# ]+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+2 d- S$ T! _; E3 y( Y
| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |/ z  e; F/ }; h* o& m+ o6 X- V  o
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled  | up    | 2025-02-20T09:07:02.000000 | -                                   | False       |8 T: ^1 ~# l6 u5 _3 U, c$ ~
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled  | up    | 2025-02-20T09:07:06.000000 | -                                   | False       |
9 V8 ]5 G% w" e* n- E/ m7 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       |
* p& F/ Y  \8 e" z6 J+--------------------------------------+----------------+------------------+----------+----------+-------+----------------------------+-------------------------------------+-------------+2 X& Z' B8 e$ |8 C
[root@streamcontroller ~]# nova service-list: Z5 W8 [* u7 z6 I
nova CLI is deprecated and will be removed in a future release: p; H1 ~+ R* F) a5 X' r# d+ c
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+3 A9 ?" T+ }& C8 o8 u: w4 c
| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |% @, i' Q% o2 Z: p( J# B* S
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
9 A8 n* Q8 L3 ^$ F5 s/ p| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |, o: y+ ?. |$ ]
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |
/ v& T% [; i# H% i. J) H9 F, t| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:16.000000 | -               | False       |
' O0 L" @; h3 U/ q  P| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |/ u, [8 a. m. S6 I2 n
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+3 V- G3 ?5 @8 a
[root@streamcontroller ~]# nova service-list
8 |' S; a. P/ s, r2 e, U- Lnova CLI is deprecated and will be removed in a future release, M4 Z. A' D; q) D
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
9 A$ g) z4 G2 E" g2 C9 m* m9 a1 u| Id                                   | Binary         | Host             | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |: y. ]+ h1 C% {7 T
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
  s# c, _" q$ }% u( Z0 O- B' Q' V6 M| 7f7b126b-0eb5-46bb-aec1-33f4bcafb8ff | nova-scheduler | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |% @" b5 M  D! a: H9 T  T( X
| e8465702-9d45-43cd-90f8-869ee8b2a103 | nova-conductor | streamcontroller | internal | enabled | up    | 2025-02-20T09:07:22.000000 | -               | False       |3 N7 ^0 I4 }- r0 J. s! k7 u  x
| 0fc4a758-4a88-4427-89c5-d87d6feaa119 | nova-compute   | streamcompute1   | nova     | enabled | up    | 2025-02-20T09:07:26.000000 | -               | False       |
% }/ W& C5 }5 k/ @- ^# H5 J' F2 }4 A| c0737c56-e0b7-4ef0-ba4e-c0e4648d6fd0 | nova-compute   | streamcompute2   | nova     | enabled | up    | 2025-02-20T09:07:23.000000 | -               | False       |- k& s9 B& z+ P
+--------------------------------------+----------------+------------------+----------+---------+-------+----------------------------+-----------------+-------------+
% c" u: w8 D1 H* w. y9 e! O! F7 N
 楼主| 发表于 2025-2-20 17:07:52 | 显示全部楼层
[root@streamcompute1 ~]# systemctl status openstack-nova-compute.service
! d3 N  ~9 p) w1 F● openstack-nova-compute.service - OpenStack Nova Compute Server
) G4 D+ _4 j9 ^& ]     Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; preset: disabled)
8 h+ M& I/ k& k" K     Active: active (running) since Thu 2025-02-20 11:07:22 CST; 5h 57min ago& i5 |( i# K5 {& N2 h
   Main PID: 10940 (nova-compute)
# b& a* f+ d  K3 S  P) r% c* @      Tasks: 22 (limit: 100203)0 ^" j% W6 i5 a  f- s
     Memory: 130.1M
' b$ `0 m' w  Z        CPU: 45.176s
% E* O' N. I" G     CGroup: /system.slice/openstack-nova-compute.service! W1 T) r/ A; H! l3 Q
             └─10940 /usr/bin/python3 -s /usr/bin/nova-compute
% V: o, c! U$ ]! y0 S3 C
; O2 d! Y' D2 U- f, |6 J9 n% fFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
( \) Z, y  u8 i8 L0 g+ L0 ?Feb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager>
0 ?" Y& m- p3 O: ]. J5 M" tFeb 20 17:04:09 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:09.872 10940 ERROR nova.compute.manager
4 [% U) s- W9 y5 W7 LFeb 20 17:04:17 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:17.873 10940 DEBUG oslo_service.periodi>
; \% M) S9 T, w7 |- }! w7 u& bFeb 20 17:04:21 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:21.852 10940 DEBUG oslo_service.periodi># k* A  ^2 K; V/ H% `; r2 F
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.866 10940 DEBUG oslo_service.periodi>' y! j( q3 v9 [8 j; p
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>
, @2 V2 u/ V3 J8 LFeb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.867 10940 DEBUG nova.compute.manager>  O( k$ T3 Y5 d; F8 w& O9 Q1 a, {
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.884 10940 DEBUG nova.compute.manager>$ y3 o+ R1 ^' O' R' J+ L6 s& }
Feb 20 17:04:31 streamcompute1 nova-compute[10940]: 2025-02-20 17:04:31.885 10940 DEBUG oslo_service.periodi>
7 `. t8 F9 g/ Z  b1 A6 t1 R[root@streamcompute1 ~]#
$ h/ r3 s5 {0 |$ D% P( q3 I6 x[root@streamcompute1 ~]# ' r; ~; j; q' G5 Q; }
 楼主| 发表于 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>
- S6 }6 ?% t+ KFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>2 L  V/ F  R" S+ L, q, q
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
6 S) r. D" V+ u4 J' y0 [Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
( y! |7 `) s5 \1 [$ U! gFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
& h1 J5 U6 i% {& Q  U! n! j: l1 wFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>0 @. k* M* y8 f& ^9 Q
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>/ f7 A2 g! d; D
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
% ]! ]( [/ J3 i( P7 S0 nFeb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>% M9 s* v/ {9 s" p( m6 n% a9 F
Feb 20 17:07:16 streamcompute2 nova-compute[14886]: 2025-02-20 17:07:16.066 14886 ERROR nova.virt.libvirt.dr>
. w! L  d: a7 H- B重启libvirtd服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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