Commit e968a523 authored by Etienne Allovon's avatar Etienne Allovon

Enhance database upgrade notes

parent 58a9c1dc
......@@ -38,31 +38,35 @@ On XiVO PBX
zgrep '\[MIGRATE_OUTCALL\].*WARNING' /var/log/postgresql/postgresql-11-main.log*
#. if yes, follow our :ref:`migration guide <callisto_route_upgrade_guide>`.
* Postgresql: postgresql service now runs inside a container. During upgrade the database was re-imported
**BUT NOT** the postgresql configuration (i.e. parameters in file :file:`postgresql.conf`). If you have any
specific parameters you should add them to the postgresql container configuration as documented in the
:ref:`database_configuration` section. The old configuration was saved during upgrade in folder
:file:`/var/tmp/xivo-migrate-db-94-to-11/postgresql-94-conf-backup/`.
* Postgresql: postgresql service now runs inside a container. During the upgrade the postgresql configuration
**WAS NOT** migrated (i.e. parameters in file :file:`postgresql.conf` or connection authorizations in file :file:`pg_hba.conf`).
But the old configuration was saved during upgrade in folder :file:`/var/tmp/xivo-migrate-db-94-to-11/postgresql-94-conf-backup/`
* **postgresql.conf**: if you have any specific parameters you should add them to the postgresql container configuration as documented in the
:ref:`database_configuration` section.
.. _restricting_database_access:
Restricting database access: pg_hba.conf file (now located in :file:`/var/lib/postgresql/11/main/pg_hba.conf`) was not migrated
and MUST be edited manually. Open the file and follow these instructions
(replace the fourth parameter to "*IP address*/32"):
* **pg_hba.conf**: specific authorization (for XiVO CC ...) **MUST** be added again to new :file:`pg_hba.conf` file
(now located in :file:`/var/lib/postgresql/11/main/pg_hba.conf`). Follow the instrcutions below depending on your installation:
* If you have XiVO CC installed, add this entry for xuc connection::
* (XiVO CC) If you have XiVO CC installed, add this entry for xuc connection::
host asterisk all XIVOCC_HOST/32 md5
host asterisk all XIVOCC_IP_ADDRESS/32 md5
* Add entries for every media server::
* (XDS) Add entries for **every** Media Server::
host asterisk all MDS_HOST/32 md5
host asterisk all MDS_IP_ADDRESS/32 md5
* Add entry for high availability on slave XiVO::
* (High Availability) On slave XiVO, add entry for replication from master::
host asterisk postgres MASTER_VOIP_IP/32 trust
host asterisk postgres XIVO_MASTER_VOIP_IP/32 trust
* **Apply the settings** by command ``xivo-dcomp reload-db``.
* (XiVO) If you changed the xivo docker network (in :file:`factory.env`), add this entry::
host all all XIVO_DOCKER_NETWORK/NETMASK md5
* **Apply the settings** by command ``xivo-dcomp reload-db``.
* High availibility: If you have XiVO CC installed, follow the :ref:`ha_interconnection_with_cc` procedure
to install DB Replic on the slave XiVO.
......@@ -76,3 +80,16 @@ On XiVO PBX
* XDS: if you had an XDS installation you MUST remove SIP trunks added for intra-mds routing
(that is the SIP trunks named `default`, and `mdsX` - e.g. `mds0`, `mds1` ...).
These trunks are now generated automatically.
On MDS
------
* dahdi-modules: after upgrade, remove old ``dahdi-linux-modules``,
which were replaced by ``dahdi-linux-dkms``::
apt-get purge '^dahdi-linux-modules*' -y
* Postgresql: check :file:`/var/log/postgresql/postgresql-11-main.log` for specific upgrade steps
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment