ovs_quantum_agent.py crashes on Citrix XCP because of old python version (2.4)

Bug #994774 reported by Piotr Siwczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Incomplete
Undecided
Piotr Siwczak

Bug Description

The plugin crashes at this piece of code ("with" statement:

try:
            with open(remote_ip_file, 'r') as f:
                remote_ip_list = f.readlines()
                clean_ips = (x.rstrip() for x in remote_ip_list)
                tunnel_ips = (x for x in clean_ips if x != local_ip and x)
                for i, remote_ip in enumerate(tunnel_ips):
                    self.tun_br.add_tunnel_port("gre-" + str(i), remote_ip)
        except Exception as e:
            LOG.error("Error configuring tunnels: '%s' %s" %
                      (remote_ip_file, str(e)))
            raise

"with" is not available on xen dom0, as it has python 2.4

Piotr Siwczak (psiwczak)
Changed in quantum:
assignee: nobody → Piotr Siwczak (psiwczak)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/7184

Changed in quantum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/7236

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/7238

Changed in quantum:
status: In Progress → Triaged
status: Triaged → Incomplete
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

If we managed to get these ones in:

- https://review.openstack.org/#/c/15022/
- https://review.openstack.org/#/c/15023/

We could really mark this bug as invalid, as running the agent on dom0 would no longer be necessary!

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

The only reason why I marked this as duplicate of 994831 is because they are the manifestation of the same issue: incompatibility of the quantum agent with Python 2.4.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.