ruaok: i looked at the code looks good and the explanation is also nice.
are there pros and cons to systemd and forking in python?
*what are
ruaok
less code for systemd, but then you need systemd -- not that that is going to go away
daemon is the traditional way to go.
kepstin
if your daemon has some initialization steps that you want other dependent services to wait for, the standard way to handle that is to fork after init is complete (works with trad. init and systemd)
systemd has some proprietary service ready notification stuff for that which is easier to use tho :/
Hey! I spent a night working on the big BrainzBot upgrade (py2 -> py3, django 1.8 -> 3.1, go 1.2 -> 1.10) and it's running pretty stable so far. I'll set up a staging env next so people can try breaking it. :P
ruaok
hi Leo_Verto! long time no see.
monkey
Hi Leo_Verto !
Leo_Verto
Hey ruaok! Yeah, it's been a while.
alastairp
oh hey, I was just thinking about botbot django upgrades last week!
Leo_Verto
\o monkey
alastairp
hi
Leo_Verto
hey alastair, yeah that was a pretty fun upgrade experience
I dropped the old Django migrations but the tables shouldn't have changed too much to make migration using a db dump impossible.
What kind of artifacts would be ideal for this? Docker images? I've got a compose file mostly done, can also write a helm chart if you're doing k8s these days.
lucifer
alastairp, in context of LB-552, we always need to format on first run.
LB-876: Listens for a user do not get removed if user is deleted via admin interface
alastairp
lucifer: yeah, I saw all of those, that's what incentivised me to go through and close some myself
thanks
lucifer
oh! nice :D
alastairp
feel free to close them if you want? no reason to go first to review submitted if they've been merged ages ago
ruaok
Kiss is nearly ready. Shall we move cron back?
alastairp
give me 40 minutes to get home? unless you want to do it yourself
ruaok
Perfect. Let's do that
lucifer
sure, i was earlier under the impression that i needed someone else to close because i had marked it as fixed but i figured out that's not right later.
lucifer logs into the new machine \o/
zas
kiss is ready (apart few bits I'll fix tomorrow, mainly related to telegraf).
lucifer
!m zas
BrainzBot
You're doing good work, zas!
lucifer
ruaok: there's no docker-server-configs yet though, that's needed for moving cron back?
ruaok
yes, we'll need to check it out.
do we have a deploy key for kiss yet, zas?
zas
nope
rdswift
Leo_Verto, I don't know if Freso mentioned this to you but there is a gap in the logs that could be filled. The dumps from my local logging are at https://pastebin.com/a9GL9FUj and https://pastebin.com/AZkVZuzN if you want to import them.\
ruaok
docker-server-configs exist now, lucifer
jwf joined the channel
lucifer
oh nice! only consul container left now before we can bring up cron i guess ;)
ruaok
comment out all the services but the three non LB containers and run start_services
lucifer
on it
ruaok
looking good
lucifer
did that, but 2 containers are restarting, did something go wrong?
ruaok
huh
lucifer
==> Failed to parse config: Failed to parse Bind address, "0" is not a valid IP address or socket
consul agent logs
ruaok
hmmm. not good.
> dnsmasq: bad command line options: bad address
zas is off having dinner with the family. this is really his territory.
so maybe we can try later once he returns, otherwise tomorrow.
lucifer
yup, makes sense.
zas
I'll look into this after dinner
Leo_Verto
rdswift: ah perfect! for some reason I can't access those pastes, assuming they're not private pastebin may have flagged them as spam.
we can still bring up cron with dnsmasq though or not?
*without
ruaok
gimme a sec to try to fix dnsmasq.
its something odd inside the container. there is nothing listening on port 53.
WARNING: Published ports are discarded when using host network mode
it is using host mode, but there is nothing on port 53.
rdswift
Leo_Verto, note that there are a couple of lines of overlap at each end to help confirm the location of the missing log lines.
alastairp
ruaok: it's possible that systemd's dns server is on udp:53 on kiss
ruaok
"dnsmasq requires NET_ADMIN capabilities to run correctly. Start it with something like docker run -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN 4km3/dnsmasq:2.75."
possible yes. how does one check that?
there don't see to be any updates to this container and we pass NET_ADMIN.
alastairp
`sudo systemctl status systemd-resolved` shows that it's definitely running, but it's uncear if it's listening on any ports that are important to us