[NETVIRT-1164] Ipv6 server creation failure with v6-fixed option Created: 21/Mar/18  Updated: 19/May/18  Resolved: 19/May/18

Status: Resolved
Project: netvirt
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: yogalakshmi swetha Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When Ipv6 instance is created using the v6-fixed ip option,

the server goes to error state.

To Reproduce the bug:

Create a network:
network create net1 --provider-network-type vxlan

Create a subnet:
subnet create --ip-version=6 --ipv6-address-mode=slaac --ipv6-ra-mode=slaac --network net1 --subnet-range 2001:db8:cafe:e::/64 sub1

Create a router:
router create router1

Add interface to the router:
router add subnet router1 sub1

Create a server:
server create --image <imageID> --flavor m1.tiny --nic net-id=net1, v6-fixed-ip=2001:db8:cafe:e:f816:3eff:fea1:e170 VM1

 

Also, add fixed-ip option when used after creating the server , it doesnt get the fixed ip.The ip gets auto assigned or sometimes both the ip's are assigned.

 

a.Create Network
network create net2 --provider-network-type vxlan
b. Create subnet
subnet create --ip-version=6 --no-dhcp --network net6 --subnet-range 2006:db9:cafe:e::/64 sub6

c. Create Server:
server create --image cirros --flavor cirros --nic net-id=net6 vm1

d.server add fixed-ip
server add fixed ip vm1 2006:db9:cafe:e::8



 Comments   
Comment by Vinh Nguyen [ 19/May/18 ]

The reproduction steps for creating server with fixed ip (scenario 1) is not valid since the subnet is configured for automatic addresses:

HttpException: Bad Request (HTTP 400) (Request-ID: req-1c1fa0a8-df12-409c-be17-0671844192f3), IPv6 address 2001:db8:cafe:e:f816:3eff:fea1:e170 cannot be directly assigned to a port on subnet 455e38c0-4864-4d02-875a-f4f51648ab76 as the subnet is configured for automatic addresses.

 

For scenario 2 where the subnet is configured with 'no-dhcp', the server created is still get an address. This is expected as indicated below:

https://bugzilla.redhat.com/show_bug.cgi?id=1357618

 

in step d) the server should get new fixed ip address.

 

At any rate, I found these are pure neutron scenarios rather than netvirt, please log issues against openstack-neutron if necessary

 

 

Comment by Vinh Nguyen [ 19/May/18 ]

Please see last comment

Generated at Wed Feb 07 20:23:23 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.