Page MenuHomeSoftware Heritage
Feed Advanced Search

Nov 9 2020

vsellier updated the diff for D4445: Override host ips in vagrant environment.

Fix previous too enthusiastic commit

Nov 9 2020, 10:26 AM
vsellier updated the diff for D4445: Override host ips in vagrant environment.

Use an alias for sentry entry to clarify the internal ip usage

Nov 9 2020, 10:23 AM
vsellier updated the diff for D4445: Override host ips in vagrant environment.

remove wrong plural

Nov 9 2020, 10:19 AM
vsellier edited reviewers for D4445: Override host ips in vagrant environment, added: System administrators; removed: Reviewers.
Nov 9 2020, 9:56 AM
vsellier created D4445: Override host ips in vagrant environment.
Nov 9 2020, 9:51 AM

Nov 6 2020

vsellier accepted D4440: varnish: use different backends per vhosts.

LGTM as a coauthor 馃槂

Nov 6 2020, 3:10 PM
vsellier accepted D4421: Add staging reverse proxy role.

LGTM

Nov 6 2020, 10:32 AM
vsellier accepted D4419: staging: Reference the new staging reverse proxy node.

LGTM

Nov 6 2020, 10:24 AM
vsellier accepted D4424: terraform/proxmox: Make the ssh connection work.

LGTM

Nov 6 2020, 10:20 AM
vsellier accepted D4423: terraform/modules/node/main: Define custom facts puppet needs to run.

LGTM

Nov 6 2020, 10:15 AM
vsellier committed rSPREf2fae17af485: adapt the debian buster template to be used by terraform (authored by vsellier).
adapt the debian buster template to be used by terraform
Nov 6 2020, 10:03 AM
vsellier closed D4422: adapt the debian buster template to be used by terraform.
Nov 6 2020, 10:03 AM
vsellier added a revision to T2747: Create the reverse proxy to expose the staging services publicly: D4422: adapt the debian buster template to be used by terraform.
Nov 6 2020, 9:58 AMSystem administration
vsellier created D4422: adapt the debian buster template to be used by terraform.
Nov 6 2020, 9:58 AM

Nov 4 2020

vsellier committed rSPSITE209f132be2c7: declare the secondary firewall in the dns (authored by vsellier).
declare the secondary firewall in the dns
Nov 4 2020, 4:47 PM
vsellier closed D4410: declare the secondary firewall in the dns.
Nov 4 2020, 4:47 PM
vsellier added a revision to T2721: Install and configure a firewall for the staging environment: D4410: declare the secondary firewall in the dns.
Nov 4 2020, 4:43 PMSystem administration
vsellier created D4410: declare the secondary firewall in the dns.
Nov 4 2020, 4:43 PM
vsellier triaged T2755: Monitor the firewalls as Normal priority.
Nov 4 2020, 12:01 PMSystem administration
vsellier closed T2721: Install and configure a firewall for the staging environment, a subtask of T2650: Network refactoring - step 1, as Resolved.
Nov 4 2020, 11:55 AMSystem administration
vsellier closed T2721: Install and configure a firewall for the staging environment as Resolved.

The only remaining task is the monitoring / metrics gathering, it will be detailed on another dedicated task.

Nov 4 2020, 11:55 AMSystem administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

after digging why the git configuration is not pushed, I have found in the git backup configuration [1] the plugins needs an 'configuration-changed` event to detect the updated.

Nov 4 2020, 11:53 AMSystem administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

Now an upgrade can be performed without interruption:

  • On glyptotek (SLAVE), upgrade to the version 20.7.4 launched via the web ui
  • Switch the master from pushkin to glyptotek via the web ui (Interfaces / Virtual Ips / Status => Enter Persistent CARP Maintenance Mode) on pushkin
  • Everything seems to work well in glytotek in 20.7.4 so the operation can be repeated on pushkin
  • Don't forget to disable the Maintenance Mode on both firewalls
Nov 4 2020, 11:45 AMSystem administration

Nov 3 2020

vsellier added a comment to T2721: Install and configure a firewall for the staging environment.
  • glyptotek hostname reserved on the host naming page [1]
  • pushkin vm cloned on proxmox and deployed on beaubourg for the ha (pushkin in running on branly)
  • to be able to start the new instance without ip conflicts, the network devices have to be disconnected in the proxmox configuration
  • the IPs were reconfigured in the text console via the menu available when the user root connect. This is the assignement :
InterfaceIP
VLAN440192.168.100.128
VLAN442192.168.50.3
VLAN443192.168.130.3
VLAN1300128.93.166.4
  • the Ha settings were configured on both firewalls to activate the synchronization of the states (menu System / High availability / settings) and the configuration, the peer ip was configured to reach fw2 from fw1 and respectively
  • the master/slave switch via the the interface (Interfaces > Virtual IPs / Status -> Enter/Leave Persistent CARP Maintenance Mode) are ok, there is no packets lost between 2 servers (1 in VLAN440 and the other in VLAN443)
Nov 3 2020, 6:31 PMSystem administration
vsellier renamed T2754: Configure the interfaces for the vlan 1300 on all the proxmox nodes from Configure the interface for the vlan 1300 on all the proxmox nodes to Configure the interfaces for the vlan 1300 on all the proxmox nodes.
Nov 3 2020, 4:12 PMSystem administration
vsellier triaged T2754: Configure the interfaces for the vlan 1300 on all the proxmox nodes as Normal priority.
Nov 3 2020, 4:10 PMSystem administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

after digging why the git configuration is not pushed, I have found in the git backup configuration [1] the plugins needs an 'configuration-changed` event to detect the updated.
This event[2] was added on the version v20.7.4. The firewall is in the v20.7.3 which can explain why the full process is not working.

Nov 3 2020, 3:44 PMSystem administration
vsellier updated the task description for T2620: Inventory of the swh infrastructure.
Nov 3 2020, 3:02 PMSystem administration
vsellier closed T2620: Inventory of the swh infrastructure as Resolved.

Netbox is up and used since several weeks now.
The backup is correctly configured:

root@bojimans:/etc/borgmatic# borgmatic info --archive latest
borg@banco.internal.softwareheritage.org:/srv/borg/repositories/bojimans.internal.softwareheritage.org: Displaying summary info for archives
Archive name: bojimans.internal.softwareheritage.org-2020-11-03T12:41:02.069548
Archive fingerprint: f8d0932e85043e61f59b21856a2cd871336d2b7e7a3e7d6e681cd4333f091581
Comment:
Hostname: bojimans
Username: root
Time (start): Tue, 2020-11-03 12:41:03
Time (end): Tue, 2020-11-03 12:41:10
Duration: 7.19 seconds
Number of files: 62391
Command line: /usr/bin/borg create --exclude-from /tmp/tmpo2f1n9xq --exclude-caches --exclude-if-present .nobackup 'borg@banco.internal.softwareheritage.org:/srv/borg/repositories/bojimans.internal.softwareheritage.org::bojimans.internal.softwareheritage.org-{now:%Y-%m-%dT%H:%M:%S.%f}' /
Utilization of maximum supported archive size: 0%
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
This archive:                1.84 GB            938.96 MB              2.12 MB
All archives:               64.97 GB             32.95 GB              1.06 GB
                       Unique chunks         Total chunks
Chunk index:                   61324              2163683
root@bojimans:~# borgmatic mount --archive latest --mount-point /tmp/bck
root@bojimans:/tmp/bck/opt# du --apparent-size -schP {/tmp/bck,}/opt/netbox* {/tmp/bck,}/var/lib/netbox {/tmp/bck,}/var/lib/postgresql/
17	/tmp/bck/opt/netbox
141M	/tmp/bck/opt/netbox-2.9.3
17	/opt/netbox
156M	/opt/netbox-2.9.3
0	/tmp/bck/var/lib/netbox
16K	/var/lib/netbox
75M	/tmp/bck/var/lib/postgresql/
75M	/var/lib/postgresql/
446M	total

the difference of size return by `du` on the netbox directory seems due to the computation of the size on the fuse fs

root@bojimans:~# mount | grep /tmp/bck
borgfs on /tmp/bck type fuse (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions)

There is no visible differences on the 2 directories :

