fedora-messaging cert (stg|prod) for monitor_gating #8638
Labels
No labels
announcement
anubis
authentication
aws
backlog
blocked
bodhi
ci
cloud
communishift
copr
database
day-to-day
dc-move
deprecated
dev
discourse
dns
downloads
easyfix
epel
firmitas
forgejo_migration
Gain
High
Gain
Low
Gain
Medium
gitlab
greenwave
hardware
help wanted
high-trouble
koji
koschei
lists
low-trouble
medium-trouble
mirrorlists
monitoring
Needs investigation
odcs
OpenShift
ops
outage
packager_workflow_blocker
pagure
permissions
Priority
Needs Review
Priority
Next Meeting
Priority
🔥 URGENT 🔥
Priority
Waiting on Assignee
Priority
Waiting on External
Priority
Waiting on Reporter
rabbitmq
release-monitoring
releng
request-for-resources
s390x
security
SMTP
sprint-0
sprint-1
src.fp.o
staging
unfreeze
waiverdb
websites-general
wiki
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/tickets#8638
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I would like to start deploying in our openshift the monitor_gating project: https://pagure.io/fedora-ci/monitor-gating
The project will report its output via fedora-messaging for this it needs certificates.
For fedmsg there was a script/README in the repo on how to generate these certificates, could we add a similar one for the fedora-messaging certs?
So, basically in ansible-private there is a files/rabbitmq/ dir. In that is a production and a staging subdir.
Go to the staging subdir and run:
/usr/share/easy-rsa/3/easyrsa build-client-full monitor-gating.stg nopass
(note that for stg we always make the name .stg so that ansible scripts work with it)
Then, go to the production dir and:
/usr/share/easy-rsa/3/easyrsa build-client-full monitor-gating nopass
(note: no .stg here).
git add .
git commit -s -a -m 'Added fedora-messaging certs for monitor-gating' and push. Done.
Metadata Update from @kevin:
Documented in: https://pagure.io/Fedora-Infra/howtos/blob/master/f/fedora_messaging_certificates.md
Thanks for fixing the ticket and describing the fix btw :)
Metadata Update from @pingou:
Ok, it looks like the staging certs do not exist.
I've tried to generate them myself and this is the outcome:
So the
.keyand.reqare being created but not the.crt.Any idea?
Are you in the ansible-private/files/rabbitmq/staging dir when you run the command?
@kevin yes :(
Note: if you check the
git show <hash> --statof the commit in which you made the production certs, there are some changes related to staging.I think I've fixed it, so the issue was exactly:
Some research led me to find: https://zeldor.biz/2013/11/txt_db-error-number-2-failed-to-update-database/ which explains the problem.
I then did a
git grep monitor-gating, found that it was mentioned in theindex.txt(and its.old). Removing the line from these two files and re-running the command led to the correct creation of the certificate.Closing this one again :)
Metadata Update from @pingou: