Skip to content
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

Use os_user variable in development_environment role #545

Merged
merged 6 commits into from
Aug 1, 2024

Conversation

archana203
Copy link
Contributor

For the HA RHEV env, we are using a non-root user for accessing the source cloud.

@archana203 archana203 changed the title Add the openstack user variable in development_environment role Use controller_ssh variable in development_environment role Jul 29, 2024
Copy link
Contributor

@xek xek left a comment

Choose a reason for hiding this comment

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

/lgtm

@archana203
Copy link
Contributor Author

recheck

@afaranha afaranha self-requested a review July 29, 2024 13:38
@afaranha
Copy link
Contributor

/lgtm

@archana203 archana203 changed the title Use controller_ssh variable in development_environment role Use os_user variable in development_environment role Jul 30, 2024
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/34c1625d08594700bdea901febb9d828

adoption-standalone-to-crc-ceph FAILURE in 2h 10m 16s
adoption-standalone-to-crc-no-ceph FAILURE in 2h 19m 56s

@archana203
Copy link
Contributor Author

recheck

@@ -6,10 +6,11 @@
EDPM_PRIVATEKEY_PATH: "{{ edpm_privatekey_path }}"
OS_CLOUD_IP: "{{ standalone_ip | default(edpm_node_ip) }}"
OS_CLOUD_NAME: "{{ os_cloud_name }}"
OS_USER: "{{ os_user }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a "OS_USERNAME" variable which means "the user account in OpenStack that is used for API calls". To avoid confusion with that one, i think we should probably call this something like "EDPM_SSH_USER"? But let's first run through the test whether this can fix the RHEL job before we rename? Or i'd be even ok landing this and then renaming in a follow-up PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually yes let's land this and rename in a follow-up. Sorry i didn't realize this on the first pass of the review :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

EDPM_SSH_USER seems to be an user used to ssh compute nodes. Here, we are doing ssh to the node from where we can access the openstack cloud configs to generate a token.

Copy link
Contributor

Choose a reason for hiding this comment

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

Fair enough, but personally i'd still at least include "SSH" later, to not be too close to the openstack client vars: https://docs.openstack.org/newton/user-guide/common/cli-set-environment-variables-using-openstack-rc.html

Not something that needs to change right now anyway :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OS_USER_SSH sounds good though

Copy link
Contributor

Choose a reason for hiding this comment

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

I echo with what Jiri commented, anything with OS_ prefix should be reserved only to OpenStack related environment variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What about OSP_SSH_USER ?

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/7432672aad714c94a12f627da2f7f33b

adoption-standalone-to-crc-ceph FAILURE in 1h 29m 33s
✔️ adoption-standalone-to-crc-no-ceph SUCCESS in 2h 38m 50s

@jistr
Copy link
Contributor

jistr commented Aug 1, 2024

recheck

@jistr jistr merged commit 535997b into openstack-k8s-operators:main Aug 1, 2024
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.

5 participants