*** david-lyle has quit IRC | 00:09 | |
*** david-lyle has joined #craton | 00:22 | |
*** david-lyle has quit IRC | 00:29 | |
*** david-lyle has joined #craton | 00:31 | |
*** david-lyle has quit IRC | 00:34 | |
*** david-lyle has joined #craton | 00:36 | |
*** david-lyle has quit IRC | 00:47 | |
*** david-lyle has joined #craton | 00:48 | |
*** david-lyle has quit IRC | 00:51 | |
*** david-lyle has joined #craton | 00:52 | |
*** david-lyle has quit IRC | 00:59 | |
*** david-lyle has joined #craton | 01:01 | |
*** david-lyle has quit IRC | 01:05 | |
*** david-lyle has joined #craton | 01:06 | |
*** david-lyle has quit IRC | 01:07 | |
*** david-lyle has joined #craton | 01:13 | |
*** david-lyle has quit IRC | 01:14 | |
*** david-lyle has joined #craton | 01:15 | |
*** david-lyle has quit IRC | 01:19 | |
*** david-lyle has joined #craton | 01:20 | |
*** david-lyle has quit IRC | 01:21 | |
*** david-lyle has joined #craton | 01:23 | |
*** david-lyle has quit IRC | 01:24 | |
*** david-lyle has joined #craton | 01:26 | |
*** VW has joined #craton | 01:32 | |
*** david-lyle has quit IRC | 01:32 | |
*** david-lyle has joined #craton | 01:34 | |
*** VW has quit IRC | 01:36 | |
*** david-lyle has quit IRC | 01:37 | |
*** david-lyle has joined #craton | 01:38 | |
*** david-lyle has quit IRC | 01:38 | |
*** david-lyle has joined #craton | 01:44 | |
*** david-lyle has quit IRC | 01:44 | |
*** david-lyle has joined #craton | 01:45 | |
*** david-lyle has quit IRC | 01:46 | |
*** david-lyle has joined #craton | 01:57 | |
*** david-lyle has quit IRC | 01:57 | |
*** david-lyle has joined #craton | 01:59 | |
*** david-lyle has quit IRC | 02:00 | |
*** david-lyle has joined #craton | 02:01 | |
*** david-lyle has quit IRC | 02:02 | |
*** david-lyle has joined #craton | 02:03 | |
*** david-lyle has quit IRC | 02:03 | |
*** david-lyle has joined #craton | 02:07 | |
*** david-lyle has quit IRC | 02:08 | |
*** david-lyle has joined #craton | 02:10 | |
*** david-lyle has quit IRC | 02:11 | |
*** david-lyle has joined #craton | 02:12 | |
*** david-lyle has quit IRC | 02:14 | |
*** david-lyle has joined #craton | 02:17 | |
*** david-lyle has quit IRC | 02:18 | |
*** david-lyle has joined #craton | 02:19 | |
*** david-lyle has quit IRC | 02:19 | |
*** david-lyle has joined #craton | 02:21 | |
*** david-lyle has quit IRC | 02:21 | |
*** david-lyle has joined #craton | 02:26 | |
*** ahsa518 has quit IRC | 02:29 | |
*** syed_ has quit IRC | 02:34 | |
*** david-lyle has quit IRC | 03:23 | |
*** david-lyle has joined #craton | 03:24 | |
*** david-lyle has quit IRC | 03:25 | |
*** david-lyle has joined #craton | 03:26 | |
*** david-lyle has quit IRC | 03:27 | |
*** david-lyle has joined #craton | 03:28 | |
*** david-lyle has quit IRC | 03:29 | |
*** david-lyle has joined #craton | 03:30 | |
*** david-lyle has quit IRC | 03:33 | |
*** david-lyle has joined #craton | 03:34 | |
*** david-lyle has quit IRC | 03:36 | |
*** valw_ has quit IRC | 03:40 | |
*** david-lyle has joined #craton | 03:50 | |
*** david-lyle has quit IRC | 03:51 | |
*** david-lyle has joined #craton | 03:53 | |
*** david-lyle has quit IRC | 03:54 | |
*** david-lyle has joined #craton | 03:57 | |
*** david-lyle has quit IRC | 03:57 | |
*** david-lyle has joined #craton | 04:00 | |
*** david-lyle has quit IRC | 04:01 | |
*** david-lyle has joined #craton | 04:02 | |
*** david-lyle has quit IRC | 04:04 | |
*** david-lyle has joined #craton | 04:05 | |
*** david-lyle has quit IRC | 04:05 | |
*** david-lyle has joined #craton | 04:06 | |
*** david-lyle has quit IRC | 04:08 | |
*** david-lyle has joined #craton | 04:10 | |
*** david-lyle has quit IRC | 04:11 | |
*** david-lyle has joined #craton | 04:12 | |
*** david-lyle has quit IRC | 04:13 | |
*** david-lyle has joined #craton | 04:14 | |
*** david-lyle has quit IRC | 04:15 | |
*** david-lyle has joined #craton | 04:17 | |
*** david-lyle has quit IRC | 04:18 | |
*** david-lyle has joined #craton | 04:19 | |
*** david-lyle has quit IRC | 04:20 | |
*** david-lyle has joined #craton | 04:21 | |
*** VW has joined #craton | 07:47 | |
*** VW has quit IRC | 07:52 | |
sigmavirus | sulo: jimbaker https://review.openstack.org/386646 needs reviewing in addition to its dependent change https://review.openstack.org/386742 | 11:54 |
---|---|---|
sulo | sigmavirus: yeah i already +2'd it yesterday | 12:31 |
sigmavirus | sulo: woops, missed that. Thanks! | 12:31 |
sulo | np, ill merge it if jimbaker does not get to it today, thanks | 12:32 |
sigmavirus | wait, did you happen to look at the client change though? | 12:32 |
sigmavirus | that still doesn't have a +2 | 12:32 |
sigmavirus | https://review.openstack.org/#/c/386742/ | 12:32 |
sulo | ahh no .. but i am testing the client now .. so ill use that too | 12:33 |
sulo | thanks | 12:33 |
sulo | does cratonclient work from command line ? | 13:13 |
sigmavirus | sulo: yes it should, although I haven't tested it recently | 13:17 |
sigmavirus | so, I'm working on the project_id change, and I'm getting "DBNonExistentTable" errors when trying to do queries | 13:18 |
sigmavirus | but it's clear that the tables exist if you look at hte craton database in mysql | 13:18 |
sigmavirus | (and I'm using our dockerfile) | 13:18 |
sigmavirus | ah, someone's at the door, brb | 13:18 |
sigmavirus | so yeah, I can't figure out why switching to sqlalchemy_utils' UUIDType would cause a table not found error | 13:34 |
sulo | yeah thats werird | 13:34 |
sulo | *weird | 13:34 |
sulo | sigmavirus: the migration went though fine ? | 13:36 |
sigmavirus | sulo: well I changed the only migration we have (because that's been our convention) and yes | 13:36 |
sigmavirus | it seems to go through fine | 13:36 |
*** VW has joined #craton | 13:39 | |
sulo | ah | 13:48 |
*** valw has joined #craton | 13:55 | |
*** valw_ has joined #craton | 13:58 | |
*** valw has quit IRC | 13:58 | |
*** valw_ has quit IRC | 14:00 | |
-openstackstatus- NOTICE: We are away of pycparser failures in the gate and working to address the issue. | 14:03 | |
*** valw has joined #craton | 14:16 | |
sigmavirus | ah, figured out what's going on | 14:22 |
sigmavirus | the DBNonExistentTable was coming from me using the cratondb api from the python interpreter but it was trying to talk to sqlite | 14:22 |
sigmavirus | so it's not showing me the actual problem with why it can't find the right user for authentication in craton | 14:23 |
sulo | ah nice | 14:25 |
sigmavirus | figured it out | 14:34 |
sigmavirus | now just to fix up some tests | 14:34 |
*** jovon has joined #craton | 14:34 | |
*** valw has quit IRC | 14:36 | |
*** valw has joined #craton | 14:36 | |
*** Mudpuppy has joined #craton | 14:41 | |
*** valw has quit IRC | 14:45 | |
*** jovon has quit IRC | 14:54 | |
*** jovon has joined #craton | 14:58 | |
*** jovon has quit IRC | 15:04 | |
sulo | need a quick client help | 15:06 |
sulo | why is this a map here: https://github.com/openstack/python-cratonclient/blob/master/cratonclient/shell/main.py#L139 | 15:06 |
*** jovon has joined #craton | 15:12 | |
*** valw has joined #craton | 15:23 | |
*** syed_ has joined #craton | 15:29 | |
jimbaker | sigmavirus, sounds good about https://review.openstack.org/#/c/386742/ | 15:30 |
*** VW has quit IRC | 15:30 | |
jimbaker | sulo, worked fairly late on workflow cleanup, but wasn't able to finalize refactoring into pieces using sqlalchemy, and not using SA | 15:31 |
jimbaker | i will work on that more today. sorry about it running so late | 15:31 |
*** VW has joined #craton | 15:44 | |
*** VW has quit IRC | 15:46 | |
*** valw has quit IRC | 15:46 | |
*** VW has joined #craton | 15:46 | |
*** valw has joined #craton | 15:49 | |
jimbaker | jovon, sigmavirus, sulo, syed_, and others interested - vidyo meeting in 2 min | 15:58 |
syed_ | jimbaker: thanks. Will be there | 15:58 |
sulo | sigmavirus: https://review.openstack.org/#/c/388091/ | 16:05 |
-openstackstatus- NOTICE: pycparser 2.16 released to fix assertion error from today. | 16:09 | |
jimbaker | sulo, sigmavirus - meeting? | 16:11 |
*** valw has quit IRC | 16:23 | |
*** valw has joined #craton | 16:25 | |
sigmavirus | jimbaker: sorry, was at Dr.'s meeting | 16:34 |
jimbaker | sigmavirus, np | 16:34 |
*** Tamayo has joined #craton | 16:37 | |
*** ahsa518 has joined #craton | 17:05 | |
*** VW has quit IRC | 17:07 | |
*** Tamayo has quit IRC | 17:09 | |
*** VW has joined #craton | 17:20 | |
*** sballe_ has quit IRC | 17:33 | |
*** izaakk has quit IRC | 17:33 | |
*** kencjohnston has quit IRC | 17:33 | |
*** sulo has quit IRC | 17:33 | |
*** mhayden has quit IRC | 17:33 | |
*** sigmavirus has quit IRC | 17:33 | |
*** johnthetubaguy has quit IRC | 17:33 | |
*** kencjohnston has joined #craton | 17:33 | |
*** johnthetubaguy_ has joined #craton | 17:33 | |
*** sulo has joined #craton | 17:34 | |
*** johnthetubaguy_ is now known as johnthetubaguy | 17:34 | |
*** mhayden has joined #craton | 17:34 | |
*** ChanServ sets mode: +o sulo | 17:34 | |
*** _sigmavirus24 has joined #craton | 17:35 | |
*** _sigmavirus24 is now known as sigmavirus | 17:36 | |
*** sigmavirus has quit IRC | 17:37 | |
*** sigmavirus has joined #craton | 17:37 | |
*** ChanServ sets mode: +o sigmavirus | 17:37 | |
*** sballe_ has joined #craton | 17:43 | |
*** izaakk has joined #craton | 17:44 | |
*** valw has quit IRC | 17:55 | |
*** valw has joined #craton | 18:00 | |
sigmavirus | I'm tempted to rebase https://review.openstack.org/386646 on top of https://review.openstack.org/388139 because the former has some assumptions about project_ids that I think should be resolved. Thoughts? | 18:11 |
jimbaker | sigmavirus, +1 | 18:23 |
sigmavirus | jimbaker: +1 rebasing? | 18:23 |
jimbaker | sigmavirus, if there's a dependency here, yes do the rebase | 18:24 |
jimbaker | but we can make explicit the process. let me review https://review.openstack.org/388139 | 18:25 |
jimbaker | sigmavirus, i think the only thing is whether we should have project_id be (opaque) strings, or further restricted to uuids | 18:26 |
sigmavirus | jimbaker: so project_id is actually enforced as a UUID | 18:27 |
sigmavirus | sqlalchemy_utils has a UUID Type | 18:27 |
jimbaker | right, as i see in that review | 18:27 |
sigmavirus | there's no real dependency between the two reviews, just a merge conflict | 18:29 |
sigmavirus | I'll rebase 386646 on top of the new one though for simplicity | 18:29 |
syed_ | sulo: https://review.openstack.org/#/c/384817/ | 18:31 |
*** VW_ has joined #craton | 18:33 | |
*** VW_ has quit IRC | 18:34 | |
*** VW_ has joined #craton | 18:34 | |
*** VW has quit IRC | 18:36 | |
*** VW_ has quit IRC | 18:39 | |
jimbaker | sigmavirus, so the Dockerfile needs to be updated; see https://github.com/openstack/craton/blob/master/Dockerfile#L17 for what hasn't been changed | 18:43 |
jimbaker | note that if we try to use an uuid there, generate_fake_data.py fails | 18:43 |
jimbaker | with respect to https://review.openstack.org/388139 | 18:43 |
jimbaker | (i always run the Dockerfile as a baseline functional test; syed_ is working on automating this process, eventually to be driven by tox once we make it lightweight) | 18:43 |
sigmavirus | jimbaker: aha, I use the dockerfile and then run something like my bashs cript | 18:44 |
sigmavirus | I never noticed the generate-fake-data script before :D | 18:44 |
jimbaker | sigmavirus, no worries. i'm sure we can consolidate testing approaches | 18:48 |
jimbaker | and must | 18:48 |
*** VW has joined #craton | 18:50 | |
*** valw has quit IRC | 18:55 | |
*** valw has joined #craton | 19:02 | |
*** valw_ has joined #craton | 19:05 | |
*** valw has quit IRC | 19:06 | |
*** jovon has quit IRC | 19:07 | |
sigmavirus | jimbaker: the revised series should work for you :D | 19:23 |
sulo | i had such a bad headache i could not look at my screen, but nothing 2 neurofen and chinese dinner couldnt fix | 19:36 |
sulo | syed_: looking | 19:37 |
syed_ | sulo: Glad you are feeling better | 19:37 |
sulo | syed_: so whats the change in your new patch | 19:37 |
sulo | i see its the same | 19:37 |
sulo | what you need to do is restrict what you can update | 19:38 |
syed_ | sulo: i am using self.assertEqual(resp.json['region_id'], payload['region_id']) | 19:38 |
syed_ | self.assertEqual(resp.json['project_id'], payload['project_id']) | 19:38 |
syed_ | to assure it stays the same as the one i passed | 19:38 |
sulo | right | 19:38 |
syed_ | isn't this what you meant ? | 19:38 |
sulo | no | 19:38 |
syed_ | So what should i be doing in the case with mocking :/ | 19:39 |
sulo | what i mean is .. we need to restrict users from updating some of the vlues such has region_id or project_id etc | 19:39 |
syed_ | bit confused on how to restrict | 19:39 |
sulo | nothing to do with testing | 19:39 |
syed_ | oh so in the case of inventory/cells.py | 19:40 |
sulo | so if you create a cell for region 1 then create host for that cell then update region then its going tobe bad | 19:40 |
sulo | there might be other such cases | 19:40 |
sulo | i havent looked at each and every case | 19:40 |
sulo | project_id dont need to worry about now after sigmavirus patch, but need to make sure that there is no ^ type of other cases | 19:41 |
sulo | syed_: does that make sense ? | 19:41 |
syed_ | so i might need to make changes inventory/cells.py and inventory/hosts.py | 19:41 |
sulo | yeah | 19:41 |
syed_ | i see | 19:41 |
sulo | actually no | 19:41 |
syed_ | ohh | 19:41 |
sulo | its should be as simple as changing schema.py for put | 19:42 |
sulo | and make sure the properties to change are the right ones | 19:42 |
sulo | see https://github.com/openstack/craton/blob/master/craton/api/v1/schemas.py#L302 | 19:43 |
sulo | is using DefinitionsHost .. which allows for certain properteis to be updated | 19:44 |
sulo | if that looks good then just use that .. otherwise create someothing similar but with ony the values we should allow to update | 19:44 |
syed_ | cool | 19:44 |
syed_ | will do that | 19:44 |
sulo | makes sense ? | 19:44 |
syed_ | yes | 19:44 |
syed_ | perfect sense | 19:45 |
sulo | cool | 19:45 |
syed_ | thank you | 19:45 |
sulo | np | 19:45 |
*** sballe_ has quit IRC | 19:46 | |
*** sballe_ has joined #craton | 19:46 | |
*** valw_ has quit IRC | 19:59 | |
*** VW has quit IRC | 20:01 | |
*** valw has joined #craton | 20:02 | |
*** VW has joined #craton | 20:05 | |
*** ahsa518 has quit IRC | 20:19 | |
*** valw has quit IRC | 20:23 | |
*** valw has joined #craton | 20:39 | |
jimbaker | sigmavirus, thanks, that patch looks good for project_id's type switch to uuid | 20:41 |
*** VW has quit IRC | 20:44 | |
*** VW has joined #craton | 20:44 | |
jimbaker | sigmavirus, just waiting on the update to https://review.openstack.org/#/c/386646/ | 20:50 |
*** valw has quit IRC | 20:54 | |
*** Mudpuppy has quit IRC | 20:58 | |
*** VW has quit IRC | 21:03 | |
*** syed_ has quit IRC | 21:15 | |
*** syed_ has joined #craton | 21:16 | |
*** wirehead_ has quit IRC | 21:16 | |
*** kencjohnston has quit IRC | 21:17 | |
*** kencjohnston has joined #craton | 21:19 | |
*** wirehead_ has joined #craton | 21:20 | |
syed_ | sulo: https://review.openstack.org/#/c/384817/ | 21:31 |
syed_ | ready for some reviews. Have updated the code for regions, cells and hosts | 21:31 |
*** VW has joined #craton | 21:33 | |
sulo | syed_: hosts should have device_type too | 21:35 |
syed_ | sulo: ok will update | 21:36 |
jimbaker | syed_, were you able to figure out the mock testing for updates? | 21:36 |
syed_ | sulo: kindly see | 21:50 |
sulo | syed_: think you missed my last comment, check for network_devices and networks | 21:51 |
syed_ | oops just saw | 21:51 |
syed_ | yeah for network | 21:51 |
syed_ | i didn't uploaded tests and this for network | 21:51 |
syed_ | \should i be updating schema for network ? | 21:52 |
sulo | you need to do the same for networks update | 21:52 |
sulo | and netdevices update | 21:52 |
sulo | same as region / cell | 21:52 |
syed_ | i see | 21:53 |
syed_ | okay will upload that in a se | 21:53 |
syed_ | sec | 21:53 |
syed_ | should i be uploading tests for network as well ? Or should i be doing that separately ? | 21:53 |
syed_ | since networks tests are missing is already a bug out there ? | 21:53 |
*** VW has quit IRC | 22:12 | |
*** Mudpuppy has joined #craton | 22:30 | |
*** Mudpuppy has quit IRC | 22:37 | |
*** Mudpuppy has joined #craton | 22:38 | |
*** Mudpuppy has quit IRC | 22:42 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!