Earlier  
Posted Nick Remark
#openstack-nova - 2022-01-25
10:29:29 bauzas " The changes introduced as part of the “Port binding event extended information for Nova” 4 spec means neutron will now provide the type of back-end to which the port is bound, with the parameter connectivity, included now in binding:vif_details. Nova can determine whether a given driver back-end has “l2” connectivity and, if so, know that a port without an IP address can be assigned to a virtual machine."
10:30:25 bauzas I guess I'd appreciate sean-k-mooney's thoughts on this one
10:32:05 gibi if this was agreed before then I rest my case
10:35:07 bauzas gibi: well, yes and no
10:35:12 bauzas this was agreed in a neutron spec
10:35:23 bauzas this wasn't really discussed in the nova spec
10:35:57 bauzas except saying "look, we could have neutron backends that'd have problems, we should verify the connectivity"
10:36:04 bauzas but we accepted it as it's phrased
10:36:29 ralonsoh bauzas, this can be changed and we can make Neutron to decide this
10:36:58 ralonsoh if we have the port connectivity value and the backend one too, that's easy
10:37:08 bauzas ralonsoh: I think I'm personnally OK with moving on and doing this check in nova first but I'd somehow appreciate second thoughts for a neutron change too
10:38:08 ralonsoh bauzas, I'll propose this in a drivers meeting
10:38:19 ralonsoh if a new spec is needed, I'll push it
10:38:34 bauzas well, that'd mean a Z change
10:38:44 ralonsoh yes, in Z probably
10:38:53 ralonsoh well, I'm not sure
10:38:53 bauzas that's why I'm saying I'm OK with checking this in nova first if gibi is OK
10:39:12 bauzas (provided I'm able to write such thing :D )
10:39:49 ralonsoh bauzas, I'll raise this question this friday, at 1400UTC
10:40:02 ralonsoh drivers meeting. The change should be small in Neutron
10:45:04 ralonsoh bauzas, good news
10:45:07 ralonsoh https://review.opendev.org/c/openstack/neutron/+/678027
10:45:51 ralonsoh (sorry, I didn't remember that part)
10:45:51 ralonsoh Neutron will reject this port binding
10:45:51 ralonsoh and that was merged in Train
10:46:03 bauzas ralonsoh: ok, so no need for a check in nova
10:46:04 bauzas all good
10:46:10 bauzas I can remove stephenfin's WIP
10:46:20 bauzas and repropose it against Yoga nova
11:09:40 gibi bauzas, ralonsoh: https://review.opendev.org/c/openstack/neutron/+/678027 is the best outcome of this discussion :)
12:02:05 chateaulav sean-k-mooney: appreciate the os-traits review!
12:55:39 bkranendonk hi folks, is there a way to utilize multiple image backends (e.g. rbd for instance X and lvm for instance Y) on the same hypervisor?
12:55:58 bkranendonk cant find info on this
13:08:24 lyarwood bkranendonk: not with the libvirt driver, it's a single static choice in the compute config used by all instances hosted on it
13:09:08 lyarwood bkranendonk: if you want choice use volume types has always been our suggestion
13:09:40 bkranendonk lyrarwood: Boot from volume with a volume_type?
13:10:07 sean-k-mooney bkranendonk: yep
13:10:16 bkranendonk ok, thanks!
13:10:29 lyarwood bkranendonk: I think we proxy the type yeah, otherwise just create the volume directly in cinder with a given type and then use it in nova
13:10:46 sean-k-mooney the images type can be used to set a host wide default stoage backing and then you can suplement that with cinder volumes and volume types to select based on differnt perfromacne requiements
13:11:25 lyarwood yeah block_device_mapping_v2.volume_type is available from 2.67
13:30:11 elodilles bauzas: i'll add some update to meetings wiki if you are not doing that right now
13:46:38 bauzas elodilles: sure, please do
13:55:12 elodilles bauzas: thx, done
14:51:41 sean-k-mooney bauzas: you were asking previously about adressless port and why nova needs to check the connectivty?
14:51:49 sean-k-mooney did you get an answer
14:51:52 sean-k-mooney its a security issue
14:52:26 sean-k-mooney for backends like calico that provie l3 only connectivity its invlade to use l2 networking and it will not be fucntional
14:53:13 sean-k-mooney in general port with l2 connectivy and no ip will not work with security groups proerly
14:53:43 sean-k-mooney techincally you can magch on thernet type but almost all security group rules assme an ip
14:54:05 sean-k-mooney the check tha tnova needs to is basicaly a simple reasonablness check
14:54:29 sean-k-mooney e.g. is it reasonable given the info provide by neutron that the port would be usable without an addres.
14:54:36 sean-k-mooney if the the connectivy type is l2 then yes
14:54:40 sean-k-mooney if l3 then no
14:54:42 sean-k-mooney simple as that
14:55:38 sean-k-mooney bauzas: ralonsoh the connectivy par to fhte spec shoudl already be implemented in neutron
14:55:59 sean-k-mooney the binding driver info is not implemtned but that is not needed for adress less ports
14:57:28 sean-k-mooney here is where ml2/ovs reports l2 connectivy for example https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/openvswitch/mech_driver/mech_openvswitch.py#L59-L61
14:58:20 sean-k-mooney the main issue we have is this is obviouls a late fail on the compute node when we attpemt to do the port binding
14:58:53 sean-k-mooney but that is better then booting with out any networking
15:00:13 sean-k-mooney all of the in tree drivers supprot this feature as far as i am aware
15:00:21 sean-k-mooney and they all provide l2 connectivity
15:00:34 sean-k-mooney calico is really the only one i know of that is l3 only
15:07:47 bauzas sean-k-mooney: ralonsoh told me that eventually Neutron verified the backend
15:07:51 bauzas (from Train)
15:08:22 bauzas sean-k-mooney: https://review.opendev.org/c/openstack/neutron/+/678027
15:08:34 sean-k-mooney it may but i think nova should still enforce the connectivy
15:08:37 bauzas folks, nova meeting in 52 mins here at #openstack-nova
15:08:58 bauzas sean-k-mooney: honestly, gibi and me were asking for that
15:09:14 bauzas see the discussion we had this morning
15:09:30 sean-k-mooney asking for nova ot also enforce it or just relay on neutron
15:10:01 gibi if neutron enforces it then I think nova does not need to enforce it
15:10:25 ralonsoh the port connectivity parameter was for Nova
15:10:36 sean-k-mooney i guess im just surpesed because neutron did not want to enfoce it orginally which is why we added the connectivy
15:10:39 ralonsoh in Neutron we check the backend connectivity (doesn't need to be in the port)
15:10:46 ralonsoh and if the port has or not IP addresses
15:11:23 ralonsoh sean-k-mooney, https://review.opendev.org/c/openstack/neutron/+/678027/3/neutron/plugins/ml2/managers.py
15:11:27 sean-k-mooney right but we added the connectivty parmater becasue neuton did not want to do that backend check when we first dicussed this featre
15:11:28 ralonsoh is this what you need?
15:12:01 sean-k-mooney yes but that means we dont need the connectivty parmater in the respocne any more
15:12:22 ralonsoh so we can remove it from the port dict
15:12:33 ralonsoh in any case, the ML2 plugin should keep it
15:12:33 opendevreview Merged openstack/nova master: libvirt: Create qcow2 disks with the correct size without extending https://review.opendev.org/c/openstack/nova/+/779275
15:12:41 sean-k-mooney am we could although it proably does not hurt to leave it there
15:12:56 ralonsoh perfect, doesn't add any overhead
15:13:08 sean-k-mooney the user might want to check what connectivy is aviaable to them i guess
15:13:27 bauzas sean-k-mooney: ok, so you're OK if we don't verify it in nova ?
15:13:38 bauzas as neutron already does it ?
15:13:39 sean-k-mooney bauzas: ya given that bug fix im ok with it
15:13:44 bauzas ++
15:13:54 bauzas simplier for me then
15:14:01 bauzas I just need to rebase the change from stephenfin
15:14:03 sean-k-mooney bauzas: as i said im just surprised that was done since it was orginaly rejected.
15:14:16 sean-k-mooney yep
15:14:17 bauzas and I'll just provide a Tempest test
15:14:46 sean-k-mooney ralonsoh: qq while your here
15:15:03 sean-k-mooney ralonsoh: did you recently add the binding driver to the port details as part of the recent ovn work you were doing
15:15:14 ralonsoh yes
15:15:21 ralonsoh let me find the patch
15:15:36 sean-k-mooney it was part of https://specs.openstack.org/openstack/neutron-specs/specs/xena/ovn-auxiliary-port-bridge-live-migration.html right

Earlier   Later