-
Notifications
You must be signed in to change notification settings - Fork 61
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
rpmbuild: add copr-builder-rhsm-subscribe script #3434
Conversation
34e7264
to
98cc938
Compare
if this will be closed (not merged), we need to do the expect magic in fedora-infra/ansible |
$fail && exit 1 | ||
|
||
try_indefinitely copr-builder-rhsm-subscribe | ||
try_indefinitely subscription-manager attach --pool "$opt_pool_id" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please touch some /var/run
file here? Please see #3426 (comment)
The daemon part partly a C&P from https://pagure.io/fedora-infra/ansible/blob/8ff1e6d9f79ca86e/f/roles/copr/backend/files/provision/copr-rh-subscribe.sh Closes: fedora-copr#3434 Relates: fedora-copr#3426
98cc938
to
26e9b7f
Compare
Some new observations:
|
The daemon part partly a C&P from https://pagure.io/fedora-infra/ansible/blob/8ff1e6d9f79ca86e/f/roles/copr/backend/files/provision/copr-rh-subscribe.sh Closes: fedora-copr#3434 Relates: fedora-copr#3426
26e9b7f
to
fcf658e
Compare
import getpass | ||
import sys | ||
|
||
from subscription_manager.scripts.subscription_manager import main as rhsm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit afraid of them changing the location or the internals of the script and I would probably rather call it through subprocess
but we can do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is sub-optimal, but subprocess.call means the key goes to /proc/self/cmdline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a code comment about that so that I don't get the great idea to re-implement it someday? :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
This PR is probably blocked by the switch of our account to SCA, right? |
The daemon part partly a C&P from https://pagure.io/fedora-infra/ansible/blob/8ff1e6d9f79ca86e/f/roles/copr/backend/files/provision/copr-rh-subscribe.sh Closes: fedora-copr#3434 Relates: fedora-copr#3426
fcf658e
to
940ea93
Compare
Not really, this can stay unused till we switch. |
The daemon part partly a C&P from https://pagure.io/fedora-infra/ansible/blob/8ff1e6d9f79ca86e/f/roles/copr/backend/files/provision/copr-rh-subscribe.sh Closes: fedora-copr#3434 Relates: fedora-copr#3426
940ea93
to
f32bcd3
Compare
This allows us to specify RHSM password so it is not visible on
ps aux
output