Bug 1301185
| Summary: | [RFE] Puppet doesn't restart haproxy when certificate contents change | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Ben Nemec <bnemec> |
| Component: | puppet-tripleo | Assignee: | RHOS Maint <rhos-maint> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | nlevinki <nlevinki> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 (Kilo) | CC: | bperkins, ggrasza, hrybacki, jguiditt, jjoyce, josorior, jschluet, kbasil, nkinder, slinaber, srevivo, tvignaud |
| Target Milestone: | Upstream M2 | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-06-25 16:22:03 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ben Nemec
2016-01-22 19:39:01 UTC
TL;DR: this is not a bug. Long story: One of the most important features in Puppet are that catalog compilation is idempotent. Which means, you should be able to run Puppet multiple times, if no resource has changed, Puppet won't do anything but checking the actual resources. In the case of HAproxy, the module is puppetlabs-haproxy. In TripleO, we use this module to enable SSL termination by giving a parameter: tripleo::loadbalancer::service_certificate It represents a file path but does not manage the actual file. Which means, when you run Puppet the first time, HAproxy will be configured to use the certificate from this path. During the second Puppet run, if the path did not change in the Puppet catalog, Puppet won't do anything. Even if the actual file changed, Puppet is not aware of that because Puppet does not manage the actual file, but the parameter in haproxy.cfg. If we want TripleO restarting HAproxy if the certificate changes, we need to patch puppet-tripleo to manage the actual file, with a File resource. Then, if the file change, we'll be able to notify HAproxy Service resource in Puppet and this bug won't occur again. So conclusion: this bug is not a bug but an expected behavior for now. If we want to be able to restart HAproxy everytime certificate changes, that would be an RFE. Yeah, making this an RFE is totally fair. I mostly wanted to get something open to track this because it's confusing behavior that we should address wherever is appropriate. Your suggestion makes perfect sense to me. Yes, this was fixed in https://bugs.launchpad.net/tripleo/+bug/1811401 I see all of the changes downstream. |