找回密码
 注册
查看: 102|回复: 4

ERROR cinder.volume.targets.iscsi The volume driver requires the iSCSI initiato

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2025-3-7 17:17:25 | 显示全部楼层 |阅读模式
2025-03-07 17:05:14.756 2428 ERROR cinder.volume.targets.iscsi [req-a2d56291-b9de-45c4-b211-1e8185c503a9 req-3d974883-1ef5-40ce-9c27-10c7b3f68dbb a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - - -] The volume driver requires the iSCSI initiator name in the connector.2 ?( M( n% r. n! u# _$ d( {7 O
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server [req-a2d56291-b9de-45c4-b211-1e8185c503a9 req-3d974883-1ef5-40ce-9c27-10c7b3f68dbb a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - - -] Exception during message handling: cinder.exception.InvalidInput: Invalid input received: Connector doesn't have required information: initiator7 h( v$ [- {4 X3 s
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
* C& f& A- a) E. {4 P2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/cinder/volume/manager.py", line 4803, in _connection_create
2 _$ c+ `3 k( H' |* W  i  b0 H2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     self.driver.validate_connector(connector)
; X  j" d0 i/ B$ V2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/cinder/volume/drivers/lvm.py", line 862, in validate_connector
" z* b8 D# p7 f% r0 ?/ C2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     return self.target_driver.validate_connector(connector)9 X. l5 U$ N- ~* Z# Q
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/cinder/volume/targets/iscsi.py", line 289, in validate_connector) q) d0 S, D( h$ W+ k8 L+ u" s
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     raise exception.InvalidConnectorException(missing='initiator')9 n& J# h% a: a2 v, V' J
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server cinder.exception.InvalidConnectorException: Connector doesn't have required information: initiator# T& r: ^' Y7 c% V$ r
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server 3 S% w3 b; n3 K
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
6 t& K3 _) Z; H: ]2 M0 k* a1 G4 T2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server
9 l- `3 c$ {' Y# N2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server Traceback (most recent call last):. F* {5 {8 X0 @* h( e1 ^, o. J, j
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
, V8 k4 q" z9 i! q  A6 E2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)
( h( A# U/ S, x- b0 [& @- ^2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
4 ~/ i' }* |/ \: }" t4 P# ^2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
+ x, u3 h/ G/ k6 E+ Q1 O! D2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
; R1 I% [5 Q. s9 h8 n, q1 n$ E2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
" D4 f; v, k' Y) }/ K2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/cinder/volume/manager.py", line 4886, in attachment_update, P9 F' ^; Q: i5 h9 ?
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,
* Y/ l  m5 [4 N  l" _' @! S2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.9/site-packages/cinder/volume/manager.py", line 4805, in _connection_create
. t6 ]1 ~; P5 `+ _$ H: |2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     raise exception.InvalidInput(reason=str(err)); J% Z5 a: z7 ~7 J/ q* G! f
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server cinder.exception.InvalidInput: Invalid input received: Connector doesn't have required information: initiator
8 ?9 {2 L. y) P, {7 t8 q0 d) W2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server
, ^9 e. X0 p9 V0 x" w" h" H+ j# f! e
. \0 L0 H3 Y# g# L/ ?
7 L3 }+ c1 z! ?2 s) X) J
排查原因
" y8 T- b6 j5 ]9 A9 [在cinder中能查询到卷,说明卷没有问题。! x, Q; R# h/ L% Y. I5 Y
, R1 y& @2 w7 \# e
& k; P' g* l. B1 y+ f, \! S

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-3-7 17:18:48 | 显示全部楼层
错误: 实例 "llllllll12ss" 执行所请求操作失败,实例处于错误状态。: 请稍后再试 [错误: Build of instance 3ca41ef9-7054-4781-9618-54cb7af26594 aborted: Unable to update attachment.(Invalid input received: Connector doesn't have required information: initiator). (HTTP 500) (Request-ID: req-1e7882e6-c22d-49a2-b130-5b8b0a4448e8)].

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-3-7 17:26:52 | 显示全部楼层
Build of instance 87 aborted: Unable to update attachment.(Invalid input received: Connector doesn't have required information: initiator)

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-3-7 21:13:50 | 显示全部楼层
2025-03-07 21:09:45.880 1805 WARNING os_brick.initiator.connectors.iscsi [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - d iSCSI Initiator File /etc/iscsi/initiatorname.iscsi: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.* `" x6 |1 z% c  i1 Q# k9 c* g5 x$ ~
2025-03-07 21:09:46.023 1805 ERROR nova.volume.cinder [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Updnt f9b4c1ee-8d11-41b5-9f9c-667b67cce326. Error: Unable to update attachment.(Invalid input received: Connector doesn't have required information: initiator). (HTTP 500) (Request-ID: req-c7225ode: 500: cinderclient.exceptions.ClientException: Unable to update attachment.(Invalid input received: Connector doesn't have required information: initiator). (HTTP 500) (Request-ID: req-c7)3 z( a' i+ H( _& t8 o# Z
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] [a5361aec901d] Instance failed block device setup: cinderclient.exceptions.ClientException: Unable to update attachment.(Invalid input received: Connector doesn't have required information: inreq-c7225141-725f-4d3a-ad47-3013f4182388)
. c& l* [- z1 [' |; w! ]# k4 q2 e$ i- Y2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d] Traceback (most recent call last):
3 d  H) n  h; w$ j9 R2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/compute/manager.py", line 2174, in _prep
+ y3 h: d. R4 v$ n9 g" O% X' A: I2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     driver_block_device.attach_block_devices() g5 P! T8 f; T" M$ }3 Z) c  ^' @2 |
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/virt/block_device.py", line 936, in atta
: ?6 c: v, y& Z2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     _log_and_attach(device)+ d4 {' `' S, P# ^7 r
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/virt/block_device.py", line 933, in _log+ ]4 l; k) m$ q9 [. @# c
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     bdm.attach(*attach_args, **attach_kwargs)+ A6 K2 P- Z& m. U/ x$ a/ B
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/virt/block_device.py", line 835, in atta
: q4 C' F8 v) S; f: }0 j5 `. M' t2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     super(DriverVolImageBlockDevice, self).attach(: |5 N" u4 }4 J. ^. `& C
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/virt/block_device.py", line 46, in wrapp% e  Q* F: G2 n
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     ret_val = method(obj, context, *args, **kwargs)
# n0 G, Z5 S: k- K5 b2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/virt/block_device.py", line 734, in atta, {5 s  B/ f5 G
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     self._do_attach(context, instance, volume, volume_api,& E* @4 d6 O- x& r- E' f' _9 q& t' @
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/virt/block_device.py", line 719, in _do_7 a! T3 x. S' y$ Q
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     self._volume_attach(context, volume, connector, instance,1 _) a8 v1 m! X% f/ g$ n9 h
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/virt/block_device.py", line 633, in _vol$ q  k/ R  r, R; ^
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     connection_info = volume_api.attachment_update(- n0 ]/ ?- _. k5 T2 ?$ L' }
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/volume/cinder.py", line 397, in wrapper
+ N# J( V: h* e* _" n1 O0 N2 D2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     res = method(self, ctx, *args, **kwargs)
+ k( |. d* [) \3 u3 a( W. k2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/volume/cinder.py", line 451, in wrapper
8 I9 [6 p1 y6 I7 S! V! }2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     res = method(self, ctx, attachment_id, *args, **kwargs)- S0 }; J  g# n  z
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/volume/cinder.py", line 916, in attachme3 _/ x9 i9 k. x
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     LOG.error('Update attachment failed for attachment '
9 d0 G( U, @: B0 ]2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 227, in __exit_
7 i2 {' [, P  ]) ]" I3 c% f2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     self.force_reraise()
* k' g1 d+ G1 Z& U2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/oslo_utils/excutils.py", line 200, in force_r
* W- [8 \+ R  F% Y* i2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     raise self.value" m9 S5 e* o/ g% r' j% ]
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/nova/volume/cinder.py", line 908, in attachme7 Z8 D+ Q: a6 f3 y, \& Z
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     attachment_ref = cinderclient(
4 o/ y+ L4 }; |2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/cinderclient/api_versions.py", line 421, in s
/ a! K& r) D* B) i4 _+ s. F2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     return method.func(obj, *args, **kwargs)
7 o% z" u  p/ H; y8 w" P2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/cinderclient/v3/attachments.py", line 75, in % }: N! I, ]% i% h1 m3 S- e7 O
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     resp = self._update('/attachments/%s' % id, body)) Y2 `# o8 l& q. u+ Q! Q+ }" n+ l
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/cinderclient/base.py", line 318, in _update8 ]/ |7 e% ?/ K8 }2 D) a* z
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     resp, body = self.api.client.put(url, body=body, **kwargs)
0 q* `. z& g2 q6 `- R9 w6 r2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/cinderclient/client.py", line 226, in put0 U, |7 U" i+ {" ]) V
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     return self._cs_request(url, 'PUT', **kwargs)
1 [$ g) m- W$ @' ?1 w% }1 E. z2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/cinderclient/client.py", line 211, in _cs_req
3 h3 C4 P, E1 I- b( D3 V1 l2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     return self.request(url, method, **kwargs)
) l8 O9 c6 s$ c, t2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]   File "/usr/lib/python3.9/site-packages/cinderclient/client.py", line 197, in request
1 C6 ]8 q5 Q3 q2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     raise exceptions.from_response(resp, body). B9 L  S- }4 |# b4 c8 ^3 w, C
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d] cinderclient.exceptions.ClientException: Unable to update attachment.(Invalid input reuired information: initiator). (HTTP 500) (Request-ID: req-c7225141-725f-4d3a-ad47-3013f4182388)9 ?7 s0 M8 R, B7 Y4 j
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]
9 V' \" M! R" b* [2025-03-07 21:09:46.227 1805 ERROR nova.compute.manager [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] [a5361aec901d] Build of instance 6192405a-f503-4292-8634-a5361aec901d aborted: Unable to update attachment.(Invalid input received: Connector doesn't have required information: initiator). (HT725f-4d3a-ad47-3013f4182388): nova.exception.BuildAbortException: Build of instance 6192405a-f503-4292-8634-a5361aec901d aborted: Unable to update attachment.(Invalid input received: Connecton: initiator). (HTTP 500) (Request-ID: req-c7225141-725f-4d3a-ad47-3013f4182388)$ E0 S+ `0 m& @  ~) ~' `) f& q
2025-03-07 21:09:46.230 1805 INFO oslo.privsep.daemon [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Runa-rootwrap', '/etc/nova/rootwrap.conf', 'privsep-helper', '--config-file', '/etc/nova/nova.conf', '--config-file', '/etc/nova/nova-compute.conf', '--privsep_context', 'vif_plug_ovs.privsep.vitmp/tmp0ldl_awi/privsep.sock']
5 |2 A% t' O5 X5 [: h4 ]2025-03-07 21:09:47.165 1805 INFO oslo.privsep.daemon [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Spaap
( n# R! b, l4 C- U2025-03-07 21:09:47.032 1953 INFO oslo.privsep.daemon [-] privsep daemon starting
  m+ e1 l6 R. [8 J+ g2025-03-07 21:09:47.038 1953 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0) ]3 u- A" P1 u% l6 ?5 m/ p
2025-03-07 21:09:47.040 1953 INFO oslo.privsep.daemon [-] privsep process running with capabilities (eff/prm/inh): CAP_DAC_OVERRIDE|CAP_NET_ADMIN/CAP_DAC_OVERRIDE|CAP_NET_ADMIN/none
' |. X- O- _- y9 W2 R6 U2025-03-07 21:09:47.041 1953 INFO oslo.privsep.daemon [-] privsep daemon running as pid 19530 r" L4 R+ w# B9 J" F
2025-03-07 21:09:47.610 1805 INFO os_vif [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Successfully unpaddress=fa:16:3e:e5:0a:28,bridge_name='qbrd0475db0-4b',has_traffic_filtering=True,id=d0475db0-4b9a-4930-af14-21f10de35a8f,network=Network(85ebb9fc-ee9f-4958-9541-914818b23864),plugin='ovs',poch,preserve_on_delete=False,vif_name='tapd0475db0-4b')
# ^- Y* I8 q9 T* H* S  ^9 P2 v2025-03-07 21:09:48.033 1805 INFO nova.compute.manager [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] [i5361aec901d] Took 0.42 seconds to deallocate network for instance.
" B3 M- t* E1 {8 ~0 m0 h. g0 o2025-03-07 21:09:48.123 1805 INFO nova.compute.manager [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] [i5361aec901d] Detaching volume 86ac272f-4a6e-435f-9cfa-dba1490ef9ca
4 ^/ _* K  y( s1 J" Z+ ?$ I2025-03-07 21:09:48.166 1805 ERROR nova.virt.block_device [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default]4-a5361aec901d] Unable to call for a driver detach of volume 86ac272f-4a6e-435f-9cfa-dba1490ef9ca due to the instance being registered to the remote host None.: nova.exception.BuildAbortExcep503-4292-8634-a5361aec901d aborted: Unable to update attachment.(Invalid input received: Connector doesn't have required information: initiator). (HTTP 500) (Request-ID: req-c7225141-725f-4d3
( r  O' N- l$ h2025-03-07 21:09:48.389 1805 INFO nova.scheduler.client.report [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default defance 6192405a-f503-4292-8634-a5361aec901d
3 m! _& q2 |/ P- G& @

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-3-7 21:42:02 | 显示全部楼层
上面的日志其实都没有啥帮助:' X* d2 F& T# J/ Q# ~9 Q
主要是这个日志最主要:! [: q1 G, ?5 b) N4 ?+ h

  u* Y  V2 O" K8 K/ CiSCSI Initiator File /etc/iscsi/initiatorname.iscsi: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.  
. |, e) L/ `. o: p! ^" W: S! P# G* Q
这个呢,我便去节点上看看,想这个怎么回事呢?难道要启动iscsid服务?
+ O  z9 ~+ n# x# O带着这个问题,我就去检查:initiatorname.iscsi
8 l5 c: s0 X; L3 s
6 ~+ G: _8 C: l& X& m[root@compute3 ~]# vim /etc/iscsi/iscsid.conf ) R5 f% L/ m% y3 ~5 z
anaconda-ks.cfg  .bash_history    .bash_logout     .bash_profile    .bashrc          .cache/          .cshrc           .lesshst         .ssh/            .tcshrc          .viminfo    . N1 W5 M: M* X, A/ |

/ N! a) N# |, b$ h3 s# @% M# R只有iscsid.conf 文件,那就是没有生成这个文件:4 q2 m0 r7 O7 M6 C0 ^8 Y
那我只能尝试创建这个文件:   会不会是iscsid这个服务给创建的呢?
6 h5 H" r4 K; k6 l" F$ e. D于是检查状态:
, E( L( S4 F. a  f8 C7 m9 w[root@compute3 ~]# systemctl status iscsid.service * y  G9 u+ G& u5 k
○ iscsid.service - Open-iSCSI
) x& F- a/ y9 g/ _* H( N     Loaded: loaded (/usr/lib/systemd/system/iscsid.service; disabled; preset: disabled)
5 W$ H3 D$ r2 l3 p$ E# ~     Active: inactive (dead)/ C+ d! ?! r! h8 X6 m4 s
TriggeredBy: ● iscsid.socket
- I$ N$ X5 ^4 R4 v9 {       Docs: man:iscsid(8)
% _) P/ F) p* D' z2 Z5 z             man:iscsiuio(8)7 D' o3 _; k: V& f; u
             man:iscsiadm(8)
" q& J6 d% f' q9 L' b8 o, R  p: @# e

( H+ L  m# u# z* [/ j. |# kservice not on  ,next step ,we start  iscsid  service :
" I! Q7 f0 z- N0 ]for example:
/ e) Q1 m7 k9 W; e7 f: }! j[root@compute3 ~]# systemctl start iscsid.service% @  U( h/ C. ^$ u( {5 K* C
, g3 P' `0 f: D% t9 T
check The iscsid service# ]3 ~8 f1 _& ~$ ^* @, s' z
  / V4 u' ]7 s# S- ^/ Z, }3 T
[root@compute3 ~]# systemctl status iscsid.service " t  u: D9 @2 N2 B
● iscsid.service - Open-iSCSI
- e  W2 H- G7 k+ `' {( u- c     Loaded: loaded (/usr/lib/systemd/system/iscsid.service; disabled; preset: disabled)% N" ?1 I- h+ I+ e. j8 s8 f6 w
     Active: active (running) since Fri 2025-03-07 21:25:07 CST; 1s ago/ L8 P0 C  X! P5 g8 a: L4 d
TriggeredBy: ● iscsid.socket4 f2 F6 l% C) q1 k* r/ t
       Docs: man:iscsid(8)1 X% u8 M' X' X, n6 k2 @* Y; _% Q( \
             man:iscsiuio(8)
' T% @- m( g# O0 T$ v+ g, k             man:iscsiadm(8)8 d7 M7 M) ~- @4 c/ @! p" |: b6 m+ b
   Main PID: 2375 (iscsid), B7 b% ~# t6 H7 F
     Status: "Ready to process requests". B1 B" C; h* @+ H4 ^) O: d2 r3 H
      Tasks: 1 (limit: 100207)
" |% i' L4 V  _) }     Memory: 3.0M
- c/ t8 i! C# t        CPU: 8ms
% B( N$ x% T. y6 G/ [6 y' e# w     CGroup: /system.slice/iscsid.service: K# _1 f, k# X( \9 I% m; d' q
             └─2375 /usr/sbin/iscsid -f% l: Y6 t1 P# B  h) d

/ j7 b; N: M  b" O2 `5 p' D, HMar 07 21:25:07 compute3 systemd[1]: Starting Open-iSCSI...% _2 r6 T1 ]2 o9 U; u' @* S
Mar 07 21:25:07 compute3 systemd[1]: Started Open-iSCSI.& o# [; g3 P: B6 @8 I

3 u5 ^" u. g5 s
( A: v; N8 [& ]# b再次检查 initiatorname.iscsi 文件,果然存在了:
! c" U1 ~5 ?) i- a. L: M4 l; A- J! G9 l  h8 P
once again check the initiatorname.iscsi file 9 Z. v5 m9 F: h3 Y+ I% R) a9 |. \$ j! e

" N/ @# ~4 s( ?0 P& q. e$ q[root@compute3 ~]# ls /etc/iscsi/initiatorname.iscsi. X1 G2 s! a. S
/etc/iscsi/initiatorname.iscsi; L2 S2 [9 p. D. L
[root@compute3 ~]# ls /etc/iscsi/initiatorname.iscsi
- O7 d. l2 y7 r8 d) }, F/ s/etc/iscsi/initiatorname.iscsi
# ~" |$ z  ^6 W. V+ c! h# o
2 C; k0 f! H! _- O: r  g8 e6 L( D$ V$ O, U
4 }# l0 c, S; a  n% G1 y4 N
再次创建虚机,不再报错了。
5 ~5 [! h! L* k* Y # \+ E# r* }' T& H$ a

- q8 V4 A0 Q% i. u0 ]' c! K4 ]: x+ r
" c- O5 m  t* Z6 o- m. A2025-03-07 21:28:49.007 1948 INFO oslo.privsep.daemon [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Running privsep helper: ['sudo', 'nova-rootwrap', '/etc/nova/rootwrap.conf', 'privsep-helper', '--config-file', '/etc/nova/nova.conf', '--config-file', '/etc/nova/nova-compute.conf', '--privsep_context', 'os_brick.privileged.default', '--privsep_sock_path', '/tmp/tmppehi390x/privsep.sock']
7 M% {3 X& I; X) x8 U0 {* L7 c' B2025-03-07 21:28:49.960 1948 INFO oslo.privsep.daemon [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Spawned new privsep daemon via rootwrap  g. H4 z4 n$ u& Z! m
2025-03-07 21:28:49.818 2244 INFO oslo.privsep.daemon [-] privsep daemon starting3 W( D& J/ ^% j. l! h9 q
2025-03-07 21:28:49.823 2244 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
. c9 I1 P, d9 o/ r- o2025-03-07 21:28:49.826 2244 INFO oslo.privsep.daemon [-] privsep process running with capabilities (eff/prm/inh): CAP_SYS_ADMIN/CAP_SYS_ADMIN/none
  O5 X0 o) _7 P1 m5 A, @' N' w2025-03-07 21:28:49.826 2244 INFO oslo.privsep.daemon [-] privsep daemon running as pid 22447 O6 T( w% n' K4 t
2025-03-07 21:28:54.146 1948 INFO nova.virt.libvirt.driver [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] [instance: f6f00bf2-4e84-4f9d-958b-694b86988a13] Creating image(s)
6 N4 H0 X2 F+ l8 B7 L0 S2025-03-07 21:28:54.157 1948 WARNING nova.virt.libvirt.driver [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] This host appears to have multiple sockets per NUMA node. The `socket` PCI NUMA affinity will not be supported./ \& [. y; o! v! N
2025-03-07 21:28:54.190 1948 WARNING os_brick.initiator.connectors.base [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Service needs to call os_brick.setup() before connecting volumes, if it doesn't it will break on the next release6 {, @9 y9 j7 h/ Q
2025-03-07 21:28:54.192 1948 WARNING os_brick.initiator.connectors.base [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Service needs to call os_brick.setup() before connecting volumes, if it doesn't it will break on the next release( }/ y; }& _3 @! P* N0 _: m
2025-03-07 21:28:54.192 1948 INFO os_brick.initiator.connectors.iscsi [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Trying to connect to iSCSI portal 192.168.8.201:3260
1 \! z8 Y4 a% Y2 z' {& J2025-03-07 21:28:54.261 1948 WARNING os_brick.initiator.connectors.iscsi [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] iscsiadm stderr output when getting sessions: iscsiadm: No active sessions.
5 Z, B1 S% h: |7 `: H" @/ Z& j
$ P8 p1 H  ?# G6 `1 X# ?7 |2025-03-07 21:28:55.470 1948 INFO oslo.privsep.daemon [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Running privsep helper: ['sudo', 'nova-rootwrap', '/etc/nova/rootwrap.conf', 'privsep-helper', '--config-file', '/etc/nova/nova.conf', '--config-file', '/etc/nova/nova-compute.conf', '--privsep_context', 'vif_plug_ovs.privsep.vif_plug', '--privsep_sock_path', '/tmp/tmp94ppz30p/privsep.sock']/ R, D5 a1 o' h* N5 ?  i
2025-03-07 21:28:56.489 1948 INFO oslo.privsep.daemon [None req-5114c9c8-5f2c-4644-98bd-bf344dc8a7e9 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Spawned new privsep daemon via rootwrap( }8 J9 Z% M( v6 B& |7 F& ~4 J
2025-03-07 21:28:56.306 2297 INFO oslo.privsep.daemon [-] privsep daemon starting
* z- g2 M5 j/ Z# a2025-03-07 21:28:56.312 2297 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
4 Q3 }6 k9 R# n2 w) z' K3 K: n2025-03-07 21:28:56.314 2297 INFO oslo.privsep.daemon [-] privsep process running with capabilities (eff/prm/inh): CAP_DAC_OVERRIDE|CAP_NET_ADMIN/CAP_DAC_OVERRIDE|CAP_NET_ADMIN/none. u8 T( h; Q+ ?0 B, c
2025-03-07 21:28:56.315 2297 INFO oslo.privsep.daemon [-] privsep daemon running as pid 2297
  ^% K* v& e1 r7 Y& t! o- F
" q3 U* ]! }0 J( \  O* X% ]6 E) i( R8 @5 G
创建虚机这一步问题解决了。
; J' f+ L, o4 @0 f% X
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:00 , Processed in 0.026116 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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