17:00:35 #startmeeting nova notification 17:00:36 Meeting started Tue May 8 17:00:35 2018 UTC and is due to finish in 60 minutes. The chair is gibi. Information about MeetBot at http://wiki.debian.org/MeetBot. 17:00:37 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 17:00:39 The meeting name has been set to 'nova_notification' 17:00:54 let's have a quick one 17:00:55 o/ 17:01:19 I have two things on my list 17:01:38 #link https://review.openstack.org/#/c/563269 Add notification support for trusted_certs 17:02:05 it seemed problematic last week as the trusted_certs field is lazy loaded 17:02:35 but I think we agreed with the author to add this only to the instance.create and instance.rebuild notification where as the cert cannot change elsewhere 17:02:54 but I wanted to mention here so you can disagree :) 17:03:07 hmm, 17:03:15 well, alternatively we add a config option like we have for bdms 17:03:37 because otherwise the REST API returns something that isn't in the instance payloads 17:03:45 for everything but instance create and rebuild 17:03:45 yeah I listed the alternatives here https://review.openstack.org/#/c/563269/6/nova/notifications/objects/instance.py@122 17:04:34 we have precedent for each alternative 17:04:54 bdms uses config option, keypair only added to instance.create 17:05:08 i just left a comment, 17:05:17 microversion 2.54 allows changing keypair on instance rebuild 17:05:29 so we're missing something for that, i didn't know we only sent keypairs during instance.create notifications 17:05:52 for trusted_certs, i'd follow the bdm config option route 17:06:10 since anyone using that is going to have to configure the system differently anyway 17:06:14 I can dig up how we reasoning if the keypair solution from past reviews 17:07:48 that was the keypair patch #link https://review.openstack.org/#/c/463001/ 17:08:03 based on the commit message tags are also handled like keypair 17:09:08 anyhow if you feel that the config way is more appropriate in this case then I'm not against that 17:09:41 i don't care too much either way 17:09:52 but i think the rebuid notification is missing the new keypair now, which is a bug 17:09:57 for microversion 2.54 17:10:15 mriedem: I agree on the keypair rebuild bug 17:10:23 I can file the bug report and push a quick fix tomorrow 17:10:52 ahh it wont be a quick one 17:11:11 the rebuild notification needs a payload type to incorporate the keypair 17:11:23 similarly as proposed in the trusted cert patch 17:11:53 looking at "instance.rebuild.end" it has a key_name field 17:12:00 https://docs.openstack.org/nova/latest/reference/notifications.html#versioned-notification-samples 17:13:07 I see. Then the difference is that every instance action has a key_name in the payload but the instance.create has the full keypair object in it 17:13:46 right 17:14:18 so keypair is different from trusted_cert 17:14:20 yup i see the KeypairPayload in the instance.create.start notification 17:15:00 this means that we dont have a bug in 2.54 17:15:06 well, 17:15:09 I assume the key_name field will be correct 17:15:13 it is, 17:15:34 but if instance.create.* needed a KeypairPayload field, presumably that same full KeypairPayload should be in instance.rebuild if we rebuild with a new keypair 17:16:12 OK, I rephrase my statement. We have a smaller bug in 2.54 17:16:24 i'm not sure why we have a full keypairs field for instance.create in the first place 17:16:33 yes agree it's low priority 17:17:29 anyway, what was your other thing to discuss? 17:17:31 the keypair addition was part of https://blueprints.launchpad.net/nova/+spec/additional-notification-fields-for-searchlight so I guess it was requested by searchlight 17:17:38 oh 17:17:55 "The list of KeyPair objects containing at least the 17:17:55 name field of the original KeyPair objects based on instance.keypairs" 17:18:04 so key_name would have already satisfied that 17:18:22 so let's just forget it for rebuild unless someone ever asks 17:19:13 * gibi throws away the post it containing the task for that bug report 17:19:51 going back to trusted_cert, is it OK to have that in instance.create and rebuild only? 17:20:05 or we would like to transition towards a config option? 17:20:56 doesn't really matter that much to me, 17:21:07 OK, then let's keep it as is 17:21:13 i don't like the inconsistency, but i guess it's being consistent with one of the inconsistencies 17:21:43 yeah, we created a bit less inconsistent notification interface than the legacy was but it is still not perfect 17:21:50 anyhow the second item on my list 17:22:07 #link https://review.openstack.org/#/c/554212 Add PENDING vm state 17:22:26 it proposes a new notification but I think the goal can be achived with the existing versioned instance.update 17:22:45 so I'm -1 on the current proposal https://review.openstack.org/#/c/554212/4/specs/rocky/approved/introduce-pending-vm-state.rst@87 17:23:48 the PoC code proposed a lot of new fields like cell mapping but I feel they only need the information that the server ended up in PENDING state 17:23:52 "nova_object.data":{ "old_state":"building", "state":"pending", "old_task_state":"scheduling", "new_task_state":null }, 17:23:57 sure, lgtm 17:24:07 OK, thanks 17:24:28 that was all from me, do you have something to discuss? 17:24:54 nope 17:25:05 then let's close this. Thanks for the meeting 17:25:09 #endmeeting