Bug #34154
closedThe foreman-proxy-content-enable-ostree true doesn't refresh the proxy features, leading to ostree being unavailable
Description
Ohai,
freshly deployed Katello nightly on EL8. Wanted to enable OSTree support after the fact, so ran foreman-installer --foreman-proxy-content-enable-ostree true
which passed successfully, but OSTree was still not available in the UI.
On further investigation it turned out the smart proxy didn't have "ostree" in the "services" tab. Hitting refresh made "ostree" show up and allowed me to create an OSTree repository.
Attached is the log of the installer run that was supposed (at least from a users perspective) to do this for me.
Files
Updated by Evgeni Golov about 3 years ago
I think the problem is that the proxy already exists and the feature list doesn't change (the capabilities list does), so the "foreman_smartproxy" provider in puppet-foreman doesn't consider this a change and doesn't force a refresh of the features.
# curl -H 'Content-Type: application/json' -XPUT -uadmin:changeme -k https://localhost/api/v2/smart_proxies/1/refresh | python3 -m json.tool { "created_at": "2021-12-15 13:42:08 UTC", "updated_at": "2021-12-15 13:42:08 UTC", "hosts_count": 0, "name": "centos8-katello-nightly.tanso.example.com", "id": 1, "url": "https://centos8-katello-nightly.tanso.example.com:9090", "remote_execution_pubkey": null, "download_policy": "on_demand", "supported_pulp_types": [ "ansible_collection", "deb", "docker", "file", "python", "yum", "ostree" ], "features": [ { "capabilities": [], "name": "Logs", "id": 13 }, { "capabilities": [ "ansible", "certguard", "container", "core", "deb", "file", "ostree", "python", "rpm" ], "name": "Pulpcore", "id": 3 } ], "locations": [ { "id": 2, "name": "Default Location", "title": "Default Location", "description": null } ], "organizations": [ { "id": 1, "name": "Default Organization", "title": "Default Organization", "description": null } ] }
Updated by Evgeni Golov about 3 years ago
Oh, and this also means that the installer doesn't re-run apipie:cache, resulting in wrong apidocs.
Updated by The Foreman Bot about 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ewoud Kohl van Wijngaarden
- Pull request https://github.com/theforeman/puppet-foreman_proxy_content/pull/393 added
Updated by Ewoud Kohl van Wijngaarden almost 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset puppet-foreman_proxy_content|8ce716a484a8fd714fe8a75d150ae63ebadeeab9.
Updated by Amit Upadhye over 2 years ago
- Subject changed from foreman-proxy-content-enable-ostree true doesn't refresh the proxy features, leading to ostree being unavailable to The foreman-proxy-content-enable-ostree true doesn't refresh the proxy features, leading to ostree being unavailable