Testing error if sqlite3 not installed

Bug #1227868 reported by Andrew Laski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Andrew Laski

Bug Description

======================================================================
FAIL: nova.tests.db.test_sqlite.TestSqlite.test_big_int_mapping
tags: worker-1
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:''
  stderr
  stdout

Traceback (most recent call last):
  File "nova/tests/db/test_sqlite.py", line 51, in test_big_int_mapping
    output, _ = utils.execute(get_schema_cmd, shell=True)
  File "nova/utils.py", line 178, in execute
    return processutils.execute(*cmd, **kwargs)
  File "nova/openstack/common/processutils.py", line 178, in execute
    cmd=' '.join(cmd))
ProcessExecutionError: Unexpected error while running command.
Command: sqlite3 test_bigint.sqlite '.schema'
Exit code: 127
Stdout: ''
Stderr: '/bin/sh: 1: sqlite3: not found\n'
======================================================================

The test should handle the lack of sqlite3 gracefully, in the same manner as the mysql or postgresql tests.

Revision history for this message
Andrew Laski (alaski) wrote :

It doesn't affect Jenkins, but can cause a local test failure for devs.

Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
assignee: nobody → Andrew Laski (alaski)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/47463
Committed: http://github.com/openstack/nova/commit/e9704d0f019be530d5952844feecaf0ed4e31914
Submitter: Jenkins
Branch: master

commit e9704d0f019be530d5952844feecaf0ed4e31914
Author: Andrew Laski <email address hidden>
Date: Thu Sep 19 16:24:15 2013 -0400

    Skip test if sqlite3 not installed

    The test is attempting to run the sqlite3 binary during its test run.
    Since there's no guarantee that it's installed it should catch an
    execution error and skip.

    Change-Id: I9f4ed1872fcfe3b8393644a77692dbfcce8ecab2
    Closes-bug: 1227868

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-rc1 → 2013.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.