Troveclient requirement update fails due to test_basic_scenario[dashboard]

Bug #1247198 reported by Vijendar Komalla
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Steve Leon

Bug Description

Below test is failing consistently and as a result gerrit review https://review.openstack.org/#/c/52137/ is failing, which is blocking my other changes for DBaaS heat resource.

2013-11-01 15:07:09.391 | ======================================================================
2013-11-01 15:07:09.391 | FAIL: tempest.scenario.test_dashboard_basic_ops.TestDashboardBasicOps.test_basic_scenario[dashboard]
2013-11-01 15:07:09.391 | tempest.scenario.test_dashboard_basic_ops.TestDashboardBasicOps.test_basic_scenario[dashboard]
2013-11-01 15:07:09.391 | ----------------------------------------------------------------------
2013-11-01 15:07:09.392 | _StringException: Empty attachments:
2013-11-01 15:07:09.392 | pythonlogging:''
2013-11-01 15:07:09.392 | stderr
2013-11-01 15:07:09.392 | stdout
2013-11-01 15:07:09.392 |
2013-11-01 15:07:09.392 | Traceback (most recent call last):
2013-11-01 15:07:09.392 | File "tempest/scenario/test_dashboard_basic_ops.py", line 72, in test_basic_scenario
2013-11-01 15:07:09.393 | self.check_login_page()
2013-11-01 15:07:09.393 | File "tempest/scenario/test_dashboard_basic_ops.py", line 43, in check_login_page
2013-11-01 15:07:09.393 | response = urllib2.urlopen(self.config.dashboard.dashboard_url)
2013-11-01 15:07:09.393 | File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
2013-11-01 15:07:09.393 | return _opener.open(url, data, timeout)
2013-11-01 15:07:09.393 | File "/usr/lib/python2.7/urllib2.py", line 406, in open
2013-11-01 15:07:09.394 | response = meth(req, response)
2013-11-01 15:07:09.394 | File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
2013-11-01 15:07:09.394 | 'http', request, response, code, msg, hdrs)
2013-11-01 15:07:09.394 | File "/usr/lib/python2.7/urllib2.py", line 444, in error
2013-11-01 15:07:09.395 | return self._call_chain(*args)
2013-11-01 15:07:09.395 | File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
2013-11-01 15:07:09.395 | result = func(*args)
2013-11-01 15:07:09.395 | File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
2013-11-01 15:07:09.395 | raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
2013-11-01 15:07:09.396 | HTTPError: HTTP Error 500: Internal Server Error
2013-11-01 15:07:09.396 |
2013-11-01 15:07:09.396 |
2013-11-01 15:07:09.396 | ======================================================================

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

I think it's genuinely related to the troveclient update in the patch, we had to pin troveclient in Horizon due to backwards incompatible changes with version 1 (see bug 1238121). I'm not sure what's the current status for updating the Trove panel.

Revision history for this message
Vijendar Komalla (vijendar-komalla) wrote :

Is any one working on fixing Horizon to resolve troveclient(1.0.1)issue? OR some one on troveclient side working to make it backward compatible?

description: updated
Revision history for this message
David Lyle (david-lyle) wrote :

We may have mutually dependant patches. The move to >= 1.0.0 breaks backward compatibility and thus horizon's gate test. On the plus side hurrah for the gate test. We'll need to consult with the infra team on how to get these in together.

Horizon patch

https://review.openstack.org/#/c/51234/

Changed in horizon:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Julie Pichon (jpichon) wrote :

Or perhaps mark the Tempest test as "skipped" while we update the requirement. I'd still like to figure out why/how it is failing in the first place though.

summary: - CI fails due to test_basic_scenario[dashboard]
+ Troveclient requirement update fails due to
+ test_basic_scenario[dashboard]
Jeremy Stanley (fungi)
Changed in openstack-ci:
status: New → Incomplete
Revision history for this message
David Lyle (david-lyle) wrote :

The test is failing because the internal structure of python-troveclient changed. Part of that structure is assumed on imports for the tests whether to include the trove code. Since it's as fundamental as an import failure, we get a 500 error even on the login page.

We need to skip the Horizon test in tempest and let the requirements change merge. Then reenable the tempest test. And finally merge the Horizon fix linked above.

Changed in horizon:
milestone: none → ongoing
milestone: ongoing → icehouse-1
no longer affects: openstack-ci
Revision history for this message
Julie Pichon (jpichon) wrote :

@david-lyle: That approach sounds fine to me, though the last 2 steps seem inverted as I would imagine the Horizon change needs to land before the test is reenabled, otherwise it will fail again due to the import issue?

Revision history for this message
Vijendar Komalla (vijendar-komalla) wrote :

Is any one in Horizon looking into this issue? for the last few weeks, this issue is blocking requirements change to update python-troveclient version. This in turn blocking heat DBaaS resource change (https://review.openstack.org/#/c/51712/) from merging!

Revision history for this message
David Lyle (david-lyle) wrote :

Compatibility addressed by:
https://review.openstack.org/#/c/56483/

Changed in horizon:
assignee: nobody → David Lyle (david-lyle)
assignee: David Lyle (david-lyle) → Steve Leon (steve-leon)
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-1 → 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.