rposudnevskiy / RBDSR

RBDSR - XenServer/XCP-ng Storage Manager plugin for CEPH
GNU Lesser General Public License v2.1
58 stars 23 forks source link

sr-scan broken on latest commit #17

Closed Emmenemoi closed 8 years ago

Emmenemoi commented 8 years ago

[root@13 ~]# xe sr-scan uuid=a8726545-cc41-4ff3-b603-XXX Error code: SR_BACKEND_FAILURE_40 Error parameters: , The SR scan failed [opterr=['INTERNAL_ERROR', 'Storage_interface.Vdi_does_not_exist("98bd94aa-2108-41fa-b92a-XXX")']],

But 98bd94aa-2108-41fa-b92a-XXX exists in both XS (xe vdi-list) and in ceph.

98bd94aa-2108-41fa-b92a-XXX is attached to a running VM.

Emmenemoi commented 8 years ago

Full log as a5624ce344f68c56146aba8437b6016049190233

Aug 25 17:58:44 13 SM: [4120] RBDSR.update for 98bd94aa-2108-41fa-b92a-XXX Aug 25 17:58:44 13 SM: [4120] * generic exception: vdi_update: EXCEPTION <type 'exceptions.KeyError'>, 'snapshot-of' Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/SRCommand.py", line 110, in run Aug 25 17:58:44 13 SM: [4120] return self._run_locked(sr) Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked Aug 25 17:58:44 13 SM: [4120] rv = self._run(sr, target) Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/SRCommand.py", line 230, in _run Aug 25 17:58:44 13 SM: [4120] return target.update(self.params['sr_uuid'], self.vdi_uuid) Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/RBDSR", line 657, in update Aug 25 17:58:44 13 SM: [4120] base_vdi_uuid = self_vdi_sm_config["snapshot-of"] Aug 25 17:58:44 13 SM: [4120] Aug 25 17:58:44 13 SM: [4120] * RBD: EXCEPTION <type 'exceptions.KeyError'>, 'snapshot-of' Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/SRCommand.py", line 352, in run Aug 25 17:58:44 13 SM: [4120] ret = cmd.run(sr) Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/SRCommand.py", line 110, in run Aug 25 17:58:44 13 SM: [4120] return self._run_locked(sr) Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked Aug 25 17:58:44 13 SM: [4120] rv = self._run(sr, target) Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/SRCommand.py", line 230, in _run Aug 25 17:58:44 13 SM: [4120] return target.update(self.params['sr_uuid'], self.vdi_uuid) Aug 25 17:58:44 13 SM: [4120] File "/opt/xensource/sm/RBDSR", line 657, in update Aug 25 17:58:44 13 SM: [4120] base_vdi_uuid = self_vdi_sm_config["snapshot-of"] Aug 25 17:58:44 13 SM: [4120] Aug 25 17:58:44 13 SM: [3702] *\ sr_scan: EXCEPTION <class 'XenAPI.Failure'>, ['INTERNAL_ERROR', 'Storage_interface.Vdi_does_not_exist("98bd94aa-2108-41fa-b92a-XXX")'] Aug 25 17:58:44 13 SM: [3702] File "/opt/xensource/sm/SRCommand.py", line 110, in run Aug 25 17:58:44 13 SM: [3702] return self._run_locked(sr) Aug 25 17:58:44 13 SM: [3702] File "/opt/xensource/sm/SRCommand.py", line 159, in _run_locked Aug 25 17:58:44 13 SM: [3702] rv = self._run(sr, target) Aug 25 17:58:44 13 SM: [3702] File "/opt/xensource/sm/SRCommand.py", line 338, in _run Aug 25 17:58:44 13 SM: [3702] return sr.scan(self.params['sr_uuid']) Aug 25 17:58:44 13 SM: [3702] File "/opt/xensource/sm/RBDSR", line 225, in scan Aug 25 17:58:44 13 SM: [3702] self._loadvdis() Aug 25 17:58:44 13 SM: [3702] File "/opt/xensource/sm/RBDSR", line 169, in _loadvdis Aug 25 17:58:44 13 SM: [3702] self.session.xenapi.VDI.set_name_description(vdi_ref, description) Aug 25 17:58:44 13 SM: [3702] File "/usr/lib/python2.7/site-packages/XenAPI.py", line 248, in call Aug 25 17:58:44 13 SM: [3702] return self.send(self.name, args) Aug 25 17:58:44 13 SM: [3702] File "/usr/lib/python2.7/site-packages/XenAPI.py", line 150, in xenapi_request Aug 25 17:58:44 13 SM: [3702] result = _parse_result(getattr(self, methodname)(_full_params)) Aug 25 17:58:44 13 SM: [3702] File "/usr/lib/python2.7/site-packages/XenAPI.py", line 222, in _parse_result Aug 25 17:58:44 13 SM: [3702] raise Failure(result['ErrorDescription']) Aug 25 17:58:44 13 SM: [3702] Aug 25 17:58:44 13 SM: [3702] Raising exception [40, The SR scan failed [opterr=['INTERNAL_ERROR', 'Storage_interface.Vdi_does_notexist("98bd94aa-2108-41fa-b92a-XXX")']]] Aug 25 17:58:44 13 SM: [3702] **\ RBD: EXCEPTION <class 'SR.SROSError'>, The SR scan failed [opterr=['INTERNAL_ERROR', 'Storage_interface.Vdi_does_not_exist("98bd94aa-2108-41fa-b92a-XXX")']] Aug 25 17:58:44 13 SM: [3702] File "/opt/xensource/sm/SRCommand.py", line 352, in run Aug 25 17:58:44 13 SM: [3702] ret = cmd.run(sr) Aug 25 17:58:44 13 SM: [3702] File "/opt/xensource/sm/SRCommand.py", line 120, in run Aug 25 17:58:44 13 SM: [3702] raise xs_errors.XenError(excType, opterr=msg) Aug 25 17:58:44 13 SM: [3702] File "/opt/xensource/sm/xs_errors.py", line 52, in init** Aug 25 17:58:44 13 SM: [3702] raise SR.SROSError(errorcode, errormessage) Aug 25 17:58:44 13 SM: [3702]

Emmenemoi commented 8 years ago

could be needed to force "is-a-snapshot ( RO): false" for non snaps (just in case) ?

Emmenemoi commented 8 years ago

Probably due to dev bad situation