Neutron VPN API test failing during VPN service creation

Bug #1259282 reported by Miguel Lavalle
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Nachi Ueno

Bug Description

Module is failing in the gate when executing when its setUpClass attempts to create a vpn service. The error is the following:

2013-12-09 12:32:53.781 | FAIL: setUpClass (
2013-12-09 12:32:53.781 | setUpClass (
2013-12-09 12:32:53.781 | ----------------------------------------------------------------------
2013-12-09 12:32:53.781 | _StringException: Traceback (most recent call last):
2013-12-09 12:32:53.782 | File "tempest/api/network/", line 46, in setUpClass
2013-12-09 12:32:53.782 | cls.router['id'])
2013-12-09 12:32:53.782 | File "tempest/api/network/", line 218, in create_vpnservice
2013-12-09 12:32:53.782 | name=data_utils.rand_name("vpnservice-"))
2013-12-09 12:32:53.782 | File "tempest/services/network/json/", line 644, in create_vpn_service
2013-12-09 12:32:53.782 | resp, body =, headers=self.headers, body=body)
2013-12-09 12:32:53.782 | File "tempest/common/", line 302, in post
2013-12-09 12:32:53.783 | return self.request('POST', url, headers, body)
2013-12-09 12:32:53.783 | File "tempest/common/", line 436, in request
2013-12-09 12:32:53.783 | resp, resp_body)
2013-12-09 12:32:53.783 | File "tempest/common/", line 486, in _error_checker
2013-12-09 12:32:53.783 | raise exceptions.BadRequest(resp_body)
2013-12-09 12:32:53.783 | BadRequest: Bad request
2013-12-09 12:32:53.783 | Details: {u'NeutronError': {u'message': u'Router e20ef18b-b939-43b9-a24e-c63d718ddeb6 has no external network gateway set', u'type': u'RouterIsNotExternal', u'detail': u''}}

Since prior to create the vpn service, this test also creates a network (that is not deleted), a cascade of failures in the gate is triggered, with several tests failing with the following error:

2013-12-09 12:32:53.786 | BadRequest: Bad request
2013-12-09 12:32:53.787 | Details: {u'badRequest': {u'message': u'Multiple possible networks found, use a Network ID to be more specific.', u'code': 400}}

Miguel Lavalle (minsel)
Changed in tempest:
assignee: nobody → Miguel Lavalle (minsel)
Miguel Lavalle (minsel)
Changed in tempest:
assignee: Miguel Lavalle (minsel) → nobody
Revision history for this message
Nachi Ueno (nati-ueno) wrote :

In order to use VPN, the router should be set external gateway.

We should that configuration in here.

Revision history for this message
Nachi Ueno (nati-ueno) wrote :
Nachi Ueno (nati-ueno)
Changed in tempest:
assignee: nobody → Nachi Ueno (nati-ueno)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master

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

Submitter: Jenkins
Branch: master

commit 41ecf5b3d511b631cdb8061ee325a6abaed69d88
Author: Nachi Ueno <email address hidden>
Date: Tue Dec 10 13:26:33 2013 -0800

    Fix Neutron VPNaaS Test

    VPNService requires Router is connected to external gateway.
    In this commit, we connected the test router to external network.

    Change-Id: Ib87583219efd8efd959c9c7edb813c3a70e7d20c

Changed in tempest:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers