易陆发现互联网技术论坛

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

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

[复制链接]
发表于 2025-3-7 17:17:25 | 显示全部楼层 |阅读模式

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

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

x
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.( l9 h- p8 c  z; x
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
, C: o. k; F6 R. w) {) Y+ P6 y2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
9 |+ y$ S2 T" q1 B2025-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
( l+ C/ r! ]; h/ i* C2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     self.driver.validate_connector(connector)$ h' l9 X3 ]' l
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- q6 B' {4 F& T& }; W. Z/ |5 V
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     return self.target_driver.validate_connector(connector)+ i3 i5 g; g7 r' ?( {
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_connector1 _5 G& H  Q& i) y9 I9 H3 ]9 C
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     raise exception.InvalidConnectorException(missing='initiator'). ~, b, g7 ]! m  ?# O
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server cinder.exception.InvalidConnectorException: Connector doesn't have required information: initiator
2 r3 Y9 v/ A$ U5 W' n3 q. E* H2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server
% w1 M' \0 U& @% J" f2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:4 H" I- @$ [' \3 X
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server , d0 N  \" c) C1 Y
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
0 x3 h/ {* ?* X2 a. r2 s! [5 o2025-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
! K' G5 E! m7 K$ C5 H( }2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     res = self.dispatcher.dispatch(message)+ r+ L+ H; J  ]
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
; U0 J% y3 {% u- b2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     return self._do_dispatch(endpoint, method, ctxt, args)
. U  B- B$ ?. F9 B& z& I$ I- A2025-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
3 X+ w, q' a; g- N3 J. y2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     result = func(ctxt, **new_args)
+ i5 e0 ~$ }7 o2 g& f0 y2025-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
$ f5 S# Y$ Q1 w2 D6 T  }4 ~2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     connection_info = self._connection_create(context,  \" _0 p+ ]5 p* |3 X8 P
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_create' B4 p  M, H* b0 `4 Q% g6 W
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server     raise exception.InvalidInput(reason=str(err))  S8 `) w9 ?9 x  r2 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: k& J" v- W- ?
2025-03-07 17:05:14.757 2428 ERROR oslo_messaging.rpc.server
; S2 k5 a: r" [3 d1 a
% d2 [0 p; O! f2 j" I& {' |
0 z, W0 G3 ?  G7 t  D9 F) b7 {0 q7 f
7 K1 [( g! q+ ~排查原因' W7 T" f$ A6 C# k# [3 l
在cinder中能查询到卷,说明卷没有问题。: `- j8 M8 t5 t0 ^9 F! U: Z

- v2 H# b3 X( k+ t" {1 G0 z6 U
7 V+ Q4 I; L" T& B# C, {/ L& C! e
 楼主| 发表于 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)].
 楼主| 发表于 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)
 楼主| 发表于 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.. _3 n4 w( z* S0 R; r: 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): s% O: a' G' i8 Z; h
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)
" G. ]* u6 F) j) P$ v$ k& ~2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d] Traceback (most recent call last):5 H7 q3 a8 B0 }- a- Y7 [* {
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 _prep1 P4 D3 Z9 \* m8 J
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     driver_block_device.attach_block_devices($ H/ u7 I3 p  F6 f9 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/virt/block_device.py", line 936, in atta& P/ f) v5 E8 [) V
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     _log_and_attach(device)  Z2 r- i: i) }0 q' 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 933, in _log2 _% M( g3 a  Q! p" @6 b9 D) Y6 O
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     bdm.attach(*attach_args, **attach_kwargs)( a; m% P/ R3 L% p* w
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
5 x  @; r8 U! D, n; }2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     super(DriverVolImageBlockDevice, self).attach(
; u  g) z5 l! I' 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 46, in wrapp3 h" E: p8 ]5 `" G) N1 P* r
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): t; i" R, k, t5 `7 I' x& 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 734, in atta* c# f# e* y) Y+ e3 ^+ Q  e
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,
; D9 v$ Q" h5 E" t9 G7 q' 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/nova/virt/block_device.py", line 719, in _do_
( P8 A1 i! M5 }; R5 r2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     self._volume_attach(context, volume, connector, instance,
- o/ Q' h3 P8 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 633, in _vol
  a3 ]% ]: X( Y: E7 X( T+ H& j7 p2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     connection_info = volume_api.attachment_update($ m4 j! V# q) A: v7 q/ q
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
" U. @: ]. T5 x# g0 @$ j9 P2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     res = method(self, ctx, *args, **kwargs)
* M& N; Q3 s4 Y9 W2025-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: c5 P6 c0 @) {& X3 Q
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)
  g0 W, n  C, w) F/ B" w2025-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* d$ N' ^4 x9 q0 ], ?
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 '
# p7 L* m1 L$ Z8 Q* f, Q2025-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_
. G! l0 }. ^+ t2 `' b! I% ?2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     self.force_reraise()7 Z. v2 K) [( \* Z: X) g1 [8 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/oslo_utils/excutils.py", line 200, in force_r9 X( \) y; D5 w- |
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     raise self.value
; n* |. q7 V( D& f$ 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/volume/cinder.py", line 908, in attachme
  ]. N: M* G- I) t( W2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     attachment_ref = cinderclient(( A1 m! d# X. X( K6 @; [9 l9 d) x
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 s0 l8 e3 K( T8 g  N
2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     return method.func(obj, *args, **kwargs): r7 u) U. |1 g1 K. 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/cinderclient/v3/attachments.py", line 75, in
: j* p$ T" t* `" D: W4 T" C2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     resp = self._update('/attachments/%s' % id, body)
2 \+ E  l' \( ]3 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/base.py", line 318, in _update! k# G  [7 v( u+ Z. [( c
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)3 d: b0 k! {4 g
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 put
  S2 W) m* i* h2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     return self._cs_request(url, 'PUT', **kwargs)5 e; d2 p1 q5 Q
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 211, in _cs_req
" C7 T  K6 A3 k6 f6 [$ L$ S2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     return self.request(url, method, **kwargs)
* Y: Z! f' n' O, k! S; 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/cinderclient/client.py", line 197, in request
" q1 s8 {+ ]5 W, U( _' c$ h4 }& o2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]     raise exceptions.from_response(resp, body)" x$ Y/ \) I( [0 d
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)
) ?% S  S" u6 o6 a) T4 }2025-03-07 21:09:46.049 1805 ERROR nova.compute.manager [instance: 6192405a-f503-4292-8634-a5361aec901d]
4 T5 T9 b: K: [- D$ o( p2025-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)4 a: }7 K  j! H
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']3 c1 {0 T9 w( e1 C: W, {5 h
2025-03-07 21:09:47.165 1805 INFO oslo.privsep.daemon [None req-c1753f50-d290-40c8-9719-57a29f2ae244 a2487e85c7ef4adaab0a5f4951bd2878 588cf0c5e78040baaf44997c811aa2b0 - - default default] Spaap
) Q# s" h( x0 y, C# X2025-03-07 21:09:47.032 1953 INFO oslo.privsep.daemon [-] privsep daemon starting1 N1 d' g# G7 z; i- C6 B
2025-03-07 21:09:47.038 1953 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
: I' q- p, z- Z7 r+ V9 V2025-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
( N9 J* j5 {; U% `2 U2025-03-07 21:09:47.041 1953 INFO oslo.privsep.daemon [-] privsep daemon running as pid 1953( b, F1 I: k' j* R3 {3 S, v
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')" ^( r. E5 c* Z( B
2025-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.% E- l  o  k6 D' O
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
. q. }' g+ W& F2025-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-4d38 p* v* }+ h3 [6 m5 Z1 _
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
5 p& A# |, l: h6 j" y
 楼主| 发表于 2025-3-7 21:42:02 | 显示全部楼层
上面的日志其实都没有啥帮助:) ?. }% m  m! T; Q( W2 c) K
主要是这个日志最主要:
- f% C2 d% y; e7 S* C, | 2 m6 S$ e% E" Z0 J. J0 Q
iSCSI Initiator File /etc/iscsi/initiatorname.iscsi: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.  
# N; k/ K$ s* g# `
6 `" f, A% h& J% ]这个呢,我便去节点上看看,想这个怎么回事呢?难道要启动iscsid服务?
8 Z/ y. p2 T" N0 v5 O2 t带着这个问题,我就去检查:initiatorname.iscsi
& F. ~, P8 y2 N  X; X, L
' M& Y0 c. i; H1 l) s. s# p6 V[root@compute3 ~]# vim /etc/iscsi/iscsid.conf 5 e; f, A( n( V! _' b' q0 m/ X3 m
anaconda-ks.cfg  .bash_history    .bash_logout     .bash_profile    .bashrc          .cache/          .cshrc           .lesshst         .ssh/            .tcshrc          .viminfo    1 X1 G+ D# w0 y- X$ W
9 J1 K  c9 @( r( _: }% p+ h# l
只有iscsid.conf 文件,那就是没有生成这个文件:
+ k" m6 S7 Y: L' X那我只能尝试创建这个文件:   会不会是iscsid这个服务给创建的呢?" C1 o0 [- C# N# _% Y# _
于是检查状态:' W. v4 N3 O- j* ?# [% f
[root@compute3 ~]# systemctl status iscsid.service ; S1 f2 w6 D- o7 ^0 G4 k
○ iscsid.service - Open-iSCSI! a4 m0 I" X- c: T! [
     Loaded: loaded (/usr/lib/systemd/system/iscsid.service; disabled; preset: disabled)7 Y8 ~  }& K$ ~$ j; e" I1 \( L1 s
     Active: inactive (dead)0 k( h: u* C2 v% p- q
TriggeredBy: ● iscsid.socket
. B" e8 s8 o, u       Docs: man:iscsid(8)
0 [$ [- w0 K* r% e, Z" ~  s& o2 s             man:iscsiuio(8)
" M; ?  m! g9 v2 h& n5 Q             man:iscsiadm(8)9 c( e. m$ V) @! s/ p, A
8 A; j3 a! r5 e& o! m- A' c
5 L/ R( k: a- x9 k3 Q& t
service not on  ,next step ,we start  iscsid  service :
4 t9 x& y/ r$ L% S4 \$ dfor example: & `' |  X- E: D/ _, }
[root@compute3 ~]# systemctl start iscsid.service
% I7 Q+ t- n- Q7 I
" _" K* L7 ]  o3 T2 }) f4 R, Echeck The iscsid service4 J' N5 v0 z: a' |! T
  1 K7 M$ e& S0 e# D/ R4 M
