Tests fail when one-shot request to Juju Charm Store fails

Bug #1669340 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Charm Test Infra
Triaged
Medium
Unassigned

Bug Description

Example trace back:
DEBUG:runner:ERROR:root:Request timed out: https://api.jujucharms.com/v4/~openstack-charmers-next/trusty/percona-cluster/meta/any?include=bundle-machine-count&include=bundle-metadata&include=bundle-unit-count&include=bundles-containing&include=charm-actions&include=charm-config&include=charm-metadata&include=common-info&include=extra-info&include=revision-info&include=stats&include=supported-series&include=manifest&include=tags&include=promulgated&include=perm&include=id timeout: 10.0
DEBUG:runner:Traceback (most recent call last):
DEBUG:runner: File "/tmp/bundletester-1VtFyw/keystone/tests/gate-basic-trusty-kilo", line 24, in <module>
DEBUG:runner: source='cloud:trusty-updates/kilo')
DEBUG:runner: File "/tmp/bundletester-1VtFyw/keystone/tests/basic_deployment.py", line 55, in __init__
DEBUG:runner: self._add_services()
DEBUG:runner: File "/tmp/bundletester-1VtFyw/keystone/tests/basic_deployment.py", line 90, in _add_services
DEBUG:runner: other_services)
DEBUG:runner: File "/tmp/bundletester-1VtFyw/keystone/tests/charmhelpers/contrib/openstack/amulet/deployment.py", line 147, in _add_services
DEBUG:runner: other_services)
DEBUG:runner: File "/tmp/bundletester-1VtFyw/keystone/tests/charmhelpers/contrib/amulet/deployment.py", line 67, in _add_services
DEBUG:runner: constraints=svc.get('constraints'))
DEBUG:runner: File "/var/lib/jenkins/checkout/0/keystone/.tox/func27/local/lib/python2.7/site-packages/amulet/deployer.py", line 218, in add
DEBUG:runner: service_name, charm, branch=branch, series=service['series'])
DEBUG:runner: File "/var/lib/jenkins/checkout/0/keystone/.tox/func27/local/lib/python2.7/site-packages/amulet/charm.py", line 57, in fetch
DEBUG:runner: series=series)
DEBUG:runner: File "/var/lib/jenkins/checkout/0/keystone/.tox/func27/local/lib/python2.7/site-packages/amulet/charm.py", line 42, in get_charm
DEBUG:runner: return Charm(with_series(charm_path, series))
DEBUG:runner: File "/var/lib/jenkins/checkout/0/keystone/.tox/func27/local/lib/python2.7/site-packages/charmstore/lib.py", line 165, in __init__
DEBUG:runner: super(Charm, self).__init__(id, api=api, timeout=timeout)
DEBUG:runner: File "/var/lib/jenkins/checkout/0/keystone/.tox/func27/local/lib/python2.7/site-packages/charmstore/lib.py", line 115, in __init__
DEBUG:runner: AVAILABLE_INCLUDES).get('Meta')
DEBUG:runner: File "/var/lib/jenkins/checkout/0/keystone/.tox/func27/local/lib/python2.7/site-packages/theblues/charmstore.py", line 107, in _meta
DEBUG:runner: data = self._get(url)
DEBUG:runner: File "/var/lib/jenkins/checkout/0/keystone/.tox/func27/local/lib/python2.7/site-packages/theblues/charmstore.py", line 78, in _get
DEBUG:runner: raise ServerError(message)
DEBUG:runner:theblues.errors.ServerError: Request timed out: https://api.jujucharms.com/v4/~openstack-charmers-next/trusty/percona-cluster/meta/any?include=bundle-machine-count&include=bundle-metadata&include=bundle-unit-count&include=bundles-containing&include=charm-actions&include=charm-config&include=charm-metadata&include=common-info&include=extra-info&include=revision-info&include=stats&include=supported-series&include=manifest&include=tags&include=promulgated&include=perm&include=id timeout: 10.0
DEBUG:runner:Exit Code: 1

Would we benefit from a retry logic for these, or should we just accept that once in a while one shot failures on HTTP requests to the Juju charm store will lead to test failures?

James Page (james-page)
Changed in charm-test-infra:
status: New → Triaged
importance: Undecided → Medium
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.