Page MenuHomeSoftware Heritage
Feed Advanced Search

Nov 3 2020

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 PM · System 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 AM · System 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 PM · System 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 PM · System 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 PM · System 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 PM · System 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 PM · System 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 AM · System 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 AM · System 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 AM · System 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 PM · System 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 AM · Web app
vsellier triaged T2739: A search on metadata returns a 500 as Normal priority.
Oct 28 2020, 11:18 AM · Web 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 PM · System administration
vsellier triaged T2738: Configure several postgresql clusters with puppet as Normal priority.
Oct 27 2020, 6:38 PM · System 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 PM · System 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 PM · System 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 PM · System 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 PM · System 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 PM · System 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 PM · System 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
vsellier added a comment to D4340: Change staging network.

The terraform apply works, the staging gw was removed and apparently without side effects on other servers

Oct 23 2020, 12:09 PM
vsellier added a comment to D4340: Change staging network.

Thanks, i will try my first terraform apply 😬

Oct 23 2020, 11:58 AM
vsellier updated the test plan for D4340: Change staging network.
Oct 23 2020, 11:31 AM
vsellier created D4340: Change staging network.
Oct 23 2020, 11:30 AM
vsellier added a revision to T2721: Install and configure a firewall for the staging environment: D4340: Change staging network.
Oct 23 2020, 11:30 AM · System administration

Oct 22 2020

vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

List of the rules created :

  • icinga : Floating rule: icinga server -> *:icinga port (5665)
  • prometheus: Floating rule: prometheurs server -> *:prometheus ports (9100/9102/9237/7071/9419)
  • logstash/journal: VLAN440 rule: * -> logstash server:logstash_port (5044)
Oct 22 2020, 12:57 PM · System administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

worker0 is migrated and reachable. the dns and icinga rules are well updated after puppet ran on worker0 and pergamon.
To update the server, I had to manually change the ip configuration and reboot it because puppet was failing as it was not able to determine the right ip in 192.168.130.0 network as the server was still associated to an ip in 192.168.128.0 :

root@worker0:~# puppet agent --test
Info: Using configured environment 'staging'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, pick(): must receive at least one non empty value (file: /etc/puppet/code/environments/staging/site-modules/profile/manifests/prometheus/node.pp, line: 31, column: 28) on node worker0.internal.staging.swh.network
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Oct 22 2020, 11:42 AM · System administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

The new rules have to be also manually declared on pergamon to reach the new networks.
Puppet declared them on the configuration but didn't reload the network :

root@pergamon:~# puppet agent --test
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for pergamon.softwareheritage.org
Info: Applying configuration version '1603355074'
Notice: /Stage[main]/Profile::Network/Debnet::Iface[eth0]/Concat[/etc/network/interfaces]/File[/etc/network/interfaces]/content: 
--- /etc/network/interfaces	2020-09-15 16:10:15.235917411 +0000
+++ /tmp/puppet-file20201022-2531741-3gl773	2020-10-22 08:25:16.977289874 +0000
@@ -18,6 +18,8 @@
   up ip route add 192.168.101.0/24 via 192.168.100.1
   up ip route add 192.168.200.0/21 via 192.168.100.1
   up ip route add 192.168.128.0/24 via 192.168.100.125
+  up ip route add 192.168.130.0/24 via 192.168.100.130
+  up ip route add 192.168.50.0/24 via 192.168.100.130
   up ip rule add from 192.168.100.29 table private
   up ip route add 192.168.100.0/24 src 192.168.100.29 dev eth1 table private
   up ip route add default via 192.168.100.1 dev eth1 table private
@@ -25,6 +27,8 @@
   down ip route del default via 192.168.100.1 dev eth1 table private
   down ip route del 192.168.100.0/24 src 192.168.100.29 dev eth1 table private
   down ip rule del from 192.168.100.29 table private
+  down ip route del 192.168.50.0/24 via 192.168.100.130
+  down ip route del 192.168.130.0/24 via 192.168.100.130
   down ip route del 192.168.128.0/24 via 192.168.100.125
   down ip route del 192.168.200.0/21 via 192.168.100.1
   down ip route del 192.168.101.0/24 via 192.168.100.1
Oct 22 2020, 10:31 AM · System administration
vsellier committed rSPSITEf463bcb9ebbe: Update the network configuration of the staging nodes to use the new network… (authored by vsellier).
Update the network configuration of the staging nodes to use the new network…
Oct 22 2020, 10:22 AM
vsellier closed D4321: Update the network configuration of the staging nodes to use the new network range behind the firewall.
Oct 22 2020, 10:22 AM
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

The first staging node will be migrated one by one to avoid too much noise in the monitoring and make the detection of the mission rules in the firewall easier. Puppet is disabled on all the staging node to avoid a massive migration :

Oct 22 2020, 10:18 AM · System administration
vsellier committed rSPSITE01aafc53af9e: Declare the opnsense firewall and the new networks it manages (authored by vsellier).
Declare the opnsense firewall and the new networks it manages
Oct 22 2020, 10:09 AM
vsellier closed D4317: Declare the opnsense firewall and the new networks it manages.
Oct 22 2020, 10:09 AM
vsellier closed T2707: The VMs cloned from the debian10 templates considered as physical servers by facter as Resolved.

Resolved by D4293 and manual installation of the packages with a standard priority on all the servers by @olasd :

aptitude -y install "?priority(standard)!~i?archive(stable)"
Oct 22 2020, 9:59 AM · System administration
vsellier committed rSPREc90a689c85e9: Build the proxmox templates with packer (authored by vsellier).
Build the proxmox templates with packer
Oct 22 2020, 9:56 AM
vsellier closed D4293: Build the proxmox templates with packer.
Oct 22 2020, 9:56 AM

Oct 21 2020

vsellier added a revision to T2721: Install and configure a firewall for the staging environment: D4321: Update the network configuration of the staging nodes to use the new network range behind the firewall.
Oct 21 2020, 7:32 PM · System administration
vsellier created D4321: Update the network configuration of the staging nodes to use the new network range behind the firewall.
Oct 21 2020, 7:32 PM
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

good news! thanks for the confirmation

Oct 21 2020, 7:27 PM · System administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

After having some hard time to configure the initial firewall rules correctly due to the inter-vlan traffic seen as coming from the gateway address and not filtered, the fw rules allow the following facts :

Oct 21 2020, 5:48 PM · System administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.
  • Route manually declared on louvre:
root@louvre:~# ip route add 192.168.130.0/24 via 192.168.100.130 dev ens18
root@louvre:~# ip route add 192.168.50.0/24 via 192.168.100.130 dev ens18
root@louvre:~# ip route
default via 128.93.193.254 dev ens19 onlink 
128.93.193.0/24 dev ens19 proto kernel scope link src 128.93.193.5 
192.168.50.0/24 via 192.168.100.130 dev ens18 
192.168.100.0/24 dev ens18 proto kernel scope link src 192.168.100.1 
192.168.101.0/24 via 192.168.101.2 dev tun0 
192.168.101.2 dev tun0 proto kernel scope link src 192.168.101.1 
192.168.128.0/24 via 192.168.100.125 dev ens18 
192.168.130.0/24 via 192.168.100.130 dev ens18

The route command is not installed on louvre as it's now replaced by ip.

Oct 21 2020, 3:28 PM · System administration
vsellier added a comment to D4317: Declare the opnsense firewall and the new networks it manages.

the staging and staging_new properties were changed to staging_legacy and staging as you suggested. it's better this way.

Oct 21 2020, 2:41 PM
vsellier updated the diff for D4317: Declare the opnsense firewall and the new networks it manages.

Update after the review's feedbacks

Oct 21 2020, 2:38 PM
vsellier accepted D4318: README: Add pin information on vagrant for vagrant/libvirt use.
Oct 21 2020, 2:30 PM
vsellier added a revision to T2721: Install and configure a firewall for the staging environment: D4317: Declare the opnsense firewall and the new networks it manages.
Oct 21 2020, 11:10 AM · System administration
vsellier created D4317: Declare the opnsense firewall and the new networks it manages.
Oct 21 2020, 11:10 AM
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

Some rules needs to be declared to be able to reach the new networks through the firewall.

Oct 21 2020, 10:00 AM · System administration
vsellier created P829 D4315 test.
Oct 21 2020, 9:43 AM

Oct 20 2020

vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

Netbox updated accordingly : https://inventory.internal.softwareheritage.org/virtualization/virtual-machines/75/

Oct 20 2020, 6:25 PM · System administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

VIPs configuration

On the FW UI, go to Interfaces / Virtual IPs / Settings
Add the following Virtual IPs :

  1. Mode CARP / interface VLAN440 / Address: 192.168.100.130/24 / Virtual IP Password: not significant / VHID Group : 1 / Description: VLAN440 gw wip
  2. Mode CARP / interface VLAN442 / Address: 192.168.50.1/24 / Virtual IP Password: not significant / VHID Group: 2 / Description: VLAN442 fw wip
  3. Mode CARP / interface: VLAN443 / Address: 192.168.130.1/24 / Virtual IP Password: not significant / VHID Group: 3/ Description: VLAN443 fw wip
  4. Mode CARP / interface: VLAN1300 / Address: 128.93.166.2/26 / Virtual IP Password: not significant / VHID Group: 4 / Description: VLAN1300 fw wip
Oct 20 2020, 4:57 PM · System administration
vsellier added a comment to T2721: Install and configure a firewall for the staging environment.

The firewall was installed with an iso image OPNsense-20.7-OpenSSL-dvd-amd64.iso uploaded on the ceph-proxmox storage

Oct 20 2020, 3:55 PM · System administration
vsellier updated the task description for T2721: Install and configure a firewall for the staging environment.
Oct 20 2020, 12:50 PM · System administration
vsellier updated the task description for T2721: Install and configure a firewall for the staging environment.
Oct 20 2020, 12:29 PM · System administration

Oct 19 2020

vsellier changed the status of T2721: Install and configure a firewall for the staging environment from Open to Work in Progress.
Oct 19 2020, 7:23 PM · System administration
vsellier planned changes to D4308: wip - poc network configuration in markdown.
Oct 19 2020, 6:35 PM
vsellier closed T2691: Test and select a software router, a subtask of T2650: Network refactoring - step 1, as Resolved.
Oct 19 2020, 5:57 PM · System administration