Merge "Remove gearman from Zuul"

This commit is contained in:
Zuul 2022-02-01 23:11:30 +00:00 committed by Gerrit Code Review
commit 8dafc621d7
12 changed files with 0 additions and 259 deletions

View File

@ -2,8 +2,6 @@ iptables_extra_public_tcp_ports:
- 79
- 80
- 443
iptables_extra_allowed_groups:
- {'protocol': 'tcp', 'port': '4730', 'group': 'zuul'}
zuul_ssl_cert_file_contents: |
-----BEGIN CERTIFICATE-----
MIICzjCCAbagAwIBAgIJAMV1mxY+iSJpMA0GCSqGSIb3DQEBCwUAMB8xHTAbBgNV

View File

@ -6,7 +6,6 @@ zuul_known_hosts: |
[review.opendev.org]:29418,[review.openstack.org]:29418 {{ gerrit_ssh_rsa_pubkey_contents }}
[review02.opendev.org],[199.204.45.33]:29418,[2604:e100:1:0:f816:3eff:fe52:22de]:29418 {{ gerrit_ssh_rsa_pubkey_contents }}
[git.opendaylight.org]:29418,[52.35.122.251]:29418,[2600:1f14:421:f500:7b21:2a58:ab0a:2d17]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyRXyHEw/P1iZr/fFFzbodT5orVV/ftnNRW59Zh9rnSY5Rmbc9aygsZHdtiWBERVVv8atrJSdZool75AglPDDYtPICUGWLR91YBSDcZwReh5S9es1dlQ6fyWTnv9QggSZ98KTQEuE3t/b5SfH0T6tXWmrNydv4J2/mejKRRLU2+oumbeVN1yB+8Uau/3w9/K5F5LgsDDzLkW35djLhPV8r0OfmxV/cAnLl7AaZlaqcJMA+2rGKqM3m3Yu+pQw4pxOfCSpejlAwL6c8tA9naOvBkuJk+hYpg5tDEq2QFGRX5y1F9xQpwpdzZROc5hdGYntM79VMMXTj+95dwVv/8yTsw==
gearman_server: zuul02.opendev.org
zuul_connections:
- name: 'smtp'
driver: 'smtp'

View File

@ -1,4 +1,3 @@
gearman_server: 127.0.0.1
letsencrypt_certs:
zuul02-opendev-main:
- zuul.opendev.org

View File

@ -1,34 +0,0 @@
[loggers]
keys=root,gear
[handlers]
keys=console,normal
[formatters]
keys=simple
[logger_root]
level=WARNING
handlers=console
[logger_gear]
level=DEBUG
handlers=normal
qualname=gear
[handler_console]
level=WARNING
class=StreamHandler
formatter=simple
args=(sys.stdout,)
[handler_normal]
level=WARNING
class=logging.handlers.WatchedFileHandler
formatter=simple
args=('/var/log/zuul/gearman-server.log',)
[formatter_simple]
format=%(asctime)s %(levelname)s %(name)s: %(message)s
datefmt=
class=zuul.lib.logutil.MultiLineFormatter

View File

@ -63,11 +63,6 @@
src: logging.conf
dest: /etc/zuul/logging.conf
- name: Install geraman logging config
copy:
src: gearman-logging.conf
dest: /etc/zuul/gearman-logging.conf
- name: Rotate logs
include_role:
name: logrotate
@ -82,12 +77,6 @@
logrotate_file_name: /var/log/zuul/debug.log
logrotate_rotate: 30
- name: Rotate gearman logs
include_role:
name: logrotate
vars:
logrotate_file_name: /var/log/zuul/gearman-server.log
- name: Install zuul-client script
copy:
src: zuul-client

View File

@ -28,56 +28,6 @@
zk_ca_cert_dir_owner: "{{ zuul_user_id }}"
zk_ca_cert_dir_group: "{{ zuul_group_id }}"
- name: Create Zuul SSL dir
file:
state: directory
path: /etc/zuul/ssl
owner: "{{ zuul_user }}"
group: "{{ zuul_group }}"
- name: Write Gearman SSL CA
copy:
content: "{{ gearman_ssl_ca }}"
dest: /etc/zuul/ssl/gearman-ca.pem
owner: "{{ zuul_user }}"
group: "{{ zuul_group }}"
mode: 0644
- name: Write Gearman Client SSL Cert
copy:
content: "{{ gearman_client_ssl_cert }}"
dest: /etc/zuul/ssl/gearman-client.pem
owner: "{{ zuul_user }}"
group: "{{ zuul_group }}"
mode: 0644
- name: Write Gearman Client SSL Key
when: gearman_client_ssl_key is defined
copy:
content: "{{ gearman_client_ssl_key }}"
dest: /etc/zuul/ssl/gearman-client.key
owner: "{{ zuul_user }}"
group: "{{ zuul_group }}"
mode: 0640
- name: Write Gearman Server SSL Cert
when: gearman_server_ssl_cert is defined
copy:
content: "{{ gearman_server_ssl_cert }}"
dest: /etc/zuul/ssl/gearman-server.pem
owner: "{{ zuul_user }}"
group: "{{ zuul_group }}"
mode: 0644
- name: Write Gearman Server SSL Key
when: gearman_server_ssl_key is defined
copy:
content: "{{ gearman_server_ssl_key }}"
dest: /etc/zuul/ssl/gearman-server.key
owner: "{{ zuul_user }}"
group: "{{ zuul_group }}"
mode: 0640
- name: Write Zuul Conf File
template:
src: zuul.conf.j2

View File

@ -1,23 +1,3 @@
[gearman]
server={{ gearman_server }}
check_job_registration=true
ssl_ca=/etc/zuul/ssl/gearman-ca.pem
ssl_cert=/etc/zuul/ssl/gearman-client.pem
{% if gearman_client_ssl_key is defined -%}
ssl_key=/etc/zuul/ssl/gearman-client.key
{% endif -%}
[gearman_server]
start=true
log_config=/etc/zuul/gearman-logging.conf
ssl_ca=/etc/zuul/ssl/gearman-ca.pem
{% if gearman_server_ssl_cert is defined -%}
ssl_cert=/etc/zuul/ssl/gearman-server.pem
{% endif -%}
{% if gearman_server_ssl_key is defined -%}
ssl_key=/etc/zuul/ssl/gearman-server.key
{% endif -%}
[scheduler]
tenant_config=/etc/zuul/main.yaml
log_config=/etc/zuul/logging.conf

View File

@ -1,59 +1,5 @@
zuul_client_auth_token: testauthtoken
zuul_scheduler_start: true
gearman_server_ssl_key: |
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDOoTzdDZ0znb8U
E6CJdyyo0u5BvJn0NkZAMnqbc9+uO4gwUYiX88IHCoww8eo2h1JK+nG2qyXYTkE/
QtJjQBPcvcyXJoEdaD6lMCraRg53VwSgGpZ/SDRmGmlIBC26OL2ePwORvDFBC2nm
uIlyxzlMmzz4delnfH+wIrHOjZ4aiS2Chdt2H3D6KOgT7xoKls4iXXJm56MfK1AG
AZ/lmsWsF2z+iz1Jfn/qzp5nKvvR7TqcOH4KshfpBSE0BvVNF7Qd4tUgv32/jK0U
mWYba7OdFv70xdK4XTk6V6VsRX5m7XH+tgOg1GvEDrn/wBwmCMbPWAFX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CBHZW5lcmF0ZWQg
Q2VydGlmaWNhdGUwHQYDVR0OBBYEFFj+HG+/Jw/4jRbbfBehLmFTu3MDMB8GA1Ud
IwQYMBaAFE0bTWLH0mxphSVT/cWRoSK0oepGMA0GCSqGSIb3DQEBCwUAA4IBAQCh
UMb3OPBOriRJJ8w4qpvZYSZaMoY2qUvSC18hh+MUsT5iXKyZklnOxa3Hy+XkMm2Y
EK9nTVTvtsgQL3Jrut8BI1sKKG9/M7UBXIaUtPajTs30I6JytxDQtmaFDUXKnZL3
PkR77gW/aCPSLP8PFmP6+8rtjW1ZyW8MjV5VRLu574RPCodr6VSg3rg6JtLP1sj/
3ozGTfnAevyQa6sgc5UG7sgVdjabBu5VQ66vwOvn5VfCkGkK7tvELy9yyPHM54i4
4oO44aNCa+UaK0yqXOMqk4EaaeNMLdL+M6Yhq6Vka6ny8GOf10LQtjSs+SnfCrMB
QuEJrClo9hrylwJ1ntKu
-----END CERTIFICATE-----
zuul_github_app_key: |
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn

