Earlier  
Posted Nick Remark
#openstack-sdks - 2020-07-14
13:05:26 mordred smcginnis: I've +A'd felix's patch - I think we can cut a bugfix for osc as soon as it lands
13:05:32 smcginnis Want to abandon https://review.opendev.org/#/c/740950/ ?
13:05:38 mordred oh - you know - we should really add a release note
13:06:15 TheJulia ++
13:06:33 smcginnis I think Doug was still working on some patches, but I'm sure it's not his top priority.
13:07:00 openstackgerrit Monty Taylor proposed openstack/python-openstackclient master: Fix compatibility issue in 5.3 https://review.opendev.org/740730
13:34:50 nightmare_unreal hello I want to add more selectable fields in "openstack server list -c ". Currently columns are limited ('ID', 'Name', 'Status', 'Networks', 'Image', 'Flavor').
13:35:07 nightmare_unreal I am assuming it's more related to cliff rather than openstackclient
14:14:19 amotoki nightmare_unreal: if you would like to specify more fields in -c, you also need --long option. Is this what you want?
14:24:06 nightmare_unreal amotoki: I know about --long but I was hoping is there a way to add columns iwithout specifying --project or --user
14:34:06 amotoki nightmare_unreal: originally you talked about -c option. how are --project/--user options related?
14:34:29 amotoki nightmare_unreal: do you want to see project/user information in the output of "openstack server list"?
15:27:06 openstackgerrit Merged openstack/openstacksdk master: Functional tests to explicitly use ML2/OVS https://review.opendev.org/740706
15:27:08 openstackgerrit Merged openstack/openstacksdk master: Add block_storage find functions https://review.opendev.org/740303
16:04:03 openstackgerrit Monty Taylor proposed openstack/js-openstack-lib master: [WIP] Getting Started documentation https://review.opendev.org/351875
16:17:08 openstackgerrit Merged openstack/python-openstackclient master: Fix compatibility issue in 5.3 https://review.opendev.org/740730
17:21:41 TheJulia does it make sense to cut an osc release?
17:22:28 mordred TheJulia: yup! I will do that right now
17:23:14 TheJulia <3
17:23:42 mordred TheJulia, smcginnis: remote: https://review.opendev.org/741009 Release 5.3.1 of python-openstackclient
17:25:13 TheJulia Thanks mordred
#openstack-sdks - 2020-07-15
07:36:14 nightmare_unreal amito: yes . I basically want openstack server list output with different columns selection
07:36:56 nightmare_unreal amotoki: i was hoping to get something like this : "openstack server list -c project_id "
07:42:12 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:47 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:44:24 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:43 nightmare_unreal yes amotoki
07:44:57 nightmare_unreal exactly
07:45:03 amotoki nightmare_unreal: yes for which one?
07:45:09 nightmare_unreal you got the point 1st point
07:45:22 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:25 nightmare_unreal this amotoki ^
07:45:57 amotoki nightmare_unreal: thanks for clarification. It sounds a good improvement.
07:46:27 nightmare_unreal yeah, that's where I am stuck amotoki . I am not sure where to start
07:46:41 nightmare_unreal should I look into cliff because it shows output or the CLI server.py file
07:46:47 nightmare_unreal where the data is generated
07:48:11 nightmare_unreal i have submitted story here : https://storyboard.openstack.org/#!/story/2007925
07:51:21 amotoki nightmare_unreal: IIRC fields aree filtered at https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/compute/v2/server.py#L1539
07:52:58 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:54:03 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:56:03 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:57:14 amotoki we also need to consider the consistency across commands....
07:57:22 nightmare_unreal yeah that too
07:57:42 nightmare_unreal thing is -c option is parsed by cliff
07:58:09 nightmare_unreal https://opendev.org/openstack/cliff/src/branch/master/cliff/display.py#L69
08:02:15 amotoki nightmare_unreal: so the question is whether cliff app (like OSC command) can access options defined in cliff.
08:03:00 nightmare_unreal yeah , because i don't think -c is handled/accessed by osc cli . '
08:03:01 amotoki nightmare_unreal: another approach is that cliff provides a convenient function to handle columns.
08:04:39 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:05:44 amotoki nightmare_unreal: -c option is already parsed. I think you can access the parsed result by parsed_args.columns, can't you?
08:08:06 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:09:53 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:11:03 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:07 nightmare_unreal that makes sense
08:19:39 amotoki nightmare_unreal: :)
08:19:58 nightmare_unreal Thanks :)
13:12:56 openstackgerrit jayaditya gupta proposed openstack/python-openstackclient master: Add a few selectable fields to the "openstack server list" output https://review.opendev.org/741181
14:10:23 openstackgerrit Lance Bragstad proposed openstack/python-openstackclient master: Bypass user and group verification in RemoveRole https://review.opendev.org/740380
18:13:45 openstackgerrit Artom Lifshitz proposed openstack/openstacksdk master: WIP: Test and record keypair max microversion https://review.opendev.org/741295
19:41:02 openstackgerrit Artom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10 https://review.opendev.org/741295
19:48:39 openstackgerrit Artom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10 https://review.opendev.org/741295
19:49:40 openstackgerrit Artom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10 https://review.opendev.org/741295
21:30:12 openstackgerrit manasareddybethi proposed openstack/python-openstackclient master: Fix the functional tests that run example files https://review.opendev.org/741320
23:59:11 openstackgerrit manasareddybethi proposed openstack/python-openstackclient master: Fix the testcases that try to delete already deleted volume snapshots https://review.opendev.org/741344
#openstack-sdks - 2020-07-16
12:33:06 nightmare_unreal yoctozepto: hey, i saw your comment on https://review.opendev.org/#/c/740455/ . I am not sure but when I pass a custom property it fails to find the image but works in test case
12:56:04 yoctozepto nightmare_unreal: hi, you mean when not patched? strange :S
12:56:44 nightmare_unreal yes, when it's not patched ( the change i submitted). it misses the image but it passes the test case
12:57:05 nightmare_unreal I have provided custom image property architecture=x86_64 to my image .
12:59:03 nightmare_unreal https://usercontent.irccloud-cdn.com/file/VgzQAeVs/image_miss.png
12:59:20 nightmare_unreal yoctozepto: I have uploaded screenshot https://usercontent.irccloud-cdn.com/file/VgzQAeVs/image_miss.png
13:04:30 yoctozepto nightmare_unreal: but have you made a specific test case to test this?
13:06:15 nightmare_unreal yoctozepto: yeah, I only copied the existing test case and just passed the property( arch) but it passes.
13:06:48 nightmare_unreal yoctozepto: here : https://pastebin.com/RKp5w3fd
13:32:20 yoctozepto nightmare_unreal: create another instance that does not have this property
13:32:25 yoctozepto as this is what you are fixing
13:32:31 yoctozepto the diverse instances case
13:33:48 nightmare_unreal okay yoctozepto . i will try and update the patch
14:19:03 openstackgerrit manasareddybethi proposed openstack/python-openstackclient master: Fix the functional tests that run example files https://review.opendev.org/741320
14:54:27 nightmare_unreal yoctozepto: a stupid question but --property and --image-property are 2 different things right. I mean image has image-property and a sepearate properties right
15:00:11 yoctozepto nightmare_unreal: you mean the instance most likely; it has its own metadata as well as those from the chosen image
15:00:59 nightmare_unreal yoctozepto: so when user set "openstack image set --property " which properties he set ? image-property or user defined custom
15:01:29 nightmare_unreal yoctozepto: let's say i have a custom property "openstack image set --property easy_to_use=yes"
15:03:47 yoctozepto it's a property on the image
15:03:57 yoctozepto and you spin instances off this image
15:04:08 yoctozepto those instances have their own properties as well
15:04:16 yoctozepto hence why two names in there
15:04:53 nightmare_unreal makes sense
15:05:08 nightmare_unreal now I understand why I was facing issue
15:05:38 nightmare_unreal so openstack image create --image-property will only consider these properties : https://docs.openstack.org/glance/rocky/admin/useful-image-properties.html
15:33:49 openstackgerrit Artom Lifshitz proposed openstack/openstacksdk master: Add tests for compute microversion 2.2 and 2.10 https://review.opendev.org/741295
16:05:43 elmiko API SIG office hour open (a little late)
16:07:56 dtantsur I came today just to quickly wave since I'm going to leave soon :)
16:08:33 elmiko nice to see you, if only briefly =)
16:08:55 dtantsur \o/
16:09:02 dtantsur how is life?
16:18:18 elmiko not bad, mostly indoors these days XD
16:19:06 elmiko how's things over there?
16:28:08 dtantsur pretty calm, but doesn't feel stable
16:28:15 dtantsur covid-wise, at least
16:28:32 dtantsur otherwise, a nice cool summer (I don't like hot weather)

Earlier   Later