Friday, 2020-12-04

*** jungleboyj has quit IRC00:56
*** patrickeast has quit IRC00:56
*** patrickeast has joined #openstack-manila00:57
*** jungleboyj has joined #openstack-manila00:57
*** gouthamr has quit IRC00:57
*** gouthamr has joined #openstack-manila00:58
*** tosky has quit IRC01:01
*** LinPeiWen has quit IRC01:01
*** LinPeiWen has joined #openstack-manila02:05
*** baojg has joined #openstack-manila02:10
*** jmlowe has quit IRC03:36
*** baojg has quit IRC03:36
*** baojg has joined #openstack-manila03:37
*** jmlowe has joined #openstack-manila03:38
*** carloss has quit IRC03:41
*** baojg has quit IRC03:47
*** baojg has joined #openstack-manila03:48
*** kiwi_36 has quit IRC04:52
*** openstackgerrit has joined #openstack-manila05:35
openstackgerritzhongshengping proposed openstack/puppet-manila master: Prepare Wallaby M1  https://review.opendev.org/c/openstack/puppet-manila/+/76546505:35
*** vishalmanchanda has joined #openstack-manila05:38
*** lbragstad has quit IRC06:02
*** lbragstad has joined #openstack-manila06:03
*** maaritamm has left #openstack-manila07:00
*** maaritamm has joined #openstack-manila07:00
*** lpetrut has joined #openstack-manila07:06
openstackgerritMerged openstack/puppet-manila stable/ussuri: Add support for the interface parameter in authtoken middleware  https://review.opendev.org/c/openstack/puppet-manila/+/76526907:34
*** lpetrut has quit IRC07:46
*** LinPeiWen has quit IRC08:30
*** tkajinam has quit IRC08:31
*** tkajinam has joined #openstack-manila08:32
*** LinPeiWen has joined #openstack-manila08:57
*** tosky has joined #openstack-manila09:05
*** lpetrut has joined #openstack-manila09:07
*** LinPeiWen has quit IRC09:38
*** carloss has joined #openstack-manila11:21
*** raissa has joined #openstack-manila12:51
*** jmlowe has quit IRC14:02
*** tkajinam has quit IRC14:07
*** jmlowe has joined #openstack-manila14:25
*** jmlowe has quit IRC14:31
*** openstackgerrit has quit IRC14:37
*** jmlowe has joined #openstack-manila14:41
*** jmlowe has quit IRC14:42
*** jmlowe has joined #openstack-manila14:43
*** jmlowe has quit IRC14:50
*** jmlowe has joined #openstack-manila14:52
*** jmlowe has quit IRC14:54
*** jmlowe has joined #openstack-manila15:17
*** jmlowe has quit IRC15:29
*** jmlowe has joined #openstack-manila15:51
*** jmlowe has quit IRC16:01
*** jmlowe has joined #openstack-manila16:17
*** openstackgerrit has joined #openstack-manila16:40
openstackgerritMerged openstack/puppet-manila master: Prepare Wallaby M1  https://review.opendev.org/c/openstack/puppet-manila/+/76546516:40
*** lpetrut has quit IRC17:00
*** vishalmanchanda has quit IRC17:58
*** jmlowe has quit IRC17:58
*** jmlowe has joined #openstack-manila18:18
*** raildo has quit IRC18:21
*** jmlowe has quit IRC18:22
*** jmlowe has joined #openstack-manila18:24
*** raildo has joined #openstack-manila18:43
*** raildo has quit IRC18:45
*** raildo has joined #openstack-manila18:48
*** jmlowe has quit IRC18:52
*** jmlowe has joined #openstack-manila19:05
*** jmlowe has quit IRC19:09
*** jmlowe has joined #openstack-manila20:36
maaritammHi folks! Anyone around? I'd like to get some thoughts on something ...20:41
maaritammI am implementing another list command for osc, share replicas to be exact.20:42
maaritammAnd I did some thinkos on naming the columns ...20:43
maaritammso for manila commands we always return a table, right? And we name the columns pretty, like Share ID, Is Public and such20:43
maaritammbut for osc, one can request the response to be json, yaml, etc20:44
maaritammand now if we something like Is Public: false in yaml or json and someone tries to parse that output, having the space should cause problems, no?20:45
maaritammso we might want to have the column names as share_id, is_public and such for all?20:47
gouthamrmaaritamm: o/21:05
maaritammgouthamr \o21:05
gouthamrwe have this problem with manila client today - and I think also that it’s implemented inconsistently21:06
gouthamrWe allow filtering on the beautified columns in some cases and not the attributes themselves; and in some cases the other way around21:06
gouthamrAnd like you note, when the column names and attribute names match (and are a single word), things are fine21:07
gouthamrSo I’d look at what other osc implementations do when the attributes are multi word21:08
maaritammgotcha, yeah well, that also applies to osc then. Already now I see that we a bit of this an that21:08
maaritammso the columns for osc are always sorted for the names we give the columns21:09
maaritammI see "Created At" and "Volume ID" here https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/volume/v2/volume_snapshot.py#L25121:13
*** raissa has quit IRC21:13
gouthamrAwesome21:13
maaritammbut do we want that in json/yaml?21:14
gouthamrSo one would use “openstack share list -c ‘Is Public’”?21:14
gouthamrWe don’t prettify the json/yaml outputs?21:15
gouthamrI mean, don’t alter the attribute names in any way?21:15
maaritammnope, so the yaml would be : http://paste.openstack.org/show/800757/21:20
maaritammand json : http://paste.openstack.org/show/800759/21:22
gouthamrI see, spaces in yaml/Json keys are kind of awkward21:23
maaritammright?21:23
gouthamrBut they work, and are acceptable :) so maybe people are okay with it?21:23
maaritammah ok :D21:24
maaritammto me it looked really odd and got me thinking21:24
maaritammyeah, seems like pretty column headers are a thing https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/compute/v2/server.py#L167121:35
maaritammand yes the one will need to use “openstack share list -c ‘Is Public’”21:36
maaritammfor example "openstack share list -c id" will give an error:21:37
maaritammNo recognized column names in ['id']. Recognized columns are ['ID', 'Name', 'Size', 'Share Proto', 'Status', 'Is Public', 'Share Type Name', 'Host', 'Availability Zone'].21:37
maaritammto be fair, the error message does give the options21:38
maaritammBut I guess I'll go ahead and keep things pretty?21:38
maaritammmaybe formatting the outputs can be handled on osc side of things ...21:39
maaritammAnyway, thanks gouthamr!21:40
*** raildo has quit IRC21:59
*** tkajinam has joined #openstack-manila22:00
gouthamrmaaritamm: yes, agreed23:10
*** tosky has quit IRC23:54

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!