View File

@ -20,82 +20,6 @@ zuul_connections:
zuul_local_auth_secret: testsecret
gearman_client_ssl_key: |
-----BEGIN PRIVATE KEY-----
MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBAQDVr8aQW9tQLmDW
Kbm8oiKvMrmBOFaenDqu/RU3aPYYFXHFfeXBGJ3QVf+qrRQR6Vk/aKWrL1PDgP11
G0/5tCrTKn1XVAfJd2hGbo24TyaiK5mvQx2h3Ij3sFHyn7iJ+hgDeS7UCm0kEkKi
imHAUJyqCHy0EpfdhnLRvqDIgKjKyX1PcL1q7B+eLN2t3m9XIE+Lfzx6ZaoqxML9
nahM//JWvD5U4UDvyH+5jJd7mShwmkY+h0Z0g0l+NphgVSAQlXp/XLkvb3cKagll
VzhS+QmYWxEA9lwEE21qW8fjaYkGIfbYHp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IPYtbHD7/h9hOpNpBoAkQJ2rC+hQBf5OXeRf7OSMPnhd20GgEKaT3m
09nhBn7yu+6S7auwwci26H2tYQaMIcACXq4K036iw+43WK/ACBfam9WxNMR/5A8w
X2KBeGoRHve6H1j5unoMBJOpLn7aU2oMfcFytvrht0KbP0LA/6WuN3Vfr9lnpKQZ
cxfJVvyoTnO+NI49gk+U2kyisWwhfqUCAwEAAaNTMFEwHQYDVR0OBBYEFE0bTWLH
0mxphSVT/cWRoSK0oepGMB8GA1UdIwQYMBaAFE0bTWLH0mxphSVT/cWRoSK0oepG
MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAEpiq7UOeIAKiOHq
SWyFuRAKb4ystlj2Cwn0tSFiVlXdw9w+zGdJfc0zWEDcbXtQSdH+Ryst1itbsOXe
LoYjPun5xQUsyF60D82MlkMY86fm84yr3LYzHhewLCeuMaqMDi3Rp9wmbekFmOUi
UfaGmwWBOYsJFZcr2Pt3FQHpFhlNbkQKV9Ae/qlQd6f+PinaC6Yo1Jh6xijMFrkW
CJDbN1DRofk3Cf5IUiDlQTC1LEO0mhsKO+4aCzS21mJ570xUXqcOW7Kv4jkVq2uZ
fHxj5PuDeJvYsMiheeWUV2GAkqI9fEj/SadrIVkesR0eF8AxLyRzboSZbmYWqbX7
MojI4IA=
-----END CERTIFICATE-----
zuul_ssh_private_key_contents: |
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn

View File

@ -26,6 +26,3 @@ def test_iptables(host):
]
for rule in needed_rules:
assert rule in rules
for rule in rules:
assert '--dport 4730' not in rule

View File

@ -21,6 +21,5 @@ def test_iptables(host):
rules = util.verify_iptables(host)
for rule in rules:
assert '--dport 4730' not in rule
assert '--dport 79' not in rule
assert '--dport 7900' not in rule

View File

@ -24,11 +24,5 @@ def test_iptables(host):
ips = util.get_ips('ze01.opendev.org', socket.AF_INET)
assert len(ips) > 0
# Make sure that the gearman port is open to executors on the scheduler
for ip in util.get_ips('ze01.opendev.org', socket.AF_INET):
zuul = ('-A openstack-INPUT -s %s/32 -p tcp -m state --state NEW'
' -m tcp --dport 4730 -j ACCEPT' % ip)
assert zuul in rules
for rule in rules:
assert '--dport 7900' not in rule