Monday, 2015-04-13

*** davideagnello has joined #openstack-cue00:06
*** davideagnello has quit IRC00:11
*** openstackgerrit has quit IRC13:00
*** miqui has joined #openstack-cue13:01
*** openstackgerrit has joined #openstack-cue13:03
*** sputnik13 has joined #openstack-cue16:40
*** sputnik13 has quit IRC17:08
*** danielallegood has joined #openstack-cue17:10
*** davideagnello has joined #openstack-cue17:18
*** harlowja_away is now known as harlowja17:37
*** abitha has joined #openstack-cue18:03
*** sputnik13 has joined #openstack-cue18:19
*** abitha has quit IRC18:20
*** abitha has joined #openstack-cue18:26
*** SlickNik has quit IRC18:31
*** SlickNik has joined #openstack-cue18:32
openstackgerritAbitha Palaniappan proposed stackforge/cue: Change network_id argument to list type  https://review.openstack.org/16906518:33
openstackgerritAbitha Palaniappan proposed stackforge/cue: Change network_id argument to list type  https://review.openstack.org/16906518:54
openstackgerritAbitha Palaniappan proposed stackforge/cue: Unit test wsme objects  https://review.openstack.org/17225319:24
*** abitha has quit IRC19:25
openstackgerritMerged stackforge/python-cueclient: Expose endpoints in cluster list command  https://review.openstack.org/16953619:35
*** abitha has joined #openstack-cue20:21
openstackgerritSteve Leon proposed stackforge/cue: Refactoring fixtures  https://review.openstack.org/17143920:34
openstackgerritSteve Leon proposed stackforge/cue: Refactoring fixtures  https://review.openstack.org/17143920:36
*** miqui has quit IRC21:38
openstackgerritDaniel Allegood proposed stackforge/cue: Adding Database Migration test class  https://review.openstack.org/17180222:15
openstackgerritDaniel Allegood proposed stackforge/cue: Adding Database Migration test class  https://review.openstack.org/17180222:24
sputnik13https://review.openstack.org/#/c/169065/8/cue/api/controllers/v1/cluster.py22:33
sputnik13^ esmute does this mean we need to use "uuid" for network IDs and "port" for port IDs?22:34
sputnik13and they all fall under "networks"?22:34
esmutethat is how it is in nova22:34
sputnik13that's horrible22:35
esmuteand trove (although trove forward the nic content to nova directly)22:35
sputnik13yeah, that's horrible22:35
esmutesputnik13: Here is the nova python code where it creates the request22:35
esmutehttps://github.com/openstack/python-novaclient/blob/master/novaclient/v2/servers.py#L50522:35
esmuteso the nova api expects the nic content to be in this form22:36
sputnik13yeah, sorry that's horrible, we shouldn't follow this22:37
sputnik13it's ambiguous22:37
sputnik13that just looks like a legacy/historical artifact rather than an intentional design to me22:38
esmuteyeah.. let me see how the api handles it22:38
sputnik13like they had networks, and then they tacked on everything else22:38
sputnik13because if you look at it from the perspective of a list of network uuids, it makes sense22:39
sputnik13but then to interleave port-ids as "ports" and "ips" etc22:39
esmutebut if we do this, then eventually, we can not store network infromation within cue and let nova handle it22:39
sputnik13I don't see why that is22:39
esmuteand not have to change the api22:39
sputnik13we don't have to map 1-1 between our identifiers and the ones nova uses at API level22:40
sputnik13because to begin with we're not creating the nova API calls, we're using python-novaclient for that22:40
sputnik13and python-novaclient's API interface for booting a VM takse net_id and port_id iirc22:41
esmuteyeah.. that is a good point22:42
sputnik13I agree with using a list of name/value pairs where the name is the type of "nic" and the id is the id for that "nic" because that maps well with what nova wants overall22:42
esmuteim ok with using net_id and port_id22:42
esmuteetc22:42
sputnik13but the particular naming, I think it makes more sense to use what python-novaclient API expects, because it looks better desgiend22:43
sputnik13s/desgiend/designed22:43
esmutein this case, we can just leave it as nic as the main index and use net-id and port-id etc as the key/value22:44
davideagnellomakes sense to use net_id and port_id22:44
esmuteabitha: Do you agree with this ^?22:44
abithain our api , if I change the 'network_id' to 'networks'  it needs to be changed in objects, database, and taskflow for the current setup. So should i change it22:44
abithayes net-id and port-id sounds good.22:45
esmutelooks like nic": [{"net-id": "123"}] is the way to go22:45
davideagnellolike Abitha mentioned, changing the name will require changes through the various layers to the DB including models, and db version22:50
davideagnellodoes nic even make sense.  someone looking at the acronym, you would think of Network Interface Card22:51
davideagnellonetwork_interface is more intuitive22:51
sputnik13well...  a network isn't a network_interface eitehr22:52
sputnik13there's no clean approach unless you separate network and port22:52
sputnik13but that's overkill...  nic, network, they're both less than ideal, so it seems like either would be just as good/bad as the other22:53
esmutesorry.. it is not nic.. it is nics22:53
sputnik13I think it would be good if the cueclient actually took network-id's and port-id's as separate parameters, network-id for now, port-id later if/when we support it22:54
abithaso whats the final verdict?22:54
sputnik13it's not very user friendly to have them type in --nics network-id=ID1,port_id=ID2 etc22:54
davideagnellowe already have network_id22:55
sputnik13oh yeah22:55
davideagnellowhy don't we add port_id as an optional field22:55
sputnik13but the change we're really talking about is the REST API22:55
esmutedavideagnello: how would you specify for multiple networks?22:55
sputnik13we don't need to add port_id at all right now22:55
davideagnellothey can both be lists22:55
sputnik13esmute: I think that's a moot point right now since we don't support multiple networks22:55
davideagnellosputnik13: nope, we don't need it right now22:56
esmuteto keep it consistent with nova, trove, neutron etc.... "nics": [{"net-id": "123"}] is what they use22:56
sputnik13it could be a comma separated list or just multiple instances of the option22:56
sputnik13esmute: are you talking about REST API or command line?22:56
esmutesputnik13: correct but when we do support it, we wont want to be changing the api22:56
esmuterest API22:56
sputnik13ok, I was talking about command line, I'm confusing us, sorry22:56
esmutei was refering to the curl request that goes to the API... the network info is passed as "nics": [{"net-id": "123"}] in nova and trove22:57
esmuteyeah.. in command line, it would be --nic net-id=123 --nic net-id=45622:58
openstackgerritDaniel Allegood proposed stackforge/cue: Adding Database Migration test class  https://review.openstack.org/17180223:18
sputnik13this change seems like a slippery slope, we should table it for the time being and do an end to end design after the quality stuff...23:21
sputnik13vipul are you ok with that?23:21
vipulsputnik13: you mean table the patch entirely?23:23
vipulor do you mean let's got with renaming uuid -> net-id23:23
sputnik13actually, I think the renaming part23:24
sputnik13leave it as a list of just network-ids23:24
vipulso we wouldn't support supplying ports as an option.. at least in v1?23:25
vipuljust trying to make sure we understand the implications.. if we leave it as-is then we break API23:26
vipulif we have to change it..23:26
sputnik13at least put that off until after we're done with the quality efforts, not saying we release v1 without23:26
vipulactually i'm fine with supporting network-ids only.. which would mean Cue always creates the port23:26
vipulYep +1 the important thing right now is to get multiple nics to attach23:27
sputnik13I would lean that way as well, but I think we could leave it as an open issue if anyone feels strongly about it...  if we support port_id then there needs to be more changes than just the API change23:27
vipulbecause without this.. any deployment is useless23:28
sputnik13well, remember this doesn't preclude multiple NICs on the VM (our management and user's network)23:28
sputnik13this patch is for multiple user networks23:28
sputnik13so, supporting just network_id list for now, and if/when we add support for ports revisit the requisite API and backend changes?23:29
vipulyea i'm cool with that23:30
vipullet's get multi-nic working.. and revisit the api later23:30
vipulput in a bug or something to track it23:30
sputnik13vipul: k23:39
openstackgerritMerged stackforge/cue: Refactoring fixtures  https://review.openstack.org/17143923:44
openstackgerritAbitha Palaniappan proposed stackforge/cue: Change network_id argument to list type  https://review.openstack.org/16906523:51

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