/mnt is legacy. Time to move to /srv :]
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | hashar | T146381 Migrate CI labs slaves to use /srv instead of /mnt | |||
Resolved | hashar | T146382 Jenkins: /srv/deployment/integration/slave-scripts/bin/mw-install-mysql.sh: No such file or directory |
Event Timeline
Change 312262 had a related patch set uploaded (by Hashar):
contint: mount /srv the same as /mnt
Change 312267 had a related patch set uploaded (by Hashar):
contint: migrate browsertest redis to /srv
Change 312270 had a related patch set uploaded (by Hashar):
contint: migrate package_builder from /mnt to /srv
Change 312275 had a related patch set uploaded (by Hashar):
contint: remove obsoletes file { ensure => absent }
Change 312313 had a related patch set uploaded (by Hashar):
contint: create /srv based directory hierarchy
Change 312323 had a related patch set uploaded (by Hashar):
Migrate castor-save to use /srv instead of /mnt
Change 312322 had a related patch set uploaded (by Hashar):
contint: migrate castor server to /srv
Change 312328 had a related patch set uploaded (by Hashar):
contint: add a tmpfs on /srv
Change 312330 had a related patch set uploaded (by Hashar):
Change tmpfs to /srv instead of /mnt
I am 80% done with it.
- have to point jobs to use the tmpfs under /srv https://gerrit.wikimedia.org/r/#/c/312330/
- the drop from puppet/unmount the tmpfs under /mnt
Then make the slave::common::labs role to use role::labs::lvm::srv instead of the mnt one. But, the puppet compiler does not use the CI puppet master and is stuck to /mnt for now :(
There are impact on the beta cluster slave as well. But it has a conflicting cherry pick so it will not break magically. Should be easily fixable.
Change 312518 had a related patch set uploaded (by Hashar):
contint: unmount /mnt/home/jenkins-deploy/tmpfs
Mentioned in SAL (#wikimedia-releng) [2016-09-23T14:04:51Z] <hashar> remove the /mnt based tmpfs for T146381 / https://gerrit.wikimedia.org/r/#/c/312518/ via: salt -v '*' cmd.run 'umount /mnt/home/jenkins-deploy/tmpfs'
Change 312519 had a related patch set uploaded (by Hashar):
contint: move to ::srv role from ::mnt
Change 312523 had a related patch set uploaded (by Hashar):
contint: move from /mnt to /srv
Change 312275 abandoned by Hashar:
contint: remove obsolete files { ensure => absent }
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
Change 312322 abandoned by Hashar:
contint: migrate castor server to /srv
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
Change 312262 abandoned by Hashar:
contint: mount /srv the same as /mnt
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
Change 312328 abandoned by Hashar:
contint: add a tmpfs on /srv
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
Change 312267 abandoned by Hashar:
contint: migrate browsertest redis to /srv
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
Change 312313 abandoned by Hashar:
contint: create /srv based directory hierarchy
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
Change 312270 abandoned by Hashar:
contint: migrate package_builder from /mnt to /srv
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
Change 312518 abandoned by Hashar:
contint: unmount /mnt/home/jenkins-deploy/tmpfs
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
Change 312519 abandoned by Hashar:
contint: move to ::srv role from ::mnt
Reason:
Squashed in https://gerrit.wikimedia.org/r/#/c/312523/
This is mostly done. Both deployment-prep and CI have the patch cherry picked.
Have to migrate the Puppet CI instance.
Change 330412 had a related patch set uploaded (by Hashar):
Migrate puppet compiler instance from /mnt to /srv
All CI slaves attached to standalone puppet masters have been migrated. The last one to move is the puppet compiler.
I have rebased the couple pending patches in Gerrit. Poked Giuseppe about it on https://gerrit.wikimedia.org/r/#/c/330412/ so we can find a time to migrate the last instance and merge both patches.
I have quickly talked about it with @Joe . The migration plan is:
- mark the node offline at https://integration.wikimedia.org/ci/computer/compiler02.puppet3-diffs.eqiad.wmflabs/
- Disconnect it (link in left side bar)
- On https://integration.wikimedia.org/ci/computer/compiler02.puppet3-diffs.eqiad.wmflabs/configure update "Remote root directory" from /mnt/jenkins-workspace to /srv/jenkins-workspace
compiler02.puppet3-diffs.eqiad.wmflabs is attached to the global labs puppet master, hence the patch needs to be merged first:
https://gerrit.wikimedia.org/r/#/c/312523/ | move from /mnt to /srv |
https://gerrit.wikimedia.org/r/#/c/330412/ | Migrate puppet compiler instance from /mnt to /srv |
Then on the instance:
- kill anything that might be using /mnt (lsof /mnt)
- run puppet
- make sure /mnt is unmounted and no more in /etc/fstab
Mark Node online again:
https://integration.wikimedia.org/ci/computer/compiler02.puppet3-diffs.eqiad.wmflabs/
Run a build and verify the build and PPC config are in a sane state.
Change 312523 merged by Dzahn:
[operations/puppet@production] contint: move from /mnt to /srv
Change 330412 merged by Dzahn:
[operations/puppet@production] Migrate puppet compiler instance from /mnt to /srv