找回密码
 注册
查看: 104|回复: 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.$ r  I" S$ ~8 Q' g
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: initiator
9 N  H" a! I; E+ s2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server Traceback (most recent call last):4 s- ?' I& a1 x$ y# X2 }! p, d5 ^
2025-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
0 v5 |8 _1 Z$ T8 E' _0 ^, Q2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     self.driver.validate_connector(connector)
5 r: _% z' _$ \! k+ ?2025-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
2 H# [# l( N. `2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     return self.target_driver.validate_connector(connector)- c2 e* T* G! i( x' d
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. Y1 i  |- d8 _
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     raise exception.InvalidConnectorException(missing='initiator')& X3 H; f: {& N0 M( h
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server cinder.exception.InvalidConnectorException: Connector doesn't have required information: initiator* ~+ \- b- n+ x
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server
. c0 M# s0 j) ?+ u( S/ \$ B. W# S2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:7 ~4 T0 o# |% J
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server
$ v4 o6 ?1 [. _2 c% y0 c1 A2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
5 |  I2 d& {$ Z7 s$ g2025-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! U; W/ l. _1 h! O
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message), J# P; E! y; w' S( u/ x
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
6 }. g7 G( Y$ Y3 A2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)" M  Q: x7 u! o2 Q! D& A
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 229, in _do_dispatch
- l5 m, e$ Z4 }( c4 x+ }2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)! y% |) t5 v( z* h: }
2025-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
. Y5 p, |5 ]& M! i0 o2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,/ J# G6 c; X% Y( x2 ]: A: u
2025-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_create0 j8 {: a6 R% g) P. `
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     raise exception.InvalidInput(reason=str(err))
/ B) e/ z/ e' X; R0 A. q3 d2025-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
, t% G! L9 c0 `, Q2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server
0 ]* w# l& l! X& `' E' x& D8 I4 t# F% H) L1 r* r8 W" w/ F
' A5 h2 c- k- ?: N7 a+ q& A$ ?

