*** Mudpuppy has quit IRC | 00:14 | |
*** Mudpuppy has joined #craton | 00:16 | |
*** jovon has quit IRC | 00:28 | |
*** VW has joined #craton | 01:03 | |
*** Mudpuppy has quit IRC | 01:07 | |
*** Mudpuppy_ has joined #craton | 01:07 | |
*** Syed__ has quit IRC | 01:27 | |
*** david-lyle has joined #craton | 01:33 | |
*** VW has quit IRC | 01:33 | |
*** valw has quit IRC | 02:00 | |
*** valw has joined #craton | 02:00 | |
*** VW has joined #craton | 03:33 | |
*** VW has quit IRC | 03:35 | |
*** VW has joined #craton | 03:35 | |
*** klindgren_ has quit IRC | 03:43 | |
*** klindgren_ has joined #craton | 03:44 | |
*** VW has quit IRC | 04:11 | |
*** palendae has quit IRC | 05:14 | |
*** b3rn-n00dl3s_ has joined #craton | 05:15 | |
*** ChanServ sets mode: +o b3rn-n00dl3s_ | 05:15 | |
*** sballe_ has quit IRC | 05:15 | |
tojuvone | sulo: Yes, done | 05:15 |
---|---|---|
*** b3rn-n00dl3s has quit IRC | 05:16 | |
*** b3rn-n00dl3s_ is now known as b3rn-n00dl3s | 05:16 | |
*** sballe_ has joined #craton | 05:22 | |
*** VW has joined #craton | 06:11 | |
*** VW has quit IRC | 06:16 | |
*** Mudpuppy_ has quit IRC | 06:23 | |
*** Mudpuppy has joined #craton | 06:23 | |
*** Mudpuppy has quit IRC | 06:28 | |
*** valw_ has joined #craton | 06:29 | |
*** valw has quit IRC | 06:32 | |
*** Mudpuppy has joined #craton | 06:54 | |
*** Mudpuppy has quit IRC | 06:58 | |
*** wirehead_ has quit IRC | 08:03 | |
*** wirehead_ has joined #craton | 08:05 | |
sulo | tojuvone: also for alembic we havent been adding new migration per change yet .. so you can simply change https://github.com/openstack/craton/blob/master/craton/db/sqlalchemy/alembic/versions/ffdc1a500db1_craton_inventory_init.py | 08:41 |
sulo | we will be doing per change migration after the first release | 08:41 |
sulo | tojuvone: so for your change you can simply change the table names on that file should do the trick | 08:42 |
*** sorrison_laptop has joined #craton | 08:51 | |
*** Mudpuppy has joined #craton | 08:55 | |
*** Mudpuppy has quit IRC | 08:59 | |
*** sorrison_laptop is now known as sorrison_ | 09:00 | |
git-harry | sulo: https://github.com/openstack/craton/blob/master/craton/tests/functional/__init__.py#L40 prevents me from running the functional tests on my local repo - was this done intentionally? I'm going to submit a patch to change that unless there's another way to do it? | 09:30 |
*** odyssey4me_ is now known as odyssey4me | 09:30 | |
sulo | git-harry: roger, i think its probably useful to be able to do it against our own repos | 09:33 |
sulo | actually i never thought of this at all | 09:34 |
git-harry | sulo: yup, and when it starts getting run against reviews it will need that as well. Okay, I'll make a review. | 09:34 |
sulo | git-harry: thanks | 09:34 |
*** mancdaz has joined #craton | 09:37 | |
sulo | git-harry: also if you are looking to do some of the func tests .. i have a bunch of issues in LP .. the ones i have claimed are already done (although not up for review) | 09:41 |
sulo | i was waiting for your endpoint change but since that is not chaing the url .. i might submit them later today | 09:42 |
git-harry | sulo: I was adding a couple just to cover requests without a region_id, have you already done that? | 09:43 |
tojuvone | sulo: Thanks. Then I should have working patch easily. | 09:43 |
sulo | git-harry: yes, i have all the GET call for regions/cells/hosts | 09:43 |
sulo | everything else is open | 09:44 |
git-harry | sulo: okay, I stop doing that then :P | 09:44 |
sulo | tojuvone: np, wanted to save time for you there :) | 09:44 |
sulo | git-harry: thx | 09:44 |
sulo | actually i should have change the lp bug status | 09:45 |
sulo | ill do that now | 09:45 |
*** sorrison_ has quit IRC | 10:09 | |
*** klindgren__ has joined #craton | 10:29 | |
*** klindgren_ has quit IRC | 10:32 | |
*** david-lyle_ has joined #craton | 10:35 | |
*** david-lyle has quit IRC | 10:37 | |
*** palendae has joined #craton | 10:47 | |
*** palendae is now known as Guest95719 | 10:47 | |
*** turvey has quit IRC | 11:44 | |
*** turvey has joined #craton | 11:51 | |
*** Mudpuppy has joined #craton | 12:47 | |
*** Mudpuppy has quit IRC | 12:48 | |
*** Mudpuppy has joined #craton | 12:49 | |
*** Mudpuppy has quit IRC | 12:53 | |
*** VW has joined #craton | 13:12 | |
*** VW has quit IRC | 13:16 | |
*** valw_ has quit IRC | 14:33 | |
*** Mudpuppy has joined #craton | 14:35 | |
*** Mudpuppy has quit IRC | 14:36 | |
*** Mudpuppy has joined #craton | 14:36 | |
*** VW has joined #craton | 14:40 | |
*** VW has quit IRC | 14:40 | |
*** VW has joined #craton | 14:41 | |
*** Syed__ has joined #craton | 15:07 | |
*** valw has joined #craton | 15:32 | |
Syed__ | sulo: are you around ? | 15:40 |
sulo | Syed__: yeah, whats up ? | 15:45 |
Syed__ | sulo: i actually am stuck in this .. Been trying to figure this out .. https://gist.github.com/ahsan518/16dabafe8677cf262eebd061066715d9 | 15:45 |
sulo | what am i looking at ? | 15:46 |
Syed__ | sulo: it gives me this error, saying NetDevice has no attribute resolved craton.api.v1.resources.inventory.networks: ERROR: Error during NetDeviceById.get: 'NetDevice' object has no attribute 'resolved' | 15:46 |
sulo | yeah it looks like it doesnt | 15:46 |
Syed__ | so i wrote a NetDevice test, to get the NetDeviceBy ID .. | 15:47 |
Syed__ | i edited the fake resources, in the gist i put fake resources | 15:47 |
Syed__ | and my test, | 15:47 |
Syed__ | so it should be simple enough | 15:47 |
*** valw has quit IRC | 15:48 | |
Syed__ | self.assertEqual(resp.json["name"], fake_resources.NETDEVICE1.name) | 15:48 |
Syed__ | it gives key error name, whereas name is defined in fake_resources.py as well, and schema too . | 15:48 |
sulo | what does the actual json have ? | 15:49 |
sulo | Syed__: ^ | 15:50 |
Syed__ | what do you mean ? | 15:50 |
sulo | resp.json | 15:50 |
*** jovon has joined #craton | 15:50 | |
sulo | what does that look like ? | 15:50 |
*** valw has joined #craton | 15:52 | |
Syed__ | sulo: {'message': 'Unknown Error', 'status': 500} | 15:52 |
sulo | well there you go | 15:52 |
Syed__ | but isn't it defined in schema already | 15:54 |
*** valw has quit IRC | 15:54 | |
Syed__ | https://github.com/openstack/craton/blob/master/craton/api/v1/schemas.py#L1608 | 15:54 |
sulo | not sure i follow what you are asking | 15:56 |
sulo | you are getting an error on that call | 15:56 |
sulo | /v1/netdevices/1 | 15:57 |
sulo | is giving you an error | 15:57 |
jovon | which direction are we planning to move with the naming convention of netdivices. will it become network_devices or net_devices? | 15:59 |
sulo | Syed__: also i dont see name there .. it shouldnt be there | 16:00 |
sulo | jovon: there is a pr up to fix that | 16:00 |
Syed__ | https://www.irccloud.com/pastebin/hK8hUpkK/ | 16:00 |
*** Guest95719 is now known as palendae | 16:01 | |
Syed__ | so in DefinitionNetDeviceID there is no name,, i see. | 16:01 |
sulo | so what you need to do is | 16:02 |
sulo | actaully before that | 16:02 |
sulo | when you do resp = fake_resource.SomeDevice | 16:03 |
sulo | what we are trying to do is make that someDevice look like a response back from the db | 16:03 |
sulo | since you are stubing the dbapi | 16:03 |
sulo | so the object that is NetDevice needs to match the object that you would expect | 16:04 |
sulo | from the db | 16:04 |
sulo | that resonse then is used by jsonconverter and gets filtered according to the schema | 16:04 |
sulo | right now .. you know its not the db part that is the problem sinceyou have stubbed it out | 16:04 |
sulo | so step 1. does your stub match what you'd expect on the real call | 16:05 |
sulo | then what is getting though the filter | 16:05 |
sulo | is what you are compring against | 16:06 |
sulo | does that make sense ? | 16:06 |
Syed__ | perfect sense | 16:07 |
Syed__ | i am on it | 16:07 |
Syed__ | thank you sulo | 16:07 |
*** valw has joined #craton | 16:08 | |
sulo | np, ping back if you get stuck | 16:08 |
*** valw has quit IRC | 16:12 | |
*** valw has joined #craton | 16:12 | |
*** valw has quit IRC | 16:28 | |
*** valw has joined #craton | 16:28 | |
*** valw has quit IRC | 16:33 | |
jimbaker | Syed__, just to clarify on the problem you are facing - if you work with actual net devices, vs your fakes, does it work? | 16:49 |
jimbaker | want to follow up on my testing discussion with you from yesterday | 16:49 |
Syed__ | I got that solved yes. Now it works, thanks for checking up jimbaker | 16:50 |
jimbaker | Syed__, cool | 16:51 |
*** Mudpuppy_ has joined #craton | 16:59 | |
*** Mudpuppy_ has quit IRC | 16:59 | |
*** Mudpuppy has quit IRC | 16:59 | |
*** VW_ has joined #craton | 16:59 | |
*** Mudpuppy has joined #craton | 16:59 | |
*** VW has quit IRC | 17:02 | |
*** valw has joined #craton | 17:04 | |
*** klindgren has joined #craton | 17:05 | |
*** klindgren__ has quit IRC | 17:08 | |
jovon | although it is not defined in DefinitionNetDevices, should "active" be a property of net devices? | 17:36 |
jovon | im referring to modeling herehttp://craton.readthedocs.io/en/latest/cratoncli.html#craton-device-create which may be out dated | 17:38 |
jovon | http://craton.readthedocs.io/en/latest/cratoncli.html#craton-device-create | 17:38 |
*** valw has quit IRC | 17:53 | |
*** valw has joined #craton | 17:56 | |
*** david-lyle_ is now known as david-lyle | 18:02 | |
sulo | jovon: yes | 18:09 |
jovon | Thank you sulo | 18:10 |
*** VW_ has quit IRC | 18:13 | |
*** VW has joined #craton | 18:14 | |
*** VW_ has joined #craton | 18:17 | |
*** VW has quit IRC | 18:19 | |
*** VW_ has quit IRC | 18:21 | |
*** valw has quit IRC | 18:49 | |
*** valw has joined #craton | 18:52 | |
*** VW has joined #craton | 19:09 | |
*** VW has quit IRC | 19:09 | |
*** VW has joined #craton | 19:09 | |
*** VW has quit IRC | 19:09 | |
*** VW has joined #craton | 19:10 | |
sulo | https://review.openstack.org/#/c/355938/ | 19:22 |
sulo | not for merge but for early review and discussion | 19:23 |
*** valw has quit IRC | 19:45 | |
*** valw has joined #craton | 19:50 | |
*** VW_ has joined #craton | 19:53 | |
*** VW has quit IRC | 19:56 | |
*** VW_ has quit IRC | 19:57 | |
*** VW has joined #craton | 19:59 | |
*** VW has quit IRC | 20:00 | |
*** VW_ has joined #craton | 20:00 | |
*** valw has quit IRC | 20:00 | |
*** VW_ has quit IRC | 20:02 | |
*** VW has joined #craton | 20:02 | |
*** valw has joined #craton | 20:08 | |
*** valw has quit IRC | 20:16 | |
*** VW has quit IRC | 20:21 | |
*** VW has joined #craton | 20:22 | |
*** valw has joined #craton | 20:29 | |
*** valw has quit IRC | 20:34 | |
Syed__ | sulo: you around ? | 20:37 |
*** harlowja has quit IRC | 20:41 | |
*** valw has joined #craton | 20:57 | |
*** valw has quit IRC | 21:01 | |
*** VW has quit IRC | 21:20 | |
*** valw has joined #craton | 21:24 | |
*** valw has quit IRC | 21:28 | |
*** valw has joined #craton | 21:28 | |
*** harlowja has joined #craton | 21:41 | |
*** valw has quit IRC | 21:55 | |
*** valw has joined #craton | 22:08 | |
*** jovon has quit IRC | 22:08 | |
*** Mudpuppy has quit IRC | 22:12 | |
*** valw has quit IRC | 22:12 | |
*** Mudpuppy has joined #craton | 22:12 | |
*** Mudpuppy has quit IRC | 22:13 | |
Syed__ | https://review.openstack.org/#/c/408339/1 | 22:49 |
Syed__ | ready for reviews | 22:49 |
Syed__ | https://review.openstack.org/#/c/408339 | 23:03 |
*** harlowja has quit IRC | 23:16 | |
*** valw has joined #craton | 23:20 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!