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

Specifying 'rhsm: true' is not Honored by Image Builder #85

Closed
jjaswanson4 opened this issue Jan 31, 2023 · 1 comment
Closed

Specifying 'rhsm: true' is not Honored by Image Builder #85

jjaswanson4 opened this issue Jan 31, 2023 · 1 comment

Comments

@jjaswanson4
Copy link
Contributor

When attempting to create/update repos, the rhsm parameter is not honored:

TASK [infra.osbuild.builder : Loop through the repos and configure them] **************************************************************
changed: [edge-manager-aws] => (item={'name': 'rhocp-4.12', 'base_url': 'https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.12/os', 'rhsm': True}) => {"__builder_repo": {"base_url": "https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.12/os", "name": "rhocp-4.12", "rhsm": true}, "ansible_loop_var": "__builder_repo", "ansible_module_results": {"status": true}, "changed": true, "msg": "Source repository, rhocp-4.12, was updated."}
changed: [edge-manager-aws] => (item={'name': 'fast-datapath', 'base_url': 'https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os', 'rhsm': True}) => {"__builder_repo": {"base_url": "https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os", "name": "fast-datapath", "rhsm": true}, "ansible_loop_var": "__builder_repo", "ansible_module_results": {"status": true}, "changed": true, "msg": "Source repository, fast-datapath, was updated."}

Info from the system:

[root@edge-manager-aws ~]# composer-cli sources info rhocp-4.12 fast-datapath
check_gpg = true
check_ssl = true
id = "fast-datapath"
name = "fast-datapath"
rhsm = false
system = false
type = "yum-baseurl"
url = "https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os"

check_gpg = true
check_ssl = true
id = "rhocp-4.12"
name = "rhocp-4.12"
rhsm = false
system = false
type = "yum-baseurl"
url = "https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.12/os"
@matoval
Copy link
Collaborator

matoval commented Feb 23, 2023

PR #99 resolved this issue. rhsm is now being set correctly.

@matoval matoval closed this as completed Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants