Issue with pulp3 plugin installation in smart proxy

Problem:
i have installed katello server and foreman-proxy in another server. i used below command to install foreman-proxy. after refreshing the smart proxies features in katello , it detects all services except pulp, then to install pulp3 (pulpcore) , i followed Ansible Installer | software repository management and installed it. during the installation pulp_rpm and pulp_deb plugins also installed with Pypi (pip) and according to below in pulpcore.yml file and set it to be enabled in foreman proxy. again when i check smart proxy page in katello server and refresh the features, i can see pulpcore server is successfully add. but the issue is that according to below, it doesnt show any pulp plugins in front of the “supported content types”. in katelo server, deb yum docker are the plugins in similar location. do i miss anything in regards to pulp installation in foreman-proxy.

Pulpcore
Version
2.1.0
Supported Content Types

Registration
Version
2.3.3
Templates
Version
2.3.3

foreman-installer
–scenario foreman-proxy-content
–certs-tar-file “/root/vm01.domain.local-certs.tar”
–foreman-proxy-content-parent-fqdn “kvmktl01.domain.local”
–foreman-proxy-register-in-foreman “true”
–foreman-proxy-foreman-base-url “https://kvmktl01.domain.local”
–foreman-proxy-trusted-hosts “kvmktl01.domain.local”
–foreman-proxy-trusted-hosts “vm01.domain.local”
–foreman-proxy-oauth-consumer-key “xxx”
–foreman-proxy-oauth-consumer-secret “xxx”
–puppet-server-foreman-url “https://kvmktl01.domain.local”

[root@vm01 settings.d]# cat /etc/foreman-proxy/settings.d/pulpcore.yml

:enabled: true
:pulp_url: https://vm01.domain.local
:content_app_url: https://vm01.domain.local/pulp/content
:mirror: false

Expected outcome:
i need pulp3 and its plugins working in foreman proxy to be able to sync rpm and deb contents from katello server to foreman-proxies in different regions

Foreman and Proxy versions:
foreman

URL
https://kvmktl01.domain.local:9090
Version
2.3.3
Active features

Ansible
Dynflow
HTTPBoot
Logs
Pulpcore

foreman-proxy

URL
https://vm01.domain.local:9090
Version
2.3.3
Active features

Logs
Pulpcore
Puppet
Puppet CA
Registration

Templates

Foreman and Proxy plugin versions:
Name Features Status Version
kvmktl01.domain.local Pulpcore, Puppet CA, Puppet, Logs, Registration, TFTP, HTTPBoot, Dynflow, and Ansible

2.3.3
vm01.domain.local Templates, Puppet CA, Puppet, Logs, Registration, and Pulpcore

2.3.3

foreman-tasks 3.0.5
foreman_ansible 6.1.1
foreman_bootdisk 17.0.2
foreman_remote_execution 4.2.2
foreman_setup 7.0.0
katello 3.18.1
Distribution and version:

Other relevant data:

even in pulp status api call i can see the components installed successfully

[root@vm01 settings.d]# curl https://localhost/pulp/api/v3/status/ -k
{“versions”:[{“component”:“core”,“version”:“3.11.0”},{“component”:“rpm”,“version”:“3.10.0”},{“component”:“deb”,“version”:“2.11.0”},{“component”:“container”,“version”:“2.4.0”},{“component”:“ansible”,“version”:“0.7.1”}],“online_workers”:[{“pulp_created”:“2021-04-06T05:44:40.609422Z”,“pulp_href”:"/pulp/api/v3/workers/e331a15f-914e-4961-8fc6-db72afd9a024/",“name”:“resource-manager”,“last_heartbeat”:“2021-04-07T07:19:03.862173Z”},{“pulp_created”:“2021-04-07T06:19:41.979090Z”,“pulp_href”:"/pulp/api/v3/workers/3d2cb483-959f-4af4-b6d1-6c71c7f64fb7/",“name”:“10297@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:09.985590Z”},{“pulp_created”:“2021-04-07T06:19:44.478174Z”,“pulp_href”:"/pulp/api/v3/workers/93af30cb-3d44-401d-97dd-24ae2c437fbe/",“name”:“10242@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:11.595880Z”}],“online_content_apps”:[{“name”:“10258@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:07.809864Z”},{“name”:“10246@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:07.812097Z”},{“name”:“10266@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:07.867522Z”},{“name”:“10263@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:07.869514Z”},{“name”:“10267@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:07.909582Z”},{“name”:“10265@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:07.915656Z”},{“name”:“10269@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:07.918917Z”},{“name”:“10271@vm01.domain.local”,“last_heartbeat”:“2021-04-07T07:19:07.918564Z”}],“database_connection”:{“connected”:true},“redis_connection”:{“connected”:true},“storage”:{“total”:19841155072,“used”:5413031936,“free”:14428123136}}

Interesting. I don’t think we have upgraded to 3.11 in nightly yet. But given you used the pulp_installer directly, I guess it brought in the latest pulp versions. I am also not sure if you got all the necessary config changes with pulp_installer.

Could you try running
foreman-installer –scenario foreman-proxy-content with the below options:
– foreman-proxy-content-enable-deb true
– foreman-proxy-content-enable-docker true
–foreman-proxy-content-enable-yum true

The foreman-installer handles installing and setting up Pulp 3. Using the pulp installer directly has the potential to have breaking changes and unexpected problems. I would recommend wiping your foreman-proxy-content box and re-installing following just the instructions to use foreman-installer.

1 Like

Thanks so much @ehelms and @sajha for your responses. I will try your solutions tomorrow and will update you accordingly. If there is a documentation you can point me to follow, it would be great . Honestly i haven’t seen those switches mentioned in any documents I’ve reviewed.

Thanks again for your support
Yaser

@ehelms and @sajha I have another question about this issue. I have installed Katello server on a Centos8 server. i have tested some foreman-proxies in both centos 7 and 8. please let me know if katello and foreman-proxy supports centos8 yet or i need to install both on centos 7. when i installed foreman-proxy on centos7, it installed pulp-server-2.21 while i have pulp3 in katelo server which is on centos8. i have confused with different versions installed in these 2 servers and i know pulp2 is not supported anymore and not sure it’s installed in foreman-proxy centos7 version

foreman-proxy components:

Pulp node

Version

2.1.0

Pulp server version

2.21.5

Database connection

Messaging connection

Workers

4

Supported Content Types

  • deb
  • docker
  • file
  • yum

Registration

Version

2.3.3

Templates

Version

2.3.3

====================================

Katello server components:

Ansible

Version

3.0.1

Dynflow

Version

0.3.0

HTTPBoot

Version

2.3.3

Pulpcore

Version

2.1.0

Supported Content Types

  • deb
  • docker
  • file
  • yum

Registration

Version

2.3.3

TFTP

Version

2.3.3

TFTP server

192.168.122.28