root@bojimans:~# diff -r {/tmp/bck,}/opt/netbox-2.9.3/
root@bojimans:~#
Nov 3 2020, 3:01 PMSystem administration
vsellier committed rDENVebbf8fbf9789: vault: let postgresql initialize the db and use the swh db init-admin command (authored by vsellier).
vault: let postgresql initialize the db and use the swh db init-admin command
Nov 3 2020, 12:47 PM
vsellier committed rDENV0ec06a10426d: listers: let postgresql initialize the db and use the swh db init-admin command (authored by vsellier).
listers: let postgresql initialize the db and use the swh db init-admin command
Nov 3 2020, 12:47 PM
vsellier committed rDENV38c5cc77eb58: deposit: let postgresql initialize the db (authored by vsellier).
deposit: let postgresql initialize the db
Nov 3 2020, 12:47 PM
vsellier committed rDENVf8fdb69b10eb: vault: let postgresql initialize the db and use the swh db init-admin command (authored by vsellier).
vault: let postgresql initialize the db and use the swh db init-admin command
Nov 3 2020, 12:47 PM
vsellier committed rDENVbdb9f1b3085f: scheduler: remove PG* variable from the db configuration (authored by vsellier).
scheduler: remove PG* variable from the db configuration
Nov 3 2020, 12:47 PM
vsellier committed rDENV1a921fc509d7: storage: let postgresql initialize the db and use the swh db init-admin command (authored by vsellier).
storage: let postgresql initialize the db and use the swh db init-admin command
Nov 3 2020, 12:47 PM
vsellier closed D4394: Finalize the database initialization refactoring to use the default of the container.
Nov 3 2020, 12:47 PM
vsellier added a comment to D4394: Finalize the database initialization refactoring to use the default of the container.

Thanks for validating,
I haven't changed the other docker-compose files because I didn't succeed to start them and not sure the storage part is still used.
As they are independent, we can do it in another diff without impacting the main docker-compose

Nov 3 2020, 12:46 PM
vsellier closed T2736: Configure db1 as new staging db server as Resolved.

We have performed with @ardumont several tests on the webapp, the vault, the deposit, the loaders and the listers and it seems everything is working well.

Nov 3 2020, 12:38 PMSystem administration
vsellier updated the summary of D4394: Finalize the database initialization refactoring to use the default of the container.
Nov 3 2020, 10:32 AM
vsellier added a revision to T2736: Configure db1 as new staging db server: D4394: Finalize the database initialization refactoring to use the default of the container.
Nov 3 2020, 10:32 AMSystem administration
vsellier added a task to D4394: Finalize the database initialization refactoring to use the default of the container: T2736: Configure db1 as new staging db server.
Nov 3 2020, 10:32 AM
vsellier created D4394: Finalize the database initialization refactoring to use the default of the container.
Nov 3 2020, 10:31 AM

Nov 2 2020

vsellier closed T2748: [webapp] Deploy tag v0.0.265 in production as Resolved.

the puppet agent was stopped since some time.
It was restarted and the webapp is now up to date :

Nov 2 2020, 2:52 PMSystem administration, Web app
vsellier committed rSPSITE370e0af7750a: Use the same postgresql data dir as the production servers (authored by vsellier).
Use the same postgresql data dir as the production servers
Nov 2 2020, 2:49 PM
vsellier closed D4391: Use the same postgresql data dir as the production servers.
Nov 2 2020, 2:49 PM
vsellier added a comment to T2736: Configure db1 as new staging db server.