! B6 Y( D! A8 n5 W( @( g$ C$ G9 n排查原因7 @" y- R; [! X! ^, X6 I, ?
在cinder中能查询到卷,说明卷没有问题。
% W- e6 ~. E7 r6 n9 B2 H
: w; Q" a' b" Z; ]" J$ @4 Z+ [0 k: D8 Q/ j3 _% e/ Y. l

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.
, S4 r  m7 v2 q4 w" A( w2 ^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)
& T4 m2 ?; p) j: Q# C, Q- T4 t2025-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)
. d$ R1 ]' V" T- e$ q2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d] Traceback (most recent call last):
# T* l; e- W1 k0 a- ]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/compute/manager.py", line 2174, in _prep5 G9 A4 N* c- L0 \
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     driver_block_device.attach_block_devices(" a+ c" y% y5 T$ s* f
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
* z6 g% m7 y& Z: w1 y3 C2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     _log_and_attach(device)
5 Q* O8 ^  j6 z+ G) R/ ~0 b# F4 s2025-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 h- ~, g2 V) D) u" b4 V; a2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     bdm.attach(*attach_args, **attach_kwargs)2 o% O  \' L1 E6 E& G# S: i; [% ?
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; n) ?7 S- ]. E- Y, ]1 ^. H
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     super(DriverVolImageBlockDevice, self).attach(
" \4 `' y; K" S2 [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
" S$ i9 C' `5 P6 t5 B1 h2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     ret_val = method(obj, context, *args, **kwargs)1 i0 F, O4 c4 d' o9 K3 g5 Z0 A$ b4 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 734, in atta
; v* E2 S$ S$ @& h$ A$ Z2025-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,7 F/ |: Y/ E# f" n3 `' i
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_
; I9 {, @$ a9 P1 M% K2025-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 j! B: Z" }6 ~* v% R. @% 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 633, in _vol
, S! y5 U/ u" Q% Q; C- a% j: M2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     connection_info = volume_api.attachment_update(
1 Z% F" q! T% e- j' j2025-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
) O6 K1 w! b' L* j5 N9 m2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     res = method(self, ctx, *args, **kwargs)
* A  U$ @: I' f# C2025-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$ z3 X) q1 N3 m
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)
! s; L- S0 ^; S( q6 Q( 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/nova/volume/cinder.py", line 916, in attachme
  z8 e1 W4 v1 z3 ?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 ', X' I. H" s6 W4 f
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_
! z) U( ~' i. s2 C, x3 m7 y2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     self.force_reraise()5 B) I- u2 s. i5 J+ q' Y
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 200, in force_r, Z) X- D* ]: M; T
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     raise self.value
7 {) N( U+ a5 e- f+ y' e1 Q2 m2025-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 attachme
2 ^$ W- D! U, Y5 g# _1 K5 Z4 a2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     attachment_ref = cinderclient(; F9 h; P) z, j, A4 \4 R- y
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
7 F; M( C0 P* k; S5 a2 T: n2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     return method.func(obj, *args, **kwargs)4 J0 J; R1 C( A& l+ q' C8 b; v& ~
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/v3/attachments.py", line 75, in ; g! q2 i+ e" d% W" B% 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)1 }: q, Z) s' M4 u' k* B. U, g, u
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 _update  o* n, D) E9 l% u; r. {
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)' n" s( X0 v- }8 I# y8 G5 P! X: N
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/client.py", line 226, in put7 K- V) ~+ c5 ~  s# e  t1 Q6 |) T
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)
* b) g; H. R, N3 s' W9 M2025-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
. W. j& v! ~, f  k( \/ f6 x  O; H! z' p2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     return self.request(url, method, **kwargs)
0 k- q- f2 J6 n  k5 |" S8 c  H2025-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' h& i  h- {: s
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     raise exceptions.from_response(resp, body)# F2 n! U# S$ M) y, Z; i* {
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)
  W( U. ~. a4 y2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]
+ C9 N( E0 V9 r: b2 ~3 e! z2025-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)2 o+ z9 G3 o. o( ]0 S, l  d& V/ 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']
1 W5 t2 j6 G) B2025-03-07 21:09:47.165 1805 INFO oslo.privsep.daemon [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Spaap% q( V" F* F/ I
2025-03-07 21:09:47.032 1953 INFO oslo.privsep.daemon [-] privsep daemon starting
+ J5 B5 J5 E  u2025-03-07 21:09:47.038 1953 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0  T+ D0 N; ^& O' A+ i' R$ Q
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( U* w# x7 i, t( i3 e
2025-03-07 21:09:47.041 1953 INFO oslo.privsep.daemon [-] privsep daemon running as pid 1953
; D7 X1 j" Z/ ]5 X5 p' C- n2025-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')
" n9 ^/ m* y2 \) o+ O2025-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." @7 e: p' S8 U. F; i: G
2025-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  |; K1 X2 q" S2 `6 r6 W* b
2025-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' p) J% u& E/ H  J9 f0 }
2025-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
( b8 p$ `* ^, M

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2025-3-7 21:42:02 | 显示全部楼层
上面的日志其实都没有啥帮助:
9 G, I- M+ L/ o5 e% Z  \主要是这个日志最主要:
+ _& I* J9 r+ z) E( r
1 E& ?$ A: L1 Z. [: }iSCSI Initiator File /etc/iscsi/initiatorname.iscsi: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.  
0 I. h0 T) p7 l# I9 v3 D8 n. l
8 Q2 j" A& i5 C" O+ h- m这个呢,我便去节点上看看,想这个怎么回事呢?难道要启动iscsid服务?5 _% _6 c& G$ B2 g& A- Q
带着这个问题,我就去检查:initiatorname.iscsi3 y6 q# b3 @# e& g0 S+ T) J# o
3 w4 Y9 Y$ C; p7 S# j) Z. c  p5 }
[root@compute3 ~]# vim /etc/iscsi/iscsid.conf ! r0 N0 z" e: e3 A# P: J' b$ ^
anaconda-ks.cfg  .bash_history    .bash_logout     .bash_profile    .bashrc          .cache/          .cshrc           .lesshst         .ssh/            .tcshrc          .viminfo   
, n/ ~+ p1 y! p
8 I3 y1 e; [- ?6 q! i只有iscsid.conf 文件,那就是没有生成这个文件:- h% i2 y( N! l9 y
那我只能尝试创建这个文件:   会不会是iscsid这个服务给创建的呢?
$ |5 \8 B. H* z8 @4 D5 b于是检查状态:
3 c& B' e; K$ v) A8 _! a[root@compute3 ~]# systemctl status iscsid.service ' s' z" j% Y+ @% t6 |4 K' e
○ iscsid.service - Open-iSCSI# W  [1 g3 c0 [% L4 }1 x
     Loaded: loaded (/usr/lib/systemd/system/iscsid.service; disabled; preset: disabled)
. r+ \  I' S2 C( J6 g+ d7 x  s( R/ |     Active: inactive (dead)
# k# N0 N$ n/ d8 k' f9 KTriggeredBy: ● iscsid.socket
4 A5 \$ Z$ q( u! T5 U; `       Docs: man:iscsid(8)5 q; S* v& G0 A3 o' q2 Z
             man:iscsiuio(8); C: {3 H+ H4 e! N# g
             man:iscsiadm(8)
7 c2 n) t3 W4 l0 S
+ M* e# Y2 Q8 Z3 q5 X
4 e6 A3 l/ k7 w1 X3 j7 Gservice not on  ,next step ,we start  iscsid  service :
( J! r5 L, G# z4 N" a1 ?2 f1 @8 e% ?for example:
* R& p" Y4 `5 {5 A[root@compute3 ~]# systemctl start iscsid.service
# s3 c" Y+ K8 j: j
* I  h, u0 t; s6 a4 L( M3 `1 R0 E2 l, {check The iscsid service
& R. J6 N9 a3 Z- ~  
; ^% _) ?9 V2 |( S. o, i4 R, M[root@compute3 ~]# systemctl status iscsid.service
" _$ z; T1 M' D- B● iscsid.service - Open-iSCSI9 |% J& V5 l; ], y# V
     Loaded: loaded (/usr/lib/systemd/system/iscsid.service; disabled; preset: disabled)
' c" D9 ^6 ~! ^6 E- N% G     Active: active (running) since Fri 2025-03-07 21:25:07 CST; 1s ago$ m$ z( w1 ~! k
TriggeredBy: ● iscsid.socket
( J2 |. Q( i& [. b2 L: A) I) T       Docs: man:iscsid(8). N' z* Y6 c: Z* O0 G9 {8 `$ H/ K9 B
             man:iscsiuio(8)( L5 l1 N$ f& `2 S( F  [
             man:iscsiadm(8)
" d  V, o/ g9 x2 ^& O+ {7 h: P   Main PID: 2375 (iscsid)  v, m6 j- H& x! ~$ ]/ v
     Status: "Ready to process requests"
0 S3 d: Y3 W  i5 p, O      Tasks: 1 (limit: 100207)6 h+ }+ Q/ X: ^4 V
     Memory: 3.0M
( Q/ l' S; ]* f5 f2 O/ c% r        CPU: 8ms0 i+ f; C0 n8 A; V
     CGroup: /system.slice/iscsid.service
. b6 ~% S, w) g, E, p" n. D" e             └─2375 /usr/sbin/iscsid -f
2 ^( n: K# C6 q, a+ y' C1 G! Z3 E' |  H# _. W1 D: T
Mar 07 21:25:07 compute3 systemd[1]: Starting Open-iSCSI...
: @) l, H/ r( ]) R1 h5 z  L; SMar 07 21:25:07 compute3 systemd[1]: Started Open-iSCSI.  K9 P6 E' h3 i3 H, ~$ }. M

9 y% H$ A& Z/ E( P$ j& ^- h  L: \: ]7 w/ ?4 e- H: ^: L. ^
再次检查 initiatorname.iscsi 文件,果然存在了:6 U- G2 a+ G" O4 s
5 P8 p3 K0 S) G  M. G) V+ c$ R
once again check the initiatorname.iscsi file
1 {; I+ b* z$ v( c, ?# V8 H0 N, J4 L4 U& c
[root@compute3 ~]# ls /etc/iscsi/initiatorname.iscsi
- e8 G5 e( S% n3 A. u/etc/iscsi/initiatorname.iscsi: g. k1 w! }8 R" Q- X3 W* m; @
[root@compute3 ~]# ls /etc/iscsi/initiatorname.iscsi
) Y7 Y$ B1 T( I/etc/iscsi/initiatorname.iscsi, b2 G1 e) U8 D5 D
/ e; v9 M; M( U2 a! F0 |( u
  u; |, P4 c5 W2 C( J6 p

% C6 u! O1 c2 R4 ]6 D3 h9 U2 h再次创建虚机,不再报错了。' U- j* m$ t- M' O

  t8 ?5 f; C9 n3 e) O  [& V, b5 U: ~( A: E9 i

9 A  T6 [- N, q2025-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']( T# l* g+ b, p2 r
2025-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
7 u. d# K% D+ c! `$ T: p2025-03-07 21:28:49.818 2244 INFO oslo.privsep.daemon [-] privsep daemon starting% ]- E' [: ?; A3 b- r( c
2025-03-07 21:28:49.823 2244 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/08 p  D( r% {3 I( I
2025-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/none9 h9 L5 q' h' h% C% N8 f
2025-03-07 21:28:49.826 2244 INFO oslo.privsep.daemon [-] privsep daemon running as pid 2244) j$ D4 F- l! b4 \- ^
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)
8 x2 U0 j7 _* p& y( N/ l2025-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.$ Q* Y6 G& [/ d( _  P$ k8 z8 d8 C% X
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 release8 J2 m/ A! U: P7 A
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
( U/ _' T; s. ]- |* `, B2025-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  U$ r; N- P# \5 Q
2025-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.
3 j  j) K3 f9 x9 Y. b; i. a* D
+ r4 z1 Y& e2 l/ J% G4 M  w2025-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']  O2 F. i) T( u8 ^9 R: x. c
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
% c' D$ I2 X) E: E! K2025-03-07 21:28:56.306 2297 INFO oslo.privsep.daemon [-] privsep daemon starting3 u' `  Z5 e' u
2025-03-07 21:28:56.312 2297 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
4 ]6 c2 c- B% ]6 e1 F* y2025-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* \+ G- `1 A$ j6 z  n6 G+ n! k* y2 t7 e
2025-03-07 21:28:56.315 2297 INFO oslo.privsep.daemon [-] privsep daemon running as pid 2297
- |8 m+ C. T4 V# ?8 U9 A( g* s, ~
' n  s9 {4 F+ \* N  ?: K
创建虚机这一步问题解决了。
, q0 G. K/ Z1 q9 z6 U  R
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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