Nova create vm with special ipv4 and ipv6
Hi Nova team, does nova support create vm with special ipv4 and ipv6? As port create with ipv4 and ipv6 works by: openstack port create 111 --network 10851e96-8995-4988-b819-0514b38d7353 --fixed-ip subnet=a564ac90-3ff3-47d7-8ae5-20e2666eaa3c,ip-address=172.24.4.54 --fixed-ip subnet=afa3c858-c3d3-4784-8964-2c46840b714d,ip-address=2001:db8::183 but vm create with ipv4 and ipv6 with the cmd openstack server create --flavor 1 --image 62254c92-a579-4c8a-a2f4-f2624cef8ec1 --nic net-id=10851e96-8995-4988-b819-0514b38d7353,v4-fixed-ip=172.24.4.53,v6-fixed-ip=2001:db8::188 test raise exception: openstack server create: error: argument --nic: Invalid argument net-id=10851e96-8995-4988-b819-0514b38d7353,v4-fixed-ip=172.24.4.53,v6-fixed-ip=2001:db8::188; either 'v4-fixed-ip' or 'v6-fixed-ip' should be specified but not both. So why nova doesnot support?
as far as im aware nova has never supprot creating a port with dual stack ipv4 and ipv6 adddress an passign fixed ip for both. if you want to do that you shoudl create the port with both adress first via neutron using the openstack port create command and then pass the port uuid to nova when creating the vm i.e. openstack server create --port <port uuid> ... On 31/12/2024 03:09, Alex Song (宋文平) wrote:
Hi Nova team, does nova support create vm with special ipv4 and ipv6?
As port create with ipv4 and ipv6 works by:
openstack port create 111 --network 10851e96-8995-4988-b819-0514b38d7353 --fixed-ip subnet=a564ac90-3ff3-47d7-8ae5-20e2666eaa3c,ip-address=172.24.4.54 --fixed-ip subnet=afa3c858-c3d3-4784-8964-2c46840b714d,ip-address=2001:db8::183
but vm create with ipv4 and ipv6 with the cmd
openstack server create --flavor 1 --image 62254c92-a579-4c8a-a2f4-f2624cef8ec1 --nic net-id=10851e96-8995-4988-b819-0514b38d7353,v4-fixed-ip=172.24.4.53,v6-fixed-ip=2001:db8::188 test
raise exception:
openstack server create: error: argument --nic: Invalid argument net-id=10851e96-8995-4988-b819-0514b38d7353,v4-fixed-ip=172.24.4.53,v6-fixed-ip=2001:db8::188; either 'v4-fixed-ip' or 'v6-fixed-ip' should be specified but not both.
So why nova doesnot support?
Yeah, but I think support ipv4 and ipv6 both is more reasonable. -----邮件原件----- 发件人: Sean Mooney <smooney@redhat.com> 发送时间: 2025年1月5日 12:40 收件人: Alex Song (宋文平) <songwenping@inspur.com>; openstack-discuss@lists.openstack.org 主题: Re: Nova create vm with special ipv4 and ipv6 as far as im aware nova has never supprot creating a port with dual stack ipv4 and ipv6 adddress an passign fixed ip for both. if you want to do that you shoudl create the port with both adress first via neutron using the openstack port create command and then pass the port uuid to nova when creating the vm i.e. openstack server create --port <port uuid> ... On 31/12/2024 03:09, Alex Song (宋文平) wrote:
Hi Nova team, does nova support create vm with special ipv4 and ipv6?
As port create with ipv4 and ipv6 works by:
openstack port create 111 --network 10851e96-8995-4988-b819-0514b38d7353 --fixed-ip subnet=a564ac90-3ff3-47d7-8ae5-20e2666eaa3c,ip-address=172.24.4.54 --fixed-ip subnet=afa3c858-c3d3-4784-8964-2c46840b714d,ip-address=2001:db8::183
but vm create with ipv4 and ipv6 with the cmd
openstack server create --flavor 1 --image 62254c92-a579-4c8a-a2f4-f2624cef8ec1 --nic net-id=10851e96-8995-4988-b819-0514b38d7353,v4-fixed-ip=172.24.4.53,v6 -fixed-ip=2001:db8::188 test
raise exception:
openstack server create: error: argument --nic: Invalid argument net-id=10851e96-8995-4988-b819-0514b38d7353,v4-fixed-ip=172.24.4.53,v6 -fixed-ip=2001:db8::188; either 'v4-fixed-ip' or 'v6-fixed-ip' should be specified but not both.
So why nova doesnot support?
On 07/01/2025 00:45, Alex Song (宋文平) wrote:
Yeah, but I think support ipv4 and ipv6 both is more reasonable.
the problem with that is nova has a policy of not adding new proxy apis for things that can be done natively with other service apis so we are no longer extending the set of parmater you can pass to nova when it create a port which include create a dual stack port dyncmailcy for a vew sith fixed ips. https://docs.openstack.org/nova/latest/contributor/project-scope.html#no-mor... the ablity fo nova ot create a neutorn port for a server to day id more or less a legacy hold over form the days of nova-networks We could enhance the api to allow this but its not in line with the direction of the proejct. for exampel we do not alow setting the vnic_type of a nova created neutorn port, that means for all sriov functionality you can only do that vai precreating a nuetorn port and pasing the uuid when booting a vm. that would have been a much higher priority to address but we don't support that due to that also being outside the scope fo the project. we have no plans to remove this legacy supprot in line with our policy of not breakign exsting users https://docs.openstack.org/nova/latest/contributor/project-scope.html#don-t-... but we do not ativly plan to provide feature partiy iwth all neutron prot feature vai server create. if you really wanted too you coudl implement som of these feature in the openstack client as effectivly syntatic sugar over creating the port in neutron and passing the uuid to nova as part of server create.
-----邮件原件----- 发件人: Sean Mooney <smooney@redhat.com> 发送时间: 2025年1月5日 12:40 收件人: Alex Song (宋文平) <songwenping@inspur.com>; openstack-discuss@lists.openstack.org 主题: Re: Nova create vm with special ipv4 and ipv6
as far as im aware nova has never supprot creating a port with dual stack ipv4 and ipv6 adddress an passign fixed ip for both.
if you want to do that you shoudl create the port with both adress first via neutron using the openstack port create command and then pass the port uuid to nova when creating the vm
i.e. openstack server create --port <port uuid> ...
On 31/12/2024 03:09, Alex Song (宋文平) wrote:
Hi Nova team, does nova support create vm with special ipv4 and ipv6?
As port create with ipv4 and ipv6 works by:
openstack port create 111 --network 10851e96-8995-4988-b819-0514b38d7353 --fixed-ip subnet=a564ac90-3ff3-47d7-8ae5-20e2666eaa3c,ip-address=172.24.4.54 --fixed-ip subnet=afa3c858-c3d3-4784-8964-2c46840b714d,ip-address=2001:db8::183
but vm create with ipv4 and ipv6 with the cmd
openstack server create --flavor 1 --image 62254c92-a579-4c8a-a2f4-f2624cef8ec1 --nic net-id=10851e96-8995-4988-b819-0514b38d7353,v4-fixed-ip=172.24.4.53,v6 -fixed-ip=2001:db8::188 test
raise exception:
openstack server create: error: argument --nic: Invalid argument net-id=10851e96-8995-4988-b819-0514b38d7353,v4-fixed-ip=172.24.4.53,v6 -fixed-ip=2001:db8::188; either 'v4-fixed-ip' or 'v6-fixed-ip' should be specified but not both.
So why nova doesnot support?
participants (2)
-
Alex Song (宋文平)
-
Sean Mooney