Added exceptions:
.+/prosody/status_checks - this was probably a table manually
created in sipwise system and not existing anywhere else.
.+/billing/test - this was probably a table manually created in
sipwise system and not existing anywhere else.
.+/ngcp/pt_checksums_sp.* - these were tables created by percona
tools created in sipwise and demo system and not existing anywhere
else.
Change-Id: Ie7461754e2e3baea770be5e60e2f1f658f13cfdb
(cherry picked from commit c97f917c9e)
We only support keydb now, and the config knob and migration script
have been removed. Hardcode keydb for the redis flavor we intend to
use, and add checks to make sure the redis service is not running nor
enabled anymore
Change-Id: I1a9ecb7e26346cd23618b464a7f5f420d5ab7263
(cherry picked from commit 716ea65865)
The exception '.+/accounting/cdr_[0-9]{6}/.+' ignores all elements of a
table (columns, indexes, etc) but not the table itself. It cases error:
=======================
Element: tables/accounting/cdr_202205 is missing in json file
=======================
So fix the regex.
Change-Id: Ie5c23a89e85281b0d2a436cea3b888cad5974c11
(cherry picked from commit a8e98fc1fd)
As of git rev 511e1f69cc91 in templates (see "MT#58452 monit: Use a Unix socket for the httpd control access"),
monit no longer listens on port 2812 but uses a Unix socket instead.
Fixes:
| not ok 848 - Port: tcp:2812: listening: doesn't match, expect: [true] found: [false]
Change-Id: I9b16aac2ebbf14defdd2713f72c7362ab21d43b8
Print known exceptions only if --debug option is used. No need to flood
output with useless messages.
Change-Id: I4460a370d44dc0f95beb654efc493270f11103d3
Release trunk/mr11.4 was switched to Debian/bookworm where Mariadb 10.11
is used and json/sql files were rebuilt so remove these exceptions.
Change-Id: I9a00e2394eec82a2c2b3ce518df3fa8f731c6e4f
In mariadb 10.6 utf8 was renamed to to utf8mb3:
https://jira.mariadb.org/browse/MDEV-8334
Now json files are built on mariadb 10.5 while on bookworm mariadb 10.11
is used. So until trunk is switched to bookworm we have to skip this
part.
Change-Id: I9a6c61a2250a61676df3dac7ed509442f39dd183
The variable NGCP_HOSTNAME is not defined in /etc/default/ngcp-roles
file so fallback to 'localhost'. The value 'spce' can't be used as there
is no grant for this hostname in mariadb.
Change-Id: I7ee48d00c7615678574bce8194ab29e07774de96
In mariadb 10.6 utf8 was renamed to to utf8mb3:
https://jira.mariadb.org/browse/MDEV-8334
Now json files are built on mariadb 10.5 while on bookworm mariadb 10.11
is used. So until trunk is switched to bookworm we have to skip this
part.
Change-Id: Ia28b9560f516af569c9e76c318d08765af42740f
The reason is partitioning mechanism so the tables are created without
partitioning but then partitions are created by ngcp-cleanup-acc tool
as well as history tables like <table_name>_<date>
So ignore create_options for the list of tables and <table_name>_<date>.
The list of tables are from templates.git:ngcp-cleanup-tools/acc-cleanup.conf
Change-Id: I3a720d7b5b34498abe6805278795825cb1c708c7
Now we have json file with schema description which is etalon one.
Remove comparing schemes between two instances.
Change-Id: I046cc30eed926b06a578c0572132b7e8ae42eb21
On a CE the general.process_handler is always set to 'none'. So we need
to take this into account and mark it as enabled.
Change-Id: Id1347ac027412861a1319a95d1537aaeb778bf6a
The rate-o-mat service can run in active-active or in active-standby
modes. If the service is enabled and on the proxy nodes, the former
mode means the service will be enabled and running on both peers, the
latter will mean it's in the traditional HA mode and thus only running
on the active node.
Change-Id: I020c8a00706135ed5d432bf8b1b8874cf1b2f532
The openssh-server Debian package no longer uses the "ssh" group,
but renamed it to "_ssh" (see git rev 18da782e in
https://salsa.debian.org/ssh-team/openssh.git + Debian's #990456), which
was shipped starting with v1:8.4p1-6.
Debian/bookworm currently ships openssh-server v1:9.0p1-1+b2,
so adjust tests accordingly.
Change-Id: I4f75e94ac32ce9d06a4bc9991fa62b73086e4f45
Previously we compared only schemes between sp1 and sp2 and didn't check
prx 3308 instances while it's quite important part.
So:
1. Adopt compare_dbs.pl script.
1.1 Add host and port as the connection parameters.
1.2 Do not specify connection of remote instance but get the list of
replicas and compare local schemes with remote ones.
1.3 Remove --schemes parameter and get the list of schemes from
replication filter.
1.4 Use replication filters for exceptions.
1.4.1 Change 'constraints' query so it matches
constraints/<schema_name>/<table_name> pattern.
1.5 Use names like <ngcp-hostname>:<port> instead of Schema[12].
2. Adopt ngcp-mysql-compare-dbs.
2.1 Get list of local mysql instances.
2.2 Remove usage of DB_BACKUP_LIST because compare_dbs.pl gets the list
of schemes.
Change-Id: I90eb0209d3b2a51cf4f9223c817b484d149db135
lintian v2.115.3 - as currently present in Debian/booksworm - doesn't
support the existing syntax for the file-in-etc-not-marked-as-conffile
override, and therefore fails with:
| E: ngcp-system-tests: file-in-etc-not-marked-as-conffile [etc/ngcp-config/templates/etc/ngcp-system-tests/000_self-test-command.yaml.tt2]
| E: ngcp-system-tests: file-in-etc-not-marked-as-conffile [etc/ngcp-config/templates/etc/ngcp-system-tests/110_filesys-cores.yaml.tt2]
| E: ngcp-system-tests: file-in-etc-not-marked-as-conffile [etc/ngcp-config/templates/etc/ngcp-system-tests/120_filesys-free-space.yaml.tt2]
| E: ngcp-system-tests: file-in-etc-not-marked-as-conffile [etc/ngcp-config/templates/etc/ngcp-system-tests/130_filesys-ngcp.yaml.tt2]
| E: ngcp-system-tests: file-in-etc-not-marked-as-conffile [etc/ngcp-config/templates/etc/ngcp-system-tests/131_filesys-ngcp-pro.yaml.tt2]
| E: ngcp-system-tests: file-in-etc-not-marked-as-conffile [etc/ngcp-config/templates/etc/ngcp-system-tests/132_filesys-ngcp-templates.yaml.tt2]
| E: ngcp-system-tests: file-in-etc-not-marked-as-conffile [etc/ngcp-config/templates/etc/ngcp-system-tests/133_filesys-deprecated.yaml.tt2]
| E: ngcp-system-tests: file-in-etc-not-marked-as-conffile [etc/ngcp-config/templates/etc/ngcp-system-tests/134_filesys-voisniff.yaml.tt2]
| [...]
It instead expects the filename(s) to be listed under "[...]".
By using "*etc/ngcp-config/templates/*" instead, we can support the
lintian versions as present in bookworm and bullseye at the same time
(thanks to Guillem for the hint!).
Change-Id: I412ad99ae409288a92bdb1143340ffd58c3cc32c
It's an often error after upgrade that this file is missing.
It happens because right after reboot there is no such file and it's not
created by logrotate because we use missingok, notifempty option for
it.
So make it optional.
Change-Id: I4ee18e8ba5e93d19e4b80fd3fcf8197d144f1ea3
In the output it was look like:
columns/provisioning/voip_subscribers_pbx_hunt_policy/column_type
So it's hard to understand where is table name (voip_subscribers)
and where is column name (pbx_hunt_policy).
Use '/' so it will look readable.
Change-Id: I2e7ba54ab6a12b3cfc763964ac79feb7a057d63a
Before the logic was - compare 2 structures and if they are different
analyze every element and exception list.
But there is no sense to do this 1st comparison as they are always
different that's why we have exception list. So remove this module.
Also add perl:Depends to dependencies.
Change-Id: Ia7e1628108d823601a9cd6e6ce14310b9afba795
If formatter=tap is used - exit with 0 code so jenkins can parse tap
report.
If this option is not set - exit 0 if schemes are equal but exit 1 if
they are not.
Change-Id: Ie1f034205acde538187e016e51ebad1caf555d91
grep 3.8 deprecated support for egrep + fgrep, and now prints a warning on stderr:
| egrep: warning: egrep is obsolescent; using grep -E
| fgrep: warning: fgrep is obsolescent; using grep -F
Change-Id: Iae561f2dc592a24359832a80fde4d6d7cfea97d0
Currently we have diff in all tables of 'mysql' schema:
========================
Schema1: transactional=1
Schema2: page_checksum=1 transactional=1
========================
This is harmless diff investigated in TT#108653
So to skip all the specific entities instead of comparing every element
just use regex matching.
Change-Id: I3b9a38c3fbf055724139cbf4b476117b90edbefe
The old obsolete metrics got removed in commit
8a99fc1809, but these had been replaced by
newer entries in the sipTable. Use those so that we can keep detecting
regressions or misbehavior.
Change-Id: I41c21f7dd47bb5f9a6a584672836c9dd5c176380