Compute examples test fail

Bug #1522919 reported by Richard Theis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
Fix Released
Undecided
Unassigned

Bug Description

The compute examples test fails (see gate-sdk-dsvm-functional failures on current patch sets). Output from the failure is below. The network examples test is successful and so is the new identity examples test being added under https://review.openstack.org/#/c/253578/.

Fixing the compute examples test is critical to make the gate-sdk-dsvm-functional Jenkins check vote.

Instructions for running the tests can be found at http://python-openstacksdk.readthedocs.org/en/latest/contributors/testing.html

Log:
2015-12-04 17:36:01.762 | 2015-12-04 17:36:01.705 | ==============================
2015-12-04 17:36:01.768 | 2015-12-04 17:36:01.709 | Failed 1 tests - output below:
2015-12-04 17:36:01.772 | 2015-12-04 17:36:01.715 | ==============================
2015-12-04 17:36:01.774 | 2015-12-04 17:36:01.717 |
2015-12-04 17:36:01.776 | 2015-12-04 17:36:01.719 | openstack.tests.examples.test_compute.TestCompute.test_compute
2015-12-04 17:36:01.779 | 2015-12-04 17:36:01.722 | --------------------------------------------------------------
2015-12-04 17:36:01.784 | 2015-12-04 17:36:01.726 |
2015-12-04 17:36:01.789 | 2015-12-04 17:36:01.732 | Captured traceback:
2015-12-04 17:36:01.792 | 2015-12-04 17:36:01.735 | ~~~~~~~~~~~~~~~~~~~
2015-12-04 17:36:01.795 | 2015-12-04 17:36:01.738 | Traceback (most recent call last):
2015-12-04 17:36:01.798 | 2015-12-04 17:36:01.741 | File "openstack/tests/examples/test_compute.py", line 46, in test_compute
2015-12-04 17:36:01.800 | 2015-12-04 17:36:01.743 | create.create_server(self.conn)
2015-12-04 17:36:01.803 | 2015-12-04 17:36:01.746 | File "examples/compute/create.py", line 52, in create_server
2015-12-04 17:36:01.806 | 2015-12-04 17:36:01.749 | keypair = create_keypair(conn)
2015-12-04 17:36:01.809 | 2015-12-04 17:36:01.751 | File "examples/compute/create.py", line 38, in create_keypair
2015-12-04 17:36:01.812 | 2015-12-04 17:36:01.754 | with open(PRIVATE_KEYPAIR_FILE, 'w') as f:
2015-12-04 17:36:01.818 | 2015-12-04 17:36:01.758 | IOError: [Errno 2] No such file or directory: 'None/.ssh/id_rsa.openstacksdk-example'
2015-12-04 17:36:01.821 | 2015-12-04 17:36:01.764 |
2015-12-04 17:36:01.823 | 2015-12-04 17:36:01.766 |
2015-12-04 17:36:01.826 | 2015-12-04 17:36:01.769 |
2015-12-04 17:36:01.828 | 2015-12-04 17:36:01.771 | ======
2015-12-04 17:36:01.830 | 2015-12-04 17:36:01.773 | Totals
2015-12-04 17:36:01.832 | 2015-12-04 17:36:01.776 | ======
2015-12-04 17:36:01.835 | 2015-12-04 17:36:01.777 | Ran: 3 tests in 38.0000 sec.
2015-12-04 17:36:01.839 | 2015-12-04 17:36:01.781 | - Passed: 2
2015-12-04 17:36:01.842 | 2015-12-04 17:36:01.785 | - Skipped: 0
2015-12-04 17:36:01.845 | 2015-12-04 17:36:01.788 | - Expected Fail: 0
2015-12-04 17:36:01.849 | 2015-12-04 17:36:01.791 | - Unexpected Success: 0
2015-12-04 17:36:01.852 | 2015-12-04 17:36:01.795 | - Failed: 1
2015-12-04 17:36:01.854 | 2015-12-04 17:36:01.797 | Sum of execute time for each test: 8.3809 sec.
2015-12-04 17:36:01.856 | 2015-12-04 17:36:01.800 |
2015-12-04 17:36:01.859 | 2015-12-04 17:36:01.802 | ==============
2015-12-04 17:36:01.863 | 2015-12-04 17:36:01.805 | Worker Balance
2015-12-04 17:36:01.868 | 2015-12-04 17:36:01.809 | ==============
2015-12-04 17:36:01.871 | 2015-12-04 17:36:01.814 | - Worker 0 (1 tests) => 0:00:02.784047
2015-12-04 17:36:01.880 | 2015-12-04 17:36:01.816 | - Worker 1 (1 tests) => 0:00:02.105262
2015-12-04 17:36:01.882 | 2015-12-04 17:36:01.825 | - Worker 2 (1 tests) => 0:00:03.491563
2015-12-04 17:36:01.976 | 2015-12-04 17:36:01.918 | Test id Runtime (s)
2015-12-04 17:36:01.977 | 2015-12-04 17:36:01.920 | ----------------------------------------------------------------- -----------
2015-12-04 17:36:01.979 | 2015-12-04 17:36:01.922 | openstack.tests.examples.test_compute.TestCompute.test_compute 3.492
2015-12-04 17:36:01.983 | 2015-12-04 17:36:01.926 | openstack.tests.examples.test_identity.TestIdentity.test_identity 2.784
2015-12-04 17:36:01.988 | 2015-12-04 17:36:01.931 | openstack.tests.examples.test_network.TestNetwork.test_network 2.105
2015-12-04 17:36:01.992 | 2015-12-04 17:36:01.934 |
2015-12-04 17:36:02.014 | 2015-12-04 17:36:01.957 | Slowest Tests:
2015-12-04 17:36:02.017 | 2015-12-04 17:36:01.960 |
2015-12-04 17:36:02.023 | 2015-12-04 17:36:01.966 | ERROR: InvocationError: '/opt/stack/new/python-openstacksdk/.tox/examples/bin/ostestr'
2015-12-04 17:36:02.027 | 2015-12-04 17:36:01.970 | ___________________________________ summary ____________________________________
2015-12-04 17:36:02.031 | 2015-12-04 17:36:01.974 | ERROR: examples: commands failed
2015-12-04 17:36:02.048 | 2015-12-04 17:36:01.991 | =========================================================
2015-12-04 17:36:02.050 | 2015-12-04 17:36:01.993 | -bash: line 15: test: too many arguments

