bugyou: retire service and all it's parts

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-11-06 23:48:02 +00:00 committed by Pierre-Yves Chibon
parent da7ccb50af
commit a8c8df48de
18 changed files with 0 additions and 356 deletions

View file

@ -1,25 +0,0 @@
---
# Define resources for this group of hosts here.
lvm_size: 20000
mem_size: 1024
num_cpus: 2
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
tcp_ports: []
fas_client_groups: sysadmin-noc,sysadmin-releng,sysadmin-fedimg,sysadmin-datanommer,sysadmin-veteran
sudoers: "{{ private }}/files/sudo/bugyou-sudoers"
# For the MOTD
csi_security_category: Moderate
csi_primary_contact: Fedora admins - admin@fedoraproject.org
csi_purpose: Run the 'bugyou' fedmsg process that files automatic bugs in pagure
csi_relationship: |
This node runs 'bugyou', a fedmsg consumer that files pagure bugs in
response to fedmsg bus activity.
It is primarily used to file bugs when automatic releng processes fail.
See https://pagure.io/bugyou for more information.

View file

@ -1,25 +0,0 @@
---
# Define resources for this group of hosts here.
lvm_size: 20000
mem_size: 1024
num_cpus: 1
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
tcp_ports: []
fas_client_groups: sysadmin-noc,sysadmin-releng,sysadmin-fedimg,sysadmin-datanommer,sysadmin-veteran
sudoers: "{{ private }}/files/sudo/bugyou-stg-sudoers"
# For the MOTD
csi_security_category: Moderate
csi_primary_contact: Fedora admins - admin@fedoraproject.org
csi_purpose: Run the 'bugyou' fedmsg process that files automatic bugs in pagure
csi_relationship: |
This node runs 'bugyou', a fedmsg consumer that files pagure bugs in
response to fedmsg bus activity.
It is primarily used to file bugs when automatic releng processes fail.
See https://pagure.io/bugyou for more information.

View file

@ -1,14 +0,0 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-7
ks_repo: http://10.5.126.23/repo/rhel/RHEL7-x86_64/
eth0_ip: 10.5.126.129
volgroup: /dev/vg_guests
vmhost: virthost01.phx2.fedoraproject.org
datacenter: phx2
freezes: true

View file

@ -1,13 +0,0 @@
---
nm: 255.255.255.0
gw: 10.5.128.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-7
ks_repo: http://10.5.126.23/repo/rhel/RHEL7-x86_64/
eth0_ip: 10.5.128.82
volgroup: /dev/vg_guests
vmhost: virthost01.stg.phx2.fedoraproject.org
datacenter: phx2

View file

@ -102,12 +102,6 @@ blockerbugs02.phx2.fedoraproject.org
[blockerbugs_stg]
blockerbugs01.stg.phx2.fedoraproject.org
[bugyou]
bugyou01.phx2.fedoraproject.org
[bugyou_stg]
bugyou01.stg.phx2.fedoraproject.org
[bugzilla2fedmsg]
bugzilla2fedmsg01.phx2.fedoraproject.org
@ -709,7 +703,6 @@ basset01.stg.phx2.fedoraproject.org
beaker-stg01.qa.fedoraproject.org
blockerbugs01.stg.phx2.fedoraproject.org
bodhi-backend01.stg.phx2.fedoraproject.org
bugyou01.stg.phx2.fedoraproject.org
bugzilla2fedmsg01.stg.phx2.fedoraproject.org
buildvm-01.stg.phx2.fedoraproject.org
buildvm-02.stg.phx2.fedoraproject.org
@ -935,7 +928,6 @@ openqa-stg01.qa.fedoraproject.org
autocloud_backend
badges_backend
busgateway
bugyou
fedimg
mbs_backend
notifs_backend
@ -946,7 +938,6 @@ pkgs
autocloud_backend_stg
badges_backend_stg
busgateway_stg
bugyou_stg
fedimg_stg
mbs_backend_stg
notifs_backend_stg

View file

@ -28,7 +28,6 @@
- import_playbook: /srv/web/infra/ansible/playbooks/groups/bugzilla2fedmsg.yml
- import_playbook: /srv/web/infra/ansible/playbooks/groups/buildhw.yml
- import_playbook: /srv/web/infra/ansible/playbooks/groups/buildvm.yml
- import_playbook: /srv/web/infra/ansible/playbooks/groups/bugyou.yml
- import_playbook: /srv/web/infra/ansible/playbooks/groups/busgateway.yml
- import_playbook: /srv/web/infra/ansible/playbooks/groups/certgetter.yml
- import_playbook: /srv/web/infra/ansible/playbooks/groups/ci.yml

View file

@ -1,71 +0,0 @@
# create a new bugyou server
# NOTE: should be used with --limit most of the time
# NOTE: make sure there is room/space for this server on the vmhost
# NOTE: most of these vars_path come from group_vars/mirrorlist or from hostvars
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=bugyou:bugyou_stg"
- name: dole out the generic configuration
hosts: bugyou:bugyou_stg
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- nagios_client
- collectd/base
- hosts
- fas_client
- sudo
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
- name: set up fedmsg basics
hosts: bugyou:bugyou_stg
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- fedmsg/base
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
- name: dole out the service-specific config
hosts: bugyou:bugyou_stg
user: root
gather_facts: True
roles:
- fedmsg/hub
- bugyou/bugyou-master
- bugyou/bugyou-plugins
- role: collectd/fedmsg-service
process: fedmsg-hub
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"

View file

@ -1,59 +0,0 @@
- name: push packages out
hosts: bugyou:bugyou_stg
user: root
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
vars:
testing: False
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
tasks:
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%}
always_run: yes
- name: update bugyou packages from main repo
package: name="bugyou*" state=latest
when: not testing
- name: yum update bugyou packages from testing repo
yum: name="bugyou*" state=latest enablerepo=infrastructure-tags-stg
when: testing
- name: verify the backends, stop them, and then upgrade the db
hosts: bugyou:bugyou_stg
user: root
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
pre_tasks:
- name: tell nagios to shush w.r.t. the backend
nagios: action=downtime minutes=15 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
delegate_to: noc01.phx2.fedoraproject.org
ignore_errors: true
roles:
- bugyou/backend
tasks:
- name: Stop the fedmsg-hub backend
service: name="fedmsg-hub" state=stopped
- name: Stop the bugyou controller backend
service: name="bugyou-cntrl" state=stopped
- name: And... start the bugyou controller backend again
service: name="bugyou-cntrl" state=started
- name: And... start the fedmsg-hub backend again
service: name="fedmsg-hub" state=started
post_tasks:
- name: tell nagios to unshush w.r.t. the backend
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
delegate_to: noc01.phx2.fedoraproject.org
ignore_errors: true

View file

@ -1,30 +0,0 @@
---
# Configuration for Bugyou
- name: install needed packages for bugyou
package: name={{ item }} state=present enablerepo=epel-testing
with_items:
- bugyou
notify:
- restart fedmsg-hub
tags:
- bugyou
- bugyou/master
- name: copy bugyou fedmsg configuration
template: >
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
owner=root group=fedmsg mode=0640
with_items:
- bugyou.py
notify:
- restart fedmsg-hub
tags:
- bugyou
- bugyou/master
# This is shipped in the package but leaks stg and prod
- name: Clear out endpoints-bugyou.py
copy:
dest: /etc/fedmsg.d/endpoints-bugyou.py
content: 'config = {}'

View file

@ -1,15 +0,0 @@
config = {
# Consumer stuff
"bugyou.consumer.enabled": True,
# Turn on the logging for bugyou
"logging": dict(
loggers=dict(
bugyou={
"level": "DEBUG",
"propagate": False,
"handlers": ['console'],
},
),
),
}

View file

@ -1,37 +0,0 @@
---
# Configuration for Bugyou Plugins
- name: install needed packages for bugyou_plugins
package: name={{ item }} state=present enablerepo=epel-testing
with_items:
- python-libpagure
- bugyou_plugins
- redis
notify:
- restart fedmsg-hub
tags:
- bugyou
- bugyou/plugins
- name: copy bugyou plugins configuration files
template: >
src={{ item }}
dest=/etc/bugyou/{{ item }}
owner=root
group=fedmsg
mode=0640
with_items:
- bugyou_plugins.cfg
- bugyou_services.cfg
notify:
- restart fedmsg-hub
tags:
- bugyou
- bugyou/plugins
- name: start the bugyou-cntrl
service: name=bugyou-cntrl state=started
tags:
- bugyou
- bugyou/plugins
when: env == "production"

View file

@ -1,3 +0,0 @@
[autocloud]
services = pagure
topic = org.fedoraproject.prod.autocloud.image.success, org.fedoraproject.prod.autocloud.image.failed

View file

@ -1,8 +0,0 @@
[autocloud_pagure]
{% if env == 'staging' %}
repo_name = atomic-images-test
access_token = {{bugyou_stg_pagure_atomic_images_api_key}}
{% else %}
repo_name = atomic-images
access_token = {{bugyou_pagure_atomic_images_api_key}}
{% endif %}

View file

@ -153,18 +153,6 @@
- config
- nagios_client
#
# The actual items files here end in .j2 (they are templates)
# So when adding or modifying them change the .j2 version in git.
#
- name: install nrpe bugyou fedmsg hubs check config
template: src=check_fedmsg_hub_procs_bugyou.cfg.j2 dest=/etc/nrpe.d/check_fedmsg_hub_procs_bugyou.cfg
when: inventory_hostname.startswith('bugyou01')
notify:
- restart nrpe
tags:
- nagios_client
#
# The actual items files here end in .j2 (they are templates)
# So when adding or modifying them change the .j2 version in git.

View file

@ -12,7 +12,6 @@ command[check_fedmsg_cp_fedimg_backend]={{libdir}}/nagios/plugins/check_fedmsg_p
command[check_fedmsg_cp_hotness_backend]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub BugzillaTicketFiler MonitoringProducer
command[check_fedmsg_cp_autocloud_backend]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub AutoCloudConsumer MonitoringProducer
command[check_fedmsg_cp_packages_backend]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub CacheInvalidator MonitoringProducer
command[check_fedmsg_cp_bugyou_backend]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub BugyouConsumer MonitoringProducer
command[check_fedmsg_cp_pdc_backend]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub PDCUpdater MonitoringProducer
command[check_fedmsg_cp_mbs_backend]={{libdir}}/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub MBSConsumer MBSProducer MonitoringProducer
@ -29,7 +28,6 @@ command[check_fedmsg_cexceptions_fedimg_backend]={{libdir}}/nagios/plugins/check
command[check_fedmsg_cexceptions_hotness_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub BugzillaTicketFiler 1 10
command[check_fedmsg_cexceptions_autocloud_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub AutoCloudConsumer 1 10
command[check_fedmsg_cexceptions_packages_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub CacheInvalidator 1 10
command[check_fedmsg_cexceptions_bugyou_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub BugyouConsumer 1 10
command[check_fedmsg_cexceptions_pdc_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub PDCUpdater 1 10
command[check_fedmsg_cexceptions_mbs_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub MBSConsumer 1 10
@ -46,7 +44,6 @@ command[check_fedmsg_cbacklog_fedimg_backend]={{libdir}}/nagios/plugins/check_fe
command[check_fedmsg_cbacklog_hotness_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub BugzillaTicketFiler 1000 5000
command[check_fedmsg_cbacklog_autocloud_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub AutoCloudConsumer 100 500
command[check_fedmsg_cbacklog_packages_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub CacheInvalidator 30000 40000
command[check_fedmsg_cbacklog_bugyou_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub BugyouConsumer 5000 10000
command[check_fedmsg_cbacklog_pdc_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub PDCUpdater 10000 20000
command[check_fedmsg_cbacklog_mbs_backend]={{libdir}}/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub MBSConsumer 10000 20000

View file

@ -1 +0,0 @@
command[check_fedmsg_hub_procs_bugyou]={{ libdir }}/nagios/plugins/check_procs -c 3:3 -C 'fedmsg-hub' -u fedmsg

View file

@ -115,12 +115,6 @@ define service {
check_command check_by_nrpe!check_fedmsg_hub_proc
use defaulttemplate
}
define service {
host_name bugyou01.phx2.fedoraproject.org
service_description Check for fedmsg-hub proc
check_command check_by_nrpe!check_fedmsg_hub_procs_bugyou
use defaulttemplate
}
define service {
host_name pdc-backend01.phx2.fedoraproject.org
service_description Check for fedmsg-hub proc
@ -369,12 +363,6 @@ define service {
check_command check_by_nrpe!check_fedmsg_cp_packages_backend
use defaulttemplate
}
define service {
host_name bugyou01.phx2.fedoraproject.org
service_description Check fedmsg consumers and producers hub
check_command check_by_nrpe!check_fedmsg_cp_bugyou_backend
use defaulttemplate
}
define service {
host_name pdc-backend01.phx2.fedoraproject.org
service_description Check fedmsg consumers and producers hub
@ -452,14 +440,6 @@ define service {
check_command check_by_nrpe!check_fedmsg_cexceptions_packages_backend
use defaulttemplate
}
define service {
host_name bugyou01.phx2.fedoraproject.org
service_description Check fedmsg-hub consumers exceptions
check_command check_by_nrpe!check_fedmsg_cexceptions_bugyou_backend
use defaulttemplate
}
define service {
host_name pdc-backend01.phx2.fedoraproject.org
service_description Check fedmsg-hub consumers exceptions
@ -539,13 +519,6 @@ define service {
use defaulttemplate
}
define service {
host_name bugyou01.phx2.fedoraproject.org
service_description Check fedmsg-hub consumers backlog
check_command check_by_nrpe!check_fedmsg_cbacklog_bugyou_backend
use defaulttemplate
}
define service {
host_name pdc-backend01.phx2.fedoraproject.org
service_description Check fedmsg-hub consumers backlog

View file

@ -398,7 +398,6 @@ command[check_fedmsg_cp_fedimg_backend]=/usr/lib64/nagios/plugins/check_fedmsg_p
command[check_fedmsg_cp_hotness_backend]=/usr/lib64/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub BugzillaTicketFiler MonitoringProducer
command[check_fedmsg_cp_autocloud_backend]=/usr/lib64/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub AutoCloudConsumer MonitoringProducer
command[check_fedmsg_cp_packages_backend]=/usr/lib64/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub CacheInvalidator MonitoringProducer
command[check_fedmsg_cp_bugyou_backend]=/usr/lib64/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub BugyouConsumer MonitoringProducer
command[check_fedmsg_cp_pdc_backend]=/usr/lib64/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub PDCUpdater MonitoringProducer
command[check_fedmsg_cp_mbs_backend]=/usr/lib64/nagios/plugins/check_fedmsg_producers_consumers.py fedmsg-hub MBSConsumer MBSProducer MonitoringProducer
@ -414,7 +413,6 @@ command[check_fedmsg_cexceptions_fedimg_backend]=/usr/lib64/nagios/plugins/check
command[check_fedmsg_cexceptions_hotness_backend]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub BugzillaTicketFiler 1 10
command[check_fedmsg_cexceptions_autocloud_backend]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub AutoCloudConsumer 1 10
command[check_fedmsg_cexceptions_packages_backend]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub CacheInvalidator 1 10
command[check_fedmsg_cexceptions_bugyou_backend]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub BugyouConsumer 1 10
command[check_fedmsg_cexceptions_pdc_backend]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub PDCUpdater 1 10
command[check_fedmsg_cexceptions_mbs_backend]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_exceptions.py fedmsg-hub MBSConsumer 1 10
@ -430,7 +428,6 @@ command[check_fedmsg_cbacklog_fedimg_backend]=/usr/lib64/nagios/plugins/check_fe
command[check_fedmsg_cbacklog_hotness_backend]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub BugzillaTicketFiler 100 500
command[check_fedmsg_cbacklog_autocloud_backend_hub]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub AutoCloudConsumer 500 1000
command[check_fedmsg_cbacklog_packages_backend_hub]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub CacheInvalidator 30000 40000
command[check_fedmsg_cbacklog_bugyou_backend_hub]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub BugyouConsumer 5000 10000
command[check_fedmsg_cbacklog_pdc_backend_hub]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub PDCUpdater 10000 20000
command[check_fedmsg_cbacklog_mbs_backend_hub]=/usr/lib64/nagios/plugins/check_fedmsg_consumer_backlog.py fedmsg-hub MBSConsumer 1000 2000