ClusterLabs / fence-agents

Fence agents
104 stars 160 forks source link

fencing: Add Error Message & Use EC_OK #554

Closed razo7 closed 1 year ago

razo7 commented 1 year ago

- Four error codes (EC_INVALID_PRIVILEGES, EC_STATUS_HMC, EC_FETCH_VM_UUID, and EC_BAD_ARGS) have not been used, thus they can be dismissed.

knet-jenkins[bot] commented 1 year ago

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/fence-agents/job/fence-agents-pipeline/job/PR-554/1/input

knet-jenkins[bot] commented 1 year ago

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/fence-agents/job/fence-agents-pipeline/job/PR-554/2/input

knet-jenkins[bot] commented 1 year ago

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/fence-agents/job/fence-agents-pipeline/job/PR-554/3/input

oalbrigt commented 1 year ago

We want to keep those. They could be used by external agents, and also we dont want to change the return code numbers as pcs and other utilities map their values to know what has happened.

oalbrigt commented 1 year ago

The EC_OK/result parts look good though. Makes the code easier to read IMO.

razo7 commented 1 year ago

I understand. What about the Add error message for EC_GENERIC_ERROR commit? Should it stay with EC_OK/result commit?

oalbrigt commented 1 year ago

Yeah. That looks good to me. I dont think it was intended for that, but shouldnt hurt.

knet-jenkins[bot] commented 1 year ago

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/fence-agents/job/fence-agents-pipeline/job/PR-554/4/input

knet-jenkins[bot] commented 1 year ago

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/fence-agents/job/fence-agents-pipeline/job/PR-554/5/input

knet-jenkins[bot] commented 1 year ago

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/fence-agents/job/fence-agents-pipeline/job/PR-554/6/input

oalbrigt commented 1 year ago

Thanks.