incompatible with haproxy rev >= 75 on jammy

Bug #2040331 reported by Mitch Burton
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Landscape Charm
Fix Released
High
Kevin Nasto

Bug Description

The version of haproxy in revision 75 of that charm on jammy is no longer compatible with the landscape-server charm:

[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:49] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:58] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:67] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : parsing [/etc/haproxy/haproxy.cfg:76] : The 'reqrep' directive is not supported anymore since HAProxy 2.1. Use 'http-request replace-path', 'http-request replace-uri' or 'http-request replace-header' instead.
[ALERT] (4962) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
[ALERT] (4962) : Fatal errors found in configuration.

Related error on the landscape-server unit

unit-landscape-server-2: 17:02:28 ERROR unit.landscape-server/2.juju-log website:12: Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/src/settings_files.py", line 163, in write_ssl_cert
    ssl_cert_fp.write(b64decode(ssl_cert.encode()))
  File "/usr/lib/python3.10/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Invalid base64-encoded string: number of data characters (1449) cannot be 1 more than a multiple of 4

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/./src/charm.py", line 1004, in <module>
    main(LandscapeServerCharm)
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/main.py", line 441, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/main.py", line 149, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 354, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 830, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/venv/ops/framework.py", line 919, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/./src/charm.py", line 602, in _website_relation_changed
    write_ssl_cert(haproxy_ssl_cert)
  File "/var/lib/juju/agents/unit-landscape-server-2/charm/src/settings_files.py", line 165, in write_ssl_cert
    raise SSLCertReadException(
settings_files.SSLCertReadException: Unable to decode b64-encoded SSL certificate

Resolving this will be required to move forward on LP: #2040203

Related branches

Changed in landscape-charm:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Mitch Burton (mitchburton)
description: updated
Changed in landscape-charm:
assignee: Mitch Burton (mitchburton) → nobody
assignee: nobody → Kevin Nasto (silverdrake11)
status: Triaged → In Progress
Changed in landscape-charm:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.