Ask Your Question
7

How to change status of a Neutron port from DOWN to ACTIVE?

asked 2013-07-19 10:29:06 -0500

shoubam gravatar image

updated 2013-07-19 16:16:29 -0500

smaffulli gravatar image

I am trying to set the port state of my router form DOWN to ACTIVE:

neutron port-show 43c9ff00-07ce-4069-a734-4e6d5e795e6a
+----------------------+-------------------------------------------------------------------------------------+
| Field                | Value                                                                               |
+----------------------+-------------------------------------------------------------------------------------+
| admin_state_up       | True                                                                                |
| binding:capabilities | {"port_filter": true}                                                               |
| binding:host_id      |                                                                                     |
| binding:vif_type     | ovs                                                                                 |
| device_id            | 3be907f3-daa1-48b0-a9bd-954fece6ce3d                                                |
| de1vice_owner         | network:router_gateway                                                              |
| fixed_ips            | {"subnet_id": "197db98c-370d-406c-9b9c-d4dca11471cb", "ip_address": "172.24.4.229"} |
| id                   | 43c9ff00-07ce-4069-a734-4e6d5e795e6a                                                |
| mac_address          | fa:16:3e:39:50:38                                                                   |
| name                 |                                                                                     |
| network_id           | adf083a2-2989-43bc-80dd-15426fca1e53                                                |
| security_groups      |                                                                                     |
| status               | DOWN                                                                                |
| tenant_id            |                                                                                     |
+----------------------+-------------------------------------------------------------------------------------+

but

$ neutron port-update 43c9ff00-07ce-4069-a734-4e6d5e795e6a --status ACTIVE

gives me

Cannot update read-only attribute status

So how is such a port supposed to go ACTIVE?

Edit: I read that its ovs and l3 who are supposed to make a port active. So anything I can do to make those guys happy?

edit retag flag offensive close merge delete

Comments

1

You might be interested in this https://bugs.launchpad.net/neutron/+bug/1192883 . By the way do you have any communication issues with the gateway. It just a usability issue , it doesnt affect the communication anyway.

Ashokb gravatar imageAshokb ( 2013-07-19 10:53:12 -0500 )edit

It does not look like this bug. Some ports are ACTIVE, these are the ports that traffic goes through. But I can not connect to my gateway, and the gatewayinterface is DOWN. So I was guessing that it should be up in order to work.

shoubam gravatar imageshoubam ( 2013-07-22 02:48:38 -0500 )edit
1

My point is even if the router's gateway shows as down still communication can happen without issues(DOWN status is due to the bug). So instead of concentrating on making the port to active try to analyze other factors which could be causing the communication issue in your environment.can you ping the routers gateway from router's namespace?

Ashokb gravatar imageAshokb ( 2013-07-22 03:29:27 -0500 )edit

Hi Ashokb, Im confused, how am i going to ping the routers gateway from router's namespace? At first i try to ping the router gateway from my host but failed.

d3O gravatar imaged3O ( 2013-10-17 21:26:36 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-08-07 08:55:21 -0500

George gravatar image

I had this issue when the netmask of the public subnet and gateway were mismatched. Make sure the IP subnetting is done right, otherwise the port will stay down whatever you do.

If you find the mistake, delete the network, subnet, router, ports, etc and create them again.

edit flag offensive delete link more

Comments

that's a good point - on the external quantum subnet, the gateway_ip has to be in the cidr range. I wonder is there a reason why this is not enforced by the api.

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-09-13 06:24:41 -0500 )edit

Hi George, Can you elaborate more? I think we have same issue here, my host subnet mask is not the same subnet mask used in the floating ips. Host Subnet Mask: /29 Floating IPs Subnet Mask: /27 So how am I going to used those different mask in my environment?

d3O gravatar imaged3O ( 2013-10-17 21:23:25 -0500 )edit
0

answered 2013-09-09 14:58:21 -0500

mangelajo gravatar image

I'm having the same problem, and checked the /var/log/neutron/server.log , I found this:

2013-09-09 20:19:40.776 2397 ERROR neutron.openstack.common.rpc.amqp [-] Exception during message handling
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp Traceback (most recent call last):
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/amqp.py", line 424, in _process_data
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp     **args)
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/neutron/common/rpc.py", line 44, in dispatch
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp     neutron_ctxt, version, method, namespace, **kwargs)
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/neutron/db/l3_rpc_base.py", line 64, in get_external_network_id
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp     net_id = plugin.get_external_network_id(context)
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/neutron/db/l3_db.py", line 984, in get_external_network_id
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp     raise q_exc.TooManyExternalNetworks()
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp **TooManyExternalNetworks: More than one external network exists**
2013-09-09 20:19:40.776 2397 TRACE neutron.openstack.common.rpc.amqp
2013-09-09 20:19:40.864 2397 ERROR neutron.openstack.common.rpc.common [-] Returning exception More than one external network exists to caller
2013-09-09 20:19:40.864 2397 ERROR neutron.openstack.common.rpc.common [-] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/amqp.py", line 424, in _process_data\n    **args)\n', '  File "/usr/lib/python2.6/site-packages/neutron/common/rpc.py", line 44, in dispatch\n    neutron_ctxt, version, method, namespace, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch\n    result = getattr(proxyobj, method)(ctxt, **kwargs)\n', '  File "/usr/lib/python2.6/site-packages/neutron/db/l3_rpc_base.py", line 64, in get_external_network_id\n    net_id = plugin.get_external_network_id(context)\n', '  File "/usr/lib/python2.6/site-packages/neutron/db/l3_db.py", line 984, in get_external_network_id\n    raise q_exc.TooManyExternalNetworks()\n', 'TooManyExternalNetworks: More than one external network exists\n']
2013-09-09 20:20:02.640 2397 WARNING neutron.db.agentschedulers_db [-] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'bc6297ba-8611-4897-b637-20fca0eff9b4'], 'name': u'private', 'provider:physical_network': None, 'admin_state_up': True, 'tenant_id': u'aeba69de635c404fade88400a04ea16c', 'provider:network_type': u'local', 'router:external': False, 'shared': False, 'id': u'0294b77f-b8d1-47e2-8c21-b55cee1fa121', 'provider:segmentation_id': None}
edit flag offensive delete link more

Comments

http://docs.openstack.org/trunk/openstack-network/admin/content/adv_cfg_l3_agent_multi_extnet.html Not sure if it's related to the need of adding an extra L3 agent,

mangelajo gravatar imagemangelajo ( 2013-09-09 15:39:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-07-19 10:29:06 -0500

Seen: 34,759 times

Last updated: Sep 09 '13