The status of the neutron internal network ports are BUILD instead of ACTIVE

asked 2015-09-08 15:26:21 -0500

updated 2015-09-23 16:18:24 -0500

I have installed openstack juno on ubuntu 14.04 nodes with neutron networking. After the installation all the instances were running okay and all the ports' status were ACTIVE. I recently found that some of the internal network ports are in BUILD state and some are in ACTIVE state. I restarted all the neutron services but nothing changed. Though I am able to ping and ssh the instances associated with those ports, service running on those VMs are not working correctly. I would like to know the reason for the status change.

Thanks in advance.

Update:

Found the problem. When I was looking into the details of those ports, I found that the ports with BUILD status were associated with a different node than the nodes their instances were associated with (Ex. instance1 is running on node1, but its eth port is associated with node2). I made few modification to the network after creating those instances. I think that might have caused this problem.

Solution:

  1. shut off the instance
  2. neutron port-delete <port_id>
  3. neutron port-create --fixed-ip subnet_id=<subnet_id>,ip_address=<instance_ip> <network_name>
  4. nova interface-attach --port-id <port_id> <instance_name>
edit retag flag offensive close merge delete