Project

General

Profile

Actions

Bug #34154

closed

The foreman-proxy-content-enable-ostree true doesn't refresh the proxy features, leading to ostree being unavailable

Added by Evgeni Golov about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

katello.log.gz katello.log.gz 111 KB Evgeni Golov, 12/15/2021 03:55 PM
Actions #1

Updated by Evgeni Golov about 2 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
        }
    ]
}
Actions #2

Updated by Evgeni Golov about 2 years ago

Oh, and this also means that the installer doesn't re-run apipie:cache, resulting in wrong apidocs.

Actions #3

Updated by The Foreman Bot about 2 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
Actions #4

Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases 3.2.0 added
Actions #5

Updated by Ewoud Kohl van Wijngaarden about 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Amit Upadhye almost 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
Actions

Also available in: Atom PDF