14:00:57 #startmeeting neutron_drivers 14:00:57 Meeting started Fri May 19 14:00:57 2023 UTC and is due to finish in 60 minutes. The chair is ralonsoh. Information about MeetBot at http://wiki.debian.org/MeetBot. 14:00:57 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 14:00:57 The meeting name has been set to 'neutron_drivers' 14:00:59 hello all 14:01:01 hi 14:01:09 o/ 14:01:12 o/ 14:01:29 Lajos is not attending today 14:01:34 o/ 14:01:52 o/ 14:02:07 ok, I think we have quorum 14:02:12 let's start with the first topic 14:02:20 from liushy 14:02:27 #link https://bugs.launchpad.net/neutron/+bug/2016504 14:02:32 [rfe]Support specify fixed_ip_address for DHCP or Metadata port 14:02:36 liushy, please 14:02:45 Hi all 14:02:52 o/ 14:03:53 We want define a new api that can specify the fixed_ip for dhcp port or metadata port 14:04:51 In this time, we firstly need agree the new api extention 14:04:52 did You try to create manually port with fixed_ip which You want and with device_owner set as "reserved_dhcp_port"? IMO such port should be later used by dhcp agent as dhcp port when network will be scheduled to the dhcp agent 14:06:27 slaweq: whao interesting :-) 14:07:10 Yeah, it is, but I have no good idea for reserved_dhcp_port 14:07:39 what do you mean? sorry, I don't understand 14:07:41 Maybe this reserved dhcp port would not been 14:07:46 Used 14:09:08 by who? this is the same as any other DHCP port. In any case, this is an alternative to be explored 14:09:17 (it's device_id, not device_owner0 14:09:38 yes, device_id 14:09:39 if port_device_id == constants.DEVICE_ID_RESERVED_DHCP_PORT 14:09:54 and I don't think it's part of API (and specific to dhcp agent...), so it doesn't directly address the request 14:09:59 i guess OVN doesn't look for such port, but guess it could... 14:10:16 but I struggle to see why the request is needed. why would a user want to specify this? 14:10:49 yeah, what's the use case? 14:10:55 i have a same question as from ihar. what is the motivation of this RFE? 14:11:05 yeah, this device_owner is used by neutron-dhcp-agent but ML2/OVN is using "distributed" port probably 14:11:17 Yeah, we have meet many customers want specify the dhcp ip or metadata ip 14:11:44 they want it to achieve what? 14:11:50 Merged openstack/neutron master: Disable mysql gather performance in jobs https://review.opendev.org/c/openstack/neutron/+/883648 14:12:03 why do they want to specify such IPs? 14:12:49 And in any cases, we have always update the ip of metadata port, right? 14:13:42 metadata port, why? 14:13:44 liushy I don't follow. what do you mean we update the ip of metadata port? it's created when network is initialized and in general it's not touched. 14:15:53 so liushy, what is the rationale behind this RFE? why your customers need to "move" this IP addresses? 14:18:02 hello? 14:18:32 In any cases, the first ip of subnet is config on switch 14:19:13 liushy: if so, you can define allocation_pools for a subnet not to use the first IP of the subnet 14:19:23 exactly 14:19:28 amotoki++ 14:20:32 does it solve your issue? skipping this IP address from the IPAM pool? 14:20:47 (except that you manually assign the IP address to a port) 14:21:27 actually in Your case if You would assign different IP to the dhcp port, then Your "first" ip from the subnet can be allocated to some vm 14:21:38 so You will just move problem somewhere else, not solve it 14:21:52 and using proper allocation pool in neutron can solve it permanently 14:22:48 Ok 14:23:31 cool, please explore this alternative. I'll update the LP bug with amotoki's proposal 14:23:49 ++ 14:24:06 thanks liushy 14:24:21 let's move then to the next topic 14:24:35 #link https://bugs.launchpad.net/neutron/+bug/2019960 14:24:39 [RFE] Can't protect the "default" security group from regular users 14:24:49 I don't know if Paolo is in this channel now 14:24:56 I know this topic 14:25:03 slaweq, please go on then 14:25:29 ok, all started in the ML thread few days ago 14:25:54 author of this bug wanted to have policy which will not allow regular users to change SG rules in "default" SG 14:26:19 we are treating "default" SG in kind of special way, it's created for every project 14:26:29 and that can be valid use case 14:26:59 problem is that currently we can't configure even custom API policies for SG rules base on "name" of the SG, which is parent for the SG rule 14:27:38 I described it in https://lists.openstack.org/pipermail/openstack-discuss/2023-May/033719.html 14:27:54 it's the same thing like using "network:shared" field for e.g. ports or subnets 14:28:06 we are doing that but it required special treat in the code 14:28:45 in this case I would avoid this special treatment in the code, I would prefer to introduce a bool field (read-only) in the SG rule object 14:28:48 now the question is - do we want to introduce yet another "special" handling, this time for "security_group:name" attribute so it will be possible to use it in policies for SG rules 14:29:44 ^ no, I prefer a new field in the SG rule object, filtered as other field with a rule 14:30:18 ralonsoh something like "sg_default: True/False" in the SG rules? 14:30:21 or what? 14:30:24 yes 14:30:31 is_sg_default 14:30:41 a SG rule can be created or deleted 14:31:02 when the SG rule is created, the server will read the SG default flag and copy it to the SG rule 14:31:15 that will avoid the special treatment 14:31:40 yes, that way You will be able to use directly this new attribute in the api policies 14:31:55 can it not be generated synthetically by neutron api layer? no need to store it I think. 14:32:25 ihrachys I think that that was the idea 14:32:27 that implies doing a second query every time we retrieve a SG rule 14:32:34 it can be calculated "in flight" 14:32:40 yes but with a cost 14:33:48 hmmm maybe we can, in the SG rule OVO, implement that query to the SG.is_default column 14:33:57 optimize your query if that's a concern... storing has its own cost (not just in bytes, but keeping consistency, migrating db etc.) 14:34:51 I think that this is good idea 14:35:16 maybe we can use a back reference, adding the is_default value of the SG register in the SG rule OVO (that is a SQL view, in a nutshell) 14:35:58 ok, that's something technical 14:36:18 let's vote first if this RFE (the goal) is approved 14:36:50 +1 for that RFE and for ralonsoh's proposal how to solve it 14:36:57 do you agree with having a way to limit the SG rules modification belonging to the default SG? 14:37:39 +1 it sounds a reasnable request to me 14:37:39 +1 14:38:13 haleyb, ? 14:38:25 +1 14:38:40 ykarel, are you part of the drivers team? I think so 14:38:55 is just to have more votes 14:39:06 because I don't present this RFE, I can vote 14:39:10 +1 from me 14:39:36 +0 from me! 14:39:42 hehehe 14:39:48 thank you all 14:39:57 I think this request is reasonable 14:40:04 I'll try to implement a POC ASAP 14:40:10 I'll update the LP bug 14:40:17 something else you want to discuss? 14:41:13 PLEASE: kind (maybe not so kind) reminder to review the specs!! 14:41:21 have a nice weekend 14:41:26 #endmeeting