Wednesday, 2020-11-18

*** artom has quit IRC00:21
*** artom has joined #openstack-sdks00:22
*** artom has quit IRC01:04
*** jawad_axd has quit IRC01:19
openstackgerritMerged openstack/openstacksdk master: Remove duplicate test_zone_create  https://review.opendev.org/76306201:22
openstackgerritMerged openstack/python-openstackclient master: trivial: Document removal of support for agents  https://review.opendev.org/76282501:22
openstackgerritEmilien Macchi proposed openstack/openstacksdk stable/victoria: Don't set list_type to dict for server groups.  https://review.opendev.org/76311903:01
openstackgerritEmilien Macchi proposed openstack/openstacksdk stable/ussuri: Don't set list_type to dict for server groups.  https://review.opendev.org/76312003:01
openstackgerritEmilien Macchi proposed openstack/openstacksdk stable/train: Don't set list_type to dict for server groups.  https://review.opendev.org/76312103:01
*** brinzhang has joined #openstack-sdks03:03
*** evrardjp has quit IRC05:33
*** evrardjp has joined #openstack-sdks05:33
*** rpittau|afk is now known as rpittau06:49
*** nikparasyr has joined #openstack-sdks06:54
*** gtema has joined #openstack-sdks07:29
*** ralonsoh has joined #openstack-sdks07:31
*** slaweq has joined #openstack-sdks07:43
*** dtantsur|afk is now known as dtantsur07:51
*** lbragstad_ has joined #openstack-sdks08:18
*** lbragstad has quit IRC08:22
*** iurygregory has quit IRC08:44
*** tosky has joined #openstack-sdks08:45
*** Hybrid512 has joined #openstack-sdks08:48
*** iurygregory has joined #openstack-sdks08:50
*** jpich has joined #openstack-sdks09:03
*** slaweq has quit IRC09:17
*** slaweq has joined #openstack-sdks09:19
*** yolanda__ has joined #openstack-sdks09:50
*** yoctozepto has quit IRC09:50
*** brinzhang_ has joined #openstack-sdks09:51
*** yoctozepto has joined #openstack-sdks09:51
*** brinzhang has quit IRC09:54
stephenfingtema: I was finished for the evening, but I'm here now09:54
gtemaoki, no problem10:01
gtema"openstack aggregate cache image __aggregate__ __im1__ __im2__ __im3__" is not cool from my pov10:01
stephenfinProbably best to look at the reply I just left on the review. I'm not recommending this in isolation: there are numerous other examples of this is OSC already10:03
gtemawell, from what I see when we support multiple inputs under the resource - it is a named parameter10:04
gtemaso for me in this case it is really using a named param and not positional10:04
gtemawhile positional is used only for i.e. deleting multiple resources10:04
stephenfinSee my reply. That's not true with OSC today. There are other non-deletion examples of passing multiple child resources10:05
stephenfinAnd personally I'd like to expand (in a follow-up, of course) some of the ones that only accept a single child resource to accept multiple child resources, e.g. 'aggregate add host'10:06
gtemafor me the "object create _container_ _file1_ _file2_" is example where we do this10:07
gtemasince deletion is not fitting as example - it is top resource10:07
stephenfinYes, that's fair. 'object create' is a valid thing too though, and proves that this can work10:07
gtemaI know it can work like that10:08
gtemait's just in my experience this is not a good UX10:08
stephenfinPositional arguments wouldn't make sense for something like 'flavor create'. i.e. you wouldn't do 'flavor create 512 4 0' instead of 'flavor create --ram 512 --vcpu 4 --disk 0'10:08
stephenfinbut that's because those additional arguments are attributes of the resource. Also, they're all different meaning it's impossible to parse10:09
gtemaexactly, and one step further if in one call you want to create multiple flavors ...10:09
gtemahere images are also arguments to the aggregate10:09
stephenfinthey're not though10:09
stephenfinthey're resources in their own right10:09
stephenfinthe command is called 'aggregate cache image'10:10
stephenfinso you're caching an <image> for an <aggregate>; those are two separate resources and there aren't multiple attributes to be set10:10
gtemawell yes. When you use named params you can really mix positions of positional and named ones10:11
gtemacreate image _name_ --param1 --param210:12
gtemaand10:12
gtemacreate image --param1 name --param210:12
gtemawith this way of using only positional ones you have absolutely no choice10:12
stephenfinI don't think this is an issue10:13
gtema:) - for me yes. When you use IDs instead of names you have no clue looking to the command you type whether order is right or not10:13
gtemaI was having with that pretty much problems in DNS area10:14
stephenfintraditional would dictate if your command is called '<resource_a> <action> <resource_b>', then the invocation of that looks like '<resource_a> <resource_b>'10:14
gtema"image cache cde42cs abcdef46423 cbfedf454334" - what is what10:14
stephenfin'server add floating ip' -> 'SERVER FLOATING_IP'; 'aggregate add host' -> 'AGGREGATE HOST'10:15
stephenfinthe first one is the aggregate, of course :)10:15
gtemacan you add multiple FIPs in same command?10:15
stephenfinno, because the FIPs have an optional attribute10:16
stephenfin(fixed IP address)10:16
gtemaaggregate add host also doesn'T allow multiple hosts10:16
stephenfin<stephenfin> And personally I'd like to expand (in a follow-up, of course) some of the ones that only accept a single child resource to accept multiple child resources, e.g. 'aggregate add host'10:16
gtema:D10:17
stephenfinand again, 'object create' does, so we have prior art here10:17
gtemaI started SDK change for adding host support and was pulling hears from my head yesterday10:17
stephenfin:-D OSC and openstacksdk are both opinionated libraries. It's fair to expect strong opinions ;)10:18
gtemathat's true10:18
stephenfinAlso, to my credit, I think the rest of my reviews have been fair and I've caught a good few bugs10:18
gtemalet me perhaps say like that: you come from nova, so I expect you more to be responsible for the nova CLIs10:19
gtemato your credit - sure. Great work10:20
stephenfinIf the concern is purely with the fact that you can specify multiple images, then I'd be okay with only accepting a single image, i.e. 'aggregate cache image AGGREGATE IMAGE'10:20
stephenfinPeople can always invoke it multiple times10:20
stephenfinI really do think positional is the way to go though, and the fact that mriedem said the same (and dansmith didn't argue with him) helps my case10:21
* stephenfin wishes we'd dtroyer around to settle things for us10:21
gtemayeah yeah, doing that10:21
gtemanice hint with another patch - haven't seen that10:25
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: compute: Fix 'server * -f yaml' output  https://review.opendev.org/76120510:26
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: compute: Fix 'usage * -f yaml' output  https://review.opendev.org/76159510:26
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: compute: Fix 'server group * -f yaml' output  https://review.opendev.org/76159610:26
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: compute: Fix 'hypervisor show -f yaml' output  https://review.opendev.org/76300410:26
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: Add support for 'server group create --rule' parameter  https://review.opendev.org/76159710:26
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: trivial: Use plural for appended parameters  https://review.opendev.org/76159810:26
openstackgerritArtem Goncharov proposed openstack/python-openstackclient master: Switch compute aggregate functions to SDK  https://review.opendev.org/76213410:26
gtemahere you go10:26
stephenfinthanks :)10:27
openstackgerritAnanya proposed openstack/ansible-collections-openstack master: migrating routers_info from AnsibleModule to OpenStackModule  https://review.opendev.org/76314910:27
gtemastephenfin, do you think we need to cover reboot/shutdown/start host stuff in SDK?10:29
gtemaI think OSC currently doesn't support those10:29
stephenfinThe SDK is supposed to be complete, but that API (os-hosts) is deprecated and the things we said to use instead (os-hypervisors, os-services) are present in 2.1 iirc10:30
gtemainvesting time in deprecated/dropped functionality is hard10:30
stephenfinSo I think it's exceptionally low priority, IMO. I wouldn't bother, personally10:30
gtemapretty much same for me10:31
gtemamy plan was to get basic host ops covered in SDK to be able to use them from OSC10:31
stephenfinwe already have e.g. 'hypervisors list'10:32
stephenfinso I think you're covered there?10:32
stephenfinthat'll give you host information10:32
gtemathat's true, but if you want to fill 'openstack aggregate add host' with host check you need that10:33
gtemaor you mean hypervisors are really giving same info back?10:33
stephenfinthe latter; it's the same information exposed by both afaik10:33
gtemahm, interesting10:33
stephenfinTo be clear though, that idea was also a nice-to-have UX improvement. Converting more of the other commands to SDK like you've been doing is maybe more helpful?10:35
stephenfinI should start prefixing those comments with 'idea:' or something to distinguish them10:35
gtemaperfectly fine with that. I would be perhaps better if I work on SDK switch changes (SDK and OSC) and you improve UX10:36
stephenfinwfm :)10:36
gtemahypervisor vs host are 2 totally different set of APIs (facepalm)10:36
gtemamaking smooth transition is not easy10:37
gtemaespecially getting host details is so bad, while getting hypervisor details is ok10:37
gtemayou will participate tomorrow in a meeting, right?10:39
stephenfingtema: We could just deprecate the 'host *' commands10:39
gtemaI wanted to agree on the "order" of next switches10:39
stephenfinrather than providing a shim10:39
gtemainteresting idea. This would however mean we can't drop novaclient from deps in a long run10:39
stephenfinit's not like we'll break older clouds; those have os-hypervisors and os-services too10:40
gtemawe did that with glance10:40
stephenfinwe could if deprecate them for removal10:40
stephenfini.e. we'll drop novaclient in the next major version bump10:40
stephenfinfwiw, we have the same issue with commands like 'server add floating ip'10:40
gtemaI was personally thinking to do a major bump with nova switch, so we can take it with us10:41
stephenfinthose use deprecated "orchestration" APIs; I've seen patches to replace some of those with client side equivalents but I'm not sure if that's better than asking people to do this stuff manually10:41
stephenfinas for the meeting, that's a 14:00 UTC, yeah? I can be there10:41
gtemaso you suggest not to deal with host (SDK/OSC) as of now at all?10:42
stephenfinunless you really want to10:42
stephenfinjust deprecate the commands and remove them in a future major version bump10:42
gtemasurely not. As I said - my hears were flying around yesterday10:43
stephenfinthen let's do that; if someone complains, they can do the SDK work :)10:43
gtemaperhaps I will then finish SDK patch as is to get some sort of support10:43
gtemaoki, then I will start with hypervisors next10:44
*** belmoreira has joined #openstack-sdks10:46
openstackgerritArtem Goncharov proposed openstack/openstacksdk master: Add support for deprecated nova hosts  https://review.opendev.org/76308110:47
*** yolanda__ is now known as yolanda11:00
openstackgerritAnanya proposed openstack/ansible-collections-openstack master: Migrating routers_info from AnsibleModule to OpenStackModule  https://review.opendev.org/76316211:15
openstackgerritAnanya proposed openstack/ansible-collections-openstack master: Migrating routers_info from AnsibleModule to OpenStackModule  https://review.opendev.org/76316211:28
*** jpich has quit IRC11:29
*** jpich has joined #openstack-sdks11:29
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: Add 'server shelve --offload', 'server shelve --wait' options  https://review.opendev.org/76239611:36
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: Add 'server unshelve --wait' option  https://review.opendev.org/76316611:36
*** slaweq has quit IRC11:39
*** slaweq has joined #openstack-sdks11:44
openstackgerritStephen Finucane proposed openstack/python-openstackclient master: compute: Add 'server show --topology' option  https://review.opendev.org/68092811:53
openstackgerritMerged openstack/openstacksdk master: Add update_flavor method  https://review.opendev.org/76298912:07
openstackgerritMerged openstack/openstacksdk master: Complete compute aggregate functions  https://review.opendev.org/76213112:08
openstackgerritMerged openstack/openstacksdk stable/victoria: Don't set list_type to dict for server groups.  https://review.opendev.org/76311912:08
*** enriquetaso has joined #openstack-sdks13:01
*** dtantsur is now known as dtantsur|brb13:06
*** artom has joined #openstack-sdks13:17
stephenfingtema: FYI https://review.opendev.org/#/c/763178/13:26
stephenfinthat should unblock your aggregate and flavor OSC changes13:27
gtemahmm, I wanted to go with hypervisors further, but ok13:27
gtemado not really want to make release each week ;-), but is still required13:28
stephenfinmeh, releases are cheap :)13:28
openstackgerritMerged openstack/python-openstackclient master: Add a few selectable fields to the "openstack server list" output  https://review.opendev.org/74118113:28
openstackgerritMerged openstack/openstacksdk master: Update TOX_CONSTRAINTS_FILE  https://review.opendev.org/76105513:28
openstackgerritMerged openstack/python-openstackclient master: update lower-constraints.txt  https://review.opendev.org/76027013:28
stephenfinbut we can wait of course, if you'd prefer13:29
gtemayes, they are13:29
gtemaalready +1-ed13:29
stephenfinsweet13:30
gtemahypervisors API is also not so straight forward13:32
gtemabut not that bad as host13:32
*** jpich has quit IRC14:01
*** jpich has joined #openstack-sdks14:02
openstackgerritGregory Thiemonge proposed openstack/openstacksdk master: Add tls_enabled param for Octavia Pools  https://review.opendev.org/76318914:16
openstackgerritGregory Thiemonge proposed openstack/openstacksdk master: Add tls_enabled param for Octavia Pools  https://review.opendev.org/76318914:17
*** dtantsur|brb is now known as dtantsur14:22
*** lbragstad_ is now known as lbragstad14:59
*** artom has quit IRC15:19
*** artom has joined #openstack-sdks15:22
openstackgerritArtem Goncharov proposed openstack/openstacksdk master: Complete compute.hypervisor functions  https://review.opendev.org/76320215:26
*** nikparasyr has left #openstack-sdks15:46
*** belmoreira has quit IRC16:27
*** jpich has quit IRC17:14
*** gtema has quit IRC17:22
openstackgerritRodolfo Alonso Hernandez proposed openstack/python-openstackclient master: Add "fields" parameter to ListPort query  https://review.opendev.org/75411717:42
openstackgerritStephen Finucane proposed openstack/cliff master: trivial: Remove references to Python 2.7  https://review.opendev.org/76033418:06
*** dtantsur is now known as dtantsur|afk18:15
*** LinPeiWen67 has quit IRC18:26
*** ralonsoh has quit IRC18:31
-openstackstatus- NOTICE: The Gerrit service at review.opendev.org is being restarted quickly as a pre-upgrade sanity check, estimated downtime is less than 5 minutes.18:36
*** rpittau is now known as rpittau|afk18:39
*** openstackgerrit has quit IRC19:02
*** efried has quit IRC19:18
*** Hybrid512 has quit IRC19:38
*** openstackgerrit has joined #openstack-sdks19:56
openstackgerritMerged openstack/cliff master: Remove six  https://review.opendev.org/75468319:56
*** efried has joined #openstack-sdks20:31
*** ricolin has quit IRC20:40
*** slaweq has quit IRC20:58
openstackgerritMerged openstack/cliff master: trivial: Remove references to Python 2.7  https://review.opendev.org/76033421:08
*** slaweq has joined #openstack-sdks21:30
openstackgerritMerged openstack/openstacksdk master: Add tls_enabled param for Octavia Pools  https://review.opendev.org/76318921:42
*** slaweq has quit IRC22:16
*** vkmc has quit IRC22:26
*** vkmc has joined #openstack-sdks22:26
*** johnsom has quit IRC22:27
*** johnsom has joined #openstack-sdks22:29
*** holser has quit IRC23:35

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