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

Fixes #29589 - Ensure pulpcore before proxy #252

Merged
merged 1 commit into from
May 5, 2020

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Apr 28, 2020

When the Foreman Proxy registration happens, Pulp's features are queried and presented as capabilities. If the service is down, Katello can't detect the right content types.

When the Foreman Proxy registration happens, Pulp's features are queried
and presented as capabilities. If the service is down, Katello can't
detect the right content types.
@ehelms
Copy link
Member

ehelms commented Apr 28, 2020

Looks sane but that dependency cycle is funky with the daemon reloads chaining together.

@ekohl
Copy link
Member Author

ekohl commented Apr 28, 2020

Yes. That isn't needed in Puppet >= 6.1 but for now we have to support Puppet 5 too. The workaround is to not let systemd::unit_file manage the service.

@@ -338,6 +338,7 @@
postgresql_db_ssl_cert => $pulpcore_postgresql_ssl_cert,
postgresql_db_ssl_key => $pulpcore_postgresql_ssl_key,
postgresql_db_ssl_root_ca => $pulpcore_postgresql_ssl_root_ca,
before => Class['foreman_proxy::plugin::pulp'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we do it before the register?

iff --git a/manifests/init.pp b/manifests/init.pp
index 9bea8db..78d833a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -338,6 +338,7 @@ class foreman_proxy_content (
       postgresql_db_ssl_cert    => $pulpcore_postgresql_ssl_cert,
       postgresql_db_ssl_key     => $pulpcore_postgresql_ssl_key,
       postgresql_db_ssl_root_ca => $pulpcore_postgresql_ssl_root_ca,
+      before                    => Class['foreman_proxy::register'],
     }
 
     if $pulp_master {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried that, same error.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange, I made this change, ran tests. Everything passed. I ran it again, got these failures. Perhaps my fixtures weren't up to date? Implies it was a more recent change that led to this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ekohl
Copy link
Member Author

ekohl commented May 5, 2020

theforeman/puppet-puppet#741 would remove the dependency cycle. Once that's merged, tests can be restarted.

@ehelms ehelms marked this pull request as ready for review May 5, 2020 19:06
@ehelms ehelms merged commit 34aa29a into theforeman:master May 5, 2020
@ekohl ekohl deleted the 29589-depend-on-pulpcore branch May 6, 2020 08:29
@ekohl ekohl added the Bug label May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants