Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikitech
Search

Portal:Toolforge/Admin/Apt repository

From Wikitech
<Portal:Toolforge |Admin

Toolforge Admin

[edit]

Toolforge has an internalapt repository managed withaptly. The repository exists on thetools-services nodes.

Repositories are declared in puppet, but packages should be added to the aptly repository by hand. We usually have one repository per operating system and project, i.e:

  • stretch-tools
  • buster-tools
  • stretch-toolsbeta
  • buster-toolsbeta

Quick example of packages being stored here are:

(among others)

The repository data, located at/srv/packages is stored in a mounted cinder volume.

Deployment components and architecture

Information on how the setup is deployed, and the different components.

Servers

Usually a VM with a cinder volume to store repository data.

Addressing, DNS and proxy

There is an horizon web proxy calleddeb-tools.wmcloud.org that should point to TCP/80 on the server. This allows to build docker images using toolforge internal packages.

Other than that, servers do not have any special DNS or addressing. They do not have floating IPs.

Worth noting that these servers in thetools cloudvps project may offer services for thetoolsbeta project as well.

Puppet

The main role in use isrole::wmcs::toolforge::services.

Admin operations

Information on maintenance and administration of this setup.

managing aptly repo

Is managed as a standardaptly repo.

health

Some interesting bits to check if you want to know the status/health of the server.

  • aptly repos are present, and they contain packages, i.e:sudo aptly repo list andsudo aptly repo show --with-packages=true stretch-tools
  • disk is not filled, i.e:df -h /

failover

We do not have a specific failover mechanism rather than building a new VM and re-attach the cinder volume.

Care should be taken to do not loss aptly repo data, since generating it from scratch can take some time.

History

This was heavily remodeled when migrating the grid to SGE and to Stretch. Previous to the migration, the services nodes used to storeBigbrother (deprecated), andwebservicemonitor (moved to cron servers).

Again, when migrating from Stretch to Buster, the 2 VM approach was dropped in favor of storing the data in a cinder volume, seehttps://phabricator.wikimedia.org/T278354.

See also

Retrieved from "https://wikitech.wikimedia.org/w/index.php?title=Portal:Toolforge/Admin/Apt_repository&oldid=2360935"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp