Landscape is broken when postgresql leader re-elected with ReadOnlySqlTransaction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Server |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
Current result:
The Landscape is getting broken with 'ReadOnlySqlTra
Expected result:
When Postgresql leader changes, Landscape-appserver picks up the update and starts communicate to the new leader.
Steps to reproduce:
1. Deploy the latest/stable landscape-server and 14/stable PostgreSQL environment: https:/
2. Login and do some update, for example, go to Account and change the Account name.
3. Log in into PostgreSQL Primary unit with `juju ssh`
4. Restart PostgreSQL snap, with `sudo snap restart charmed-postgresql`
5. Wait unit juju settles.
6. Go to the Landscape application. I will look working. But then do any writable change. For example, Account, and do the Account name change.
7. You will receive an error that operation is failed. In the landscape-appserver logs you will see ReadOnlySqlTran
Workaround steps:
8. Restart landscape-appserver service with `sudo systemctl restart landscape-
9. After that changing the Account name will work fine, appserver logs will report
```
Mar 27 10:23:21 juju-8245a5-15 appserver-1[23737]: POST /ajax/ method=POST path=/ajax/ status=200 ip=10.57.136.103 proto=HTTP/1.1 request_length=52 request_
```
Best Regards,
Alex.
information type: | Proprietary → Public |