Cannot update IPSec Policy lifetime

Bug #1237912 reported by Tatiana Ovchinnikova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Eugene Nikanorov
Havana
Fix Released
High
Aaron Rosen

Bug Description

When you try to update IPSec Policy lifetime, you get an error:

(neutron) vpn-ipsecpolicy-update ipsecpolicy --lifetime units=seconds,value=36001
Request Failed: internal server error while processing your request.

Meanwhile updating IKE Policy lifetime works well:

(neutron) vpn-ikepolicy-update ikepolicy --lifetime units=seconds,value=36001
Updated ikepolicy: ikepolicy

Changed in neutron:
status: New → Confirmed
importance: Undecided → High
tags: added: vpn
tags: added: vpnaas
removed: vpn
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

There's a problem with the next piece of code:

def update_ipsecpolicy(self, context, ipsecpolicy_id, ipsecpolicy):
       ...
         if ipsecp:
                lifetime_info = ipsecp.get('lifetime')
                if lifetime_info:
                    if lifetime_info.get('units'):
                        ipsecp['lifetime_units'] = lifetime_info['units']
                    if lifetime_info('value'):
                        ipsecp['lifetime_value'] = lifetime_info['value']
                ipsecp_db.update(ipsecp)

tags: added: havana-rc-potential low-hanging-fruit
Changed in neutron:
assignee: nobody → Eugene Nikanorov (enikanorov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/50895
Committed: http://github.com/openstack/neutron/commit/48e36b542904effb9b35c9d62bd0247e25f0dac6
Submitter: Jenkins
Branch: master

commit 48e36b542904effb9b35c9d62bd0247e25f0dac6
Author: Eugene Nikanorov <email address hidden>
Date: Thu Oct 10 13:10:58 2013 +0400

    Fix access to lifetime dict in update_ipsecpolicy method

    Also add corresponding unit test.

    Change-Id: Ie1141b5034415ccf3039a71dfedc47cfb2ca7a88
    Closes-Bug: #1237912

Changed in neutron:
status: In Progress → Fix Committed
tags: added: havana-backport-potential
removed: havana-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/53255

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/havana)

Reviewed: https://review.openstack.org/53255
Committed: http://github.com/openstack/neutron/commit/2c41cf1cfc474be0bfb08d3e0bda92d67ac7b12a
Submitter: Jenkins
Branch: stable/havana

commit 2c41cf1cfc474be0bfb08d3e0bda92d67ac7b12a
Author: Eugene Nikanorov <email address hidden>
Date: Thu Oct 10 13:10:58 2013 +0400

    Fix access to lifetime dict in update_ipsecpolicy method

    Also add corresponding unit test.

    Change-Id: Ie1141b5034415ccf3039a71dfedc47cfb2ca7a88
    Closes-Bug: #1237912
    (cherry picked from commit 48e36b542904effb9b35c9d62bd0247e25f0dac6)

tags: added: in-stable-havana
Changed in neutron:
milestone: none → icehouse-1
tags: removed: havana-backport-potential
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Alan Pevec (apevec)
tags: removed: in-stable-havana
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-1 → 2014.1
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.