Bug 1489760
Summary: | content-override done by hammer has no effect when using AK | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Lukas Pramuk <lpramuk> |
Component: | Activation Keys | Assignee: | Christine Fouant <cfouant> |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.0 | CC: | bbuckingham, cfouant, pcreech |
Target Milestone: | Unspecified | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
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: | 2018-02-21 16:54:37 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
Lukas Pramuk
2017-09-08 10:11:06 UTC
This is regression as in 6.2 this worked/works. hammer activation-key content-override only sets an override "ak:0/1" but doesn't enable such override or put into effect "enabled:0/1" (while UI override does both) CLI (override done by hammer - bullet 4 in comment#0): # hammer activation-key product-content --name AK --organization-id 1 --------------|------|------|-----|---------|-----------------------------------|----------|--------- ID | NAME | TYPE | URL | GPG KEY | LABEL | ENABLED? | OVERRIDE --------------|------|------|-----|---------|-----------------------------------|----------|--------- 1504093523357 | Repo | | | | Default_Organization_Product_Repo | yes | ak:0 --------------|------|------|-----|---------|-----------------------------------|----------|--------- vs. UI (override done in webui): # hammer activation-key product-content --name AK --organization-id 1 --------------|------|------|-----|---------|-----------------------------------|----------|---------------- ID | NAME | TYPE | URL | GPG KEY | LABEL | ENABLED? | OVERRIDE --------------|------|------|-----|---------|-----------------------------------|----------|---------------- 1505758907338 | Repo | | | | Default_Organization_Product_Repo | yes | ak:0, enabled:0 --------------|------|------|-----|---------|-----------------------------------|----------|---------------- >>> an override done by hammer is incomplete (enabled:0/1 is missing) so such override is not put into effect UI override from comment#2 should be "enabled:0" instead of "ak:0, enabled:0" - mix of CLI+UI overrides --------------|------|------|-----|---------|-----------------------------------|----------|---------- ID | NAME | TYPE | URL | GPG KEY | LABEL | ENABLED? | OVERRIDE --------------|------|------|-----|---------|-----------------------------------|----------|---------- 1505758907338 | Repo | | | | Default_Organization_Product_Repo | yes | enabled:0 --------------|------|------|-----|---------|-----------------------------------|----------|---------- >>> so hammer sets "ak:0/1" (name in lowercease) vs. webui sets "enabled:0/1" which really works !!! Created redmine issue http://projects.theforeman.org/issues/21275 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21275 has been resolved. VERIFIED. @satellite-6.3.0-22.0.el7sat.noarch tfm-rubygem-hammer_cli_katello-0.11.3.4-1.el7sat.noarch by the manual reproducer described in comment#0: 4. Override custom content in AK to disabled (since the default is enabled) # hammer activation-key content-override --name AK --organization-id 1 --content-label Default_Organization_Product_Repo --value 0 Updated content override # hammer activation-key product-content --name AK --organization-id 1 --------------|------|------|-----|---------|-----------------------------------|------------------|---------- ID | NAME | TYPE | URL | GPG KEY | LABEL | DEFAULT ENABLED? | OVERRIDE --------------|------|------|-----|---------|-----------------------------------|------------------|---------- 1513070931633 | Repo | | | | Default_Organization_Product_Repo | yes | enabled:0 --------------|------|------|-----|---------|-----------------------------------|------------------|---------- >>> UI says correctly "Disabled (overridden)" 5. @client: Register using AK # subscription-manager register --activationkey AK --org Default_Organization The system has been registered with ID: 28767822-ac2a-4615-ac49-2e5fa24a1e4f Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Unable to find available subscriptions for all your installed products. 6. Check repos available # subscription-manager repos --list +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: Default_Organization_Product_Repo Repo Name: Repo Repo URL: https://<SATFQDN>/pulp/repos/Default_Organization/Library/custom/Product/Repo Enabled: 0 >>> repo is correctly disabled - content-override done by hammer works Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> >
> > For information on the advisory, and where to find the updated files, follow the link below.
> >
> > If the solution does not work for you, open a new bug report.
> >
> > https://access.redhat.com/errata/RHSA-2018:0336
|