*** ricolin_ has joined #openstack-sdks | 00:59 | |
*** evrardjp has quit IRC | 04:33 | |
*** evrardjp has joined #openstack-sdks | 04:33 | |
*** ralonsoh has joined #openstack-sdks | 06:48 | |
*** holser has joined #openstack-sdks | 07:04 | |
*** jpich has joined #openstack-sdks | 07:32 | |
*** nightmare_unreal has joined #openstack-sdks | 07:35 | |
nightmare_unreal | amito: yes . I basically want openstack server list output with different columns selection | 07:36 |
---|---|---|
nightmare_unreal | amotoki: i was hoping to get something like this : "openstack server list -c project_id " | 07:36 |
amotoki | nightmare_unreal: I thought something similar before. Is your point to specify a (non-default) field in -c option without --long option, right? | 07:42 |
amotoki | nightmare_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 |
amotoki | nightmare_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_unreal | yes amotoki | 07:44 |
nightmare_unreal | exactly | 07:44 |
amotoki | nightmare_unreal: yes for which one? | 07:45 |
nightmare_unreal | you got the point 1st point | 07: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_unreal | this amotoki ^ | 07:45 |
*** dtantsur|afk is now known as dtantsur | 07:45 | |
amotoki | nightmare_unreal: thanks for clarification. It sounds a good improvement. | 07:45 |
*** tosky has joined #openstack-sdks | 07:46 | |
nightmare_unreal | yeah, that's where I am stuck amotoki . I am not sure where to start | 07:46 |
nightmare_unreal | should I look into cliff because it shows output or the CLI server.py file | 07:46 |
nightmare_unreal | where the data is generated | 07:46 |
nightmare_unreal | i have submitted story here : https://storyboard.openstack.org/#!/story/2007925 | 07:48 |
amotoki | nightmare_unreal: IIRC fields aree filtered at https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/compute/v2/server.py#L1539 | 07:51 |
amotoki | nightmare_unreal: "columns" are defined conditionally based on --long option https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/compute/v2/server.py#L1381-L1445 | 07:52 |
nightmare_unreal | yeah 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 output | 07:54 |
*** also_stingrayza is now known as stingrayza | 07:54 | |
amotoki | perhaps 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 |
amotoki | we also need to consider the consistency across commands.... | 07:57 |
nightmare_unreal | yeah that too | 07:57 |
nightmare_unreal | thing is -c option is parsed by cliff | 07:57 |
nightmare_unreal | https://opendev.org/openstack/cliff/src/branch/master/cliff/display.py#L69 | 07:58 |
amotoki | nightmare_unreal: so the question is whether cliff app (like OSC command) can access options defined in cliff. | 08:02 |
nightmare_unreal | yeah , because i don't think -c is handled/accessed by osc cli . ' | 08:03 |
amotoki | nightmare_unreal: another approach is that cliff provides a convenient function to handle columns. | 08:03 |
nightmare_unreal | amotoki: 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 |
amotoki | nightmare_unreal: -c option is already parsed. I think you can access the parsed result by parsed_args.columns, can't you? | 08:05 |
nightmare_unreal | True 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 column | 08:08 |
amotoki | nightmare_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_unreal | got it amotoki . I understand now. I was assuming the parsed_args.column was not accessible in server.py but it is | 08:11 |
nightmare_unreal | that makes sense | 08:11 |
amotoki | nightmare_unreal: :) | 08:19 |
nightmare_unreal | Thanks :) | 08:19 |
*** dmsimard has quit IRC | 08:25 | |
*** dmsimard has joined #openstack-sdks | 08:26 | |
*** ricolin_ has quit IRC | 09:49 | |
*** vapjes has quit IRC | 09:59 | |
*** sshnaidm is now known as sshnaidm|afk | 10:24 | |
*** gtema has joined #openstack-sdks | 10:50 | |
*** tosky has quit IRC | 11:05 | |
*** tosky has joined #openstack-sdks | 11:10 | |
*** gtema has quit IRC | 11:10 | |
*** jpich has quit IRC | 11:45 | |
*** jpich has joined #openstack-sdks | 11:46 | |
*** mgariepy has joined #openstack-sdks | 12:09 | |
*** enriquetaso has joined #openstack-sdks | 12:23 | |
*** tkajinam has quit IRC | 12:24 | |
*** vapjes has joined #openstack-sdks | 12:35 | |
*** sshnaidm|afk is now known as sshnaidm | 12:53 | |
*** gtema has joined #openstack-sdks | 13:11 | |
openstackgerrit | jayaditya gupta proposed openstack/python-openstackclient master: Add a few selectable fields to the "openstack server list" output https://review.opendev.org/741181 | 13:12 |
*** gtema has quit IRC | 13:16 | |
openstackgerrit | Lance Bragstad proposed openstack/python-openstackclient master: Bypass user and group verification in RemoveRole https://review.opendev.org/740380 | 14:10 |
*** also_stingrayza has joined #openstack-sdks | 14:17 | |
*** stingrayza has quit IRC | 14:21 | |
*** efried has quit IRC | 14:31 | |
*** efried has joined #openstack-sdks | 14:36 | |
*** efried has quit IRC | 14:40 | |
*** dave-mccowan has quit IRC | 14:43 | |
*** dave-mccowan has joined #openstack-sdks | 14:48 | |
*** efried has joined #openstack-sdks | 14:51 | |
*** jpich has quit IRC | 16:08 | |
*** mgariepy has quit IRC | 16:22 | |
*** mgariepy has joined #openstack-sdks | 17:09 | |
*** dtantsur is now known as dtantsur|afk | 17:18 | |
*** senrique_ has joined #openstack-sdks | 17:22 | |
*** enriquetaso has quit IRC | 17:24 | |
*** nightmare_unreal has quit IRC | 17:44 | |
*** senrique__ has joined #openstack-sdks | 18:05 | |
*** senrique_ has quit IRC | 18:07 | |
openstackgerrit | Artom Lifshitz proposed openstack/openstacksdk master: WIP: Test and record keypair max microversion https://review.opendev.org/741295 | 18:13 |
*** larsks has joined #openstack-sdks | 18:14 | |
*** slaweq has joined #openstack-sdks | 18:21 | |
*** tosky has quit IRC | 18:25 | |
*** tosky has joined #openstack-sdks | 18:25 | |
*** KeithMnemonic has joined #openstack-sdks | 19:12 | |
openstackgerrit | Artom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10 https://review.opendev.org/741295 | 19:41 |
openstackgerrit | Artom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10 https://review.opendev.org/741295 | 19:48 |
openstackgerrit | Artom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10 https://review.opendev.org/741295 | 19:49 |
*** ralonsoh has quit IRC | 19:49 | |
*** slaweq has quit IRC | 20:29 | |
*** senrique__ has quit IRC | 20:35 | |
openstackgerrit | manasareddybethi proposed openstack/python-openstackclient master: Fix the functional tests that run example files https://review.opendev.org/741320 | 21:30 |
*** logan- has quit IRC | 22:17 | |
*** logan- has joined #openstack-sdks | 22:19 | |
*** vapjes has quit IRC | 22:33 | |
*** tosky has quit IRC | 22:48 | |
*** tkajinam has joined #openstack-sdks | 22:55 | |
*** tkajinam has quit IRC | 22:55 | |
*** tkajinam has joined #openstack-sdks | 22:58 | |
openstackgerrit | manasareddybethi proposed openstack/python-openstackclient master: Fix the testcases that try to delete already deleted volume snapshots https://review.opendev.org/741344 | 23:59 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!