Ask Your Question
1

kilo neutron-server with juno neutron-l3-agent

asked 2015-11-03 08:37:39 -0600

axellink gravatar image

As I'm trying to make an upgrade from juno to kilo with minimal downtime with an extra server given on purpose, I'm trying to make neutron working with different versions for the services.

The architecture is composed by one controller which has the neutron server, many compute nodes with the neutron openvswitch plugin and a network node whith openvswitch, L3 agent, dhcp agent and metadata agent. This server has an access to an external network.

All servers are on Ubuntu 14.04.3 LTS

All services on the controller are in the kilo version, and so is neutron-server. On the other hand, every neutron services on network nodes are under juno version.

My problem comes when the l3-agent tries to create a router. Here is exactly what I get :

2015-11-03 15:14:08.065 30892 DEBUG neutron.agent.linux.utils [-] 
Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-34876fb1-6218-4108-a013-5d4f8c1f2767', 'ip', '-o', '-d', 'link', 'list']
Exit code: 0
Stdout: '1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default \\    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0 \n'
Stderr: '' execute /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:81
2015-11-03 15:14:08.067 30892 ERROR neutron.agent.l3_agent [-] 'subnet'
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent Traceback (most recent call last):
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 341, in call
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent     return func(*args, **kwargs)
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line 945, in process_router
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent     self._set_subnet_info(ex_gw_port)
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line 861, in _set_subnet_info
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent     prefixlen = netaddr.IPNetwork(port['subnet']['cidr']).prefixlen
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent KeyError: 'subnet'
2015-11-03 15:14:08.067 30892 TRACE neutron.agent.l3_agent 
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eventlet/greenpool.py", line 80, in _spawn_n_impl
    func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 344, in call
    self.logger(e)
  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/excutils.py", line 82, in __exit__
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/neutron/common/utils.py", line 341, in call
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line 945, in process_router
    self._set_subnet_info(ex_gw_port)
  File "/usr/lib/python2.7/dist-packages/neutron/agent/l3_agent.py", line 861, in _set_subnet_info
    prefixlen = netaddr.IPNetwork(port['subnet']['cidr']).prefixlen
KeyError: 'subnet'
2015-11-03 15:14:08.069 30892 DEBUG neutron.agent ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-04 07:52:09 -0600

I cannot help with your actual error, but my experience with mixing versions never worked.

I tried juno compute nodes with icehouse controller & network nodes. And Also small package differences of the same openstack version where problematic and caused errors.

Just my 2 cents, hope you still get it working in your case...

edit flag offensive delete link more

Comments

I found a trick to get it working : hope the Network node won't fail or restart during the Controller update. As long as the Network doesn't have to recreate routers, all is going fine but that's not a good solution for the problem.

axellink gravatar imageaxellink ( 2015-11-04 08:09:10 -0600 )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

1 follower

Stats

Asked: 2015-11-03 08:37:39 -0600

Seen: 120 times

Last updated: Nov 04 '15