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

Attempt to install yum in Travis #1191

Closed
wants to merge 1 commit into from
Closed

Conversation

daviddavis
Copy link
Contributor

We have a smash test that requires dnf/yum. Attempt to run it by
installing the Ubuntu yum package.

@@ -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/')
Copy link

@nixocio nixocio Sep 20, 2018

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)

Copy link
Contributor

@dralley dralley left a 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

@dralley
Copy link
Contributor

dralley commented Feb 27, 2019

@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]
@daviddavis
Copy link
Contributor Author

@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?

@dralley
Copy link
Contributor

dralley commented Feb 27, 2019

@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

@daviddavis
Copy link
Contributor Author

Good find. I agree and therefore am closing this PR.

@daviddavis daviddavis closed this Feb 27, 2019
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.

None yet

3 participants