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

provisioner: remove repos before adding ours #1497

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmwiedemann
Copy link
Member

to make it easier to re-run crowbar_register in case of errors

to make it easier to re-run crowbar_register in case of errors
@jsuchome
Copy link
Member

jsuchome commented Jan 31, 2018

can't users have some custom repos? (on the other hand, we're doing this as well during the upgrade)

@bmwiedemann
Copy link
Member Author

They could have custom repos, but then those repo names could collide with crowbar's too ... and if they are not SUSE repos, packages could collide which we do not want to support.

@nicolasbock
Copy link
Contributor

But if the customer wants to add custom repositories, when would they need to add them? Is crowbar_register run only when you allocate a new node?

@bmwiedemann
Copy link
Member Author

it only runs once.

an alternative would be to do zypper rr $repo before adding it, so we only drop repos with our names.

@jsuchome
Copy link
Member

zypper rr $repo sounds indeed safer, however as pointed out in the case of upgrade, we actually do remove all present repos at some point ... so I think it does not hurt in this time, esp. when the user can add extra repos after runing crowbar_register

Copy link
Contributor

@nicolasbock nicolasbock left a comment

Choose a reason for hiding this comment

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

Thanks @bmwiedemann for the additional info. I agree with you and @jsuchome that this seems ok to do at this point.

Copy link
Member

@vuntz vuntz left a comment

Choose a reason for hiding this comment

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

I'd really prefer going the zypper rr way: crowbar_ register is used for systems that are pre-installed, and it's very likely they would have existing repos for a good reason. Dropping them would just be annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants