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
Attempt to install yum in Travis #1191
Conversation
39d1b8d
to
6cebaf7
Compare
| @@ -127,6 +127,7 @@ def gen_yum_config_file(cfg, repositoryid, baseurl, name, **kwargs): | |||
| 'yes' if cfg.get_hosts('api')[0].roles['api'].get('verify') else 'no' | |||
| ) | |||
|
|
|||
| os.system('sudo mkdir -p /etc/yum.repos.d/') | |||
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 think the cli client will be a better fit.
cli_client = cli.Client(self.cfg)
cli_client.run(('mkdir -p /etc/yum.repos.d/'), sudo=True)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.
See failing test
E pulp_smash.exceptions.CalledProcessError: Command ('sudo', 'yum', '-y', 'install', 'walrus') returned non-zero exit status 1.
E
E stdout:
E
E stderr: Error: Tried to add None metadata to 3fb09ddc-742b-4cd5-b32a-91d19e879927
|
@daviddavis Could you rebase this? |
We have a smash test that requires dnf/yum. Attempt to run it by installing the Ubuntu yum package. [noissue]
|
@dralley I rebased but it's still hitting the same failure. I've looked into this error before but googling turns up nil. Any thoughts? |
|
@daviddavis I think this is why. I don't think this is going to work https://askubuntu.com/a/827462 edit: there's also this https://askubuntu.com/questions/161437/when-would-yum-be-of-use-to-an-ubuntu-user/166897#166897 But maybe we shoudln't rely on this being possible |
|
Good find. I agree and therefore am closing this PR. |
We have a smash test that requires dnf/yum. Attempt to run it by
installing the Ubuntu yum package.