Output from API calls in the tests

Bug #1300141 reported by Julie Pichon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Radomir Dopieralski
Icehouse
Won't Fix
Undecided
Unassigned

Bug Description

After pulling the latest this morning, I see the following output in the tests:

test_index (openstack_dashboard.dashboards.admin.info.tests.SystemInfoViewTests) ...
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/os-quota-sets/1/defaults (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
ok

It looks like there is an API call that should be mocked, that isn't.

Revision history for this message
Ana Krivokapić (akrivoka) wrote :

I just tried running tests on a fresh git clone of Horizon, and I'm not seeing this. Perhaps a stale virtual env?

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

Looks like something might be wrong with that repo in general - even with a fresh venv I see the problem, but not when I clone a totally new one. Thanks for the reply and sorry for the noise!

Changed in horizon:
status: New → Invalid
Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

I'm hitting something alike.

(...)
Running openstack_dashboard tests
nosetests openstack_dashboard --nocapture --nologcapture --cover-package=openstack_dashboard --cover-inclusive --all-modules --exclude-dir=openstack_dashboard/test/integration_tests --verbosity=1
Creating test database for alias 'default'...
DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
WARNING:py.warnings:DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
................................................................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/os-quota-sets/1/defaults (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)
(...)

Revision history for this message
Federico Gimenez (fgimenez) wrote :

Same here, after a devstack clean install the suite runs smoothly. When the machine is rebooted (maybe not all the services are started) I get also:

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/os-quota-sets/1/defaults (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)

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

Looks like there's a review to fix it at https://review.openstack.org/#/c/84373/

Changed in horizon:
status: Invalid → Confirmed
Changed in horizon:
assignee: nobody → Radomir Dopieralski (thesheep)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit e019ed140e31f4a25b843429b70c3e28d48a8628
Author: Radomir Dopieralski <email address hidden>
Date: Tue Apr 1 03:19:57 2014 -0400

    Add missing mock for cinder.default_quota_get

    When running tests, I get the following logs:

    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/os-quota-sets/1/defaults (Caused by <class
    'socket.gaierror'>: [Errno -2] Name or service not known)

    Which signify, that there is a mock missing in the tests.
    This patch adds that missing mock.

    Change-Id: I4f79f533b729112d11c7165adde2ac751d49f46b
    Closes-Bug: #1300141

Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to horizon (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/90141

Julie Pichon (jpichon)
Changed in horizon:
milestone: none → juno-1
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to horizon (stable/icehouse)

Reviewed: https://review.openstack.org/90141
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=0c3b71055c0d169b8245aee773438dbcb46c2bcf
Submitter: Jenkins
Branch: stable/icehouse

commit 0c3b71055c0d169b8245aee773438dbcb46c2bcf
Author: Radomir Dopieralski <email address hidden>
Date: Tue Apr 1 03:19:57 2014 -0400

    Add missing mock for cinder.default_quota_get

    When running tests, I get the following logs:

    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/os-quota-sets/1/defaults (Caused by <class
    'socket.gaierror'>: [Errno -2] Name or service not known)

    Which signify, that there is a mock missing in the tests.
    This patch adds that missing mock.

    Change-Id: I4f79f533b729112d11c7165adde2ac751d49f46b
    Closes-Bug: #1300141
    (cherry picked from commit e019ed140e31f4a25b843429b70c3e28d48a8628)

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-1 → 2014.2
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.