-
Notifications
You must be signed in to change notification settings - Fork 42
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
analysis fails with Repository rhel-7-server-extras-rpms not found #171
Comments
found the issue, can we add baseurl and serverurl parameter to below ?
|
can we add a parameter rhsm_baseurl in above ? |
@swapdisk, @heatmiser, @jeffmcutter thoughts? |
Trying to understand... What is the scenario where a satellite registration with an activation key requires a base url? |
actually it seems to be working after I changed the leapp_upgrade_type to cdn. |
is it possible to reopen this ? |
yes it is @akshat87 |
we need base url in registration since satellite is our internal satellite. |
Hi @akshat87, I'm still trying to understand why this would be necessary. Satellite by it's nature is internal and not open to the public. The same is true of my own Satellite and other Satellites I have encountered, yet they do not require the base_url to be specified. Since you are able to enable the repository, the system is successfully registered. Is this the task that fails? https://github.com/redhat-cop/infra.leapp/blob/main/roles/analysis/tasks/analysis-leapp.yml#L20 Can you run Thanks, |
if I keep the upgrade type as "satellite" then it runs below lines but when we register the satellite we run subscription-manager register --org=yyy --activationkey="{{ activation_key }}" --force --serverurl=https://xxx --baseurl=https://xxx/pulp/repos where xxx is the satelite dns name.
|
here is the output of subscription-manager repos, I have removed some of the details for security purposes. subscription-manager repos Repo ID: rhel-7-server-dotnet-rpms Repo ID: rhel-7-server-satellite-client-6-rpms Repo ID: rhel-7-server-optional-rpms Repo ID: rhel-7-server-rhceph-3-tools-rpms Repo ID: rhel-7-server-rpms Repo ID: rh-gluster-3-client-for-rhel-7-server-rpms Repo ID: rhel-7-server-rhceph-4-tools-rpms Repo ID: rhel-7-server-supplementary-rpms Repo ID: rhel-7-server-extras-rpms Repo ID: rhel-7-server-ansible-2.9-rpms |
"Can you run subscription-manager repos before attempting an upgrade, then after it fails, run the same again?" Is that before or after? I see rhel-7-server-extras-rpm is enabled. |
Before
After
|
but I don't see it in the yum repolist
|
In the before state, can you try:
|
here is the output
|
Is that using the same activation key as is used for satellite_activation_key_leapp? If so, can you revert the leapp install and try running the analysis playbook? If not, can you revert the leapp install, register to the same activation key as satellite_activation_key_leapp, and try to manually install with yum again? |
when we run the analysis playbook with , it gives error "Repository rhel-7-server-extras-rpms not found". Its because analysis playbook force register without baseurl param. when we register a VM, we use below command subscription-manager register --org=xxxx --activationkey="{{ activation_key }}" --force --serverurl=https://yyyyy --baseurl=https://yyyyy/pulp/repos |
but playbook doesn't use baseurl option in registration task. name: analysis-leapp | Register to leapp activation key |
Hi @akshat87, I don't understand why you would need to provide serverurl and baseurl. katello-ca-cert should take care of that. Do you know why? If yes, can you please explain why. If not, let's run one more test:
Thanks, |
@akshat87 - Did you answer the first question? Did you execute the respective test? |
As katello-ca-cert is deprecated, I tried to duplicate the issue using Global Registration, but I'm unable to still. What does your subscription-manager config show. Can you run the following and share?
|
it shows below
|
If it's already saved them as shown there, why do you need to pass them to subscription manager again? |
because when we run playbook for type = satelite it forcefully registers again and removes the hostname and baseurl. |
name: analysis-leapp | Register to leapp activation key |
What version of Satellite are you using? |
Is this still an issue? |
Did this ever get solved? If so, what is the fix. I am having the same issue and using Red Hat Satellite 6.15. The upgrade type is satellite |
Hi @bstaten, No, it hasn't as we've not been able to replicate it. Seems now we have 2 people with the issue though. I am also on Sat 6.15 now. I was wondering if it's a Global Registration issue vs. katello-ca-cert package so I tried using Global Registration and I'm still not able to replicate. I still don't understand what the difference is. That being said, if I create a release of infra.leapp in my own namespace on Galaxy (jeffmcutter) that includes the serverurl and baseurl parameters with a default to omit for those who don't need them, can one or both (@akshat87) of you test it to confirm it resolves the problem before I do a pull request of the same? Thanks, |
When I ran the infra.leapp.analysis, it fails with below error
Repository rhel-7-server-extras-rpms not found
when I ran the subscription-manager enable repo manually, then it works.
subscription-manager repos --enable rhel-7-server-extras-rpms
Repository 'rhel-7-server-extras-rpms' is enabled for this system.
The text was updated successfully, but these errors were encountered: