I observed the following text as well "One or more ports have an IP allocation 
from this subnet."
Looks like loadbalancer context exit at "blah2" is not cleaning up the port 
that was created. 
This ultimately resulted in failure of delete subnet at "blah3".

----------------------
with self.subnet() as subnet:
    blah1
    with self.loadbalancer() as lb:
        blah2
    blah3
----------------------

-----Original Message-----
From: Vijay Venkatachalam [mailto:[email protected]] 
Sent: 20 August 2014 19:12
To: OpenStack Development Mailing List ([email protected])
Subject: [openstack-dev] [Neutron][LBaaS] Error at context exit for subnet in 
unit test case

Hi,

I am writing a unit testcase with context as subnet, code here [1]. 
When the context exits a delete of subnet is attempted and I am getting a 
MismatchError . Traceback posted here [2]. 

What could be going wrong here?

Testcase is written like the following
----------------------
with self.subnet() as subnet:
    blah1
    blah2
    blah3
----------------------

I am getting a "MismatchError: 409 != 204" error at blah3 when context exits.

[1] UnitTestCase Snippet - http://pastebin.com/rMtf2dQX [2] Traceback  - 
http://pastebin.com/2sPcZ8Jk


Thanks,
Vijay V.

_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

_______________________________________________
OpenStack-dev mailing list
[email protected]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to