Right, to anyone seeing this - I got the confirmation I needed and can confirm that updating sm and sm-fairlock will allow the master host to mount the XOSTOR SR again properly.
RPU is now resumed and all looks good - Thank you, @dthenot
Right, to anyone seeing this - I got the confirmation I needed and can confirm that updating sm and sm-fairlock will allow the master host to mount the XOSTOR SR again properly.
RPU is now resumed and all looks good - Thank you, @dthenot
ccooke said:
Does it look like you need to examine anything? I'm okay keeping it as-is for another day or two, but it would be good to know.
For what it's worth, I have now wiped and restored from backup. Sorry, couldn't wait any longer!
Also for what it's worth - I think your answer was clear here, and this one should probably be marked as solved. If there's any sane instructions that anyone else can use to repair the xostor SR if this happens - or if the best thing to do is wipe and restore due to potential risk - it would be good to have some guidance. But I'm entirely happy 
Do your hosts have public IP addresses on their management interface? I'm asking because the XOSTOR docs carry a warning about that setup (here) : according to them, the LINSTOR satellites listen on port 3366 without authentication, and an outside party can connect to them and get in the way of the real controller.
If yours are reachable from outside, I think a different address each time would fit that, but I haven't checked it against a setup like yours. Thanks for offering to keep the cluster in that state for a bit. I'd point @Team-Storage at it before you reboot anything, since they're much better placed than me to say what's worth collecting.
Does it look like you need to examine anything? I'm okay keeping it as-is for another day or two, but it would be good to know.
@ccooke As said by @poddingue , your network is not isolated. You must change that to protect your pool. We are aware of this issue and we will change this behavior in a future release to block LINSTOR controller and satellite access from the outside (probably in December). Also we will use TLS to add another security layer.
Right. I missed that warning - I was going from https://xcp-ng.org/forum/topic/5361/xostor-hyperconvergence-preview which doesn't look to link to the XOSTOR documentation with the warning.
Does this need a full reinstall effectively, or can I recover it?
I see the warning is you can't have hypervisors with any public IPs - that will need a little re-engineering for my small test cluster. I know you can change the IP addresses for linstor after installing xostor - does that resolve the issue, or is there no way to secure it when the hypervisor is on a public IP? Could I not just add some firewall rules for now?
Thanks for the reply.
HI,
I have a test cluster which has exhibited a repeated failure pattern. After a week or two of operation, all actions on the XOSTOR SR fail with messages like this:
SR_BACKEND_FAILURE_47(, The SR is not available [opterr=Error: Unable to connect to linstor://82.147.85.101: [Errno 111] Connection refused], )
Note that this IP address is not part of my cluster. Once the error message appears, it will complain about the same IP address until I fix the issue (usually by some fairly drastic cluster reboots and/or recreating the SR). This has now happened three times, with a different apparently-random IP each time.
Obviously this looks very suspicious. Thankfully there's no serious data on this cluster at the moment, and I have extensive offsite backups if needed. I can keep it running like this for a little while if anyone is able to do some debugging.
Hopefully this is just a very odd bug, of course, but I'd like to be sure. Especially because it is now recurring.
Thanks,
Right, to anyone seeing this - I got the confirmation I needed and can confirm that updating sm and sm-fairlock will allow the master host to mount the XOSTOR SR again properly.
RPU is now resumed and all looks good - Thank you, @dthenot
@dthenot
To be clear here: The XOSTOR SR is working - but only on the hosts that have not ugraded.
If you can tell me that this is a known issue and that updating sm and sm-fairlock on all of the hosts should still fix it so that the pool master (the only updated host, which does have the updated sm and sm-fairlock) can successfully activate the XOSTOR SR, I'll do a full migration off XOSTOR and give it a try.
Just please tell me that this is the expected case before I have to go and potentially lose all my redundant VM storage and ability to do migrations! Completing the update without migrations will be rather painful.
@dthenot ... The XOSTOR SR is working on the other hosts. It's only the master which updated where it fails to plug the pbd. Given that it can't mount the pbd after doing the update, I am very doubtful about updating another host.
What's more, I can't without shutting down a large number of VMs or doing a long migration off the XOSTOR, because I only have N+1 redundancy on my personal cluster, and we're already one host down because the master can't rejoin the XOSTOR SR.
In short, this looks like a very dangerous suggestion - sorry!
After the update, the master server (first to be updated, of course) can no longer attach the xostor SR.
I have verified that the rolling pool update did look for updated packages, and that xostor is still installed and working (thankfully the linstor services are working fine, so there's no risk of data loss here).
When trying to mount the SR, the master host gets this error:
[19:02 goethite ~]# xe pbd-plug uuid=91e19949-cf2c-b1bb-7dda-d2c114c113a1
Error code: SR_BACKEND_FAILURE_46
Error parameters: , The VDI is not available [opterr=Could not load 5cb360ea-0904-472c-a3f9-1a44b97936c3 because: ['UNKNOWN_XENAPI_PLUGIN_FUNCTION', 'getInfo'] (openers: {'hematite.earth.gkhs.net': {'26922': {'process-name': '+tapdisk', 'open-duration': '612038496'}}, 'goethite.earth.gkhs.net': {}, 'siderite.earth.gkhs.net': {}})],
I would advise nobody updates a host using XOSTOR until this gets fixed!