Hi lejeczek, The error comes from 'pcs resource move' command.
This command creates a constraint to move the specified resource, waits for the resource to move, and then removes the constraint so it doesn't block further failover or moving of the resource.
Since removing the constraint may result in the resource being moved back to its original location due to other cluster configuration, pcs runs all these steps in a simulation before changing the live cluster configuration. If the simulation results in the resource being moved out of the desired node, pcs exits with the error you are seeing.
To debug this, run pcs command with '--debug' flag. This will give you the result of the simulation - probably showing the resource to be moved to a specific node. From there you can check your cluster configuration for constraints or other parts that may be causing this move back.
You can also use 'pcs resource move-with-constraint' to move the resource and leave the move constraint in the configuration. It is then up to you to remove the constraint when you see fit.
Regards, Tomas Dne 25. 11. 26 v 13:09 lejeczek via Users napsal(a):
Hi guys. I thought I've had in my notes - but no - I remember that it was possible to debug a resource. I cannot say was this specifically _virtualDomain_ only or any resource. Do you know if that is possible? I cannot _resource move_ a VirtualDomain, cluster only says: .. Error: Unable to ensure that moved resource 'VM' will stay on the same node after a constraint used for moving it is removed .. and nothing, no much in logs. thanks, L. _______________________________________________ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
_______________________________________________ Manage your subscription: https://lists.clusterlabs.org/mailman/listinfo/users ClusterLabs home: https://www.clusterlabs.org/
