When writing the haproxy.cfg file, a `TypeError: write() argument must be str, not bytes` is thrown.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-haproxy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When deploying haproxy, channel `latest/stable` revision `74`, the unit gets stuck into an error state:
```
Unit Workload Agent Machine Public address Ports Message
landscape-
filebeat/0* active idle 10.243.175.32 Filebeat ready.
landscape-
logrotated/0* active idle 10.243.175.32 Unit is ready.
nrpe/0* active idle 10.243.175.32 icmp,5666/tcp Ready
ntp/0* active idle 10.243.175.32 123/udp chrony: Ready, OK: offset is -0.000037
telegraf/0* active idle 10.243.175.32 9103/tcp Monitoring landscape-
ubuntu-
```
The unit log shows:
```
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 WARNING unit.landscape-
2023-08-25 12:25:18 ERROR juju.worker.
```
The charm configuration is:
```
landscape-
bindings:
? ''
: oam-space
charm: haproxy
num_units: 1
options:
default_
global_
services: ''
ssl_cert: include-
ssl_key: include-
to:
- '14'
```
The last known working charm revision was `66`.
Related branches
- Barry Price: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedhooks/hooks.py (+1/-1)
Subscribed ~field-critical since this is blocking the cloud handover and the last known charm revision is not available on charmstore