Wednesday, 2020-07-15

*** ricolin_ has joined #openstack-sdks00:59
*** evrardjp has quit IRC04:33
*** evrardjp has joined #openstack-sdks04:33
*** ralonsoh has joined #openstack-sdks06:48
*** holser has joined #openstack-sdks07:04
*** jpich has joined #openstack-sdks07:32
*** nightmare_unreal has joined #openstack-sdks07:35
nightmare_unrealamito:  yes . I basically want openstack server list output with different columns selection07:36
nightmare_unrealamotoki:  i was hoping to get something like this : "openstack server list -c project_id "07:36
amotokinightmare_unreal: I thought something similar before. Is your point to specify a (non-default) field in -c option without --long option, right?07:42
amotokinightmare_unreal: "openstack server list -c project_id " only shows project IDs of servers, so I am a bit confused on what you would like to do.07:42
amotokinightmare_unreal: or would you like to add columns by -c option? it might be another discussion but if so we cannot change -c option behavior (as it affects existing users)07:44
nightmare_unrealyes amotoki07:44
nightmare_unrealexactly07:44
amotokinightmare_unreal: yes for which one?07:45
nightmare_unrealyou got the point 1st point07:45
nightmare_unreal"I thought something similar before. Is your point to specify a (non-default) field in -c option without --long option, right?"07:45
nightmare_unrealthis amotoki ^07:45
*** dtantsur|afk is now known as dtantsur07:45
amotokinightmare_unreal: thanks for clarification. It sounds a good improvement.07:45
*** tosky has joined #openstack-sdks07:46
nightmare_unrealyeah, that's where I am stuck amotoki  . I am not sure where to start07:46
nightmare_unrealshould I look into cliff because it shows output or the CLI server.py file07:46
nightmare_unrealwhere the data is generated07:46
nightmare_unreali have submitted story here : https://storyboard.openstack.org/#!/story/200792507:48
amotokinightmare_unreal: IIRC fields aree filtered at https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/compute/v2/server.py#L153907:51
amotokinightmare_unreal: "columns" are defined conditionally based on --long option https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/compute/v2/server.py#L1381-L144507:52
nightmare_unrealyeah that's where I am confused. If we don't specify --long option how can we even get the output for the columns .because "openstack server list" has limited output07:54
*** also_stingrayza is now known as stingrayza07:54
amotokiperhaps it needs some refactoring so that columns specified in -c option are picked up (including a map between a real field name and a display name)07:56
amotokiwe also need to consider the consistency across commands....07:57
nightmare_unrealyeah that too07:57
nightmare_unrealthing is -c option is parsed by cliff07:57
nightmare_unrealhttps://opendev.org/openstack/cliff/src/branch/master/cliff/display.py#L6907:58
amotokinightmare_unreal: so the question is whether cliff app (like OSC command) can access options defined in cliff.08:02
nightmare_unrealyeah , because i don't think -c is handled/accessed by osc cli . '08:03
amotokinightmare_unreal: another approach is that cliff provides a convenient function to handle columns.08:03
nightmare_unrealamotoki:  not sure this is right approach but can we add argument to parse (-c ) in server.py and search the result based on that ?08:04
amotokinightmare_unreal: -c option is already parsed. I think you can access the parsed result by parsed_args.columns, can't you?08:05
nightmare_unrealTrue https://opendev.org/openstack/cliff/src/branch/master/cliff/display.py#L98 but if the column doesn't exist in "openstack server list" or any other command . it will output no recognized column08:08
amotokinightmare_unreal: I didn't get your point. I think you need to adjust 'columns' in ListServer in server.py to take into account parsed_args.columns.08:09
nightmare_unrealgot it amotoki . I understand now. I was assuming the parsed_args.column was not accessible in server.py but it is08:11
nightmare_unrealthat makes sense08:11
amotokinightmare_unreal: :)08:19
nightmare_unrealThanks :)08:19
*** dmsimard has quit IRC08:25
*** dmsimard has joined #openstack-sdks08:26
*** ricolin_ has quit IRC09:49
*** vapjes has quit IRC09:59
*** sshnaidm is now known as sshnaidm|afk10:24
*** gtema has joined #openstack-sdks10:50
*** tosky has quit IRC11:05
*** tosky has joined #openstack-sdks11:10
*** gtema has quit IRC11:10
*** jpich has quit IRC11:45
*** jpich has joined #openstack-sdks11:46
*** mgariepy has joined #openstack-sdks12:09
*** enriquetaso has joined #openstack-sdks12:23
*** tkajinam has quit IRC12:24
*** vapjes has joined #openstack-sdks12:35
*** sshnaidm|afk is now known as sshnaidm12:53
*** gtema has joined #openstack-sdks13:11
openstackgerritjayaditya gupta proposed openstack/python-openstackclient master: Add a few selectable fields to the "openstack server list" output  https://review.opendev.org/74118113:12
*** gtema has quit IRC13:16
openstackgerritLance Bragstad proposed openstack/python-openstackclient master: Bypass user and group verification in RemoveRole  https://review.opendev.org/74038014:10
*** also_stingrayza has joined #openstack-sdks14:17
*** stingrayza has quit IRC14:21
*** efried has quit IRC14:31
*** efried has joined #openstack-sdks14:36
*** efried has quit IRC14:40
*** dave-mccowan has quit IRC14:43
*** dave-mccowan has joined #openstack-sdks14:48
*** efried has joined #openstack-sdks14:51
*** jpich has quit IRC16:08
*** mgariepy has quit IRC16:22
*** mgariepy has joined #openstack-sdks17:09
*** dtantsur is now known as dtantsur|afk17:18
*** senrique_ has joined #openstack-sdks17:22
*** enriquetaso has quit IRC17:24
*** nightmare_unreal has quit IRC17:44
*** senrique__ has joined #openstack-sdks18:05
*** senrique_ has quit IRC18:07
openstackgerritArtom Lifshitz proposed openstack/openstacksdk master: WIP: Test and record keypair max microversion  https://review.opendev.org/74129518:13
*** larsks has joined #openstack-sdks18:14
*** slaweq has joined #openstack-sdks18:21
*** tosky has quit IRC18:25
*** tosky has joined #openstack-sdks18:25
*** KeithMnemonic has joined #openstack-sdks19:12
openstackgerritArtom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10  https://review.opendev.org/74129519:41
openstackgerritArtom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10  https://review.opendev.org/74129519:48
openstackgerritArtom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10  https://review.opendev.org/74129519:49
*** ralonsoh has quit IRC19:49
*** slaweq has quit IRC20:29
*** senrique__ has quit IRC20:35
openstackgerritmanasareddybethi proposed openstack/python-openstackclient master: Fix the functional tests that run example files  https://review.opendev.org/74132021:30
*** logan- has quit IRC22:17
*** logan- has joined #openstack-sdks22:19
*** vapjes has quit IRC22:33
*** tosky has quit IRC22:48
*** tkajinam has joined #openstack-sdks22:55
*** tkajinam has quit IRC22:55
*** tkajinam has joined #openstack-sdks22:58
openstackgerritmanasareddybethi proposed openstack/python-openstackclient master: Fix the testcases that try to delete already deleted volume snapshots  https://review.opendev.org/74134423:59

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