Thursday, 2018-10-25

*** takashin has joined #openstack-placement00:24
*** efried has quit IRC01:49
*** efried has joined #openstack-placement02:01
*** tetsuro has joined #openstack-placement02:23
*** tetsuro has quit IRC04:33
*** tetsuro has joined #openstack-placement04:33
*** openstackgerrit has joined #openstack-placement05:46
openstackgerritTetsuro Nakamura proposed openstack/placement master: De-nova-ify doc/source/index.rst  https://review.openstack.org/61320005:46
*** gibi has joined #openstack-placement07:23
mnaserefried: cdent: the thing we were talking about is def a bug -- https://bugs.launchpad.net/nova/+bug/179989207:33
openstackLaunchpad bug 1799892 in OpenStack Compute (nova) "Placement API crashes with 500s in Rocky upgrade with downed compute nodes" [Undecided,New]07:33
*** helenafm has joined #openstack-placement07:38
*** helenafm has quit IRC08:08
*** ttsiouts has joined #openstack-placement08:26
*** takashin has left #openstack-placement08:31
openstackgerritTetsuro Nakamura proposed openstack/nova-specs master: Spec: Support filtering by forbidden aggregate  https://review.openstack.org/60335208:36
*** e0ne has joined #openstack-placement08:42
*** helenafm has joined #openstack-placement08:47
*** ttsiouts has quit IRC09:02
*** ttsiouts has joined #openstack-placement09:02
*** ttsiouts has quit IRC09:21
*** ttsiouts has joined #openstack-placement09:22
*** cdent has joined #openstack-placement10:10
openstackgerritChris Dent proposed openstack/placement master: Make tox -ereleasenotes work  https://review.openstack.org/61311810:11
*** ttsiouts has quit IRC10:11
*** ttsiouts has joined #openstack-placement11:04
*** gibi has quit IRC12:03
*** gibi has joined #openstack-placement12:16
*** tetsuro has quit IRC12:23
*** ttsiouts has quit IRC12:47
*** ttsiouts has joined #openstack-placement12:48
cdentedleafe: as promised, but late: https://anticdent.org/quick-placement-development.html12:50
cdent(others may find it useful too)12:51
efriedcdent: Looks like tetsuro has a fix proposed. I've only glanced at it, but I thought we had something deeper in the stack that was supposed to take care of null root provider IDs. Also, mnaser says he was *upgrading* to rocky, and I thought we (jaypipes/dansmith) had upgrade code to make sure these fields got populated; so wouldn't the bug be in that upgrade code?12:57
jaypipesefried: there's only inline data migrations for NULL root_provider_id, IIRC. there was never a blocker migration or offline migration added.12:59
efriedoh, okay.12:59
cdentI would have thought so too, but at the same time we probably need to be robust in the face of the database getting out of wack because in the field people _constantly_ mess with the live database12:59
openstackgerritEd Leafe proposed openstack/placement master: Consider root id is None in the database case  https://review.openstack.org/61332013:07
edleafecdent: ^^ This is Tesuro's bug fix ported to the placement tree13:09
cdentedleafe: are you planning to do the recreate test patch too?13:12
edleafeI didn't see the need13:12
edleafethat adds the failing test, commented out13:12
cdenti suppose that makes sense13:14
openstackgerritAdam Spiers proposed openstack/nova-specs master: Add spec for libvirt driver launching AMD SEV-encrypted instances  https://review.openstack.org/60977913:15
edleafeI get why separate patches are important in the original branch, but we only need to copy the result.13:16
edleafeAnd if there are tweaks needed to the nova side, I'll copy 'em to the placement side.13:17
edleafeGuess I should -W that patch until the nova side merges13:17
cdentaye13:17
cdentedleafe, efried, jaypipes : is the script in that blog ^ post worth sticking in the repo as a "tool" of some kind?13:46
* efried clicks13:46
jaypipescdent: sure. just need to make sure it doesn't get out of date quickly (hopefully it shouldn't, but deployment tooling is a world of shambles and tears, as I've learned, full of dead-end code and outdated configurations)13:48
cdentjaypipes: yeah, that's exactly why I'm hesitant to make it a thing. It's supposed to be more of a demo of "look how easy it is for you to do this yourself" not "this is the way to do a thing"13:50
*** efried has quit IRC13:56
*** efried has joined #openstack-placement13:57
jaypipescdent: ack13:57
efriedcdent: Typo on L46 of your script: Creat13:59
efriedWonder whether it would be better or worse to14:00
efriedsource .tox/py36/bin/activate14:00
efriedso you don't have to path your uwsgi command14:00
efriedAlso, if it were me, I would capitalize IDENTIFIED BY14:01
efriedcdent: This is cool. Not sure if it's worth trying to maintain the actual script under source control, but I think including this article in the documentation would be ++14:05
edleafecdent: won't have time to play with this until this afternoon. But a quick read looks promising14:11
cdentefried: I tend to avoid activate because I always forget to deactivate14:12
edleafeAnd yeah, I wouldn't maintain a tool, even with a zillion disclaimers. People will see it and assume "this is the one and only way to do things"14:12
cdentand IDENTIFIED BY was copied from devstack, so if you _really_ dont like it you can submit a patch14:13
efriedshrug, just a preference to make it easy to distinguish the SQL tokens from other stuff in a command. But since in this case the other stuff is uppercase env vars anyway, it wouldn't do that much good.14:13
edleafecdent: add this to your .bashrc: http://paste.openstack.org/show/733048/14:14
cdentedleafe: I have that, makes no difference14:14
cdentactually activate does that for you, as I recall14:14
cdentanyway, you all have convinced me not to try to put the script in there because this kind of nitpicking is exactly what's _not_ needed, pretty much ever14:15
cdentbut the document makes some sense14:15
cdentIs someone interested in translating it from cdent-ease, or should it just go in as is?14:15
cdentis that implicit assent? ;)14:18
edleafeWhy would you want to translate to something less wonderful?14:18
*** ttsiouts has quit IRC14:24
*** ttsiouts has joined #openstack-placement14:26
-openstackstatus- NOTICE: Zuul and Nodepool services are being restarted to migrate them to a new Zookeeper cluster. THis brings us an HA database running on newer servers.14:40
openstackgerritChris Dent proposed openstack/placement master: Add a doc describing a quick live environment  https://review.openstack.org/61334314:51
*** helenafm has quit IRC15:18
efriedcdent: Sorry, I missed that conversation. I would take out most of the first paragraph. (Haven't looked at the review yet.)15:20
cdentefried: i changed it somewhat, but is still folksy15:21
efriedyeah, I guess it would probably be better to make it slightly more formal.15:21
cdentcomment on the review. my preference would be that we get tone tune ups in followups15:21
cdentotherwise we'll spin forever15:21
efriedcdent: It really doesn't need much.15:24
cdentthen a merge and a fup would be idea, perhaps https://pypi.org/project/git-nit/15:25
efriedcdent: How about one respin, and if there's more nits, a fup?15:26
cdentif you like, I don't mind _that_ much, I'm simply trying to change the culture a bit. we should be predisposed to merging and fixing later as a habit so that we are more accessible to people who are not around all the time like we are15:28
cdentmostly because the number of people is dropping like a stone15:30
efriedMy concern with that kind of culture shift is when the fups get forgotten or lost in the shuffle. Also generating noise in gerrit, the review tree, and git blame. When it's something quick and easy, we should fix in the same commit.15:30
-openstackstatus- NOTICE: The Zuul and Nodepool database transition is complete. Changes updated during the Zuul outage may need to be rechecked.15:31
cdentIf the fups get forgotten or lost then they didn't really need to happen. That's kind of the point. The thing we want to be driving change is the experience of people out in the wild using the stuff, not our desire or ability to predict and overengineer everything we can think of15:32
edleafePerfection is the enemy of the good, or something like that15:33
openstackgerritChris Dent proposed openstack/placement master: Add a doc describing a quick live environment  https://review.openstack.org/61334315:35
cdentdid you see https://twitter.com/anticdent/status/1054387689468936192  from a few days ago (I assume not, since you don't watch that show)15:35
openstackgerritChris Dent proposed openstack/placement master: Add a doc describing a quick live environment  https://review.openstack.org/61334315:39
openstackgerritMerged openstack/nova-specs master: Support initial allocation ratios  https://review.openstack.org/55210515:56
*** e0ne has quit IRC15:59
sean-k-mooneyo/16:10
sean-k-mooneymelwitt: cdent im not sure where we stand with https://review.openstack.org/#/c/610034 by the way16:13
cdentsean-k-mooney: I think the latest comments are right: we need a small backportable change, followed up by a more complete change16:14
cdentwhether it is a decorator or not, I'm not sure, but the concept seems right16:14
melwittagree. and the small backportable change should be to avoid calling configure twice16:14
melwittand not examine _started16:15
sean-k-mooneywell the run once decorator as also something i stared writing and then just made it a flag because that was less code16:15
sean-k-mooneyok ill remove the started check16:15
sean-k-mooneyso just one global _configured flag for now and an if + log messange if we skip reconfiguring?16:15
sean-k-mooneyi can remove that second unit test then also16:16
melwittsounds OK to me. zzzeek liked the decorator idea but I don't think it matters how you do it, just do something to track whether configure has been called already and don't call it a second time16:16
sean-k-mooneymelwitt: well i litally started wrigint a call_once decorator and then delted it before the last patch16:17
sean-k-mooneyso i can do it with a run_once decorator if people want that16:17
sean-k-mooneyit just was extra code and i assumed people would assume it was over engeirnincg to add the decorator insead of an if16:18
melwittup to you, dunno what others will think16:21
*** mnaser has quit IRC16:26
*** mnaser has joined #openstack-placement16:26
*** ttsiouts has quit IRC16:36
sean-k-mooneyok im going to take a break and grab a bite to eat16:46
sean-k-mooneycdent: do you want me to move the configure once check external to that module16:46
sean-k-mooneyor are you ok with me doing it in db_api.py16:47
cdentsean-k-mooney: for the backportable thing I think it is fine in db_api16:47
cdentbut when we do the more complete followup that could go away, and the clean-slate handling ought to be in wsgi.py16:47
sean-k-mooneyok cool then for the intiall patch ill do that.16:47
sean-k-mooneyshould i change it to patial bug by the way16:47
sean-k-mooneyand use the same bug for the follow up or have a specless blueprint for the follow up16:48
cdentno, I think closes is fine, because the follow up is a bit more ... yeah that16:48
sean-k-mooneycool thanks16:48
sean-k-mooneyi spoke breifly to pbourke on the kolla channel about moving to uwsgi also16:49
sean-k-mooneyhe seamed open to the idea just an fyi16:49
sean-k-mooneymelwitt: cdent ill resping the patch and push it up for review in about 2 hours or so16:50
cdentyay!16:51
cdent(to both)16:51
* cdent goodnights17:56
*** cdent has quit IRC17:56
efriedjaypipes, edleafe: Is parent_provider_id NULL when I'm a root, or is it == my ID == root_provider_id?18:54
edleafeefried: IIRC, it's NULL18:56
jaypipesNULL19:06
openstackgerritMatt Riedemann proposed openstack/osc-placement stable/queens: Do not depend on jenkins user in devstack gate  https://review.openstack.org/55666619:23
openstackgerritMatt Riedemann proposed openstack/osc-placement stable/queens: Migrate legacy-osc-placement-dsvm-functional job in-tree  https://review.openstack.org/55663519:23
efriedjaypipes, edleafe: Is it possible for internal db ID to be zero?19:33
openstackgerritEd Leafe proposed openstack/placement master: Added alembic environment  https://review.openstack.org/61144119:33
openstackgerritEd Leafe proposed openstack/placement master: Clean up the old migrations and models  https://review.openstack.org/61144019:33
edleafeefried: sure, why not?19:34
efriedjust didn't know if we started 'em at 1 or something.19:34
edleafeWe might, but why would that matter?19:34
edleafeThey are defined like this: id = Column(Integer, primary_key=True, nullable=False)19:35
edleafeSo I guess it would depend on the database implementation19:35
efriedIt would make it possible to do19:37
efriedfoo or bar19:37
efriedinstead of19:37
efriedfoo if foo is not None else bar19:37
efriedBut we shouldn't do that anyway.19:37
edleafeIt shouldn't have any meaning19:38
edleafeso no, don't do that :)19:38
jaypipes++19:42
*** irclogbot_2 has joined #openstack-placement20:01
*** edleafe_ has joined #openstack-placement20:01
*** mriedem has joined #openstack-placement20:03
*** irclogbot_2 has quit IRC20:22
*** takashin has joined #openstack-placement20:50
*** edleafe_ has left #openstack-placement21:06
openstackgerritMerged openstack/placement master: De-nova-ify doc/source/index.rst  https://review.openstack.org/61320021:09
*** irclogbot_2 has joined #openstack-placement21:14
*** efried is now known as pot21:43
*** pot is now known as efried21:43
*** mriedem has quit IRC22:21

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!