Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packagelists: migrate services to those provided by package #1185

Closed
jberry-suse opened this issue Oct 10, 2017 · 24 comments
Closed

packagelists: migrate services to those provided by package #1185

jberry-suse opened this issue Oct 10, 2017 · 24 comments

Comments

@jberry-suse
Copy link
Contributor

@jberry-suse jberry-suse commented Oct 10, 2017

As services are included in the packaging as part of #1006 the services should be re-deployed on packagelists to run out of package. Once completed maintenance machine can be migrated and new services deployed for SLE.

Before any services can be switched the primary code-base (the one used globally by osc) must be switched to be that of the one provided by package.

List of services to migrate based on old name.

  • build-fail-reminder@.service
  • create-test-dvds.service
  • check-duplicate-binaries@.service
  • factory-announcer.service
  • factory-auto-submit.service
  • factory-dvl-prj-list.service
  • factoryauto.service
  • gnome-review-bot.service
  • leap-423-announcer.service
  • leaperbot.service
  • maintbot.service
  • manager_42.service
  • openqa-comments@.service
  • osc-check_dups.service
  • pkglist@.service
  • repo-checker@.service
  • repochecker.service
  • source-checker.service
  • staging-bot-daily@.service
  • staging-bot-regular@.service
  • staging-bot-reminder.service
  • suppkg_rebuild@.service
  • trigger-rebuilds.service
  • ttm-arm.service
  • ttm-leap.service
  • ttm-s390.service
  • ttm-tumbleweed.service
  • update-crawler.service
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Oct 10, 2017

sudo zypper mr --disable openSUSE:Tools
sudo zypper ar http://download.opensuse.org/repositories/openSUSE:/Tools/SLE_12_SP2 openSUSE:Tools-1169-workaround
sudo zypper ref
sudo zypper in openSUSE-release-tools-repo-checker osc-plugin-staging osc-plugin-check_dups

sudo mv /var/lib/osc-plugins/ /var/lib/osc-plugins-old/

First step is complete, the global source used by osc is now provided by package. I will monitor logs to see what issues arise.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Oct 10, 2017

sudo less /home/_opensuse.org-repo-checker/.oscrc
# copy credentials
sudo -u osrt-repo-checker $(which osc)
# fill in credentials

sudo systemctl enable osrt-repo-checker.timer
sudo systemctl start osrt-repo-checker.timer

Decided to let it create cache from scratch rather than trying to copy. Will existing service once it catches up.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Oct 10, 2017

sudo zypper in openSUSE-release-tools-staging-bot
sudo less /home/_opensuse.org-staging-bot/.oscrc
# copy credentials
sudo -u osrt-staging-bot $(which osc)
# fill in credentials
sudo systemctl stop staging-bot-daily@Leap:15.0.timer
sudo systemctl disable staging-bot-daily@Leap:15.0.timer

sudo systemctl stop staging-bot-regular@Leap:15.0.timer
sudo systemctl disable staging-bot-regular@Leap:15.0.timer

sudo systemctl enable osrt-staging-bot-daily@openSUSE:Leap:15.0.timer
sudo systemctl start osrt-staging-bot-daily@openSUSE:Leap:15.0.timer

sudo systemctl enable osrt-staging-bot-regular@openSUSE:Leap:15.0.timer
sudo systemctl start osrt-staging-bot-regular@openSUSE:Leap:15.0.timer
sudo systemctl start osrt-staging-bot-regular@openSUSE:Leap:15.0
sudo systemctl stop staging-bot-daily@Factory.timer
sudo systemctl disable staging-bot-daily@Factory.timer

sudo systemctl stop staging-bot-regular@Factory.timer
sudo systemctl disable staging-bot-regular@Factory.timer

sudo systemctl enable osrt-staging-bot-daily@openSUSE:Factory.timer
sudo systemctl start osrt-staging-bot-daily@openSUSE:Factory.timer

sudo systemctl enable osrt-staging-bot-regular@openSUSE:Factory.timer
sudo systemctl start osrt-staging-bot-regular@openSUSE:Factory.timer
sudo systemctl start osrt-staging-bot-regular@openSUSE:Factory
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Oct 10, 2017

sudo systemctl stop staging-bot-reminder.timer
sudo systemctl disable staging-bot-reminder.timer

sudo systemctl enable osrt-staging-bot-reminder.timer
sudo systemctl start osrt-staging-bot-reminder.timer

staging-bot services seem happy.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Oct 10, 2017

Cached x86_64 side and running, so disabling old service.

sudo systemctl stop repo-checker@openSUSE:Factory.timer
sudo systemctl disable repo-checker@openSUSE:Factory.timer
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Oct 10, 2017

sudo systemctl stop factory-dvl-prj-list.timer
sudo systemctl disable factory-dvl-prj-list.timer

sudo systemctl enable osrt-staging-bot-devel-list.timer
sudo systemctl start osrt-staging-bot-devel-list.timer
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Oct 12, 2017

Have not been running this service previously, but now that packaged up and installed I went ahead and enabled.

sudo systemctl enable osrt-repo-checker-project_only@openSUSE:Factory.timer
sudo systemctl start osrt-repo-checker-project_only@openSUSE:Factory.timer

EDIT: disabled, pending #1029 as otherwise it should be run manually.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Jan 25, 2018

Post merge and deploying #1368 to packagelists.

zypper in openSUSE-release-tools-announcer
sudo -u osrt-announcer /bin/bash
mkdir -p ~/.local/share/opensuse.org/{factory-announcer,openSUSE:Leap:15.0}
ln -s 20180124 ~/.local/share/opensuse.org/factory-announcer/announcer-current-version
ln -s 84.1 ~/.local/share/opensuse.org/openSUSE:Leap:15.0/announcer-current-version

Verrified current version setup to avoid sending out duplicate email.

$ osrt-announcer --dry --debug --config /etc/openSUSE-release-tools/announcer/openSUSE\:Leap\:15.0.yml
2018-01-26 00:31:44,461 - osrt-announcer:127 - DEBUG - found version 84.1
2018-01-26 00:31:44,461 - osrt-announcer:134 - DEBUG - version unchanged, exit
$ osrt-announcer --dry --debug --config /etc/openSUSE-release-tools/announcer/openSUSE\:Factory.yml
2018-01-26 00:31:55,254 - osrt-announcer:127 - DEBUG - found version 20180124
2018-01-26 00:31:55,254 - osrt-announcer:134 - DEBUG - version unchanged, exit
sudo systemctl stop factory-announcer.timer
sudo systemctl disable factory-announcer.timer

sudo systemctl start osrt-announcer@openSUSE:Factory.timer
sudo systemctl enable osrt-announcer@openSUSE:Factory.timer

sudo systemctl start osrt-announcer@openSUSE:Leap:15.0.timer
sudo systemctl enable osrt-announcer@openSUSE:Leap:15.0.timer
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented Mar 13, 2018

Yes, @nilxam and me migrated the totest-managers to the osrt-package version

Nice, marked on list as done.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

sudo zypper in openSUSE-release-tools-leaper

sudo systemctl start osrt-leaper-manager@openSUSE:Leap:15.0.timer
sudo systemctl enable osrt-leaper-manager@openSUSE:Leap:15.0.timer

sudo systemctl disable manager_42.timer
sudo systemctl stop manager_42.timer
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

sudo zypper in openSUSE-release-tools-maintenance

sudo systemctl start osrt-leaper-review.timer
sudo systemctl enable osrt-leaper-review.timer

sudo systemctl stop leaperbot.timer
sudo systemctl disable leaperbot.timer

Created #1528 to resolve missing dep.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

sudo systemctl start osrt-leaper-crawler@openSUSE:Leap:15.0.timer
sudo systemctl enable osrt-leaper-crawler@openSUSE:Leap:15.0.timer

sudo systemctl stop update-crawler.timer
sudo systemctl disable update-crawler.timer

Along with service file tweak to handle colon in script name.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

pkglist@.service for Leap is deployed on tortuga via package and presumably Factory will go there before it is deployed via package (marking done).

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

sudo zypper in openSUSE-release-tools-check-source

sudo systemctl start osrt-check-source.timer
sudo systemctl enable osrt-check-source.timer

sudo systemctl stop factoryauto.timer
sudo systemctl disable factoryauto.timer
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

sudo systemctl start osrt-maintenance-incidents.timer
sudo systemctl enable osrt-maintenance-incidents.timer

sudo systemctl stop maintbot.timer
sudo systemctl disable maintbot.timer
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

sudo systemctl start osrt-staging-bot-support-rebuild@openSUSE:Leap:15.0.timer
sudo systemctl enable osrt-staging-bot-support-rebuild@openSUSE:Leap:15.0.timer

sudo systemctl start osrt-staging-bot-support-rebuild@openSUSE:Factory.timer
sudo systemctl enable osrt-staging-bot-support-rebuild@openSUSE:Factory.timer

sudo systemctl stop suppkg_rebuild@Leap:15.0.timer
sudo systemctl disable suppkg_rebuild@Leap:15.0.timer

sudo systemctl stop suppkg_rebuild@Factory.timer
sudo systemctl disable suppkg_rebuild@Factory.timer
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

sudo systemctl start osrt-staging-bot-supersede@openSUSE:Factory.timer
sudo systemctl enable osrt-staging-bot-supersede@openSUSE:Factory.timer

sudo systemctl stop osc-check_dups.timer
sudo systemctl disable osc-check_dups.timer

And with that I believe the old factory repo checker user is no more.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

Added check-duplicate-binaries@ to list.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

Changed gnome-review-bot.service to invoke package provided executable and dropped --ignore-devel as the flag is now handled as part of config.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 10, 2018

The remaining services need to be added to this repo in order to be migrated.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 11, 2018

sudo systemctl start osrt-staging-bot-check_duplicate_binaries@openSUSE:Leap:15.0.timer
sudo systemctl enable osrt-staging-bot-check_duplicate_binaries@openSUSE:Leap:15.0.timer

sudo systemctl start osrt-staging-bot-check_duplicate_binaries@openSUSE:Factory.timer
sudo systemctl enable osrt-staging-bot-check_duplicate_binaries@openSUSE:Factory.timer

sudo systemctl stop check-duplicate-binaries@openSUSE:Factory.timer
sudo systemctl disable check-duplicate-binaries@openSUSE:Factory.timer

sudo systemctl stop check-duplicate-binaries@openSUSE:Leap:15.0.timer
sudo systemctl disable check-duplicate-binaries@openSUSE:Leap:15.0.timer
@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 11, 2018

sudo systemctl start osrt-staging-bot-openqa-comments@openSUSE:Factory.timer
sudo systemctl enable osrt-staging-bot-openqa-comments@openSUSE:Factory.timer

sudo systemctl start osrt-staging-bot-openqa-comments@openSUSE:Leap:15.0.timer
sudo systemctl enable osrt-staging-bot-openqa-comments@openSUSE:Leap:15.0.timer

sudo systemctl stop openqa-comments@Factory.timer
sudo systemctl disable openqa-comments@Factory.timer

# stuck for several months!?
sudo systemctl stop openqa-comments@Factory.service

Required #1533.

@jberry-suse

This comment has been minimized.

Copy link
Contributor Author

@jberry-suse jberry-suse commented May 11, 2018

Created IT ticket 112523 to update monitoring on packagelists to cover all migrated services.

@coolo

This comment has been minimized.

Copy link
Member

@coolo coolo commented Jun 3, 2019

Everything is migrated to botmaster now - and botmaster is monitored

@coolo coolo closed this Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.