DEBUG:cinderclient.client:Connection refused when running tests

Bug #1284665 reported by Radomir Dopieralski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Julie Pichon

Bug Description

When running the tests, this is displayed several times and ignored (no tests fail):

INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): public.nova.example.com
DEBUG:cinderclient.client:Connection refused: HTTPConnectionPool(host='public.nova.example.com', port=8776): Max retries exceeded with url: /v1/snapshots/detail (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
.INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): public.nova.example.com
DEBUG:cinderclient.client:Connection refused: HTTPConnectionPool(host='public.nova.example.com', port=8776): Max retries exceeded with url: /v1/snapshots/detail (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)

Looks like cinder is not mocked properly.

Revision history for this message
Julie Pichon (jpichon) wrote :

Running the tests in verbose mode, looks like the following tests failed this way:

test_create_button_disabled_when_quota_exceeded (openstack_dashboard.dashboards.project.volumes.volumes.tests.VolumeViewTests) ...
test_delete_volume (openstack_dashboard.dashboards.project.volumes.volumes.tests.VolumeViewTests)
test_delete_volume_error_existing_snapshot (openstack_dashboard.dashboards.project.volumes.volumes.tests.VolumeViewTests)

Perhaps due to the recent refactorings in the volumes panel (commit 3d25f1d595)?

Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
Julie Pichon (jpichon)
Changed in horizon:
milestone: none → icehouse-3
Julie Pichon (jpichon)
Changed in horizon:
assignee: nobody → Julie Pichon (jpichon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote :

Not sure why the traces were only shown when running all the tests but not when running a subset...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/76550
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=6d45ff057571ca607b9471e63a587c2b230372f6
Submitter: Jenkins
Branch: master

commit 6d45ff057571ca607b9471e63a587c2b230372f6
Author: Julie Pichon <email address hidden>
Date: Wed Feb 26 14:36:36 2014 +0000

    Clean up Cinder client traces in the test output

    The Volumes index page has 2 tabs now, for volumes and snapshots. The
    calls to list the snapshots were not mocked in a couple of places.

    Change-Id: I0f4a59c19b7f5dfb12df41f8c9d3261eea802874
    Closes-Bug: #1284665

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-3 → 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.