Friday, 2017-10-13

*** thrash is now known as thrash|g0ne00:35
*** mgagne has quit IRC02:19
*** mgagne has joined #openstack-shade02:22
*** mgagne is now known as Guest5368002:22
*** gkadam_ has joined #openstack-shade04:38
*** gkadam_ has quit IRC04:39
*** gkadam has joined #openstack-shade04:40
*** gouthamr has quit IRC05:24
*** slaweq_ has joined #openstack-shade05:32
*** slaweq_ has quit IRC05:33
*** slaweq_ has joined #openstack-shade06:09
*** slaweq_ has quit IRC06:40
*** slaweq_ has joined #openstack-shade06:44
*** slaweq_ has quit IRC07:17
*** slaweq_ has joined #openstack-shade07:20
*** slaweq_ has quit IRC07:53
*** ioggstream has joined #openstack-shade07:55
*** slaweq_ has joined #openstack-shade08:02
*** slaweq_ has quit IRC08:35
*** slaweq_ has joined #openstack-shade08:44
*** slaweq_ has quit IRC09:17
*** slaweq_ has joined #openstack-shade09:21
*** slaweq_ has quit IRC09:55
*** slaweq_ has joined #openstack-shade10:00
*** thrash|g0ne is now known as thrash10:35
*** slaweq_ has quit IRC11:03
*** slaweq_ has joined #openstack-shade11:10
*** slaweq_ has quit IRC11:43
*** slaweq_ has joined #openstack-shade12:23
*** thrash is now known as thrash|biab12:23
*** slaweq_ has quit IRC12:56
*** slaweq_ has joined #openstack-shade13:01
*** thrash|biab is now known as thrash13:23
*** gkadam has quit IRC13:25
*** slaweq has quit IRC13:33
*** slaweq_ has quit IRC13:34
*** slaweq has joined #openstack-shade13:41
*** gouthamr has joined #openstack-shade13:49
*** gouthamr has quit IRC13:51
*** gouthamr has joined #openstack-shade13:51
*** slaweq has quit IRC14:13
*** slaweq has joined #openstack-shade14:23
*** slaweq has quit IRC14:56
*** slaweq has joined #openstack-shade15:03
*** slaweq has quit IRC15:36
*** slaweq has joined #openstack-shade15:41
*** slaweq has quit IRC16:14
*** slaweq has joined #openstack-shade16:16
*** slaweq has quit IRC16:18
*** slaweq has joined #openstack-shade16:18
*** ioggstream has quit IRC17:02
*** slaweq has quit IRC17:06
mordredShrews: shade image operations are working against rackspace - but there is a lurking bug in catalog discovery/url stuff - we've got double /v2 path pieces in there17:20
SamYaplemordred: are you refering ot https://bugs.launchpad.net/python-openstackclient/+bug/1685377/ ?17:24
openstackLaunchpad bug 1685377 in python-openstackclient "Glance imagev2 api calls fail on urls with 'v2' in them" [Medium,Confirmed]17:24
SamYapleos some other issue17:24
SamYapleobviously not that exact issue becase thats filed against OSC, but related?17:25
mordredSamYaple: yes17:33
SamYaplegot it. that was filed by my team because we had a second 'v2' in our url17:33
*** slaweq has joined #openstack-shade17:37
*** Guest53680 is now known as mgagne18:14
*** mgagne has quit IRC18:14
*** mgagne has joined #openstack-shade18:14
*** slaweq has quit IRC18:43
*** gouthamr has quit IRC18:47
*** slaweq has joined #openstack-shade18:48
Shrewsmordred: is this a new bug? or just noticed but been around for a bit?18:59
mordredShrews: I think it's likely actually a bug in the new keystoneauth discoveyr19:04
mordredI'm going to track it down as soon as I'm done with this cleanup thing - which is still being a little weird19:04
samueldmqmordred: Shrews: in the create and attach a public ip for this vm case19:09
samueldmqis it always the same API call?19:09
mordredsamueldmq: nope19:10
samueldmqand we just don't know what the deployment will do?19:10
samueldmqlike create and attach to public net19:10
mordredsamueldmq: it's different calls19:10
mordredthere are MANY different code paths for that one19:10
samueldmqcreate in a private net, then use NAT19:10
samueldmqmordred: hmm okay, so the create and attach to the public net call might just fail in some clouds19:10
mordredyes....19:11
mordredif you want to include the whole picture ...19:11
samueldmqthen you try: create in a private and attach IP via nat19:11
mordredfirst you need to know if nova or neutron are the ones controlling networking19:11
mordredthen you need to figure out if there is a public network you can boot on - which is its own mess19:11
mordredif there is a public network you can boot on, then booting a vm on it works pretty sanely19:12
mordredbut if there isn't, you may need to do private + NAT19:12
mordredeven in *that* case there are 2 different mechanisms19:12
samueldmqand NAT is connecting private and public with a router I assume19:12
mordredone of them which is "better" is to pass the port id of the private ip of the server to the floating ip create call19:12
mordredthe other, if that isn't possible, is to create a floating ip and then attach it to the server19:13
mordredsamueldmq: yes, that's right19:13
samueldmqok, do any of those always work?19:13
samueldmqI mean, whatever way you do it, it will work19:13
samueldmqport id of the private ip of the server to the floating ip create call OR create a floating ip and then attach it to the server19:13
samueldmqyou just pick any of those and they always work. or you need trial and error with those too?19:14
mordredsamueldmq: nope - there is literally nothing that will always work19:14
mordredsamueldmq: now - it IS possible to eventually figure out most of the options with code19:15
mordredsamueldmq: there are some pathological cases that code simply cannot infer - but shade can figure out te right thing I'd say 95% of the time19:15
samueldmqmordred: how does it do that?19:16
samueldmqhow does it figure out the way to try it out with most chance of success19:16
samueldmqI mean, how does it "figure out most of the options with code"?19:16
*** slaweq has quit IRC19:21
mordredsamueldmq: you can follow the "auto_ip" flag from http://git.openstack.org/cgit/openstack-infra/shade/tree/shade/openstackcloud.py#n6432 :)19:21
*** slaweq has joined #openstack-shade19:21
samueldmqmordred: kk :) last question ...19:21
samueldmqmordred: do all these things happen if just neutron is used in the different clouds?19:21
mordredsamueldmq: http://git.openstack.org/cgit/openstack-infra/shade/tree/shade/openstackcloud.py#n2296 is one half that's interesting19:21
samueldmqall this behavior inconsistency19:21
mordredsamueldmq: yes - all this still happens if just neutron is present19:22
samueldmqmordred: ok that will help explaining the issue19:22
samueldmqhaving different services for the same purpose is another big issue by itself19:22
mordredsamueldmq: for instance, OVH provides public ipv4 directly, citycloud provides private ipv4 and you have to use NAT for public - vexxhost defaults to public but allows private+NAT19:23
mordredsamueldmq: yah- luckily nova-net is mostly gone - but code still needs to account for it maybe existing19:23
samueldmqmordred: ++19:23
*** gouthamr_ has joined #openstack-shade19:24
samueldmqwhat I have for now is19:26
samueldmqfor syntactic issues: i) Functionality is exposed through different APIs (eg nova-net vs neutron, v2.0 vs v3), ii) Pluggable underlying mechanism (eg auth plugins) and iii) APIs were removed (identity v2.0 disapeared)19:27
samueldmqfor semantic: i) different authorization requirements for the functionality (policy) ii) configurable restrictions in operations on the data (e.g hierarchy depth for projects) iii)19:27
samueldmq quotas (not config for the service, but what the customer paid for)19:27
samueldmqmordred: I will add this network stuff we just discussed19:28
samueldmqand the lack of standardization in data, like how do we get the latest ubuntu image in a cloud?19:28
samueldmqmordred: I think we'd be pretty much covered on listing interop issues shade accounts for19:28
mordredsamueldmq: ++ - the doc is looking good!19:29
mordredsamueldmq: there's also another fun one - glance image uploads - there are 2 different mechanisms in glance v2 - upload data directly via HTTP PUT and upload via uploading to swift and creating an import task in glance19:31
samueldmqmordred: ok, and one cloud can go for just one of those?19:32
mordredsamueldmq: both of them are 'valid' API calls in every glance v2 cloud - but in some clouds upload via PUT is disabled, and in other clouds the task-import doesn't do anythin19:32
mordredsamueldmq: but they're both 'syntacticly' valid API calls for that version of glance19:32
samueldmqdo the thing. get the image and check19:32
samueldmqif it's there19:32
samueldmqif not, we might have called the noop task-import call :-)19:33
samueldmqmordred: I assume this is what shade does ^19:33
samueldmqmordred: that is an interesting case ... thanks I will add it to the doc19:33
mordredwhat's even more fun is that with the 'task' interface payloads are all vendor/deployer plugin specific19:33
mordredsamueldmq: so the task create call is a valid API call in all clouds with glance v2 - but the json payload to send them may vary :)19:34
mordredSamYaple: OK - so ... in this particular case it seems the problem with double v2 elements is actually related to pagination19:50
SamYaplegot it. that makes sense too19:51
mordredSamYaple: "next": "/v2/images?marker=bb15732f-e016-4544-a7e9-c73db58ce3e5" is what's in the pagination footer, and we're appending that to https://dfw.images.api.rackspacecloud.com/v2 which is the URL found from version discovery19:51
mordredSamYaple: HAH19:52
mordredwe have code to deal with this :)19:52
mordredSamYaple:19:52
mordred            # Use the raw endpoint from the catalog not the one from19:52
mordred            # version discovery so that the next links will work right19:52
mordred            response = self._raw_image_client.get(endpoint)19:52
* mordred head desks19:52
SamYapleyour work here is done!19:54
SamYaplelol19:54
*** slaweq has quit IRC21:04
openstackgerritMonty Taylor proposed openstack-infra/shade master: Handle glance image pagination links better  https://review.openstack.org/51196321:25
*** slaweq has joined #openstack-shade21:37
*** slaweq has quit IRC22:10
*** slaweq has joined #openstack-shade22:19
*** gouthamr_ has quit IRC22:23
openstackgerritMonty Taylor proposed openstack-infra/shade master: Handle glance image pagination links better  https://review.openstack.org/51196322:31
mordredShrews: ^^ added more tests22:31
mordredSamYaple: ^^ you too - that should solve all extra /v2 things in shade ... it won't fix openstackclient - that issue isn't as related22:32
SamYapleawesome.22:33
SamYapleits currently python-openstackclient called with subprocess in a saltstack module (uuggghhhhh). ive been switching it to shade. now that this is fixed in shade, yay!22:33
SamYapleor will be at least22:33
mordredSamYaple: yah - I think I've got all your things in you needed for the salt stuff22:34
SamYaplemordred: you did, i had a list :)22:36
SamYaplewell that ive found so far22:36
SamYaplei still have nova and neutron to salt-module out22:36
*** slaweq has quit IRC22:52
*** slaweq has joined #openstack-shade23:00
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add devstack jobs for zuul v3  https://review.openstack.org/50036523:02
openstackgerritMonty Taylor proposed openstack-infra/shade master: Add devstack jobs for zuul v3  https://review.openstack.org/50036523:03
*** gouthamr has joined #openstack-shade23:30
*** slaweq has quit IRC23:33
*** gouthamr_ has joined #openstack-shade23:43
*** slaweq has joined #openstack-shade23:43
*** gouthamr has quit IRC23:46
*** gouthamr_ has quit IRC23:57

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