Skip to content

Conversation

@awfabian-rs
Copy link
Contributor

No description provided.

@awfabian-rs
Copy link
Contributor Author

awfabian-rs commented Mar 13, 2025

For setup-openstack-rc.sh, USER_NAME="$(who am i | awk '{print $1}')" and USER_NAME="$(whoami)" should be equivalent, but when I ran scripts/hyperconverged-lab.sh, something with the ttys or who knows what caused the username to end up blank when setting it by USER_NAME="$(who am i | awk '{print $1}')" but USER_NAME="$(whoami)" worked.

For hyperconverged-lab.sh, I got errors running the openstack command without sourcing genestack.rc and and where it ran setup-openstack-rc.sh, the root user seemed set up for the kubectl commands in setup-openstack-rc.sh and the sudo suggested that it should set up the root user. More worked as the root user than ubuntu, so I fixed it up that way. This worked when I ran it all together as root in a HEREDOC, and ends up with the root user with a working openstack command and finishes the final stanza of openstack command setup.

I know this must've worked as written because I saw the recording. Feel free to request changes, ask for clarifications, or reject the PR because I don't understand entirely why I had to make these changes for it to work, but I had to make changes to get it to run through to completion, and it looks like maybe it originally should've worked to set up the ubuntu user as running the openstack commands, but in the face of ambiguity, I resolved it toward the root user which seemed to have more working

@cloudnull cloudnull merged commit d3a21f7 into rackerlabs:main Mar 13, 2025
2 checks passed
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