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

易陆发现论坛

 找回密码
 开始注册
查看: 311|回复: 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
6 D+ b2 m5 y  x, G* w/ e - default default] [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b] Failed to build and run instance: TypeError: Argument must be bytes or unicode, got 'NoneType'
& a$ W/ R! m; A  q3 M, ~  J" q2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b] Traceback (most recent call last):
5 s4 w, _! ^5 S+ k2021-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/mana
2 E! Z) D5 N8 Y8 h6 H% D1 Vger.py", line 2385, in _build_and_run_instance1 B  V2 \& I3 X* @
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     accel_info=accel_info)
$ Q" Q" S  N/ L% }, \" X; k8 A2021-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
; ]/ e$ J5 Z! q, Z9 Y/driver.py", line 3683, in spawn3 g8 _7 w2 W) l
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     mdevs=mdevs, accel_info=accel_info)
0 A% L+ o7 d, {8 r* i; q1 s% ^; v. ~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/libvirt3 f+ Z' Q0 G4 M- C4 W: O
/driver.py", line 6412, in _get_guest_xml# O2 `& U# S* q9 i$ P7 ]
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     xml = conf.to_xml()
0 {1 m% X, z6 R( u2021-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
8 M, d* T5 |6 z* `/config.py", line 79, in to_xml) q5 T* s2 h. T% R# o- A
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     root = self.format_dom()
% h1 Y0 d' D% b6 d6 q2021-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( T: q$ m: L# P! d2 l
/config.py", line 2813, in format_dom
( Y$ b* c# @4 `, G8 J2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     self._format_devices(root)
; O7 O8 j1 n% V8 ?6 Z3 g; w2021-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
3 T" d9 ]! l5 ?7 _0 b+ [5 H; j* g/config.py", line 2767, in _format_devices
% `- h5 o  G" [+ {4 _2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     devices.append(dev.format_dom())" b2 W. e2 c* o  i0 t
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/libvirt7 ?" q5 J( r/ [3 d
/config.py", line 1121, in format_dom+ t3 z. }/ p" j  q% P
2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]     uuid=self.auth_secret_uuid))) C% o' r( h' ?
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
/ O: C/ s2 k8 D/ E( N: Z. dent
" l  j! f+ |& a; H2021-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.
" t. R, c% u( Q/ p/ F9 W6 q_makeElement
6 v7 m  U1 ?" k: Z. v2021-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.7 L% U6 n# I# ]
_makeElement
) m8 o+ O; b% g1 Z$ V* U2021-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.% Y# p5 I. z- _1 i8 N+ b
_initNodeAttributes
& N1 F% }- k  i6 B$ J8 s/ j2021-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.8 ^: {& C# M$ d4 H( k3 W' F
_addAttributeToNode: o5 N$ }6 h8 ]# i
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
4 A; ~; d# ~( q$ D9 f3 J0 j._utf8
4 ?& F! h: \: z, \3 Q- T. r2021-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 'NoneTyp2 c' W! Y, n' f, f4 d  T
e'
2 z" z& n% r/ Z+ |7 k/ m2021-09-04 17:34:50.311 2909 ERROR nova.compute.manager [instance: ca352dc9-ef79-49a7-bf24-18b79d197c3b]
0 P/ {, k) V9 y2 \9 o( _1 ?7 z4 P9 x: u% \
. i8 f8 B" o: h
这个是因为缺少配置参数,nova.conf在libvirt选项中需要指定rbd_secret_uuid,如下0 x0 W# j( _' m* o
[libvirt]
- @8 x9 H1 A. O& l......5 j# [+ d" m, n1 E# _
rbd_secret_uuid = xxxxxxxxxxxxxxxx
4 q0 G4 t5 |$ ^" V. E  A配置完成后重启nova-compute服务即可0 d9 P' q2 ^: m- v8 o

& ^4 M  ?  v& G3 \. c
/ |1 P/ O7 h- Y
8 B+ }2 T$ T! c2 f1 Q8 V* j
 楼主| 发表于 2021-9-5 20:31:52 | 显示全部楼层
如果cinder,volume节点也存在这样的问题,可以在cinder的配置文件中加入,重启cinder-volume和cinder-api服务。! O0 T# l' g- M: X9 ^7 ]
同理glance
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2021-11-28 19:35 , Processed in 0.043176 second(s), 21 queries .

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

© 2012-2022 Comsenz Inc.

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