Open northbear opened 6 years ago
Hi...
I met issue with trying to activate HA on XCP-ng 7.5 cluster. /var/log/SMlog contains message about exceptions:
Oct 3 16:54:31 xn01 SM: [16852] ['ceph', 'df', '--format', 'json', '--name', 'client.admin'] Oct 3 16:54:31 xn01 SM: [16852] pread SUCCESS Oct 3 16:54:31 xn01 SM: [16852] ['rbd', 'info', '__srlock__', '--pool', 'RBD_XenStorage-f00cfb82-ebae-439d-be2b-4d5cfa900546', '--format', 'json', '--name', 'client.admin'] Oct 3 16:54:31 xn01 SM: [16852] pread SUCCESS Oct 3 16:54:31 xn01 SM: [16852] RBDSR.RBDSR.vdi vdi_uuid = b81c7446-d370-49d9-b2ef-5f5a29348897 Oct 3 16:54:31 xn01 SM: [16852] ['rbd', 'info', 'VHD-b81c7446-d370-49d9-b2ef-5f5a29348897', '--format', 'json', '--pool', 'RBD_XenStorage-f00cfb82-ebae-439d-be2b-4d5cfa900546', '--name', 'client.admin'] Oct 3 16:54:32 xn01 SM: [16852] pread SUCCESS Oct 3 16:54:32 xn01 SM: [16852] vdi_generate_config {'sr_uuid': 'f00cfb82-ebae-439d-be2b-4d5cfa900546', 'subtask_of': 'OpaqueRef:0796b4ed-99e5-4e1c-95f7-6ff9a5b23150', 'vdi_ref': 'OpaqueRef:cfbd147f-690e-4ab0-8bb3-f451a0eaad41', 'vdi_on_boot': 'persist', 'args': [], 'vdi_location': 'b81c7446-d370-49d9-b2ef-5f5a29348897', 'host_ref': 'OpaqueRef:bb118566-be42-4838-b6e9-035bb1dcd382', 'session_ref': 'OpaqueRef:2b855bdf-bd37-4782-bb50-e8ad54d6762c', 'device_config': {'rbd-mode': 'nbd', 'SRmaster': 'true'}, 'command': 'vdi_generate_config', 'vdi_allow_caching': 'false', 'sr_ref': 'OpaqueRef:fccab3cc-0268-480d-9f2c-5b9660e72139', 'vdi_uuid': 'b81c7446-d370-49d9-b2ef-5f5a29348897'} Oct 3 16:54:32 xn01 SM: [16928] ['ceph', 'df', '--format', 'json', '--name', 'client.admin'] Oct 3 16:54:32 xn01 SM: [16928] pread SUCCESS Oct 3 16:54:32 xn01 SM: [16928] ['rbd', 'info', '__srlock__', '--pool', 'RBD_XenStorage-f00cfb82-ebae-439d-be2b-4d5cfa900546', '--format', 'json', '--name', 'client.admin'] Oct 3 16:54:32 xn01 SM: [16928] pread SUCCESS Oct 3 16:54:32 xn01 SM: [16928] RBDSR.RBDSR.vdi vdi_uuid = b81c7446-d370-49d9-b2ef-5f5a29348897 Oct 3 16:54:32 xn01 SM: [16928] ['rbd', 'info', 'VHD-b81c7446-d370-49d9-b2ef-5f5a29348897', '--format', 'json', '--pool', 'RBD_XenStorage-f00cfb82-ebae-439d-be2b-4d5cfa900546', '--name', 'client.admin'] Oct 3 16:54:32 xn01 SM: [16928] pread SUCCESS Oct 3 16:54:32 xn01 SM: [16928] vdi_attach_from_config {'sr_uuid': 'f00cfb82-ebae-439d-be2b-4d5cfa900546', 'device_config': {'rbd-mode': 'nbd', 'SRmaster': 'true'}, 'command': 'vdi_attach_from_config', 'vdi_uuid': 'b81c7446-d370-49d9-b2ef-5f5a29348897'} Oct 3 16:54:32 xn01 SM: [16928] ***** generic exception: vdi_attach_from_config: EXCEPTION <type 'exceptions.AttributeError'>, 'NoneType' object has no attribute 'xenapi' Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/SRCommand.py", line 110, in run Oct 3 16:54:32 xn01 SM: [16928] return self._run_locked(sr) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked Oct 3 16:54:32 xn01 SM: [16928] rv = self._run(sr, target) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/SRCommand.py", line 294, in _run Oct 3 16:54:32 xn01 SM: [16928] ret = target.attach_from_config(self.params['sr_uuid'], self.vdi_uuid) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/rbdsr_common.py", line 2036, in attach_from_config Oct 3 16:54:32 xn01 SM: [16928] self.sr.attach(sr_uuid) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/rbdsr_common.py", line 783, in attach Oct 3 16:54:32 xn01 SM: [16928] sr_sm_config = self.session.xenapi.SR.get_sm_config(self.sr_ref) Oct 3 16:54:32 xn01 SM: [16928] Oct 3 16:54:32 xn01 SM: [16928] ***** RBD: EXCEPTION <type 'exceptions.AttributeError'>, 'NoneType' object has no attribute 'xenapi' Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/SRCommand.py", line 372, in run Oct 3 16:54:32 xn01 SM: [16928] ret = cmd.run(sr) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/SRCommand.py", line 110, in run Oct 3 16:54:32 xn01 SM: [16928] return self._run_locked(sr) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked Oct 3 16:54:32 xn01 SM: [16928] rv = self._run(sr, target) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/SRCommand.py", line 294, in _run Oct 3 16:54:32 xn01 SM: [16928] ret = target.attach_from_config(self.params['sr_uuid'], self.vdi_uuid) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/rbdsr_common.py", line 2036, in attach_from_config Oct 3 16:54:32 xn01 SM: [16928] self.sr.attach(sr_uuid) Oct 3 16:54:32 xn01 SM: [16928] File "/opt/xensource/sm/rbdsr_common.py", line 783, in attach Oct 3 16:54:32 xn01 SM: [16928] sr_sm_config = self.session.xenapi.SR.get_sm_config(self.sr_ref) Oct 3 16:54:32 xn01 SM: [16928]
Hi...
I met issue with trying to activate HA on XCP-ng 7.5 cluster. /var/log/SMlog contains message about exceptions: