We're updating the issue view to help you get more done. 

wazo-confd: PUT /ha does not update SIP and provisioning configuration

Description

Given I have two Wazo Platform that were never configured with HA
Given I have a device configured on a user on one of the Wazo Platform
When I PUT /api/confd/1.1/ha with valid values on the master (with the device)
When I PUT /api/confd/1.1/ha with valid values on the slave
When I run the DB and files replication scripts
When I resynchronize my device
When I shutdown the master
When I wait 5 minutes
Then my device stays unusable

Expected: I can compose extensions on my phone

Workaround

Execute the following requests, in addition to PUT /api/confd/1.1/ha

  • PUT /api/confd/1.1/asterisk/sip/general

    • minexpiry: 180

    • maxexpiry: 300

    • defaultexpiry: 240

  • PUT /api/confd/1.1/registrars/XXX

    • "backup_host": "IP address of the slave"

    • "proxy_backup_host": "IP address of the slave"

Solutions

We can either:

  • update the documentation to have the admin apply the missing configuration

  • fix the /ha endpoint to apply the missing configuration, as in Wazo 18.03

Technical details

PUT /ha only does 1 thing out of 3:

  • OK: setup DB and files synchronization

  • KO: configure Asterisk to make the phone register before 5 minutes

  • KO: configure the phones to have a backup SIP registrar

Environment

None

Assignee

Sébastien Duthil

Reporter

Sébastien Duthil

Approvers

Alexandre Fournier

Pair

None

Sprint

None

Fix versions

Epic Link

Priority

High
Configure