[root@compute3 ~]# systemctl status iscsid.service
. g2 u8 E, C" h/ i6 R! T1 q● iscsid.service - Open-iSCSI5 m, s9 t7 }3 r
     Loaded: loaded (/usr/lib/systemd/system/iscsid.service; disabled; preset: disabled)4 T. K+ z0 h, x% j7 Z$ r
     Active: active (running) since Fri 2025-03-07 21:25:07 CST; 1s ago/ ]( L0 S* ~* x: V  G0 E' K
TriggeredBy: ● iscsid.socket
* @8 |2 R2 G- {& Z: X+ ?3 O- X       Docs: man:iscsid(8)! K5 h# F* R9 a
             man:iscsiuio(8)* y; h7 G, @  ^0 M- P( c2 y
             man:iscsiadm(8)- v0 I0 y+ m1 t
   Main PID: 2375 (iscsid)( L/ [" U3 E& S: E
     Status: "Ready to process requests"
" M+ g/ A" ?8 r: ]  d" e! b: E      Tasks: 1 (limit: 100207)& [, N$ H1 h7 s; U: t) x* ~* j+ b
     Memory: 3.0M3 l) @5 ]6 Z- L7 o
        CPU: 8ms# p; f! d+ k7 ]$ m! S
     CGroup: /system.slice/iscsid.service" S7 ^; t3 B, o/ x& k* N5 X1 t
             └─2375 /usr/sbin/iscsid -f8 p0 R% \# e8 q" R" A

, e+ s3 X; ]  I0 W2 O8 k/ r& IMar 07 21:25:07 compute3 systemd[1]: Starting Open-iSCSI...
. J5 j' a. s& B2 g, j# S) KMar 07 21:25:07 compute3 systemd[1]: Started Open-iSCSI.
; J0 Z2 o1 e5 k
1 n8 ?6 P) j; r7 R  V; q
8 W7 X4 }$ y! o9 X  S再次检查 initiatorname.iscsi 文件,果然存在了:0 Q8 V0 ]5 i$ U1 K# f) t: t$ T

) z# \( M$ Y4 ]8 Ionce again check the initiatorname.iscsi file 4 n4 ^- s) f4 a3 x% g

