Friday, 2019-08-30

*** mriedem has quit IRC00:45
*** tetsuro has joined #openstack-placement02:20
*** dklyle has quit IRC04:00
*** david-lyle has joined #openstack-placement04:00
*** tetsuro has quit IRC05:12
*** tetsuro has joined #openstack-placement05:18
*** e0ne has joined #openstack-placement05:19
*** e0ne has quit IRC05:20
*** e0ne has joined #openstack-placement05:51
*** e0ne has quit IRC06:24
*** e0ne has joined #openstack-placement06:39
openstackgerritTetsuro Nakamura proposed openstack/placement master: Refactor initialization of research context  https://review.opendev.org/67938507:32
*** cdent has joined #openstack-placement07:39
*** tetsuro has quit IRC07:46
*** cdent has quit IRC08:06
*** e0ne has quit IRC08:40
*** e0ne has joined #openstack-placement08:40
*** cdent has joined #openstack-placement08:41
*** e0ne has quit IRC08:46
*** e0ne has joined #openstack-placement09:03
*** e0ne has quit IRC10:01
*** e0ne has joined #openstack-placement10:10
*** efried has quit IRC10:24
*** irclogbot_1 has quit IRC10:24
*** edleafe has quit IRC10:24
*** evrardjp has quit IRC10:24
*** efried has joined #openstack-placement10:27
*** evrardjp has joined #openstack-placement10:27
*** irclogbot_1 has joined #openstack-placement10:28
*** artom has quit IRC10:58
*** artom has joined #openstack-placement10:59
*** artom has quit IRC11:00
*** artom has joined #openstack-placement11:01
*** artom has quit IRC11:01
*** artom has joined #openstack-placement11:01
*** artom has quit IRC11:01
*** artom has joined #openstack-placement11:22
openstackgerritChris Dent proposed openstack/placement master: WIP: Microversion 1.37: Adds support for consumer_types  https://review.opendev.org/67247611:29
cdentbiab11:30
*** cdent has quit IRC11:30
*** cdent has joined #openstack-placement11:52
efriedcdent: You got a minute to help me rebuild a busted placement db?12:10
cdentefried: i can try, what's up?12:10
efriedcdent: had a devstack12:10
efriedit was working, left it alone a few days, came back (it's possible dustinc did some stuff with it) and journalctl was saying "couldn't find database 'placement'"12:11
efriedthe service was still alive12:11
efriedbut the logs end with12:11
efried*** no app loaded. going in full dynamic mode ***12:11
efriedand requests 50012:12
efriedSo I tried rebuilding manually by stealing the mysql commands from the perfload job12:12
efriedbut now on startup it does stuff like12:12
efriedProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'placement.traits' doesn't exist")12:12
cdenthmm12:12
efriedso I tried setting the sync_on_startup thing12:13
efriedand it would complain about tables already existing12:13
efried(don't have that one at my fingertips, can get it for you if you need)12:13
cdentwhat outcome do you want: a) the data you had before, b) some placement db with lots of stuff in it ?12:14
efriedc) a fresh placement db like if I just devstacked, so nova will repopulate it.12:14
efriedlast resort I can restack.12:15
efriedbut thought if there was an easier way...12:15
efried("easier" for you obviously. for me...)12:15
efriedcdent: This system is publicly accessible if you want to get on and play12:16
cdentdrop the database, create the database, and either let the sync on startup do its thing or do db_sync, restart nova-compute12:17
efriedyeah, that's what I've been doing.12:18
cdentthe fact that those drop and creates commands are obscure things I can't remember is why I tend to use postgres (dropdb placement; createdb placement)12:18
efriedI don't get as far as 'restart nova-compute' because the startup spews those errors.12:18
cdentif those things aren't working, make sure there isn't a mismatch between your database connection in placement.conf and what you're doing command line wise12:18
efrieddoesn't seem to be, because I would think it wouldn't be getting as far as it is (also I checked visually)12:19
cdentif you want to paste me the access bits I can do a quick look12:20
*** mriedem has joined #openstack-placement12:51
*** e0ne has quit IRC13:05
openstackgerritChris Dent proposed openstack/placement master: Add consumer_types table and consumer_type_id column to consumers  https://review.opendev.org/66917013:09
openstackgerritChris Dent proposed openstack/placement master: WIP: Consumer_types: the database and object bits  https://review.opendev.org/67944013:09
openstackgerritChris Dent proposed openstack/placement master: WIP: Microversion 1.37: API support for consumer types  https://review.opendev.org/67944113:09
*** edleafe has joined #openstack-placement13:11
openstackgerritChris Dent proposed openstack/placement master: WIP: Consumer_types: the database and object bits  https://review.opendev.org/67944013:11
openstackgerritChris Dent proposed openstack/placement master: WIP: Microversion 1.37: API support for consumer types  https://review.opendev.org/67944113:11
*** cdent has quit IRC13:11
*** e0ne has joined #openstack-placement13:14
*** edmondsw_ has joined #openstack-placement13:31
*** edmondsw_ has quit IRC13:41
*** cdent has joined #openstack-placement13:55
*** e0ne has quit IRC14:35
*** e0ne has joined #openstack-placement14:39
*** e0ne has quit IRC16:04
openstackgerritMerged openstack/osc-placement master: Add --aggregate option to 'resource provider inventory set'  https://review.opendev.org/64089816:05
*** e0ne has joined #openstack-placement16:09
openstackgerritChris Dent proposed openstack/placement master: Consumer_types: the database and object bits  https://review.opendev.org/67944016:14
openstackgerritChris Dent proposed openstack/placement master: Microversion 1.37: API support for consumer types  https://review.opendev.org/67944116:14
*** mriedem is now known as mriedem_afk16:16
cdentefried, mriedem : in the absence of melwitt and tssurya that stuff is close to ready for looksies by other folk to have it ready for nova by U16:16
efriedhey cdent, qq on api-ref16:18
efriedFor a given microversion, we always had the format returned by GET /a_c match up with PUT /allocations, right?16:18
efriedAnd at some early point that was a listy format, right?16:18
efriedI was looking yesterday and didn't see where PUT /allocs could take the listy format.16:19
efriedGET /a_c was a 1.10 (and possibly 1.11, can't exactly remember)16:19
cdenti need to pull something out of my brains16:19
cdentfrom tape16:20
efriedIt's only the anal part of me that cares; nobody should be using those old microversions anyway.16:20
efriedBut the anal part says "IT'S GOTTA BE RIGHT!"16:20
cdentokay16:24
cdentit's messy16:24
cdentpre 1.12 you could PUT allocations as a list16:25
cdentso in 1.10 - 1.12 of a_c allocations was a list of dictionaries16:26
cdentsorry, 1.10 and 1.1116:26
cdentat 1.12 we got our minds right and made it "A dictionary of allocations keyed by resource provider uuid."16:26
cdentso PUT /alloc from 1.0 - 1.11 was listy, but GET was dicty16:27
cdentwhich was weird16:27
cdentand thankfully we fixed it in the dicty direction16:28
cdentbecause lists are trouble16:28
cdentefried: does your butt feel better now?16:28
efriedcdent: that's what I remember of history, but when I looked at the api-ref yesterday it didn't seem to reflect that.16:29
efriedlet me pull it up again and see if it's changed since I slept...16:29
cdentit does, it's just hard to fine because there's too much data in the a_c description16:29
cdents/data/examples/\16:29
cdentyou have to scroll and scroll and hunt and search16:29
cdentand then you explode16:29
cdentand someone asks for bitcoins16:30
*** e0ne has quit IRC16:30
efriedokay, I see it now, not sure what I was looking at yesterday, maybe POST /allocations, which didn't exist at all prior to 1.13.16:31
efriedbutt is fine16:31
openstackgerritChris Dent proposed openstack/placement master: Fix typo in microversion sequence test  https://review.opendev.org/67948016:34
cdentword16:34
openstackgerritChris Dent proposed openstack/placement master: Switch ConsumerType to use an AttributeCache  https://review.opendev.org/67948617:13
cdentthere we go, got next week's work done today...17:15
cdenthave a good weekend17:15
* cdent waves17:15
*** cdent has quit IRC17:15
*** mriedem_afk is now known as mriedem19:24
openstackgerritMerged openstack/placement master: Fix typo in microversion sequence test  https://review.opendev.org/67948019:43
*** mriedem has quit IRC22:09
*** artom has quit IRC22:53
*** N3l1x has quit IRC23:44

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