-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workflow/hosts.py returns hercules on orion following rocky 9 upgrade #2695
Comments
Thanks @RussTreadon-NOAA |
Thank you @aerorahul for the information. I was unaware of this fact. I do not have a solution for the compute node section of |
We may be able to grep |
Better yet: [[ $(findmnt -n -o SOURCE /home) =~ "hercules" ]] && echo "Hercules"
[[ $(findmnt -n -o SOURCE /home) =~ "orion" ]] && echo "Orion" |
Resolved by #2700. Closing. |
What is wrong?
Following the Orion Rocky 9 upgrade,
workflow/hosts.py
returnsmachine-HERCULES
What should have happened?
workflow/hosts.py
should returnmachine=ORION
when executed on Orion.What machines are impacted?
Orion
Steps to reproduce
develop
on OrionHost()
Additional information
The
detect
method inhosts.py
containsThis logic no longer works on Orion following the Rocky 9 upgrade. Directory
/apps/other
exists on Orion. Thus,machine
is set toHERCULES
Do you have a proposed solution?
g-w
ush/detect_machine.sh
has similar faulty logicExecution of the above on Orion now returns
MACHINE_ID=hercules
. However, before this section ofdetect_machine.sh
, the script useshostname -f
to also setMACHINE_ID
. For Orion and Hercules, the script has the linesThis section of the script correctly sets
MACHINE_ID=orion
.The python
socket.gethostname()
orplatform.node()
return the hostname. Add these to the test python scriptExecute on Orion and get
Can we use
socket.gethostname()
orplatform.node()
to return the login hostname and from this setmachine
accordingly?The text was updated successfully, but these errors were encountered: