Thursday, 2020-11-12

openstackgerritMohammed Naser proposed openstack/openstack-helm master: Add openstack-helm chart publish jobs  https://review.opendev.org/76244100:21
openstackgerritMohammed Naser proposed openstack/openstack-helm-infra master: Make publish jobs more generic  https://review.opendev.org/76244200:23
openstackgerritMohammed Naser proposed openstack/openstack-helm master: Add openstack-helm chart publish jobs  https://review.opendev.org/76244100:23
*** jhesketh has joined #openstack-helm00:49
*** thiagop has quit IRC01:28
*** evrardjp has quit IRC05:33
*** evrardjp has joined #openstack-helm05:33
*** vsaienk0 has joined #openstack-helm06:24
*** roman_g has joined #openstack-helm07:14
*** hemna has quit IRC07:50
*** hemna has joined #openstack-helm07:56
openstackgerritGayathri Devi proposed openstack/openstack-helm-infra master: Add "TMOUT" parameter in the pods  https://review.opendev.org/76232210:57
*** thiagop has joined #openstack-helm11:58
openstackgerritGayathri Devi proposed openstack/openstack-helm master: Add "TMOUT" parameter in the pods  https://review.opendev.org/76187813:28
openstackgerritGayathri Devi proposed openstack/openstack-helm-infra master: Add "TMOUT" parameter for pods in the openstack namespace  https://review.opendev.org/76232214:21
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236115:09
openstackgerritSergey Galkin proposed openstack/openstack-helm master: Rework Rally chart  https://review.opendev.org/72699815:10
openstackgerritSergey Galkin proposed openstack/openstack-helm master: Rework Rally chart  https://review.opendev.org/72699815:12
*** miniroy has joined #openstack-helm15:28
mnaserhow are y'all doing upgrades in helm right now?18:47
mnaseri'm getting a lot of upgrade fails because of things like the job spec is immutable18:47
mnaseri'd have to delete all of the jobs in order to be able to progress18:48
portdirectso18:48
portdirectwe use armada for this18:48
*** roman_g has quit IRC18:48
portdirectits one of the things it lets us do: https://github.com/openstack/openstack-helm/blob/master/tools/deployment/armada/manifests/armada-osh.yaml#L36-L4018:49
mnaseraaaaaah18:49
mnaseri wonder if helm hooks are powerful enough to do this natively now18:49
portdirectbut you could also add a pre-upgrade hook that launches a job itself to delete/cleanup the artifacts18:49
portdirectthey are18:49
portdirectnot super clean18:49
portdirectbut the above aproach is one ive thought about doing several times18:50
portdirectjust not had the time to do so18:50
mnaserso pretty much launch something with a service user that has the appropriate credentials to delete all the jobs18:50
portdirectyup18:50
mnaseras a pre-upgrade hook18:50
mnaseri think the step before that might be to properly label all the jobs, as they don't seem to use the 'application' hook, at least for some services18:51
portdirect++ theyre may be an even cleaner way to do that now, but if so ive not seen it yet18:51
portdirecturg - they should :(18:51
mnaseryeah for keystone i only see fernet/credential rotate18:51
portdirecthmm - the manifests for the cron jobs there should have the labels at the job level18:52
portdirectprobably just got missed :(18:52
mnaserportdirect: yeah no worries .. i guess we can dig into this when we get around finishing our conversions to osh18:53
mnaserportdirect: a workaround seems to be like this -- https://github.com/grafana/helm-charts/commit/c69478eca9dcabb80a6d0b2ca2611c2d4cd349d118:54
mnaserbut that means running them on every single deploy18:54
mnaserwhich i think might be an acceptable workaround, so post-install it will delete the job if it succeeds18:54
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236118:56
mnaserportdirect: filed https://bugs.launchpad.net/openstack-helm/+bug/1904046 and https://bugs.launchpad.net/openstack-helm/+bug/1904047 -- we're a little tight on time these days but once we get around it, we can probably push some efforts on those18:59
openstackLaunchpad bug 1904046 in openstack-helm "Jobs missing labels for applications" [Undecided,New]18:59
openstackLaunchpad bug 1904047 in openstack-helm "Jobs should be cleaned up after deploys" [Undecided,New]18:59
portdirectmnaser: that would be awesome18:59
portdirectunless of course gagehugo or someone hits them 1st ;)19:00
mnaseraha, yep, it's a pretty straight forward thing, just requires a bunch of.. copy-pasta ;p19:00
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236119:00
*** miniroy has quit IRC19:01
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236119:15
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236119:34
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236120:02
gagehugomnaser: for this ps https://review.opendev.org/#/c/759136/ it seem that the secrets are getting deleted on upgrade even with that hook, and then not recreated at all20:17
gagehugofernet keys are meh, credential keys can be bad20:18
mnasergagehugo: ugh, sorry, i tested this locally and i think my fix was adding `helm.sh/hook-delete-policy: hook-failed`20:23
mnaserso it would only delete it if the hook failed which, it's a secret, so it never will20:23
mnaserlet me quickly push, sorry20:23
gagehugointeresting20:24
openstackgerritMohammed Naser proposed openstack/openstack-helm master: keystone: do not delete secrets on deploy  https://review.opendev.org/76257520:27
mnasergagehugo: ^ sorry for the fact i missed it, i fixed it locally and been all over the place so missed that extra patch.  i left an explanation in the comment20:27
mnaseri've deployed many times since and without a problem20:27
gagehugomnaser: no worries haha,20:28
gagehugomight need to bump the chart version though20:31
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236120:36
gagehugoDoesn't seem to work for me locally, the secrets still get deleted when you upgrade20:37
mnasergagehugo: weird, it does work for me.  i wonder if it has to upgrade 'once' to add the new annotation before it stops being wiped?20:44
gagehugoI am upgrading from 0.1.2 to the new one20:44
gagehugomaybe?20:44
mnaserright but maybe you need to upgrade twice, cause the first time it processes the hook in the original behaviour20:44
gagehugothat still causes secret deletion though :/20:49
mnasergagehugo: helm 2 or helm 3?20:55
gagehugo2 :(20:55
gagehugoI think tiller is deleting it20:56
mnasergagehugo: i think maybe that might be the difference, we use 3 -- perhaps we can find a way to detect the helm version21:01
mnaseri think there is a value21:01
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236121:17
gagehugomnaser: many github pull requests tell me it cannot be done in helm2 unfortunately21:28
gagehugoportdirect: ^21:28
mnasergagehugo: darn, well i'm not sure what's the best way forward -- i think y'all still heavily use helm2 but it also just got eol'd21:30
gagehugonot sure, all the fixes were put into 321:38
openstackgerritGage Hugo proposed openstack/openstack-helm-deployments master: WIP - Add keystone  https://review.opendev.org/76258621:55
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236122:16
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236122:33
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236123:20
openstackgerritTin Lam proposed openstack/openstack-helm-images master: feat(os): adds victoria images  https://review.opendev.org/75852023:23
openstackgerritTin Lam proposed openstack/openstack-helm-images master: chore(os): removes build of old OpenStack releases  https://review.opendev.org/75852123:23
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236123:32
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236123:42
openstackgerritTin Lam proposed openstack/openstack-helm master: DNM: test  https://review.opendev.org/76236123:58

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!