*** john-davidge has joined #openstack-sdks | 00:36 | |
*** john-davidge has quit IRC | 00:40 | |
*** markvoelker has quit IRC | 00:52 | |
*** hoangcx has joined #openstack-sdks | 01:06 | |
*** zhurong has joined #openstack-sdks | 01:18 | |
*** yanyanhu has joined #openstack-sdks | 01:20 | |
*** aohuanxuan has joined #openstack-sdks | 01:22 | |
*** aohuanxuan has quit IRC | 01:41 | |
*** aohuanxuan has joined #openstack-sdks | 01:41 | |
*** markvoelker has joined #openstack-sdks | 01:53 | |
*** markvoelker has quit IRC | 01:58 | |
*** fzdarsky_ has joined #openstack-sdks | 02:15 | |
*** fzdarsky has quit IRC | 02:18 | |
*** yanyanhu has quit IRC | 02:48 | |
*** yanyanhu has joined #openstack-sdks | 02:49 | |
*** gouthamr has quit IRC | 03:04 | |
*** xehbit has quit IRC | 03:05 | |
*** xehbit has joined #openstack-sdks | 03:07 | |
*** john-davidge has joined #openstack-sdks | 03:37 | |
*** john-davidge has quit IRC | 03:41 | |
*** markvoelker has joined #openstack-sdks | 03:54 | |
*** markvoelker has quit IRC | 03:59 | |
*** adriant has quit IRC | 05:39 | |
openstackgerrit | Yujun Zhang proposed openstack/js-openstack-lib: Ignore compiling output https://review.openstack.org/393097 | 05:41 |
---|---|---|
*** openstackgerrit has quit IRC | 05:48 | |
*** openstackgerrit has joined #openstack-sdks | 05:48 | |
openstackgerrit | Yujun Zhang proposed openstack/js-openstack-lib: Ignore compiling output https://review.openstack.org/393097 | 05:49 |
*** markvoelker has joined #openstack-sdks | 05:55 | |
openstackgerrit | Dongcan Ye proposed openstack/python-openstackclient: Add address pair options in port operation https://review.openstack.org/392457 | 05:56 |
*** markvoelker has quit IRC | 05:59 | |
*** john-davidge has joined #openstack-sdks | 06:04 | |
*** john-davidge has quit IRC | 06:08 | |
*** annp has joined #openstack-sdks | 06:23 | |
*** sheel has joined #openstack-sdks | 06:24 | |
*** zhurong has quit IRC | 06:25 | |
*** zhurong_ has joined #openstack-sdks | 06:25 | |
openstackgerrit | miaohb proposed openstack/python-openstacksdk: Add filters "policy_type" and "policy_name" for policy binding list https://review.openstack.org/387870 | 06:32 |
*** markvoelker has joined #openstack-sdks | 06:55 | |
*** exploreshaifali has joined #openstack-sdks | 06:57 | |
*** markvoelker has quit IRC | 07:00 | |
*** zhurong_ has quit IRC | 07:03 | |
*** zhurong has joined #openstack-sdks | 07:04 | |
*** exploreshaifali has quit IRC | 07:08 | |
*** openstackgerrit has quit IRC | 07:48 | |
*** openstackgerrit has joined #openstack-sdks | 07:48 | |
*** jpena|off is now known as jpena | 08:20 | |
openstackgerrit | Huanxuan Ao proposed openstack/python-openstackclient: Refactor "snapshot" commands https://review.openstack.org/369854 | 08:21 |
*** jpena is now known as jpena|off | 08:32 | |
*** jpena|off is now known as jpena | 08:35 | |
*** aohuanxuan has quit IRC | 08:39 | |
*** huanxuanao has joined #openstack-sdks | 08:40 | |
*** huanxuanao has quit IRC | 08:40 | |
*** huanxuan has joined #openstack-sdks | 08:41 | |
*** zhiyong has joined #openstack-sdks | 08:54 | |
*** zhiyong_ has joined #openstack-sdks | 08:55 | |
*** zhiyong has quit IRC | 08:55 | |
*** zhiyong_ has quit IRC | 08:55 | |
*** jiahui has joined #openstack-sdks | 08:56 | |
*** markvoelker has joined #openstack-sdks | 08:56 | |
*** zhiyong has joined #openstack-sdks | 08:57 | |
*** markvoelker has quit IRC | 09:00 | |
*** amotoki has quit IRC | 09:04 | |
*** john-davidge has joined #openstack-sdks | 09:10 | |
*** zhurong has quit IRC | 09:14 | |
*** huanxuan is now known as aohuanxuan | 09:18 | |
*** aohuanxuan is now known as huanxuan | 09:18 | |
*** lucas-afk is now known as lucasagomes | 09:22 | |
openstackgerrit | Dongcan Ye proposed openstack/python-openstackclient: [network] Add address pair options in port operation https://review.openstack.org/392457 | 09:30 |
*** yanyanhu has quit IRC | 09:38 | |
*** yanyanhu has joined #openstack-sdks | 09:38 | |
*** yanyanhu has quit IRC | 09:42 | |
*** zhurong has joined #openstack-sdks | 09:49 | |
*** gildub_ has quit IRC | 09:58 | |
*** zhurong has quit IRC | 10:02 | |
*** zhurong has joined #openstack-sdks | 10:04 | |
*** zhurong has quit IRC | 10:04 | |
openstackgerrit | Dongcan Ye proposed openstack/python-openstackclient: [network] Add address pair options in port operation https://review.openstack.org/392457 | 10:14 |
*** hoangcx has quit IRC | 10:20 | |
*** rtheis has joined #openstack-sdks | 10:22 | |
*** cdent has joined #openstack-sdks | 10:42 | |
*** cdent has quit IRC | 10:51 | |
*** markvoelker has joined #openstack-sdks | 10:57 | |
*** markvoelker has quit IRC | 11:02 | |
*** huanxuan is now known as aohuanxuan | 11:02 | |
*** aohuanxuan is now known as huanxuan | 11:02 | |
*** huanxuan has quit IRC | 11:10 | |
*** huanxuan has joined #openstack-sdks | 11:11 | |
*** huanxuan has quit IRC | 11:12 | |
*** annp has quit IRC | 11:22 | |
*** rvasilets___ has joined #openstack-sdks | 11:33 | |
*** cdent has joined #openstack-sdks | 11:52 | |
*** jpena is now known as jpena|lunch | 11:57 | |
*** edmondsw has joined #openstack-sdks | 12:05 | |
*** jiahui has quit IRC | 12:10 | |
*** jiahui has joined #openstack-sdks | 12:12 | |
*** markvoelker has joined #openstack-sdks | 12:22 | |
*** aohuanxuan has joined #openstack-sdks | 12:30 | |
*** aohuanxuan is now known as huanxuan | 12:34 | |
*** lucasagomes is now known as lucas-hungry | 12:35 | |
*** john-davidge has quit IRC | 12:45 | |
*** john-davidge has joined #openstack-sdks | 12:46 | |
*** gouthamr has joined #openstack-sdks | 12:49 | |
*** david-lyle has quit IRC | 12:55 | |
*** jpena|lunch is now known as jpena | 12:59 | |
*** Kiall_ is now known as Kiall | 13:19 | |
*** _elmiko is now known as elmiko | 13:24 | |
*** fguillot has joined #openstack-sdks | 13:31 | |
*** lucas-hungry is now known as lucasagomes | 13:35 | |
*** cleong has joined #openstack-sdks | 13:38 | |
*** amotoki has joined #openstack-sdks | 13:50 | |
*** sheel has quit IRC | 14:00 | |
*** huanxuan has quit IRC | 14:14 | |
*** singhj has joined #openstack-sdks | 14:26 | |
*** annegentle has joined #openstack-sdks | 14:31 | |
openstackgerrit | Sindhu Devale proposed openstack/python-openstackclient: OSC Quota List https://review.openstack.org/379813 | 14:49 |
*** cdent has quit IRC | 14:51 | |
*** amotoki has quit IRC | 14:53 | |
openstackgerrit | Sindhu Devale proposed openstack/python-openstackclient: SDK refactor: Prepare floating ip commands https://review.openstack.org/392709 | 14:54 |
*** d0ugal has quit IRC | 14:57 | |
*** e0ne has joined #openstack-sdks | 14:59 | |
openstackgerrit | Sindhu Devale proposed openstack/python-openstackclient: OSC Extension Show https://review.openstack.org/382023 | 15:01 |
*** ALVAN has left #openstack-sdks | 15:03 | |
*** jiahui has quit IRC | 15:07 | |
*** jiahui has joined #openstack-sdks | 15:07 | |
*** d0ugal has joined #openstack-sdks | 15:13 | |
*** cdent has joined #openstack-sdks | 15:19 | |
*** e0ne has quit IRC | 15:30 | |
*** d0ugal has quit IRC | 15:39 | |
*** ankur-gupta-f has left #openstack-sdks | 15:50 | |
*** ankur-gupta-f has joined #openstack-sdks | 15:50 | |
cdent | etoews, elmiko you guys aligned with the current timezone weirdness? | 16:00 |
elmiko | um, maybe? | 16:00 |
etoews | yes? | 16:00 |
*** thingee has joined #openstack-sdks | 16:23 | |
openstackgerrit | Shashank Kumar Shankar proposed openstack/python-openstackclient: [WIP] Add neutron dhcp-agent to OSC. https://review.openstack.org/387611 | 16:27 |
*** cdent has quit IRC | 16:44 | |
*** edmondsw has quit IRC | 16:46 | |
*** cdent has joined #openstack-sdks | 16:47 | |
*** piet has joined #openstack-sdks | 16:51 | |
elmiko | it's a long shot, but, any of you heading to kubecon or apachecon? | 17:00 |
elmiko | etoews, cdent ^^ | 17:01 |
etoews | neither | 17:01 |
elmiko | ah well, had to ask =) | 17:01 |
cdent | elmiko: I'd like to (on both) but not gonna happen | 17:01 |
elmiko | cdent: at least apachecon is on your side of the pond ;) | 17:02 |
cdent | "hey people with the money, I know I was just in spain, but could I maybe go back to spain?" | 17:02 |
elmiko | hehe | 17:02 |
*** njohnston has left #openstack-sdks | 17:03 | |
*** gouthamr has quit IRC | 17:05 | |
*** singhj has quit IRC | 17:06 | |
*** gouthamr has joined #openstack-sdks | 17:08 | |
*** xehbit has quit IRC | 17:17 | |
*** xehbit has joined #openstack-sdks | 17:17 | |
*** flwang1 has joined #openstack-sdks | 17:19 | |
flwang1 | hi api-wg folks, i have a question about the 'actions' of rest api | 17:19 |
flwang1 | what's the recommended way of an action api for a particular resource? | 17:19 |
flwang1 | thanks | 17:20 |
*** e0ne has joined #openstack-sdks | 17:20 | |
openstackgerrit | Ankur proposed openstack/python-openstackclient: Add meter label rule to OSC https://review.openstack.org/378058 | 17:33 |
*** aarefiev has quit IRC | 17:34 | |
elmiko | flwang1: kinda depends on what you mean by "action" | 17:35 |
*** aarefiev_ has joined #openstack-sdks | 17:35 | |
flwang1 | elmiko: like purge a queue | 17:35 |
flwang1 | in glance, it's using '/image_id/actions/activate' | 17:35 |
*** aarefiev_ has quit IRC | 17:36 | |
flwang1 | in nova, it's using '/instance_id/actions/' | 17:36 |
elmiko | is there a way to set the queue length to 0 in the resource and update the model with a PUT or something? | 17:36 |
elmiko | ah | 17:36 |
flwang1 | in sahara, they are using '/job_id/cancel' | 17:36 |
elmiko | well, in general we advise against making endpoints like the glance one or the sahara one | 17:36 |
flwang1 | i just want to figure out which is the best practice now, in openstack world | 17:36 |
elmiko | iirc, the nova actions are a resource unto themselves, and that would be more inline with our best thinking on this topic | 17:37 |
elmiko | we had been working on an actions guideline, but it is a complicated issue | 17:37 |
*** aarefiev_ has joined #openstack-sdks | 17:38 | |
flwang1 | elmiko: so you mean, the way using '/resource_id/actions' and then post a body to let the server know what's the particular action user is asking? | 17:38 |
elmiko | right | 17:38 |
elmiko | treat the actions as resources | 17:38 |
flwang1 | i see, hence why i asked | 17:38 |
flwang1 | since i don't want to create a new endpoint which is not api-wg like :) | 17:38 |
elmiko | but, i would also recommend looking at your resources to see if you can avoid using custom actions by allowing model updates to dictate some actions | 17:39 |
elmiko | =) | 17:39 |
flwang1 | in our case, the resource is queue(in zaqar world) | 17:39 |
elmiko | so, in the queue example, is it possible to put an updated model back to the server with a requested queue length of 0, thus indicating you wish to empty the queu. | 17:39 |
flwang1 | and we would like to have an action to purge the queue but not delete the queue | 17:39 |
elmiko | ah, interesting | 17:40 |
flwang1 | purge means deleting all the resources under the queue | 17:40 |
flwang1 | but keep the queue since there are some metadata user may want to keep | 17:41 |
elmiko | right, so you don't want to DELETE /queue/somequeueid | 17:41 |
flwang1 | exactly | 17:41 |
flwang1 | since we do have the delete queue behaviour | 17:41 |
flwang1 | they are different actions | 17:41 |
elmiko | right | 17:41 |
flwang1 | in other words, we're using DELETE for deleting queue | 17:42 |
elmiko | is it possible to just PUT the queue model back to the server requesting a 0 length state? | 17:42 |
elmiko | in this manner you are still just dealing with resource state transfers, and the server knows what to do | 17:42 |
flwang1 | elmiko: hmm.... that's not really the way i would like to go | 17:42 |
flwang1 | because | 17:42 |
*** aarefiev_ has quit IRC | 17:42 | |
flwang1 | we're using PUT to create a queue | 17:43 |
elmiko | PATCH perhaps? | 17:43 |
flwang1 | PATCH is used to update a queue :D | 17:43 |
flwang1 | but i can see your point | 17:43 |
elmiko | right, this would be an update requesting a 0 length. or is that out of band? | 17:43 |
elmiko | yeah, my rationale is to avoid creating specialized or unique action endpoints until all options have been exhausted | 17:44 |
elmiko | i find it more idiomatic to deal with resource models and requesting the server to achieve a certain statefulness | 17:44 |
flwang1 | based on my understand, no matter using which method, we still need to define a http body like nova does, to tell the server what to do, right? | 17:44 |
elmiko | it depends | 17:44 |
elmiko | if i could send the queue model back with some length key set to 0, then no you don't need a new body | 17:45 |
elmiko | but, | 17:45 |
* cdent catches up | 17:45 | |
flwang1 | actually, in zaqar world, there is no length for queue | 17:45 |
elmiko | if you create an actions endpoint, then i would treat each action as a resource unto itself and in that case you would create a new type of model to send back (ie. the action model) | 17:45 |
elmiko | cdent probably has some good ideas too | 17:46 |
cdent | I agree with what elmiko has said about trying to change the state on the resource itself, and not using specific action endpoints | 17:46 |
cdent | even if that mean you need a new url to represent the state | 17:47 |
cdent | for a queue-like resource one can imagine that if the queue is: /queues/{id} | 17:47 |
cdent | and you manage the queue by putting, patching, posting to it | 17:47 |
cdent | then you might have a /queues/{id}/status to manage it | 17:48 |
cdent | it would be nicer, however, to manage it at /queues/{id} | 17:48 |
cdent | perhaps with a different media type | 17:48 |
elmiko | i gotta run, hopefully this is helpful flwang1. i think the only way you can go seriously wrong is if you make an endpoint like /queues/{id}/empty, or similar. good luck! =) | 17:49 |
flwang1 | ha | 17:50 |
flwang1 | elmiko: thanks | 17:50 |
cdent | yeah, verby endpoints are bad news | 17:50 |
flwang1 | cdent: so i should totally avoid the way like glance and sahara did, right? | 17:50 |
elmiko | fwiw, sahara is factoring out the cancel endpoint in their v2 api | 17:51 |
cdent | flwang1: yes the glance and saraha ways you've described are not great | 17:51 |
flwang1 | elmiko: cool | 17:52 |
flwang1 | cdent: ok, then i may go for using POST /queue/myqueue/actions to request a particular action | 17:53 |
flwang1 | since i don't want to find another http method for new actions in the future | 17:54 |
cdent | flwang1: that seems to be the way that has become common in openstack, but for the record, I don't much care for it myself :) | 17:54 |
cdent | (for all the reasons elmiko already said) | 17:55 |
flwang1 | cdent: ok, cool, thank you very much | 17:55 |
flwang1 | btw | 17:55 |
flwang1 | for now | 17:55 |
flwang1 | is it the recommended way to use PATCH for updating? | 17:55 |
flwang1 | or PUT is still the 'default standard'? | 17:55 |
*** lucasagomes is now known as lucas-afk | 17:59 | |
*** jpena is now known as jpena|off | 18:03 | |
cdent | flwang1: probably PUT | 18:04 |
flwang1 | cdent: interesting... | 18:04 |
cdent | as for at least some people PATCH requires a diff-like format | 18:04 |
cdent | so unless you are using that a diff-like format, it can be easier to just PUT | 18:05 |
cdent | but, like so many things, that's open for debate | 18:05 |
flwang1 | hah | 18:05 |
flwang1 | we're migrating PUT to PATCH, hence asking | 18:05 |
cdent | flwang1: I missed the part where you said who "we" is? | 18:06 |
flwang1 | cdent: sorry, zaqar team | 18:06 |
flwang1 | but like you said, we're not 100% sure if that's the best way | 18:07 |
cdent | flwang1: if there are specs associated with that sort of stuff if you invite me, elmiko and etoews to come and look we can provide some input | 18:09 |
cdent | some of the time you'll get three different answers though :) | 18:09 |
flwang1 | hah, cool, thanks for the offer ;) | 18:09 |
cdent | this is an interesting blog post on patch: http://williamdurand.fr/2014/02/14/please-do-not-patch-like-an-idiot/ | 18:10 |
cdent | i'm not entirely in agreement with it, but it does help present some of the debates | 18:10 |
flwang1 | cdent: ah, i see think i read it before | 18:14 |
flwang1 | cdent: thank you very much | 18:18 |
cdent | flwang1: you're welcome, but I'm pretty sure all I've done is said "there's no clear cut answer, good luck!" :) | 18:18 |
cdent | brb | 18:18 |
openstackgerrit | Anindita Das proposed openstack/python-openstackclient: [WIP] OSC Network Flavor https://review.openstack.org/382530 | 18:23 |
*** piet has quit IRC | 18:32 | |
*** singhj has joined #openstack-sdks | 18:37 | |
*** john-davidge has quit IRC | 18:41 | |
*** annegentle has quit IRC | 18:43 | |
*** flwang1 has quit IRC | 18:49 | |
*** flwang1 has joined #openstack-sdks | 18:57 | |
*** waj334 has joined #openstack-sdks | 19:01 | |
waj334 | I'm working on adding Cinder v3 api support to the openstack client. Is there already progress being made on this effort? | 19:03 |
elmiko | cdent: re: PATCH mechanisms, i thought we had agreed that our guidance was PATCH should use either partial model update *or* json-diff, left up to the implementors discretion | 19:04 |
dtroyer | I don't think we have looked at that yet. does cinderclient have v3 support in its Python API lib? | 19:04 |
dtroyer | waj334: ^^ | 19:04 |
elmiko | cdent: and that in general, PUT should be used for full model updates and PATCH for partials | 19:05 |
cdent | elmiko: I can't remember and haven't had a chance to look yet | 19:05 |
elmiko | not sure if that actually made it into the guidance, but i remember having a big discussion about it | 19:05 |
waj334 | dtroyer: Yes as far as I know. Currently v2 just makes calls from the v3 api. | 19:06 |
dtroyer | waj334: is the cinder v3 the same endpoint? if cinderclient already translates v2 lib calls to v3 rest, what support is required? | 19:08 |
*** ankur-gupta-f has quit IRC | 19:08 | |
*** e0ne has quit IRC | 19:12 | |
waj334 | dtroyer: The endpoint should be different. v2 probably will not have awareness of microversions like the new v3 api has | 19:14 |
*** singhj has quit IRC | 19:27 | |
*** flwang1 has quit IRC | 19:35 | |
*** malloc83 has quit IRC | 19:45 | |
*** singhj has joined #openstack-sdks | 19:54 | |
*** rvasilets___ has quit IRC | 19:58 | |
*** cdent has quit IRC | 19:59 | |
*** rtheis has quit IRC | 20:12 | |
*** flwang1 has joined #openstack-sdks | 20:45 | |
openstackgerrit | Kristi Nikolla proposed openstack/keystoneauth: Adds last_request_id to adapter and session classes https://review.openstack.org/393485 | 20:46 |
*** john-davidge has joined #openstack-sdks | 20:53 | |
*** john-davidge has quit IRC | 20:57 | |
*** john-davidge has joined #openstack-sdks | 20:57 | |
*** gouthamr has quit IRC | 20:58 | |
*** cleong has quit IRC | 20:59 | |
*** john-davidge has quit IRC | 21:12 | |
*** singhj has quit IRC | 21:16 | |
*** flwang2 has joined #openstack-sdks | 21:18 | |
*** flwang1 has quit IRC | 21:19 | |
*** e0ne has joined #openstack-sdks | 21:35 | |
*** manjeets has joined #openstack-sdks | 21:44 | |
*** david-lyle has joined #openstack-sdks | 22:03 | |
openstackgerrit | Shashank Kumar Shankar proposed openstack/python-openstackclient: [WIP] Add neutron dhcp-agent to OSC. https://review.openstack.org/387611 | 22:18 |
*** singhj has joined #openstack-sdks | 22:20 | |
*** gouthamr has joined #openstack-sdks | 22:21 | |
*** flwang2 has quit IRC | 22:24 | |
*** flwang1 has joined #openstack-sdks | 22:25 | |
*** singhj has quit IRC | 22:25 | |
*** gildub_ has joined #openstack-sdks | 22:27 | |
*** adriant has joined #openstack-sdks | 22:36 | |
*** annegentle has joined #openstack-sdks | 22:51 | |
*** elmiko is now known as _elmiko | 23:00 | |
*** annegentle has quit IRC | 23:12 | |
*** john-davidge has joined #openstack-sdks | 23:24 | |
*** john-davidge has quit IRC | 23:29 | |
*** e0ne has quit IRC | 23:33 | |
*** yuanying has joined #openstack-sdks | 23:41 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!