Hi,
I’m facing an issue where my newly deployed Foreman Smart Proxy (v3.15) using Pulpcore 3.73 is not advertising the yum
content type capability, even though the feature is enabled and configured.
foreman-installer --scenario foreman-proxy-content --certs-tar-file "/root/acs19-alh.si.francetv.fr.tar" --foreman-proxy-register-in-foreman "true" --foreman-proxy-foreman-base-url "https://myforemanurl" --foreman-proxy-trusted-hosts "https://myproxy" --foreman-proxy-trusted-hosts "xxxxx" --foreman-proxy-trusted-hosts "xxxxxxxxxx" --foreman-proxy-oauth-consumer-key "xxxx" --foreman-proxy-oauth-consumer-secret "xxxx" --foreman-proxy-content-enable-yum true
from my foreman server
cat << EOF | foreman-rake console
capsule = SmartProxy.find_by_name('myproxy')
pp capsule.capabilities(::SmartProxy::PULP3_FEATURE)
pp capsule.feature_details
smart_proxy_helper = ::Katello::SmartProxyHelper.new(capsule)
pp smart_proxy_helper.unsyncable_content_types
EOF
Loading production environment (Rails 7.0.8.7)
Switch to inspect mode.
capsule = SmartProxy.find_by_name('myproxy')
#<SmartProxy:0x00007f069f344160
...
pp capsule.capabilities(::SmartProxy::PULP3_FEATURE)
[]
[]
pp capsule.feature_details
{"Container_Gateway"=>{:settings=>{}, :capabilities=>[]},
"Dynflow"=>{:settings=>{}, :capabilities=>["single", "ssh"]},
"Pulpcore"=>
{:settings=>
{"pulp_url"=>"https://myproxy",
"mirror"=>true,
"content_app_url"=>"https://myproxy/pulp/content",
"username"=>nil,
"password"=>nil,
"client_authentication"=>["client_certificate"],
"rhsm_url"=>"https://myproxy:443/rhsm"},
:capabilities=>[]},
"Script"=>{:settings=>{}, :capabilities=>["cockpit"]},
"Templates"=>
{:settings=>{"template_url"=>"http://myproxy:8000"},
:capabilities=>[]},
"Logs"=>{:settings=>{}, :capabilities=>[]},
"Registration"=>{:settings=>{"registration_url"=>nil}, :capabilities=>[]}}
{"Container_Gateway"=>{:settings=>{}, :capabilities=>[]},
"Dynflow"=>{:settings=>{}, :capabilities=>["single", "ssh"]},
"Pulpcore"=>
{:settings=>
{"pulp_url"=>"https://myproxy",
"mirror"=>true,
"content_app_url"=>"https://myproxy/pulp/content",
"username"=>nil,
"password"=>nil,
"client_authentication"=>["client_certificate"],
"rhsm_url"=>"https://myproxy:443/rhsm"},
:capabilities=>[]},
"Script"=>{:settings=>{}, :capabilities=>["cockpit"]},
"Templates"=>
{:settings=>{"template_url"=>"http://myproxy:8000"},
:capabilities=>[]},
"Logs"=>{:settings=>{}, :capabilities=>[]},
"Registration"=>{:settings=>{"registration_url"=>nil}, :capabilities=>[]}}
smart_proxy_helper = ::Katello::SmartProxyHelper.new(capsule)
#<Katello::SmartProxyHelper:0x00007f069f514670
...
pp smart_proxy_helper.unsyncable_content_types
["yum"]
["yum"]