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

SUSE migration services pre-check for lingering smt-ec2.susecloud.net /etc/hosts entries #291

Open
thimslugga opened this issue Sep 4, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@thimslugga
Copy link

thimslugga commented Sep 4, 2024

The SUSE migration services pre-checks should check for lingering smt-ec2.susecloud.net entries in the /etc/hosts file, where the host is actually connected directly to the SCC and using updates.suse.com. It should warn for these lingering /etc/hosts entries as they can cause issues during SUSE dist migration activities.

@schaefi schaefi added the question Further information is requested label Oct 30, 2024
@schaefi
Copy link
Collaborator

schaefi commented Oct 30, 2024

I do not understand the negative impact for the DMS if the connection to the SUSE repositories is established via the public cloud infrastructure (RMT proxy) or a direct connection to SCC or any other form of proxy connection ? Is it a responsibility of the DMS pre-checks to guess on the connectivity setup ? Unless there is a direct coupling between code in DMS and the way how to connect to the suse update server(s) we should not add a pre-check.

The DMS connects to suse repos in two ways:

  1. via zypper dup and locally configured repositories. A zypper refresh prior starting the DMS is suitable to detect any connection issues
  2. via the zypper migration plugin. I'm not aware that the API call to the SCC backend differentiates if the call is made to SCC or a proxy.

From that perspective if you believe we need a check, can you be more specific on what "can cause issues" mean ?

Thanks

@rjschwei
Copy link
Member

During migration everything is driven by the information that is in the RIS files. The only issue I could see with a system that was once connected to the update infrastructure and then switched to point to SCC is that a specific RIS file, a file in /etc/zypp/services.d points to the update infrastructure while other files point to updates.suse.com. If that is the case then that would be a bug in registercloudguest --clean.
What we can check, as a pre-check, is that there is no mix between *.susecloud.net and updates.suse.com in the files contained in /etc/zypp/services.d. Meaning, for example the service for the Basemodule points to susecloud.net and for the Public-Cloud-Module points to updates.suse.com, such an inconsistent setup would definitely create problems.

@thimslugga
Copy link
Author

thimslugga commented Nov 1, 2024

@rjschwei, related SUSE/connect-ng#242

@schaefi, A lingering smt-ec2.susecloud.net hosts entry that wasn't cleaned up, where the customer has switched to updates.suse.com will result in attempts to dist upgrade via DMS to fail.

@schaefi
Copy link
Collaborator

schaefi commented Nov 6, 2024

What we can check, as a pre-check, is that there is no mix between *.susecloud.net and updates.suse.com in the files contained in /etc/zypp/services.d

Thanks much for the details, yes that makes sense and could be pre-checked

@schaefi schaefi added enhancement New feature or request and removed question Further information is requested labels Nov 6, 2024
@jirib
Copy link

jirib commented Jan 7, 2025

Shouldn't we ignore commented out lines -

? IIUC the code considers all lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants