Earlier  
Posted Nick Remark
#openstack-nova - 2020-01-21
15:18:31 sean-k-mooney i think its also used to create series and milestones too
15:24:02 openstackgerrit Merged openstack/nova master: functional: Stop setting Flavor.id https://review.opendev.org/703568
15:24:34 gibi kashyap: did you forget to publish your answer to https://review.opendev.org/#/c/616603/12..13/nova/virt/libvirt/driver.py@a5116 ?
15:24:56 kashyap gibi: Whoops, indeed
15:25:05 kashyap Let me hit 'submit'
15:25:13 gibi :)
15:25:28 kashyap Done. Sorry :-)
15:25:34 gibi no problem
15:25:47 kashyap gibi: In short, although good catch on the negation, we'd need the 'and' there.
15:26:21 efried johnthetubaguy: thanks, I appear to be admin-y now.
15:26:25 gibi if this is intentional then I'm OK with it. let me read your answer :)
15:26:35 kashyap gibi: Unrelated to this change: /me has a TODO to allow two more possible values for 'hw_rng_model', besides "virtio". Hence we need to retain that extra spec
15:26:40 johnthetubaguy efried: cool
15:26:43 efried ...on -drivers. johnthetubaguy do you have power in nova-bugs?
15:26:55 kashyap gibi: Yes, it is intentional; but of course your observation was correct
15:26:59 johnthetubaguy efried: it seems not sadly
15:27:43 kashyap gibi: And I noticed that you didn't frame it as "this is wrong", but rather "thinking it out loud; is this intentional" :-)
15:31:32 gibi kashyap: I'm still confused. If the user sets hw_rng:allowed = False but but does not set anything to hw_rng_model then he gets no rng device, but then if he sets anything to hw_rng_model the he will get an rng device even if hw_rng:allowed is still false
15:35:01 kashyap gibi: 'hw_rng_model' will have no effect if 'hw_rng:allowed' is not set to True
15:36:02 kashyap gibi: And the only currently allowable value for 'hw_rng_model' is "virtio"
15:36:12 gibi kashyap: I guess that "no effect" is outside fo Hi Balazs,
15:36:34 gibi kashyap: I guess that "no effect" is outside of _add_rng_device
15:37:49 gibi because in _add_rng_device if hw_rng:allowed is False but hw_rng_model is not empty then we are adding a device
15:37:56 kashyap gibi: Yeah
15:38:27 sean-k-mooney well if hw_rng:allowed=False we shoudl nto add a RNG device
15:38:43 sean-k-mooney regardless of what the hw_rng_model is set to
15:40:51 kashyap - if not rng_is_virtio and not rng_allowed:
15:40:51 kashyap gibi: sean-k-mooney: Yes:
15:40:52 kashyap + if not rng_allowed:
15:42:01 kashyap Then 'hw_rng_model' will be "useless" (but we want to enhance the prop to allow two more values), as it isn't used outside this method.
15:43:20 gibi kashyap: if the value of hw_rng_model is not need to decide to add the device that is fine. As soon as we (you) add support the new model values then such change will make hw_rng_model used again, in the device parameters (I guess)
15:44:34 kashyap gibi: Yes, I'll go with the above 'diff' and document the TODO the image props to extend it for new values
15:44:56 kashyap gibi: Sounds okay?
15:45:37 gibi kashyap: yes, sounds good
15:45:39 kashyap (The extended two values will also be virtio variants.)
15:45:42 sean-k-mooney we have not added new values in several cycle and like will not in the future
15:45:50 sean-k-mooney so we might just want to deprecate the model
15:46:03 sean-k-mooney is there support in qemu for other RNGs?
15:46:04 gibi sean-k-mooney: I guess kashyap disagrees ^^
15:46:34 kashyap sean-k-mooney: Wait: how do you know "not in the future"? The new values were added to fix certain bugs with guest compat with old operating systems
15:46:39 kashyap As I mentioned on the change.
15:46:41 sean-k-mooney well im just asking is can it have other value form a qemu point of view
15:47:22 kashyap sean-k-mooney: Yes:
15:47:25 kashyap https://libvirt.org/formatdomain.html#elementsVirtioTransitional
15:47:54 sean-k-mooney the model has noting to do with tanstional devices
15:48:09 kashyap sean-k-mooney: Hang on.
15:48:31 kashyap sean-k-mooney: 'virtio-transitional' is another possible value, instead of 'virtio'
15:48:48 kashyap Please take two minutes to read what the page is saying.
15:48:57 sean-k-mooney oh i see they aded that in 5.2
15:49:07 kashyap I also quoted *specific* bits in the Gerrit change!
15:49:29 sean-k-mooney so im not sure we should be exposing that to end users
15:50:02 kashyap So you haven't read the comment that clearly explains it here: https://review.opendev.org/#/c/616603/10/nova/virt/libvirt/driver.py@5114
15:50:35 kashyap In short: we should _not_ deprecate it.
15:50:43 kashyap (Where "it" == hw_rng_model)
15:51:26 kashyap sean-k-mooney: I'm sure we should expose them as possible values for the user
15:51:27 sean-k-mooney im wondering if nova can just make the chioce itself without exposeing it to the user
15:51:37 kashyap Hmm, I don't think we have enough info about it.
15:51:46 sean-k-mooney sure we do
15:52:23 sean-k-mooney if qemu/libvirt support the virtio-non-transitional version shoudl we not always use it
15:52:57 kashyap I'm of course not saying we should unconditionally enable anything what QEMU/libvirt support.
15:53:24 kashyap Anyway, we're going into the weeds here. The point being: we should not be in a hurry to deprecate that prop
15:53:36 sean-k-mooney ok
15:53:45 sean-k-mooney we also shoudl not be in a hurry to extend it
15:53:55 sean-k-mooney that is not relevent to your patch however
15:54:10 kashyap Yes, I'm not hurrying to extend it; I wanted to keep it a potential option.
15:54:30 sean-k-mooney i guess we might need to expose it for legacy os support
15:54:55 kashyap sean-k-mooney: gibi: To conclude the discussion: my previous comment still stands: will go with the `diff` noted earlier w/ a TODO in code
15:54:57 sean-k-mooney but they could jsut disbael the RNG
15:55:04 kashyap sean-k-mooney: Yeah, indeed on the legacy OS
15:55:19 sean-k-mooney ya the diff is fine with me
15:55:23 kashyap Okido
15:55:33 kashyap Thanks for bearing with me
15:56:40 kashyap Completely unrelated: I can't even do Ctrl-c in Grrrrrit-- anymore. Is it just me?
15:57:25 sean-k-mooney i got it working but i know other have had issues
15:57:41 sean-k-mooney its a browser thing i think
15:57:52 sean-k-mooney i dont think our gerrit was updated
16:00:38 kashyap sean-k-mooney: I tried it in both FF and Chromium :-(
16:00:49 kashyap (To no effect)
16:12:48 sean-k-mooney kashyap: so in chrome i has the "webkit-user-select: none" css property applied
16:12:56 sean-k-mooney to the comment
16:14:33 sean-k-mooney in firfox 67 it does not
16:14:57 kashyap sean-k-mooney: I see, will fiddle. Thank you for the tip
16:15:30 kashyap sean-k-mooney: Unrelated: do we have any examples of this:
16:15:33 kashyap "* Some properties recognized by Nova may have no effect unless a corresponding property is enabled in the server flavor."
16:16:19 kashyap (The 'hw_rng_model' / 'hw_rng:allowed' used to be one; but now we're changing it.)
16:16:25 kashyap I quoted it from Glance docs; as I'm updating them
16:21:44 sean-k-mooney am hw:mem_page_size in the image will only have an effect if hw:mem_page_size=any or hw:mem_page_size=large
16:22:31 sean-k-mooney i think the realtime mask in the image will also be ignored if you dont enable in in the flaovr but we normally try to make it an irror rather then ignore it
16:22:44 sean-k-mooney this is slightly different however
16:23:29 sean-k-mooney in that its more qulatitive. i.e. it is saying if i have a random number generateor make it of this type
16:29:19 kashyap sean-k-mooney: Yeah, the hw:mem_page_size is not dependent on any other property; so it's different indeed
16:29:59 sean-k-mooney i think the realtime mask is the best example
16:30:08 sean-k-mooney realtiem cpus can only be enabled in the falvor
16:30:15 sean-k-mooney but you can set the mask in the flavor or image
16:30:29 sean-k-mooney and the image mask only works if its enabled in the flavor
16:30:42 sean-k-mooney also http://paste.openstack.org/show/788651/ is what i think is going on with gerrit
16:30:47 kashyap sean-k-mooney: Got the exact property names, please? So I can fix the Gerrit document right away
16:32:24 sean-k-mooney i should have added https://developer.mozilla.org/en-US/docs/Web/CSS/initial
16:32:39 kashyap sean-k-mooney: Thank you :-)
16:32:40 sean-k-mooney so ya inial restores a property to its defaul state which may have changed

Earlier   Later