Page MenuHomeDevCentral

Ensure PostgreSQL port is still up-to-date on FreeBSD
ClosedPublic

Authored by dereckson on Jan 15 2024, 21:37.
Tags
None
Referenced Files
F3946389: D3290.diff
Thu, Dec 26, 17:07
Unknown Object (File)
Sun, Dec 22, 12:09
Unknown Object (File)
Sun, Dec 22, 10:24
Unknown Object (File)
Sun, Dec 22, 05:07
Unknown Object (File)
Fri, Dec 20, 02:03
Unknown Object (File)
Thu, Dec 19, 01:39
Unknown Object (File)
Thu, Dec 19, 01:39
Unknown Object (File)
Thu, Dec 19, 01:39
Subscribers
None

Details

Summary

On FreeBSD, PostgreSQL is built through a port with XML support.

Those checks allow to notice two issues:

  • the port has been replaced by a system package and XML support is lost
  • the packages have been updated, and a library PostgreSQL uses bumped

Ref T1888
Ref T1943

Test Plan

Tested on db-A-001

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
Unit
No Test Coverage
Branch
postgresql-monitoring
Build Status
Buildable 5208
Build 5489: arc lint + arc unit

Event Timeline

dereckson created this revision.

For example, when ICU was updated:

db-A-001
$ ./check-postgresql-dependencies.py
ERROR: libicui18n.so.73 / libicuuc.so.73 are missing, PostgreSQL port MUST be rebuilt as soon as possible.

$ ./check-postgresql-dependencies.py
OK

Deployment

Complector
$ salt db-A-001 state.apply roles/dbserver-pgsql/monitoring
db-A-001:
----------
          ID: postgresql_monitoring_dependencies
    Function: pkg.installed
      Result: True
     Comment: The following packages were installed/updated: py39-pip
     Started: 21:40:59.667353
    Duration: 2132.32 ms
     Changes:
              ----------
              py39-pip:
                  ----------
                  new:
                      23.3.2
                  old:
----------
          ID: postgresql_monitoring_dependencies
    Function: pip.installed
        Name: lddcollect
      Result: True
     Comment: All packages were successfully installed
     Started: 21:41:02.873383
    Duration: 4538.261 ms
     Changes:
              ----------
              lddcollect==0.2.0:
                  Installed
----------
          ID: /usr/local/bin/check-postgresql-dependencies
    Function: file.managed
      Result: True
     Comment: File /usr/local/bin/check-postgresql-dependencies updated
     Started: 21:41:07.415152
    Duration: 35.588 ms
     Changes:
              ----------
              diff:
                  New file
              mode:
                  0755
----------
          ID: /usr/local/bin/check-postgresql-xml-support
    Function: file.managed
      Result: True
     Comment: File /usr/local/bin/check-postgresql-xml-support updated
     Started: 21:41:07.450907
    Duration: 32.835 ms
     Changes:
              ----------
              diff:
                  New file
              mode:
                  0755

Summary for db-A-001
------------
Succeeded: 4 (changed=4)
Failed:    0
------------
Total states run:     4
Total run time:   6.739 s
Complector
$ salt db-A-001 state.apply roles/dbserver-pgsql/monitoring
db-A-001:
----------
          ID: postgresql_monitoring_dependencies
    Function: pkg.installed
      Result: True
     Comment: All specified packages are already installed
     Started: 21:53:32.073163
    Duration: 79.827 ms
     Changes:
----------
          ID: postgresql_monitoring_dependencies
    Function: pip.installed
        Name: lddcollect
      Result: True
     Comment: Python package lddcollect was already installed
              All specified packages are already installed
     Started: 21:53:32.256201
    Duration: 1295.921 ms
     Changes:
----------
          ID: /usr/local/bin/check-postgresql-dependencies
    Function: file.managed
      Result: True
     Comment: File /usr/local/bin/check-postgresql-dependencies is in the correct state
     Started: 21:53:33.559697
    Duration: 22.171 ms
     Changes:
----------
          ID: /usr/local/bin/check-postgresql-xml-support
    Function: file.managed
      Result: True
     Comment: File /usr/local/bin/check-postgresql-xml-support is in the correct state
     Started: 21:53:33.582127
    Duration: 20.651 ms
     Changes:

Summary for db-A-001
------------
Succeeded: 4
Failed:    0
------------
Total states run:     4
Total run time:   1.419 s
This revision is now accepted and ready to land.Jan 16 2024, 00:50
This revision was landed with ongoing or failed builds.Jan 16 2024, 00:53
This revision was automatically updated to reflect the committed changes.