anitya/release-monitoring: Debug fedmsg issue

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2019-01-18 09:52:49 +01:00
parent 3f601b53dd
commit b63d857aeb
3 changed files with 12 additions and 7 deletions

View file

@ -15,7 +15,7 @@ spec:
containers: containers:
- name: release-monitoring-web - name: release-monitoring-web
image: docker-registry.default.svc:5000/release-monitoring/release-monitoring-web:latest image: docker-registry.default.svc:5000/release-monitoring/release-monitoring-web:latest
command: ["bash", "-c", "fedmsg-tail& /usr/local/bin/anitya_cron.py > /dev/null"] command: ["bash", "-c", "/usr/local/bin/anitya_cron.py"]
env: env:
- name: ANITYA_WEB_CONFIG - name: ANITYA_WEB_CONFIG
value: /etc/anitya/anitya.toml value: /etc/anitya/anitya.toml

View file

@ -41,6 +41,8 @@ items:
env: env:
- name: USER - name: USER
value: anitya value: anitya
- name: ANITYA_WEB_CONFIG
value: /etc/anitya/anitya.toml
ports: ports:
- containerPort: 8080 - containerPort: 8080
resources: {} resources: {}
@ -120,11 +122,12 @@ items:
containers: containers:
- name: fedmsg-hub - name: fedmsg-hub
image: release-monitoring/release-monitoring-web:latest image: release-monitoring/release-monitoring-web:latest
command: command: ["fedmsg-hub", "--config-filename", "/etc/fedmsg.d/anitya.py"]
- fedmsg-hub
env: env:
- name: USER - name: USER
value: fedmsg value: fedmsg
- name: ANITYA_WEB_CONFIG
value: /etc/anitya/anitya.toml
resources: {} resources: {}
volumeMounts: volumeMounts:
- name: config-volume - name: config-volume

View file

@ -91,17 +91,17 @@ items:
stream = "ext://sys.stdout" stream = "ext://sys.stdout"
[anitya_log_config.loggers.anitya] [anitya_log_config.loggers.anitya]
level = "INFO" level = "DEBUG"
propagate = false propagate = false
handlers = ["console"] handlers = ["console"]
[anitya_log_config.loggers.fedmsg] [anitya_log_config.loggers.fedmsg]
level = "INFO" level = "DEBUG"
propagate = false propagate = false
handlers = ["console"] handlers = ["console"]
[anitya_log_config.root] [anitya_log_config.root]
level = "ERROR" level = "DEBUG"
handlers = ["console"] handlers = ["console"]
alembic.ini: |- alembic.ini: |-
[alembic] [alembic]
@ -252,7 +252,7 @@ items:
import socket import socket
config = { config = {
"zmq_enabled": True, "zmq_enabled": True,
"active": False, "active": True,
"topic_prefix": "org.fedoraproject", "topic_prefix": "org.fedoraproject",
"sign_messages": True, "sign_messages": True,
"validate_signatures": True, "validate_signatures": True,
@ -264,8 +264,10 @@ items:
{% if env == 'staging' %} {% if env == 'staging' %}
"endpoints": {"anitya.stg": "tcp://busgateway01.stg.phx2.fedoraproject.org:9940"}, "endpoints": {"anitya.stg": "tcp://busgateway01.stg.phx2.fedoraproject.org:9940"},
"environment": "stg", "environment": "stg",
"relay_inbound": ["tcp://busgateway01.stg.phx2.fedoraproject.org:9941"],
{% else %} {% else %}
"endpoints": {"anitya.prod": "tcp://busgateway01.phx2.fedoraproject.org:9940"}, "endpoints": {"anitya.prod": "tcp://busgateway01.phx2.fedoraproject.org:9940"},
"environment": "prod", "environment": "prod",
"relay_inbound": ["tcp://busgateway01.phx2.fedoraproject.org:9941"],
{% endif %} {% endif %}
} }