ruaok: i looked at the code looks good and the explanation is also nice.
2021-05-27 14729, 2021
lucifer
are there pros and cons to systemd and forking in python?
2021-05-27 14755, 2021
lucifer
*what are
2021-05-27 14718, 2021
ruaok
less code for systemd, but then you need systemd -- not that that is going to go away
2021-05-27 14732, 2021
ruaok
daemon is the traditional way to go.
2021-05-27 14734, 2021
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)
2021-05-27 14757, 2021
kepstin
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
2021-05-27 14707, 2021
ruaok
hi Leo_Verto! long time no see.
2021-05-27 14757, 2021
monkey
Hi Leo_Verto !
2021-05-27 14758, 2021
Leo_Verto
Hey ruaok! Yeah, it's been a while.
2021-05-27 14704, 2021
alastairp
oh hey, I was just thinking about botbot django upgrades last week!
2021-05-27 14704, 2021
Leo_Verto
\o monkey
2021-05-27 14708, 2021
alastairp
hi
2021-05-27 14734, 2021
Leo_Verto
hey alastair, yeah that was a pretty fun upgrade experience
2021-05-27 14736, 2021
Leo_Verto
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.
2021-05-27 14756, 2021
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
2021-05-27 14753, 2021
alastairp
lucifer: yeah, I saw all of those, that's what incentivised me to go through and close some myself
2021-05-27 14754, 2021
alastairp
thanks
2021-05-27 14715, 2021
lucifer
oh! nice :D
2021-05-27 14731, 2021
alastairp
feel free to close them if you want? no reason to go first to review submitted if they've been merged ages ago
2021-05-27 14728, 2021
ruaok
Kiss is nearly ready. Shall we move cron back?
2021-05-27 14703, 2021
alastairp
give me 40 minutes to get home? unless you want to do it yourself
2021-05-27 14727, 2021
ruaok
Perfect. Let's do that
2021-05-27 14728, 2021
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.
2021-05-27 14726, 2021
lucifer logs into the new machine \o/
2021-05-27 14700, 2021
zas
kiss is ready (apart few bits I'll fix tomorrow, mainly related to telegraf).
2021-05-27 14725, 2021
lucifer
!m zas
2021-05-27 14725, 2021
BrainzBot
You're doing good work, zas!
2021-05-27 14733, 2021
lucifer
ruaok: there's no docker-server-configs yet though, that's needed for moving cron back?
2021-05-27 14736, 2021
ruaok
yes, we'll need to check it out.
2021-05-27 14747, 2021
ruaok
do we have a deploy key for kiss yet, zas?
2021-05-27 14756, 2021
zas
nope
2021-05-27 14702, 2021
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.\
2021-05-27 14743, 2021
ruaok
docker-server-configs exist now, lucifer
2021-05-27 14701, 2021
jwf joined the channel
2021-05-27 14744, 2021
lucifer
oh nice! only consul container left now before we can bring up cron i guess ;)
2021-05-27 14739, 2021
ruaok
comment out all the services but the three non LB containers and run start_services
2021-05-27 14755, 2021
lucifer
on it
2021-05-27 14751, 2021
ruaok
looking good
2021-05-27 14758, 2021
lucifer
did that, but 2 containers are restarting, did something go wrong?
2021-05-27 14717, 2021
ruaok
huh
2021-05-27 14730, 2021
lucifer
==> Failed to parse config: Failed to parse Bind address, "0" is not a valid IP address or socket
2021-05-27 14737, 2021
lucifer
consul agent logs
2021-05-27 14741, 2021
ruaok
hmmm. not good.
2021-05-27 14704, 2021
ruaok
> dnsmasq: bad command line options: bad address
2021-05-27 14712, 2021
ruaok
zas is off having dinner with the family. this is really his territory.
2021-05-27 14722, 2021
ruaok
so maybe we can try later once he returns, otherwise tomorrow.
2021-05-27 14709, 2021
lucifer
yup, makes sense.
2021-05-27 14737, 2021
zas
I'll look into this after dinner
2021-05-27 14741, 2021
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?
2021-05-27 14735, 2021
lucifer
*without
2021-05-27 14743, 2021
ruaok
gimme a sec to try to fix dnsmasq.
2021-05-27 14727, 2021
ruaok
its something odd inside the container. there is nothing listening on port 53.
2021-05-27 14705, 2021
ruaok
WARNING: Published ports are discarded when using host network mode
2021-05-27 14730, 2021
ruaok
it is using host mode, but there is nothing on port 53.
2021-05-27 14718, 2021
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.
2021-05-27 14757, 2021
alastairp
ruaok: it's possible that systemd's dns server is on udp:53 on kiss
2021-05-27 14709, 2021
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."
2021-05-27 14732, 2021
ruaok
possible yes. how does one check that?
2021-05-27 14710, 2021
ruaok
there don't see to be any updates to this container and we pass NET_ADMIN.
2021-05-27 14724, 2021
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