Skip to content
Snippets Groups Projects

v316: Release swh.counters v0.11.0

Closed Jenkins Bot requested to merge swh-next-version into staging

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • assigned to @jenkins

  • added 4 commits

    Compare with previous version

  • Jenkins Bot changed title from v312: Release swh.loader.cvs v0.8.3 to v314: Release swh.storage v2.4.1

    changed title from v312: Release swh.loader.cvs v0.8.3 to v314: Release swh.storage v2.4.1

  • Jenkins Bot added 1 commit

    added 1 commit

    • 1821a712 - v314: Release swh.storage v2.4.1

    Compare with previous version

  • Jenkins Bot changed title from v314: Release swh.storage v2.4.1 to v315: Release swh.journal v1.5.2

    changed title from v314: Release swh.storage v2.4.1 to v315: Release swh.journal v1.5.2

  • Jenkins Bot added 1 commit

    added 1 commit

    • 1507ff2c - v315: Release swh.journal v1.5.2

    Compare with previous version

  • swh.storage 2.4.1 includes a migration of the masking proxy database to add tables to include mailmap functionality.

  • added 8 commits

    Compare with previous version

  • Jenkins Bot changed title from v315: Release swh.journal v1.5.2 to v315: Release swh.loader.core v5.18.1

    changed title from v315: Release swh.journal v1.5.2 to v315: Release swh.loader.core v5.18.1

  • Jenkins Bot added 1 commit

    added 1 commit

    • 7e3c3e27 - v315: Release swh.loader.core v5.18.1

    Compare with previous version

  • added 4 commits

    • 278a8509 - 1 commit from branch staging
    • 32829a4c - v312: Release swh.loader.cvs v0.8.3
    • c49a2859 - v314: Release swh.storage v2.4.1
    • 78239af2 - v315: Release swh.loader.core v5.18.1

    Compare with previous version

  • added 1 commit

    • 6b37e1bc - swh/next-next-version: Use the right url for the next-version counters

    Compare with previous version

  • Jenkins Bot changed title from v315: Release swh.loader.core v5.18.1 to v316: Release swh.counters v0.11.0

    changed title from v315: Release swh.loader.core v5.18.1 to v316: Release swh.counters v0.11.0

  • Jenkins Bot added 1 commit

    added 1 commit

    • c8f3b178 - v316: Release swh.counters v0.11.0

    Compare with previous version

  • added 2 commits

    • 092990bb - swh/counters: Add a service monitor to scrape the counters metrics
    • d95098ea - swh/staging: Active the counters metrics scraping

    Compare with previous version

  • Vincent Sellier added 10 commits

    added 10 commits

    • d95098ea...4de61657 - 3 commits from branch staging
    • b125c31c - v312: Release swh.loader.cvs v0.8.3
    • 0abc7e67 - v314: Release swh.storage v2.4.1
    • 88236e44 - v315: Release swh.loader.core v5.18.1
    • 2518e051 - swh/next-next-version: Use the right url for the next-version counters
    • 7737023b - v316: Release swh.counters v0.11.0
    • c9f39624 - swh/counters: Add a service monitor to scrape the counters metrics
    • 6bb058df - swh/staging: Active the counters metrics scraping

    Compare with previous version

  • v316 deployed in staging

    Ater some fight the migration was finally applied correctly:

    swh@swh-toolbox-6bbd4df7d9-2kt95:~$ swh  db --config-file=$SWH_CONFIG_FILENAME upgrade storage.proxies.masking --dbname swh-masking --module-config-key=masking_admin
    WARNING:swh.core.sentry:Sentry DSN not provided, events will not be sent.
    Usage: swh db upgrade [OPTIONS] MODULE
    Try 'swh db upgrade -h' for help.
    
    Error: Invalid value: Error: the given module (storage.proxies.masking) does not match the value stored in the database (storage).
    
    
    ----------------------------------
    
    https://gitlab.softwareheritage.org/swh/devel/swh-storage/-/commit/26c3be97b25daae6b81554df8f0788cc7e9d0c35
    
    swh-masking=# select * from dbmodule;
     dbmodule | single_row
    ----------+------------
     storage  | x
    (1 row)
    
    swh-masking=# update dbmodule set dbmodule='storage.proxies.masking';
    UPDATE 1

    To fix for discrepancies in the configuration:

    swh@swh-toolbox-6bbd4df7d9-2kt95:~$ diff -U3 /etc/swh/config-masking.yml config-masking.yml
    --- /etc/swh/config-masking.yml 2024-06-04 12:57:47.927615633 +0000
    +++ config-masking.yml  2024-06-04 13:46:34.990300349 +0000
    @@ -3,5 +3,6 @@
       db: host=db1.internal.staging.swh.network port=5432 user=swh-masking dbname=swh-masking
         password=XXX
     masking_admin:
    -  masking_db: host=db1.internal.staging.swh.network port=5432 user=swh-masking dbname=swh-masking
    +  cls: postgresql
    +  db: host=db1.internal.staging.swh.network port=5432 user=swh-masking dbname=swh-masking
         password=XXX
    swh@swh-toolbox-6bbd4df7d9-2kt95:~$ swh  db --config-file=$SWH_CONFIG_FILENAME upgrade storage.proxies.masking  --module-config-key=masking_admin
    WARNING:swh.core.sentry:Sentry DSN not provided, events will not be sent.
    INFO:swh.core.db.db_utils:Executing migration script '/opt/swh/.local/lib/python3.10/site-packages/swh/storage/proxies/masking/sql/upgrades/193.sql'
    WARNING:swh.core.db.db_utils:Asked for flavor only_masking, but module does not support database flavors
    INFO:swh.core.db.db_utils:Executing migration script '/opt/swh/.local/lib/python3.10/site-packages/swh/storage/proxies/masking/sql/upgrades/194.sql'
    WARNING:swh.core.db.db_utils:Asked for flavor only_masking, but module does not support database flavors
    Migration to version 194 done
    WARNING:swh.core.db.db_utils:Asked for flavor only_masking, but module does not support database flavors

    I suppose the message is due to some remaining data in the database

Please register or sign in to reply
Loading