Following the diff D4391, the zfs dsatasets were reconfigured tobe mounted on the /srv/softwareheritage/postgres/* :

systemctl stop postgresql@12-main
zfs set mountpoint=none data/postgres-indexer-12
zfs set mountpoint=none data/postgres-secondary-12
zfs set mountpoint=none data/postgres-main-12
zfs set mountpoint=none data/postgres-misc
Nov 2 2020, 2:46 PMSystem administration
vsellier added a comment to T2748: [webapp] Deploy tag v0.0.265 in production.

Staging

The staging is already up to date with the last tag., There is just the indexers packages which needs an update

Nov 2 2020, 12:54 PMSystem administration, Web app
vsellier changed the status of T2748: [webapp] Deploy tag v0.0.265 in production from Open to Work in Progress.
Nov 2 2020, 12:46 PMSystem administration, Web app
vsellier updated the diff for D4391: Use the same postgresql data dir as the production servers.

factorize the base directory declaration to avoid duplication in the puppet code

Nov 2 2020, 12:30 PM
vsellier created D4391: Use the same postgresql data dir as the production servers.
Nov 2 2020, 12:13 PM
vsellier added a revision to T2736: Configure db1 as new staging db server: D4391: Use the same postgresql data dir as the production servers.
Nov 2 2020, 12:13 PMSystem administration
vsellier committed rSENVa468f40e78f4: Update octocatalog-diff facts (authored by vsellier).
Update octocatalog-diff facts
Nov 2 2020, 12:05 PM
vsellier updated the task description for T2650: Network refactoring - step 1.
Nov 2 2020, 9:22 AMSystem administration

Oct 30 2020

vsellier committed rSPSITE676d35156450: staging: update all the services to use the new db1 server (authored by vsellier).
staging: update all the services to use the new db1 server
Oct 30 2020, 5:49 PM
vsellier closed D4372: staging: update all the services to use the new db1 server.
Oct 30 2020, 5:49 PM
vsellier updated the diff for D4372: staging: update all the services to use the new db1 server.

rebase

Oct 30 2020, 5:48 PM
vsellier added a comment to D4377: Simplify the scheduler's database initialization.

I have landed this one as it's accepted. I will prepare another ones for the other databases

Oct 30 2020, 2:35 PM

Oct 29 2020

vsellier committed rDENV2a5d9a2776dd: Simplify the scheduler's database initialization (authored by vsellier).
Simplify the scheduler's database initialization
Oct 29 2020, 11:04 PM
vsellier closed D4377: Simplify the scheduler's database initialization.
Oct 29 2020, 11:04 PM
vsellier added inline comments to D4377: Simplify the scheduler's database initialization.
Oct 29 2020, 11:04 AM
vsellier updated the diff for D4377: Simplify the scheduler's database initialization.

Check the right database availability

Oct 29 2020, 11:03 AM
vsellier requested review of D4377: Simplify the scheduler's database initialization.
Oct 29 2020, 10:37 AM
vsellier updated the summary of D4377: Simplify the scheduler's database initialization.
Oct 29 2020, 10:14 AM
vsellier added a comment to D4377: Simplify the scheduler's database initialization.

Using this, we can execute the "init-admin" command at each start so new superuser scripts can be executed during each restart toUsing this, we can execute the "init-admin" command at each start which can be useful when new super-user migrations are added

Oct 29 2020, 10:12 AM
vsellier planned changes to D4377: Simplify the scheduler's database initialization.

This is a poc for the scheduler, all the databases initialization could be changed this way when the diff on swh-core will land.

Oct 29 2020, 10:02 AM
vsellier created D4377: Simplify the scheduler's database initialization.
Oct 29 2020, 10:00 AM
vsellier added a revision to T2736: Configure db1 as new staging db server: D4377: Simplify the scheduler's database initialization.
Oct 29 2020, 10:00 AMSystem administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

The configuration backup in git is configured[3].
The configuration should be committed on the iFWCFG[1] repository by the user swhfirewall (the credentials are in the credentials repository)

Oct 29 2020, 9:28 AMSystem administration

Oct 28 2020

vsellier created D4372: staging: update all the services to use the new db1 server.
Oct 28 2020, 2:55 PM
vsellier added a revision to T2736: Configure db1 as new staging db server: D4372: staging: update all the services to use the new db1 server.
Oct 28 2020, 2:55 PMSystem administration
ardumont empowered vsellier as an administrator.
Oct 28 2020, 12:50 PM
vsellier renamed T2739: A search on metadata returns a 500 from Metatada search return a 500 to A search on metadata returns a 500.
Oct 28 2020, 11:18 AMWeb app
vsellier triaged T2739: A search on metadata returns a 500 as Normal priority.
Oct 28 2020, 11:18 AMWeb app
vsellier committed rSENV4e97a84b6abd: vagrant: Add staging.db0 host (authored by vsellier).
vagrant: Add staging.db0 host
Oct 28 2020, 10:11 AM
vsellier committed rSPSITE8590a5dc4379: refactor the postgresql declaration to configure the main cluster instance (authored by vsellier).
refactor the postgresql declaration to configure the main cluster instance
Oct 28 2020, 9:44 AM
vsellier committed rSPSITE1edb2d3d5da2: Update postgresql repository signing key (authored by vsellier).
Update postgresql repository signing key
Oct 28 2020, 9:44 AM
vsellier committed rSPSITEe77721c27515: Include db1 as a db server for staging (authored by vsellier).
Include db1 as a db server for staging
Oct 28 2020, 9:44 AM
vsellier committed rSPSITEe0480b9ce36f: Use the same role for staging and production db servers (authored by vsellier).
Use the same role for staging and production db servers
Oct 28 2020, 9:44 AM
vsellier closed D4370: Staging: refactor the postgresql declaration to configure the main cluster instance.
Oct 28 2020, 9:44 AM
vsellier added inline comments to D4370: Staging: refactor the postgresql declaration to configure the main cluster instance.
Oct 28 2020, 9:33 AM
vsellier updated the diff for D4370: Staging: refactor the postgresql declaration to configure the main cluster instance.
  • refactor the postgresql declaration to configure the main cluster instance
Oct 28 2020, 9:31 AM

Oct 27 2020

vsellier updated the task description for T2738: Configure several postgresql clusters with puppet.
Oct 27 2020, 6:40 PMSystem administration
vsellier triaged T2738: Configure several postgresql clusters with puppet as Normal priority.
Oct 27 2020, 6:38 PMSystem administration
vsellier added a comment to T2736: Configure db1 as new staging db server.

The puppetlabs-postgresql module doesn't allow to manage several postgresql clusters. We have made the tradeoff to use only one cluster on db1 at the beginning to be able to deploy db1 via puppet as it's the priority. The module will be extended or replaced by something else later.

Oct 27 2020, 6:34 PMSystem administration
vsellier added a revision to T2736: Configure db1 as new staging db server: D4370: Staging: refactor the postgresql declaration to configure the main cluster instance.
Oct 27 2020, 6:00 PMSystem administration
vsellier created D4370: Staging: refactor the postgresql declaration to configure the main cluster instance.
Oct 27 2020, 6:00 PM
vsellier closed D4357: Update octocatalog-diff facts.
Oct 27 2020, 10:56 AM
vsellier accepted D4359: Separate profile::devel::postgres into profile::postgres::client.
Oct 27 2020, 10:53 AM
vsellier committed rSENV042d34bc8628: Update octocatalog-diff facts (authored by vsellier).
Update octocatalog-diff facts
Oct 27 2020, 10:30 AM
vsellier created D4357: Update octocatalog-diff facts.
Oct 27 2020, 9:36 AM
vsellier committed rSENV690321f6cf2f: vagrant: Declare the new staging database (authored by vsellier).
vagrant: Declare the new staging database
Oct 27 2020, 9:29 AM
vsellier committed rSENV87c32a05035e: vagrant: Use the new address plan for staging vms (authored by vsellier).
vagrant: Use the new address plan for staging vms
Oct 27 2020, 9:29 AM

Oct 26 2020

vsellier updated subscribers of T2736: Configure db1 as new staging db server.

For the puppet part, the actual staging configuration needs some adaptations as the configuration install postgresql on version 11 and 13. Another point is the different clusters are not managed by puppet but it's the same for the production.

Oct 26 2020, 6:26 PMSystem administration
vsellier committed rSPSITE81fdce11248b: Include db1 as a db server for staging (authored by vsellier).
Include db1 as a db server for staging
Oct 26 2020, 4:41 PM
vsellier added a comment to T2736: Configure db1 as new staging db server.
  • Create the postgresql:5434 dataset
zfs create data/postgres-secondary-12 -o mountpoint=/srv/softwareheritage/postgres/12/secondary
  • Create the postgresql:5435 dataset
zfs create data/postgres-indexer-12 -o mountpoint=/srv/softwareheritage/postgres/12/indexer
Oct 26 2020, 4:24 PMSystem administration
vsellier changed the status of T2736: Configure db1 as new staging db server from Open to Work in Progress.
Oct 26 2020, 4:18 PMSystem administration

Oct 23 2020

vsellier added a comment to T2721: Install and configure a firewall for the staging environment.
  • All the servers are migrated to the new network 192.163.130.0/24.
  • Netbox is up to date.
  • The provisionning code was changed accordingly and applied
Oct 23 2020, 3:52 PMSystem administration
vsellier committed rSPRE210eb4e1df5f: Change staging network (authored by vsellier).
Change staging network
Oct 23 2020, 12:11 PM
vsellier closed D4340: Change staging network.
Oct 23 2020, 12:11 PM
vsellier updated the diff for D4340: Change staging network.

Update the state file after the terraform apply

Oct 23 2020, 12:11 PM