Thursday, 2019-12-12

*** senrique__ has joined #openstack-manila00:09
*** senrique_ has quit IRC00:12
*** senrique__ has quit IRC00:23
*** enriquetaso has joined #openstack-manila00:54
*** enriquetaso has quit IRC01:10
*** sam_wan has quit IRC02:14
*** jcollin has joined #openstack-manila05:27
*** pcaruana has joined #openstack-manila06:18
*** lpetrut has joined #openstack-manila07:21
*** tosky has joined #openstack-manila08:27
*** mmethot has quit IRC10:03
*** mmethot has joined #openstack-manila10:04
*** mmethot has quit IRC10:34
*** mmethot has joined #openstack-manila10:42
*** pcaruana has quit IRC11:03
*** pcaruana has joined #openstack-manila11:06
*** enriquetaso has joined #openstack-manila11:41
*** dviroel has joined #openstack-manila11:47
*** mmethot has quit IRC11:52
*** mmethot has joined #openstack-manila11:52
*** mmethot has quit IRC11:58
*** mmethot has joined #openstack-manila12:09
*** jcollin has quit IRC12:25
*** enriquetaso has quit IRC13:01
*** enriquetaso has joined #openstack-manila13:01
*** enriquetaso has quit IRC13:07
*** FlorianFa has joined #openstack-manila13:22
*** mmethot has quit IRC13:24
*** mmethot has joined #openstack-manila13:30
*** enriquetaso has joined #openstack-manila13:51
*** senrique_ has joined #openstack-manila13:54
*** enriquetaso has quit IRC13:56
*** pcaruana has quit IRC13:57
*** pcaruana has joined #openstack-manila14:36
*** vhari has joined #openstack-manila14:42
vkmcmaaritamm, o/15:08
vkmcgetting back to you... little by little15:08
vkmcso, documentation for cliff https://docs.openstack.org/cliff/latest/15:08
vkmcthere we can see what the heck command.Command and command.ShowOne, etc are15:08
vkmccliff, as mentioned, is a framework for building command line programs15:08
vkmcon top of cliff, we have osclib (what we are using)15:09
vkmcwe use cliff through the osclib15:09
maaritammvkmc, o/15:09
vkmcwe add fancy stuff on top of cliff for our work15:09
vkmcso you can read in that doc I shared more about the rational of some of the abstractions we have :)15:09
vkmcthat's the human friendly documentation I was thinking about15:10
maaritammyes, that one is way more readable :) thanks!15:10
vkmccool15:10
vkmcand now I'm looking for the self.app.(...) origin15:11
openstackgerritMerged openstack/manila master: [ussuri][goal] Drop python2.7 support  https://review.opendev.org/69113415:17
gouthamr^^ end of an era ^^15:17
vkmcw00t15:18
vkmcfinally15:18
vkmcgouthamr, do you happen to know who and why decided to drop "update" for "set"/"unset" on the client?15:19
vkmcI already explained the logic to maaritamm, but I'm trying to find out is there us some historic discussion on that design decision that make things more clear15:19
gouthamrvkmc: yes, just following OSC patterns - dunno if they've documented this - lemme look15:20
vkmcyep, who defined the pattern?15:20
* vkmc git blames all the things15:20
gouthamrvkmc: one reason is that you'll need a way to "unset" stuff, and update may be confusing when you really want to delete, for example a property/metadatum on a share15:20
gouthamrvkmc: set is analogous to update - unset is special, and not everything that you can set can be unset - ex: name of a share type15:21
vkmcright now the only thing we can update is the visibility15:22
vkmcwith the current client implementation15:22
gouthamrvkmc: https://docs.openstack.org/python-openstackclient/latest/contributor/specs/commands.html15:22
gouthamrvkmc: for a share type?15:23
vkmcgouthamr, for shares15:23
gouthamrvkmc: hmmm... we should build it such that we must be able to set share metadata (called 'properties' in OSC terminology), name, description and visibility15:25
vkmcgouthamr, but capabilities... such as create_from_snapshot15:26
vkmc== true15:26
gouthamrvkmc: yep, only a finite set of things can be set, we'd have to add that list as options15:27
gouthamr"--property" would be a repeatable option that takes key=value pairs15:27
vkmcmaaritamm, ^15:28
vkmck, we can work on that list once we start with code15:28
gouthamr++15:29
vkmcthanks15:29
maaritammgreat comments, thanks, gives me a better idea about it for sure15:30
maaritammvkmc, so to get coding, what about the naming of branches and how to make the dependency from current correctly?15:46
maaritammI am on review/goutham_pacha_ravi/bp/openstack-client-support15:47
openstackgerritMerged openstack/manila master: Make extra_specs value as case-insensitive  https://review.opendev.org/68805316:07
*** irclogbot_3 has quit IRC16:14
*** irclogbot_1 has joined #openstack-manila16:15
vkmcmaaritamm, got distracted with some other stuff, sorry16:47
vkmcmaaritamm, this is the origin of the self.app.(...) call https://github.com/openstack/cliff/blob/master/cliff/command.py#L8416:48
vkmcwe define an application namespace there16:48
vkmcmaaritamm, wrt dependencies, from the current branch you are working on (that review/.../...)16:49
vkmcgit checkout -b bp/openstack-client-support16:49
vkmcthat will create a new branch depending on the change you need with the name "bp/openstack-client-support"16:50
vkmcadd all the code you need16:50
vkmcgit commit -a16:50
vkmcgit review16:50
vkmcdone :)16:50
vkmcmaaritamm, about examples, as mentioned, looking on how other projects did stuff is very helpful, e.g. https://github.com/openstack/python-openstackclient/blob/master/openstackclient/volume/v2/volume.py#L48516:51
vkmcthat's the set volume implementation16:51
vkmcthat's cinder, the block storage service for openstack16:52
vkmc(if you notice, the code for cinder in openstack client lives in the python-openstackclient repo instead of in their client repo, they are not a plugin like us)16:52
vkmc(they wanted to change that some time ago... so don't speak too loud about this one or they will try to drag you to their project to do so)16:53
vkmcmaaritamm, let me know if there is anything else16:53
maaritammvkmc, awesome, thanks!16:53
maaritammlots of good info :)16:54
*** lpetrut has quit IRC17:07
*** lpetrut has joined #openstack-manila17:08
*** lpetrut has quit IRC17:20
*** ganso has quit IRC19:19
*** tosky has quit IRC19:21
*** mmethot has quit IRC19:40
*** vhari has quit IRC20:08
*** ganso has joined #openstack-manila20:08
*** pcaruana has quit IRC20:19
openstackgerritMerged openstack/manila master: PowerMax and VNX Manila - Read only policy is not working correctly  https://review.opendev.org/69187820:57
*** deshipu has left #openstack-manila20:58
*** ganso has quit IRC21:09
*** eharney has quit IRC21:43
*** dviroel has quit IRC21:58
*** Reepicheep has quit IRC23:10
*** Reepicheep has joined #openstack-manila23:10
*** irclogbot_1 has quit IRC23:11
*** irclogbot_2 has joined #openstack-manila23:12

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