2 A! ]9 C9 N  G1 K[root@compute3 ~]# ls /etc/iscsi/initiatorname.iscsi' w1 r  F+ n% M
/etc/iscsi/initiatorname.iscsi' M# V+ L8 ^3 G, |0 g& E
[root@compute3 ~]# ls /etc/iscsi/initiatorname.iscsi6 W+ X- z, e  b( V) }2 X
/etc/iscsi/initiatorname.iscsi1 s* Q9 i7 E. f

5 L! w6 T6 ~3 u% t& |& A
7 T! K" @/ q: p' B. [
7 r6 {, s$ {* ?$ [7 X再次创建虚机,不再报错了。
4 B8 K. V* r5 g # }; D/ u6 P! E* i% p( p. g' T7 n
3 p- U) h7 j: k& D; z  j) p- r
, i0 |; k, S# k$ z7 i% L) b9 _
2025-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']
* z* C# x2 F: C9 I4 Z6 {; w2025-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
. [: x- @8 b3 }$ F/ f2025-03-07 21:28:49.818 2244 INFO oslo.privsep.daemon [-] privsep daemon starting/ m! S5 L- ^( k/ _
2025-03-07 21:28:49.823 2244 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
. j" {. S! x+ i, Q; Q% \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 y" u0 O1 h5 E% Z
2025-03-07 21:28:49.826 2244 INFO oslo.privsep.daemon [-] privsep daemon running as pid 2244
* d. G% A/ X$ r9 |! @# R4 X6 Z: K2025-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), ?, @% w$ A4 I+ O1 B: Q
2025-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.
+ l) J* n" g5 ?+ i8 I9 [0 s* J! g2025-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 release+ ~" V# o4 I$ T+ }; ^
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  ^$ ?5 K  s7 ^; u, @8 L
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:32606 l8 `2 _3 V; F/ }" e: {8 ~: U! i
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.# c5 m2 o8 R& H: R

' _+ @* n/ q% Z; M- x8 C+ ?! |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']5 |& ?4 u9 s( ~/ G. ?5 @
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' R1 z$ A7 E- }
2025-03-07 21:28:56.306 2297 INFO oslo.privsep.daemon [-] privsep daemon starting
' E( o% a+ J* w( h$ W; _2025-03-07 21:28:56.312 2297 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
  m4 r7 `8 ?/ e2 }2025-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
, i  N0 c$ G( L: p, K/ N2025-03-07 21:28:56.315 2297 INFO oslo.privsep.daemon [-] privsep daemon running as pid 2297& @3 n7 {# ?5 A1 d% ]; X
8 _% u4 b& S" X# [! Z0 Q

5 h9 C7 Q" Z) [( _5 v; v- G创建虚机这一步问题解决了。
! j" e+ q7 x" R+ H) ]2 @
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 19:53 , Processed in 0.053685 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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