Bug 1372624
| Summary: | Can't add a loadbalancer instance in RHUI 3 on RHEL 6 because the haproxy package isn't available | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Radek Bíba <rbiba> | ||||
| Component: | Tools | Assignee: | Patrick Creech <pcreech> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Vratislav Hutsky <vhutsky> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 3.0.0 | CC: | bperkins, pcreech | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 3.0.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-03-01 22:12:52 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: | |||||||
| Attachments: |
|
||||||
|
Description
Radek Bíba
2016-09-02 09:05:21 UTC
While rh-amazon-rhui-client is specific to the amazon environment, this is an issue on the el6 haproxy instances in rhui. The solution here is to enable the "rhel-lb-for-rhel-6-server-rpms" repo for any EL6 server intended to be used as an haproxy server We probably need to ensure this is documented for the EL6 installation docs. Agreed. There's one other thing, though. As I wrote in comment 0, the LB instance can be added if the haproxy package is available to it, *but*, only if no CDS is yet known to RHUI. If a CDS is already known while the LB is being added, or when a CDS is being added after an LB has been added, the following failure occurs: Error: /Stage[main]/Haproxy::Service/Service[haproxy]: Failed to call refresh: Could not restart Service[haproxy]: Execution of '/sbin/service haproxy restart' returned 1: [ALERT] 257/022753 (5203) : parsing [/etc/haproxy/haproxy.cfg:30] : 'server' expects <name> and <addr>[:<port>] as arguments. [ALERT] 257/022753 (5203) : parsing [/etc/haproxy/haproxy.cfg:37] : 'server' expects <name> and <addr>[:<port>] as arguments. [ALERT] 257/022753 (5203) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg [ALERT] 257/022753 (5203) : Fatal errors found in configuration. Errors in configuration file, check with haproxy check. This is line 37 in haproxy.cfg: server #<YAML::PrivateType:0x7f467653a2a0> #<YAML::PrivateType:0x7f467653a2a0>:443 check (Should've been created as: server cds01.example.com cds01.example.com:443 check) I'll attach the full error message from rhui-manager. Created attachment 1200733 [details]
Output from rhui-manager
This is what I entered in rhui-manager and got in response to that. Note that the LB was originally created while no CDS was defined. Everything in the output comes from the moment I tried to add a CDS, and the CDS was to be included in the LB configuration.
The "other thing" is indeed fixed in RHUI-3.0-RHEL-6-20160921.n.0 -- I can successfully add a CDS instance after defining an HA Proxy instance, and haproxy.conf gets updated with the information about CDS. I'll notify David and Les regarding rh-amazon-rhui-client and the docs respectively. Thanks Patrick! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0367 |