Earlier  
Posted Nick Remark
#openstack-nova - 2020-04-08
09:53:29 gibi (Pdb)
09:53:42 gibi and ovo converst the non empty string ('False') to True automatically
09:55:09 gibi the schema enforces the boolean-ness of the field but we did not covert it to boolean
09:59:49 gibi yep, I confirmed that the string boolean conversion is missing
09:59:59 gibi filing bug...
10:00:57 brinzhang_ gibi: yeah, happened in https://review.opendev.org/#/c/693828/27/nova/api/openstack/compute/volumes.py@454
10:01:54 gibi yep, a bool_from_string calls is missing there, and also we don't have proper test coverage as we did not catch the bug
10:02:17 gibi I'm filling a bug, do you have time to start creating a fix?
10:02:49 brinzhang_ gibi: of course
10:03:02 gibi thanks, I wil link the bug here soon
10:03:14 brinzhang_ gibi: thanks
10:08:28 gibi brinzhang_: https://bugs.launchpad.net/nova/+bug/1871598
10:08:29 openstack Launchpad bug 1871598 in OpenStack Compute (nova) "PUT /servers/{server_id}/os-volume_attachments/{volume_id} does not update delete_on_termination from True to False" [Medium,Triaged]
10:08:58 brinzhang_ gibi: I will fix it today, before I get home
10:09:02 gibi brinzhang_: thanks
10:09:11 gibi ping me when you push the fix and I will review it
10:09:17 brinzhang_ gibi: np
10:20:23 openstackgerrit Stephen Finucane proposed openstack/nova master: Introduce 'pcpuset' field for InstanceNUMACell https://review.opendev.org/714658
10:20:23 openstackgerrit Stephen Finucane proposed openstack/nova master: hardware: Remove '_numa_fit_instance_cell_with_pinning' https://review.opendev.org/714703
10:20:24 openstackgerrit Stephen Finucane proposed openstack/nova master: hardware: Add support for 'hw:cpu_dedicated_mask' extra spec https://review.opendev.org/714706
10:20:24 openstackgerrit Stephen Finucane proposed openstack/nova master: Introduce the 'CPUAllocationPolicy.MIXED' enum https://review.opendev.org/716267
10:20:25 openstackgerrit Stephen Finucane proposed openstack/nova master: Calculate the pinned and unpinned CPU usage for mixed instance https://review.opendev.org/716269
10:20:25 openstackgerrit Stephen Finucane proposed openstack/nova master: computer: validate cpu pinning configuration for mixed instance https://review.opendev.org/716268
10:20:26 openstackgerrit Stephen Finucane proposed openstack/nova master: libvirt/hardware: refactor numa_get_constraints https://review.opendev.org/718294
10:20:26 openstackgerrit Stephen Finucane proposed openstack/nova master: mark mixed policy as ready, bump compute service version https://review.opendev.org/716271
10:20:27 openstackgerrit Stephen Finucane proposed openstack/nova master: metadata: export the vCPU IDs that are pinning on the host CPUs https://review.opendev.org/688936
10:20:27 openstackgerrit Stephen Finucane proposed openstack/nova master: Setup 'mixed' instance through 'PCPU' and 'VCPU' resource https://review.opendev.org/713355
10:27:08 gibi stephenfin: one question / nit in https://review.opendev.org/#/c/717789/2/nova/api/validation/extra_specs/validators.py@50
10:32:11 stephenfin gibi: Replied. I'll have a test shortly
10:33:25 alex_xu gibi: quick question, I don't think we need obj_make_compatible method for notification object, right? https://review.opendev.org/#/c/714658/6/nova/notifications/objects/request_spec.py@187
10:36:52 openstackgerrit Stephen Finucane proposed openstack/nova master: Follow-up for flavor-extra-spec-validators series https://review.opendev.org/718357
10:37:54 gibi stephenfin: thanks. +A
10:38:04 stephenfin ta
10:38:49 gibi alex_xu: at the momen there is no way to ask nova to emit older than the latest version of the notifications. So obj_make_compatible is unused for notification ovos
10:39:00 gibi alex_xu: so no, we don't need it
10:40:39 alex_xu gibi: thanks
10:54:06 openstackgerrit Brin Zhang proposed openstack/nova master: Convert delete_on_termination from string to boolean https://review.opendev.org/718387
10:54:21 brinzhang gibi: fixed done, pls review https://review.opendev.org/718387
10:56:09 openstackgerrit Stephen Finucane proposed openstack/nova master: Follow-up for flavor-extra-spec-validators series https://review.opendev.org/718357
10:56:16 stephenfin bauzas: had to respin that ^
10:56:27 bauzas ack
10:57:25 gibi brinzhang: ack, will check, thanks
11:02:38 openstackgerrit Merged openstack/nova master: Add new default roles in security group policies https://review.opendev.org/716793
11:11:53 openstackgerrit Merged openstack/nova master: Allow versioned discovery unauthenticated https://review.opendev.org/685181
11:12:01 openstackgerrit Merged openstack/nova master: Fix new context comparison workaround in base tests class https://review.opendev.org/717825
11:20:39 openstackgerrit Brin Zhang proposed openstack/python-novaclient master: Microversion 2.85: Change volume-update CLI https://review.opendev.org/712651
11:22:06 lyarwood https://review.opendev.org/#/q/topic:workaround_native_luksv1+status:open+project:openstack/nova - looking for core reviews on this btw, appreciate everyone is busy ahead of M3 but wanted to ask anyway.
11:22:48 brinzhang_ gibi, lyarwood: novalient for microversion 2.85 updated too.
11:23:11 gibi brinzhang_: ack
11:34:26 gibi stephenfin: feedback in https://review.opendev.org/#/c/708436/ would you like to fix it in a FUP?
11:34:57 lyarwood brinzhang_: ack thanks, I think the call to bool_from_string should use strict=True
11:37:25 brinzhang_ lyarwood: I looked you comment, agree add strict=True
11:45:16 brinzhang_ lyarwood: [True, 'True', 'TRUE', 'true', '1', 'ON', 'On', 'on', 'YES', 'Yes', 'yes'] for true, [False, 'False', 'FALSE', 'false', '0', 'OFF', 'Off', 'off', 'NO', 'No', 'no'] for False, does them all tests?
11:45:33 brinzhang_ if yes, I will do a for cycle to test
11:45:55 sean-k-mooney what is this for?
11:46:59 sean-k-mooney if your trying to do string to bool conversion use https://github.com/openstack/oslo.utils/blob/master/oslo_utils/strutils.py#L123-L158
11:47:15 sean-k-mooney if you use bool_from_string you dont need to test all the combinations
11:47:20 sean-k-mooney we know the oslo function works
11:47:23 lyarwood brinzhang_: I don't think we need to test them all but just more than False
11:48:07 lyarwood brinzhang_: and a bad value obviously
11:49:16 openstackgerrit Merged openstack/nova master: Add test coverage of existing simple tenant usage policies https://review.opendev.org/717546
11:49:28 openstackgerrit Merged openstack/nova master: Add test coverage of existing server migrations policies https://review.opendev.org/717531
11:49:45 openstackgerrit Merged openstack/nova master: Fix server tags policy to be admin_or_owner https://review.opendev.org/717947
11:49:54 openstackgerrit Merged openstack/nova master: Add test coverage of existing server tags policies https://review.opendev.org/717425
11:50:04 brinzhang ok, I will add a true value e.g. '1' to tests
11:50:05 openstackgerrit Merged openstack/nova master: Introduce scope_types in server tags policy https://review.opendev.org/717948
11:50:14 openstackgerrit Merged openstack/nova master: Add new default roles in server tags policies https://review.opendev.org/717954
11:50:22 openstackgerrit Merged openstack/nova master: Introduce scope_types in server migration https://review.opendev.org/717588
11:50:32 openstackgerrit Merged openstack/nova master: Add new default roles in server migration policies https://review.opendev.org/717590
11:50:41 brinzhang lyarwood: what is the bad value? can you give me a example? I used 'x' to test that it's false
11:50:41 openstackgerrit Merged openstack/nova master: Fix server password policy to be admin_or_owner https://review.opendev.org/717212
11:50:48 openstackgerrit Merged openstack/nova master: Add test coverage of existing server password policies https://review.opendev.org/717204
11:50:55 openstackgerrit Merged openstack/nova master: Introduce scope_types in server password policy https://review.opendev.org/717415
11:51:08 openstackgerrit Merged openstack/nova master: Pass the actual target in server migration policy https://review.opendev.org/717591
11:52:03 lyarwood brinzhang: None with strict=True
11:55:47 gibi stephenfin: does the extra_spec series still depends on the tempest fix? as far as I see tempest uses top level keys instead of known namespaces
11:56:00 sean-k-mooney brinzhang: are you using bool_from_string because x is not a vaild value
11:56:12 sean-k-mooney brinzhang: with strict 'x' should raise an error
11:56:28 brinzhang False
11:56:28 brinzhang >>> strutils.bool_from_string('dd')
11:56:28 brinzhang >>> from oslo_utils import strutils
11:56:47 brinzhang sean-k-mooney: I test in python3
11:56:59 sean-k-mooney right that is becasue you are hitting this https://github.com/openstack/oslo.utils/blob/master/oslo_utils/strutils.py#L157-L158
11:57:18 brinzhang yeah
11:57:34 sean-k-mooney the default is false and if you dont have stict then any unrecognised value returns the default
11:59:12 brinzhang yes, the strict=Fasle, if we change this to True, it will be an invalid value
12:07:13 brinzhang lyarwood:nova.exception.ValidationError: Invalid input for field/attribute delete_on_termination. Value: xxx. 'xxx' is not one of [True, 'True', 'TRUE', 'true', '1', 'ON', 'On', 'on', 'YES', 'Yes', 'yes', False, 'False', 'FALSE', 'false', '0', 'OFF', 'Off', 'off', 'NO', 'No', 'no']
12:07:53 brinzhang while I change the value to error, it cannot pass the schema check, do I necessary to do the bad value test?
12:10:00 lyarwood brinzhang: ah no then sorry, the schema check is enough.
12:10:14 lyarwood brinzhang: but we should still leave strict=True on to be safe
12:10:18 brinzhang lyarwood: yeah, I will give up this test
12:10:38 brinzhang and add body['volumeAttachment']['delete_on_termination'] = '1' to assertTure()
12:11:10 brinzhang lyarwood: yes, I was added strict=True to the bool_from_string()
12:11:27 lyarwood brinzhang: ack yeah anything to assert true being passed in would be nice to have
12:14:30 stephenfin gibi: Oh, that's a good point. It probably doesn't now :)
12:14:45 gibi \o/
12:16:13 openstackgerrit Brin Zhang proposed openstack/nova master: Convert delete_on_termination from string to boolean https://review.opendev.org/718387
12:16:15 jkulik is there anything in or around nova, that would help defragment host memory? move VMs around, so that a bigger VM can fit on a host again
12:16:28 brinzhang lyarwood, sean-k-mooney: update done.
12:16:42 brinzhang good morning all, have a nice day, bye.

Earlier   Later