-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
bots: Fix candlepin image refresh #11387
Conversation
image-refresh in progress on bos-tasks-trc09. |
image-refresh in progress on centosci-tasks-nbf7k. |
image-refresh candlepin done: https:/cockpituous/cockpit/commits/image-refresh-candlepin-20190313-105353 |
Even with Ansible 2.7 the ansible-role-candlepin playbooks don't work. Reported as <https://bugzilla.redhat.com/show_bug.cgi?id=1688153>. Cowboy-apply a fix to the playbooks to avoid a rubygem update. This doesn't work any more with current gems, as these need ruby >= 2.3. Fixes cockpit-project#11325 Closes cockpit-project#11387
0f1e695
to
40dca49
Compare
@KKoukiou : Test flakes are unrelated, this only affects check-packagekit and check-subscriptions. Please let me know if you prefer turning this green, though. |
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.
Please don't merge this, maybe we can figure out how to use ansible-role-candlepin which looks to do our purpose and get rid of all this hacks
I managed to get the role running , please see commit here, KKoukiou@e81eaf9 I notice the we use to run some tasks as root by specyfying , although the default user is candlepin, which in my case results in the following command failing the playbook:
Second problem is that even when I ran as candlepin user I get the following error:
I am not familiar with ruby, so maybe this rings a bell? |
@KKoukiou : Many thanks for figuring out how to correctly invoke that playbook! That error just seems like something is running in the wrong directory? The playbook switches back and forth between user and root, so maybe it's checking out the gems into some user dir and then does something as root? |
And yes, this PR is a gross hack, let's not merge it if there's a better way. Thanks! 🤗 |
Even with Ansible 2.7 the ansible-role-candlepin playbooks don't work.
Reported as https://bugzilla.redhat.com/show_bug.cgi?id=1688153.
Cowboy-apply a fix to the playbooks to avoid a rubygem update. This
doesn't work any more with current gems, as these need ruby >= 2.3.
Fixes #11325