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

Add become in bootstrap-hypervisor.yml #1693

Merged

Conversation

hjensas
Copy link
Contributor

@hjensas hjensas commented May 14, 2024

Let's not assume it is possible to login as root.
Add's "become: true" to the tasks that require priviliges.

As a pull request owner and reviewers, I checked that:

  • No actual test for that playbook - it's provided as an extra.

@openshift-ci openshift-ci bot requested review from dpinhas and rlandy May 14, 2024 13:42
@github-actions github-actions bot marked this pull request as draft May 14, 2024 13:42
Copy link

Thanks for the PR! ❤️
I am marking it as a draft, once passing your happy and the PR is passing CI click the "Ready for review" button below.

@@ -4,6 +4,7 @@
_user: "{{ remote_user | default('zuul') }}"
tasks:
- name: Create user on remote host
Copy link
Contributor

@cjeanner cjeanner May 14, 2024

Choose a reason for hiding this comment

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

sounds weird, since:

  • the doc mentions "password(less) root access"
  • that playbook is the one creating the rootless user + sudo

so basically.... you mostly don't use that playbook... ? I had the same reflection with a DS equivalent patch...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The usecases are:

  • you have a baremetal "cloud"
  • you run nested virt in some cloud
    ... and the server you requested is provisioned - you are given access via the "cloud-user" of the image deployed. You have SSH access, you have sudo - but you cannot login as root.

It is possible to just use the cloud-user. But with that follows the editing of stuff in notes/chat with co-workers that uses the default zuul user.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh. ok. heh, makes sense.
Note that my own baremetal doesn't have "zuul" user - that's how I catch (many) issues with paths, facts and so on.

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://review.rdoproject.org/zuul/buildset/dc77c07ad927416f906a9259e76da6da

✔️ noop SUCCESS in 0s
cifmw-pod-ansible-test FAILURE in 5m 31s
cifmw-pod-pre-commit FAILURE in 7m 33s

Let's not assume it is possible to login as root.
Add's "become: true" to the tasks that require priviliges.
@hjensas hjensas force-pushed the bootstrap-no-root branch from 37463fa to 1c14f77 Compare May 14, 2024 23:52
@cjeanner
Copy link
Contributor

/approve
/lgtm

@cjeanner cjeanner marked this pull request as ready for review May 15, 2024 07:20
@openshift-ci openshift-ci bot requested review from adrianfusco and lewisdenny May 15, 2024 07:20
Copy link
Contributor

openshift-ci bot commented May 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cjeanner

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 3e138c1 into openstack-k8s-operators:main May 15, 2024
6 of 7 checks passed
@hjensas hjensas deleted the bootstrap-no-root branch July 3, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants