Skip to content

add a missing nfs mounts for postgresql log rotation

Vincent Sellier requested to merge missing-nfs into production

The role role::swh_database is only used for somerset and belvedere so no other servers will be impacted

Related to swh/infra/sysadm-environment#4747 (closed)

octocatalog-diff somerset
I, [2023-01-30T17:44:58.815630 #3262927]  INFO -- : Diffs computed for somerset.internal.softwareheritage.org
diff origin/production/somerset.internal.softwareheritage.org current/somerset.internal.softwareheritage.org
*******************************************
+ Exec[create /srv/remote-backups] =>
   parameters =>
     "command": "mkdir -p /srv/remote-backups",
     "creates": "/srv/remote-backups",
     "path": [
       "/bin",
       "/usr/bin",
       "/sbin",
       "/usr/sbin"
     ]
*******************************************
+ Exec[create /srv/storage/space] =>
   parameters =>
     "command": "mkdir -p /srv/storage/space",
     "creates": "/srv/storage/space",
     "path": [
       "/bin",
       "/usr/bin",
       "/sbin",
       "/usr/sbin"
     ]
*******************************************
+ Exec[create /tmp] =>
   parameters =>
     "command": "mkdir -p /tmp",
     "creates": "/tmp",
     "path": [
       "/bin",
       "/usr/bin",
       "/sbin",
       "/usr/sbin"
     ]
*******************************************
+ File[/srv/remote-backups]
*******************************************
+ File[/srv/storage/space]
*******************************************
+ File[/tmp]
*******************************************
+ Mount[/srv/remote-backups] =>
   parameters =>
     "device": "saam:/srv/storage/space/postgres-backups/somerset",
     "dump": 0,
     "ensure": "present",
     "fstype": "nfs",
     "options": "rw,soft,intr,rsize=8192,wsize=8192,x-systemd.automount,x-systemd...
     "pass": 0
*******************************************
+ Mount[/srv/storage/space] =>
   parameters =>
     "device": "saam:/srv/storage/space",
     "dump": 0,
     "ensure": "present",
     "fstype": "nfs",
     "options": "ro,soft,intr,rsize=8192,wsize=8192,noauto,x-systemd.automount,x-...
     "pass": 0
*******************************************
+ Mount[/tmp] =>
   parameters =>
     "device": "tmpfs",
     "dump": 0,
     "ensure": "present",
     "fstype": "tmpfs",
     "options": "size=,nr_inodes=200m,noexec,nosuid,nodev,relatime,rw",
     "pass": 0
*******************************************
+ Mount[swap] =>
   parameters =>
     "device": "LABEL=\"swap\"",
     "dump": 0,
     "ensure": "present",
     "fstype": "swap",
     "options": "sw",
     "pass": 0
*******************************************
*** End octocatalog-diff on somerset.internal.softwareheritage.org
octocatalog-diff belvedere
diff origin/production/belvedere.internal.softwareheritage.org current/belvedere.internal.softwareheritage.org
*******************************************
+ Exec[create /srv/remote-backups] =>
   parameters =>
     "command": "mkdir -p /srv/remote-backups",
     "creates": "/srv/remote-backups",
     "path": [
       "/bin",
       "/usr/bin",
       "/sbin",
       "/usr/sbin"
     ]
*******************************************
+ Exec[create /srv/storage/space] =>
   parameters =>
     "command": "mkdir -p /srv/storage/space",
     "creates": "/srv/storage/space",
     "path": [
       "/bin",
       "/usr/bin",
       "/sbin",
       "/usr/sbin"
     ]
*******************************************
+ Exec[create /tmp] =>
   parameters =>
     "command": "mkdir -p /tmp",
     "creates": "/tmp",
     "path": [
       "/bin",
       "/usr/bin",
       "/sbin",
       "/usr/sbin"
     ]
*******************************************
+ File[/srv/remote-backups]
*******************************************
+ File[/srv/storage/space]
*******************************************
+ File[/tmp]
*******************************************
+ Mount[/srv/remote-backups] =>
   parameters =>
     "device": "saam:/srv/storage/space/postgres-backups/prado",
     "dump": 0,
     "ensure": "present",
     "fstype": "nfs",
     "options": "rw,soft,intr,rsize=8192,wsize=8192,x-systemd.automount,x-systemd...
     "pass": 0
*******************************************
+ Mount[/srv/storage/space] =>
   parameters =>
     "device": "saam:/srv/storage/space",
     "dump": 0,
     "ensure": "present",
     "fstype": "nfs",
     "options": "ro,soft,intr,rsize=8192,wsize=8192,noauto,x-systemd.automount,x-...
     "pass": 0
*******************************************
+ Mount[/tmp] =>
   parameters =>
     "device": "tmpfs",
     "dump": 0,
     "ensure": "present",
     "fstype": "tmpfs",
     "options": "size=,nr_inodes=200m,noexec,nosuid,nodev,relatime,rw",
     "pass": 0
*******************************************
+ Mount[swap] =>
   parameters =>
     "device": "LABEL=\"swap\"",
     "dump": 0,
     "ensure": "present",
     "fstype": "swap",
     "options": "sw",
     "pass": 0
*******************************************
*** End octocatalog-diff on belvedere.internal.softwareheritage.org
octocatalog-diff dali (to check it's not impacted)
*** Running octocatalog-diff on host dali.internal.admin.swh.network
I, [2023-01-30T17:45:03.277067 #3262997]  INFO -- : Catalogs compiled for dali.internal.admin.swh.network
I, [2023-01-30T17:45:03.718209 #3262997]  INFO -- : Diffs computed for dali.internal.admin.swh.network
I, [2023-01-30T17:45:03.718254 #3262997]  INFO -- : No differences
*** End octocatalog-diff on dali.internal.admin.swh.network

/cc @teams/sysadmin

Edited by Vincent Sellier

Merge request reports