将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 194|回复: 1
收起左侧

Failed to build and run instance: TypeError: Argument must be bytes or unicode,

[复制链接]
发表于 2021-9-4 18:43:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?开始注册

x
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [req-32f11d3c-7437-47c8-a3b0-c739c561ebbe fadb888e3a2944749bec573661254f02 51c784a90f3c4b16baf606b5bc6ac917. q5 F. w0 O& P. V
- default default] [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b] Failed to build and run instance: TypeError: Argument must be bytes or unicode, got 'NoneType'- G! X( a& ^& ~$ n% A# t+ f  @
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b] Traceback (most recent call last):; D( q: h" L0 [- d
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "/usr/lib/python3.6/site-packages/nova/compute/mana1 @8 }- p; c4 ]7 P+ E
ger.py", line 2385, in _build_and_run_instance
1 T4 z- k) R! p9 @- U2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     accel_info=accel_info)1 {8 h4 p5 K  j, M' [  y
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt+ C7 |- x: K) k& z1 [
/driver.py", line 3683, in spawn' ?+ b9 }7 V8 h' ~) f
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     mdevs=mdevs, accel_info=accel_info)* G& \" P. P) J2 ]' F+ {
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt/ _+ t5 y/ e3 x: u
/driver.py", line 6412, in _get_guest_xml" S- d% Y0 \( t: ^
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     xml = conf.to_xml()
% j( U$ z- f0 V2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt
* x. d" r' }" O* N0 l5 u/config.py", line 79, in to_xml
) s4 v4 i- u7 q2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     root = self.format_dom()0 p  N  n+ x3 v7 ]  E; P
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt
( g, r5 _4 k! e/config.py", line 2813, in format_dom5 [3 |% i: [' q1 m9 ~# Y) l! s
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     self._format_devices(root)4 J* e. G+ J% n2 H3 y
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt2 k/ M6 ~: X& j" E3 a' Y( h
/config.py", line 2767, in _format_devices
$ H5 R* m; j- B% X, A2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     devices.append(dev.format_dom())
5 O# U  c: y$ @4 e% ?# H& _2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "/usr/lib/python3.6/site-packages/nova/virt/libvirt: G. }& F% `( D: Q: k4 r
/config.py", line 1121, in format_dom4 ^4 S( v. j) m. C# h% v
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     uuid=self.auth_secret_uuid))0 K0 V0 \6 z' Z6 }( o; C! t7 e
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "src/lxml/etree.pyx", line 2998, in lxml.etree.Elem) C& C2 x6 u/ m+ d8 T% [# Q. J
ent  s+ H7 @3 z! p3 B  q2 D
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "src/lxml/apihelpers.pxi", line 131, in lxml.etree.
2 N8 D5 X- v2 G( S1 C* x- c_makeElement
  J0 f  p/ P+ L2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "src/lxml/apihelpers.pxi", line 119, in lxml.etree.
+ Q  i) R; z, r/ c+ w_makeElement
. z5 R( i, C5 s: B0 q2 f/ n  ~2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "src/lxml/apihelpers.pxi", line 297, in lxml.etree.$ }( w, a3 X0 t8 K
_initNodeAttributes9 l! g/ E  ]: E0 a$ W& V
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "src/lxml/apihelpers.pxi", line 311, in lxml.etree.4 m- }1 i& L  K# R
_addAttributeToNode( L  s4 G; F* ]5 ]. R
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]   File "src/lxml/apihelpers.pxi", line 1437, in lxml.etree+ x) l, v  \0 a0 T
._utf8. c9 n2 r( s! b; E
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b] TypeError: Argument must be bytes or unicode, got 'NoneTyp% J5 e+ w  X. [, U+ b, Q; w' f
e'
  t: ^$ v2 ]2 x+ D. k6 j4 u2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]
1 O( n! i& x) D1 a% M1 M& d
2 s: g7 F0 E8 A4 M4 L5 Q. ?. P: ^7 [
9 {. p. G, y# p, [6 P这个是因为缺少配置参数,nova.conf在libvirt选项中需要指定rbd_secret_uuid,如下
. j( H' s( P& L* j) V/ H[libvirt], R6 X' _1 }9 l  J
......
) r2 o. x$ l2 n  arbd_secret_uuid = xxxxxxxxxxxxxxxx
6 Y1 K; ]" r9 @# u5 o0 w( D配置完成后重启nova-compute服务即可
9 |  q4 x) \5 Y
" V5 O/ y" B6 A/ C- C! T5 K
8 m& F9 r  J3 O9 E0 w( v$ Y! Y0 C0 X6 W+ r1 S
 楼主| 发表于 2021-9-5 20:31:52 | 显示全部楼层
如果cinder,volume节点也存在这样的问题,可以在cinder的配置文件中加入,重启cinder-volume和cinder-api服务。
1 r% `8 _) O3 K( O6 h同理glance
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-10-28 16:52 , Processed in 1.145681 second(s), 21 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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