Friday, 2016-10-14

*** openstack has joined #craton09:46
*** openstackstatus has quit IRC10:13
*** openstack has joined #craton10:14
*** Mudpuppy has joined #craton10:22
*** Mudpuppy has quit IRC10:27
sigmavirussulo: I think I might actually finish the project_id works oon12:02
sigmavirus*today12:02
*** acabot has joined #craton12:27
sulosigmavirus: awesome !! and thanks !!12:41
*** openstackstatus has quit IRC12:43
*** openstack has joined #craton12:44
*** VW has joined #craton13:13
*** Mudpuppy has joined #craton14:09
sulohttps://review.openstack.org/#/c/386583 for some reviews pls14:38
*** jovon has joined #craton14:38
sigmavirusjimbaker: sulo I made this public security because I just submitted a review to fix it https://bugs.launchpad.net/craton/+bug/162891714:43
openstackLaunchpad bug 1628917 in craton "User can create resources in another project" [High,Confirmed]14:43
sigmavirusOh right, the infra review merged last night so we now have logging courtesy of openstack :D14:43
*** syed_ has joined #craton15:19
sulosigmavirus: cool. thanks. patch is failing a few tests, but looks like minor fixups15:44
syed_sulo: hi, a quick question, so i am trying to write the cell_update part in test api and having an error15:48
syed_https://gist.github.com/ahsan518/fd7d0cd452e01c08217cb1253e1bf7a915:48
sulolooks like that is failing validation ??15:49
syed_yes, returning mismatch -- impl.MismatchError: 200 != 42215:49
syed_i am just getting CELL1 from fake resources and changing name though ..15:50
suloyeah .. so i mean .. its failing validation15:51
sigmavirussulo: ah yeah, I forgot to run them locally15:51
sulosyed_: when you run that on a running server .. do you see sqlalchemy error15:56
sulo?15:56
suloi mean api .. not db15:56
suloany error15:56
syed_I tried the normal update cell call and it was working15:58
syed_https://www.irccloud.com/pastebin/co3WjRFE/15:58
sulobut thats differnt from ur test15:59
syed_yes that was for a different cell name15:59
sulothe payload is differnt16:00
syed_yes, its using the Fake Resources, so there it should be changing the name from earlier to Cell_New116:00
syed_let me run it again and see16:00
sigmavirussulo: tests should be fixed16:02
sulosigmavirus: thanks16:02
sigmavirussulo: jimbaker so one thing I noticed is that our project schema is going to break keystone integration16:02
sigmavirusI think16:02
suloreally ?16:02
sigmavirusWait, hold on16:03
sigmavirusLet me double check16:03
sigmavirusYeah, so project-id is literally it's id, and that's the project_id we expect in relations (devices, etc.)16:04
sigmavirusAnd project.id will always be an integer16:04
sigmavirusBut keystone project-ids are typically uuids16:04
suloyeah16:04
sigmavirusSo when someone is using Keystone for auth, and we pull the tenant/project-id from the context16:04
sigmavirusHow are we going to store that in the db?16:04
sigmavirusare we going to store the keystone project uuid as the name and create our own project id that we use?16:05
suloyeah :(16:05
sulowe should probably change the project schema16:06
jimbakersigmavirus, fair enough16:06
* sigmavirus brb16:07
sulosyed_: did that fix your problem ?16:10
sulosyed_: actually this is not going to work .. you will need to restrict what can get updated16:15
sulolike you cant update project or region ids once created16:15
suloetc16:15
syed_sulo: i see, will work over it, thanks16:17
sigmavirusjimbaker: sulo so... should I change the schema?17:39
sulosigmavirus: +1, what are you thinking though ? adding project_id ?17:41
sigmavirussulo: I was thinking of just changing the constraint from int to varchar17:42
jimbakersigmavirus, works for me18:11
jimbakerbasically project_id should be considered an external identifier, and a string is the most general description18:11
jimbakerwe see something similar in terms of our taskflow integration18:11
jimbakerwe already have this with respect to device names. we may need to add more foreign identifiers over time. tbd18:11
sigmavirushm, using the dockerfile on a 16.04 cloudserver and EXPOSE doesn't seem to be working as expected. I can't curl the service18:35
*** VW has quit IRC18:35
*** VW has joined #craton18:41
sigmavirusjimbaker: you have problems with this before?18:42
jimbakersigmavirus, i haven't had a problem with the docker usage18:43
suloi use Ubuntu 16.04.1 LTS cs with no problem18:43
*** jovon_ has joined #craton18:44
sigmavirusmaybe I'm missing something? I've just been using docker run18:44
jimbakeri can try again - but basically i run docker every single time i look at code in review18:45
sigmaviruswas missing the -P flag18:46
jimbakerlooking forward to that being in our CI18:46
sigmaviruswasn't exposing the ports on the host18:46
jimbakeryes, -p would be important - it's one of the nice aspects of the docker model18:47
Mudpuppycan't p without tcp!18:47
*** _d34dh0r53_ has joined #craton18:51
*** jovon has quit IRC18:51
*** d34dh0r53 has quit IRC18:51
*** palendae has quit IRC18:51
*** jovon_ is now known as jovon18:52
*** Mudpuppy has quit IRC19:00
sulook one more https://review.openstack.org/#/c/386747/19:09
jimbakersulo, could we constrain with with_polymorphic in this case?19:13
sulojimbaker: actually yeah, that might be better use case for this19:14
jimbakeri know we have this additional type distinction, which iirc we have been using to distinguish with respect to a container19:14
jimbakerack19:14
*** palendae has joined #craton19:17
*** palendae is now known as Guest3757819:17
sulolooks like i was actually already doing that for one of them atleast19:17
*** lcastell has quit IRC20:03
*** lcastell has joined #craton20:05
*** Mudpuppy has joined #craton20:13
*** Mudpuppy_ has joined #craton20:13
*** Mudpuppy has quit IRC20:17
*** lcastell has quit IRC20:24
*** lcastell has joined #craton20:26
*** VW has quit IRC20:30
*** VW has joined #craton20:41
*** VW has quit IRC20:46
*** VW has joined #craton22:03
*** VW has quit IRC22:03
*** VW has joined #craton22:03
*** VW_ has joined #craton22:10
*** VW has quit IRC22:13
*** VW_ has quit IRC22:14
syed_guys, i have updated a new patch set, it is missing the tests for network right now, i would appreciate if you guys can take a look and let me know if any changes are needed : https://review.openstack.org/#/c/384817/522:27
syed_https://review.openstack.org/#/c/38481722:58
*** VW has joined #craton23:00
*** Mudpuppy_ has quit IRC23:03
*** VW has quit IRC23:04

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