- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
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 |
|