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 #37707 - Purge container_gateway feature without docker #488

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 1, 2024

If smart_proxy_container_gateway was already installed on a host and then enable-docker => false is used, it leaves it enabled but without Apache proxy config. On Foreman it'll also be reported as a feature. This is inconsistent.

The new code ensures the feature is actually purged.

It's a draft because it relies on theforeman/puppet-foreman_proxy#843 to work properly. Otherwise it'll start to install a database and deploy the config file.

@ehelms
Copy link
Member

ehelms commented Aug 1, 2024

Tests are broken and there is a commit in #487 that fixes them.

@ekohl
Copy link
Member Author

ekohl commented Aug 1, 2024

This will need a bump in metadata.json anyway once the feature is released. I'll address it there

@ehelms
Copy link
Member

ehelms commented Aug 5, 2024

This can be rebased now.

@ekohl
Copy link
Member Author

ekohl commented Aug 5, 2024

Could you review theforeman/puppet-foreman_proxy#843 first? Then I can work on releasing that module.

@ekohl ekohl added the Bug label Aug 14, 2024
@ekohl ekohl force-pushed the 37707-purge-container-gateway branch from 96195a7 to 909e817 Compare August 14, 2024 18:22
@ekohl ekohl marked this pull request as ready for review August 14, 2024 18:22
ekohl added 2 commits August 14, 2024 20:54
puppet-pulpcore can no longer guarantee idempotency and reliably migrate
the database[1]. An option[2] was introduced to pretend it's idempotent,
which in upgrades may break but is good enough for CI.

[1]: theforeman/puppet-pulpcore@f8d0dc6
[2]: theforeman/puppet-pulpcore@0004d05
If smart_proxy_container_gateway was already installed on a host and
then enable-docker => false is used, it leaves it enabled but without
Apache proxy config. On Foreman it'll also be reported as a feature.
This is inconsistent.

The new code ensures the feature is actually purged.
@ekohl ekohl force-pushed the 37707-purge-container-gateway branch from 909e817 to 268fc30 Compare August 14, 2024 18:57
@ekohl
Copy link
Member Author

ekohl commented Aug 14, 2024

Idempotency is broken because of theforeman/puppet-pulpcore#351. I opened #491 and included it here

@ekohl ekohl requested a review from evgeni August 15, 2024 10:49
class { 'foreman_proxy_content':
pulpcore_mirror => true,
enable_docker => false,
# No Ansible repo is set up in our CI
Copy link
Member

Choose a reason for hiding this comment

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

what ansible repo? ansible-core is in baseos these days :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I copied this from another test. I'll see about dropping it.

@ekohl ekohl merged commit ac878a0 into theforeman:master Aug 15, 2024
11 checks passed
@ekohl ekohl deleted the 37707-purge-container-gateway branch August 15, 2024 13:31
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.

3 participants