Richard Theis (rtheis)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstacksdk (master)

Reviewed: https://review.openstack.org/254307
Committed: https://git.openstack.org/cgit/openstack/python-openstacksdk/commit/?id=1950fbfcb9f7b4bccbfa1b7a8957a00d502d4f0d
Submitter: Jenkins
Branch: master

commit 1950fbfcb9f7b4bccbfa1b7a8957a00d502d4f0d
Author: Everett Toews <email address hidden>
Date: Mon Dec 7 11:00:56 2015 -0600

    Fix failing compute example

    Change-Id: I7fb8e940f36a042bfcdf94b1147ec96f4ea3f066
    Closes-Bug: #1522919

Changed in python-openstacksdk:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to python-openstacksdk (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/255284

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to python-openstacksdk (master)

Reviewed: https://review.openstack.org/255284
Committed: https://git.openstack.org/cgit/openstack/python-openstacksdk/commit/?id=aae2623661c3c8a96c8d4d2e57a70460be52dbac
Submitter: Jenkins
Branch: master

commit aae2623661c3c8a96c8d4d2e57a70460be52dbac
Author: Richard Theis <email address hidden>
Date: Wed Dec 9 08:32:54 2015 -0600

    Fix 400 error in compute examples

    The functional tests use the DevStack cirros image instead of a
    fedora image. Update the examples tests to do the same since
    the fedora image is not available in the test environment.

    Change-Id: Ib90cff818d36fa71445109c6950d79c6f1b477a7
    Related-Bug: #1522919

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.