#4995 address config confusion in roles/fedmsg/gateway/slave/
Closed: Fixed None Opened 8 years ago by ralph.

We hit a problem every time we do updates and we update the fedmsg-gateway package on the proxies.

  • The role removes the default config (endpoints.py and gateway.py)
  • The role installs a special config file (fedmsg-endpoints-gateway.py)
  • When we update the package, endpoints.py and gateway.py are put back in place which is bad
  • It stops haproxy from starting because fedmsg-gateway picks up the config from the gateway.py file from the rpm and binds to a port that haproxy wants.
  • Even if we just installed our special gateway config file in place of the one installed by the rpm, that wouldn't be enough, because we also need to remove the default endpoints.py file as well. (It directs end users to subscribe to our gateway. Having it present on our proxies tells our gateways to subscribe to themselves and doom.)

Perhaps we could install an empty dummy endpoints.py file and an empty dummy gateway.py file (instead of removing the ones installed by the rpm). The files are marked correctly with %config(noreplace) in rpm, so that would stop yum/dnf from installing the defaults back in place.


Created a ticket for this because I don't have time to commit to fixing it at the moment. ;)

I think empty files would work best as long as nothing would error out parsing them.

Login to comment on this ticket.

Metadata