Skip to content

Rfc0003 fencing agent for gfs2 - #9

Closed
billhpe wants to merge 4 commits into
mainfrom
rfc0003-fencing-agent-for-gfs2
Closed

Rfc0003 fencing agent for gfs2#9
billhpe wants to merge 4 commits into
mainfrom
rfc0003-fencing-agent-for-gfs2

Conversation

@billhpe

@billhpe billhpe commented Nov 15, 2022

Copy link
Copy Markdown

No description provided.

Signed-off-by: Bill Johnson <billj@hpe.com>
Signed-off-by: Bill Johnson <billj@hpe.com>
Signed-off-by: Bill Johnson <billj@hpe.com>
@NateThornton

Copy link
Copy Markdown
Contributor

If HSS presents a standardized Redfish interface, would that be preferred to some SSH console hacking? I see a Redfish fencing agent in the ClusterLabs repo - have you tried that?

@billhpe

billhpe commented Nov 15, 2022

Copy link
Copy Markdown
Author

If LLNL was interested in pursuing a power off approach, then this would be worth investigating. It is work that I did prior to LLNL indicating that they'd rather pursue a kubernetes based notification rather than powering anything off.

print("e.g. export PYTHONPATH=/usr/share/fence/")
exit(1)

def get_power_status(conn, options):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just fence_hpe_hss_ssh, but with different set_power_status() and reboot_cycle() methods? Looks like the remainder of the code (imports, get_power_status(), main()) is the same.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I copied it from that agent and then neutered it a bit. Now that you bring this up, this agent does query the Redfish CLI for the current power status, so it may be a candidate for a more native redfish approach rather than using SSH.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 a TODO for the next person

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did take a quick look at the HSS, you can interact with it easily with curl, however the port is not currently listening on the external IP.

@NateThornton

Copy link
Copy Markdown
Contributor

If LLNL was interested in pursuing a power off approach, then this would be worth investigating. It is work that I did prior to LLNL indicating that they'd rather pursue a kubernetes based notification rather than powering anything off.

Maybe I don't understand the requirements, but I was thinking fence_hpe_hss_ssh would be used for compute nodes, which continue to be fenced with the power-off approach. And the rabbit would still report the HSS status in the get_power_status() call. So all would benefit from a Redfish-based agent.

Signed-off-by: Bill Johnson <billj@hpe.com>
@NateThornton

Copy link
Copy Markdown
Contributor

The proposed changes are not suitable for NNF hardware.

See #14, #22 and successive changes

@bdevcich
bdevcich deleted the rfc0003-fencing-agent-for-gfs2 branch September 25, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants