Bug 1733098
Summary: | Command subscription-manager release --set=? only affect once at the first time for repoquery, but option --releasever=? works | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Fengshuang Tan <ftan> |
Component: | subscription-manager | Assignee: | candlepin-bugs |
Status: | CLOSED WONTFIX | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.6 | CC: | akatarki, dtodorov, liliu, lisas, redakkan, soliu, weiliu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-03-15 07:37:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Fengshuang Tan
2019-07-25 08:13:22 UTC
Works normal after I run the command 'yum clean all --enablerepo=*' with RHEL 7.9 x86_64 distro. # subscription-manager register You are attempting to use a locale that is not installed. Registering to: subscription.rhsm.redhat.com:443/subscription Username: Password: The system has been registered with ID: a37cf114-1677-4253-92c2-a2cfb5329454 The registered system name is: cloud-qe-16-vm-09.idmqe.lab.eng.bos.redhat.com # subscription-manager attach --auto You are attempting to use a locale that is not installed. Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed # subscription-manager release --list You are attempting to use a locale that is not installed. +-------------------------------------------+ Available Releases +-------------------------------------------+ 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 7Server # subscription-manager attach --pool=8a85f99b74b672760174be74d47637f6 You are attempting to use a locale that is not installed. Successfully attached a subscription for: Red Hat Enterprise Virtualization, Premium (One Year, Enterprise Program) # repoquery --pkgnarrow=available --quiet --all --repoid=rhel-7-server-rhvh-4.2-build-eus-source-rpms --archlist=src --qf "%{name}%{version}%{release}.src" Failed to set locale, defaulting to C Could not match packages: failure: repodata/repomd.xml from rhel-7-server-rhvh-4.2-build-eus-source-rpms: [Errno 256] No more mirrors to try. https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/rhvh-build/4.2/source/SRPMS/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found # subscription-manager release --set=7.6 You are attempting to use a locale that is not installed. Release set to: 7.6 # cat /etc/yum.repos.d/redhat.repo | grep -A 4 rhel-7-server-rhvh-4.2-build-eus-source-rpms [rhel-7-server-rhvh-4.2-build-eus-source-rpms] metadata_expire = 86400 enabled_metadata = 0 sslclientcert = /etc/pki/entitlement/1994085526015224022.pem baseurl = https://cdn.redhat.com/content/eus/rhel/server/7/7.6/$basearch/rhvh-build/4.2/source/SRPMS # repoquery --pkgnarrow=available --quiet --all --repoid=rhel-7-server-rhvh-4.2-build-eus-source-rpms --archlist=src --qf "%{name}%{version}%{release}.src" Failed to set locale, defaulting to C cockpit-ovirt0.11.401.el7ev.src imgbased1.0.311.el7ev.src ovirt-node-ng4.2.00.20170814.0.el7.src redhat-release-virtualization-host4.222.1.el7.src # subscription-manager release --unset You are attempting to use a locale that is not installed. Release preference has been unset # cat /etc/yum.repos.d/redhat.repo | grep -A 4 rhel-7-server-rhvh-4.2-build-eus-source-rpms [rhel-7-server-rhvh-4.2-build-eus-source-rpms] metadata_expire = 86400 enabled_metadata = 0 sslclientcert = /etc/pki/entitlement/1994085526015224022.pem baseurl = https://cdn.redhat.com/content/eus/rhel/server/7/$releasever/$basearch/rhvh-build/4.2/source/SRPMS # repoquery --pkgnarrow=available --quiet --all --repoid=rhel-7-server-rhvh-4.2-build-eus-source-rpms --archlist=src --qf "%{name}%{version}%{release}.src" Failed to set locale, defaulting to C cockpit-ovirt0.11.401.el7ev.src imgbased1.0.311.el7ev.src ovirt-node-ng4.2.00.20170814.0.el7.src redhat-release-virtualization-host4.222.1.el7.src Works after clean all # yum clean all --enablerepo=* # repoquery --pkgnarrow=available --quiet --all --repoid=rhel-7-server-rhvh-4.2-build-eus-source-rpms --archlist=src --qf "%{name}%{version}%{release}.src" Failed to set locale, defaulting to C Could not match packages: failure: repodata/repomd.xml from rhel-7-server-rhvh-4.2-build-eus-source-rpms: [Errno 256] No more mirrors to try. https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/rhvh-build/4.2/source/SRPMS/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |