VM get incorrect default gateway when attached port DG manually to router
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I create neutron port and attach it to router as "default gateway" and launch VM I can see that VM get ip address of default gateway that not match to ip address of neutron router port. It get the ip gateway from subnet configuration which is x.y.z.1
Version: OSP 7 on rhel 7.1
# rpm -qa |grep dnsmasq
dnsmasq-
dnsmasq-
[root@puma15 ~(keystone_admin)]# rpm -qa |grep neutron
python-
openstack-
openstack-
python-
python-
openstack-
openstack-
python-
openstack-
step to reproduce :
1. Create a neutron tenant network.
2. Create an IPv4 subnet for the network (say 192.168.1.0/24 with gateway_ip as 192.168.1.1)
3. Create a neutron router (say router1).
4. Create a port on the tenant network (without specifying any fixed_ip). The port would be allocated a free IP from the allocation pool (i.e., say 192.168.1.3).
5. Now attach this port to the neutron router (i.e., neutron router-
6. Spawn some VMs with the above network.
Observations:
VMs would acquire IP address (something like 192.168.1.4) with a default gateway as 192.168.1.1 and not the ip 192.168.1.3 (i.e., ip of the port which is attached to the neutron router)
Changed in neutron: | |
assignee: | nobody → venkata anil (anil-venkata) |
Changed in neutron: | |
assignee: | Sridhar Gaddam (sridhargaddam) → nobody |
@Anil, as discussed over the IRC, I'll look into this issue. So, assigning the bug on my name. Thanks.