In T152580#2860479, @fgiunchedi wrote:Note that tools can't be upgraded, the package in tools' repo takes precedence cc @yuvipanda
filippo@tools-webgrid-lighttpd-1402:~$ apt-cache policy prometheus-node-exporter prometheus-node-exporter: Installed: 0.12.0~trusty3 Candidate: 0.12.0~trusty3 Version table: 0.13.0~rc.2+ds-2~trusty1 0 1001 http://apt.wikimedia.org/wikimedia/ trusty-wikimedia/universe amd64 Packages *** 0.12.0~trusty3 0 1500 http://deb.tools.wmflabs.org/repo/ trusty-tools/main amd64 Packages 100 /var/lib/dpkg/status 0.12.0~trusty2 0 1500 http://deb.tools.wmflabs.org/repo/ trusty-tools/main amd64 Packages 0.12.0~trusty1 0 1500 http://deb.tools.wmflabs.org/repo/ trusty-tools/main amd64 Packages 0.12.0~precise3 0 1500 http://deb.tools.wmflabs.org/repo/ trusty-tools/main amd64 Packages
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | fgiunchedi | T152580 rollout prometheus-node-exporter 0.13 | |||
Resolved | scfc | T158824 Remove prometheus-node-exporter from Tool Labs apt repository (if no longer needed) |
Event Timeline
Comment Actions
Removed the packages from aptly and moved the files to ~tools.admin/archived-packages/:
scfc@tools-services-01:~$ for repo in {precise,trusty,jessie}-tools; do sudo aptly repo remove "$repo" prometheus-node-exporter && sudo aptly publish --skip-signing update "$repo"; done && sudo aptly db cleanup Loading packages... [-] prometheus-node-exporter_0.12.0~precise2_amd64 removed [-] prometheus-node-exporter_0.12.0~precise1_amd64 removed [-] prometheus-node-exporter_0.12.0~precise3_amd64 removed Loading packages... Generating metadata files and linking package files... Finalizing metadata files... Cleaning up prefix "." components main... Publish for local repo ./precise-tools [all, amd64] publishes {main: [precise-tools]} has been successfully updated. Loading packages... [-] prometheus-node-exporter_0.12.0~trusty1_amd64 removed [-] prometheus-node-exporter_0.12.0~trusty2_amd64 removed [-] prometheus-node-exporter_0.12.0~precise3_amd64 removed [-] prometheus-node-exporter_0.12.0~trusty3_amd64 removed Loading packages... Generating metadata files and linking package files... Finalizing metadata files... Cleaning up prefix "." components main... Publish for local repo ./trusty-tools [all, amd64] publishes {main: [trusty-tools]} has been successfully updated. Loading packages... Loading packages... Generating metadata files and linking package files... Finalizing metadata files... Cleaning up prefix "." components main... Publish for local repo ./jessie-tools [all, amd64] publishes {main: [jessie-tools]} has been successfully updated. Loading mirrors, local repos and snapshots... Loading list of all packages... Deleting unreferenced packages (12)... Building list of files referenced by packages... Building list of files in package pool... Deleting unreferenced files (11)... Disk space freed: 30.70 MiB... Compacting database... scfc@tools-services-01:~$
Comment Actions
… and backed up the new directory with sudo rsync --chmod 440 --chown root:"${INSTANCEPROJECT}".admin -ilrt /srv/packages/ /data/project/.system/aptly/"$(hostname -f)".
Comment Actions
I also had to remove prometheus-blackbox-exporter from precise-tools and trusty-tools (but not from jessie-tools). This package is only used on tools-prometheus-01.tools.eqiad.wmflabs and tools-prometheus-02.tools.eqiad.wmflabs (both Jessie).