test_list_instance_action_with_changes_before intermittently fails with "MismatchError: ['create'] != ['create', 'stop']"

Bug #1817064 reported by Matt Riedemann on 2019-02-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Medium
Takashi NATSUME

Bug Description

Looks like bug 1795392 is still happening:

http://logs.openstack.org/14/638214/1/check/novaclient-dsvm-functional/2d72be7/job-output.txt.gz#_2019-02-21_10_34_22_068148

2019-02-21 10:34:22.068148 | primary | 2019-02-21 10:34:22.067 | {0} novaclient.tests.functional.v2.test_instance_action.TestInstanceActionCLIV266.test_list_instance_action_with_changes_before [77.038427s] ... FAILED
2019-02-21 10:34:22.070395 | primary | 2019-02-21 10:34:22.069 |
2019-02-21 10:34:22.072195 | primary | 2019-02-21 10:34:22.071 | Captured traceback:
2019-02-21 10:34:22.073917 | primary | 2019-02-21 10:34:22.073 | ~~~~~~~~~~~~~~~~~~~
2019-02-21 10:34:22.076139 | primary | 2019-02-21 10:34:22.075 | Traceback (most recent call last):
2019-02-21 10:34:22.077915 | primary | 2019-02-21 10:34:22.077 | File "novaclient/tests/functional/v2/test_instance_action.py", line 176, in test_list_instance_action_with_changes_before
2019-02-21 10:34:22.083614 | primary | 2019-02-21 10:34:22.083 | self.assertEqual(action, ['create', 'stop'])
2019-02-21 10:34:22.085490 | primary | 2019-02-21 10:34:22.084 | File "/opt/stack/new/python-novaclient/.tox/functional/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
2019-02-21 10:34:22.087854 | primary | 2019-02-21 10:34:22.087 | self.assertThat(observed, matcher, message)
2019-02-21 10:34:22.090157 | primary | 2019-02-21 10:34:22.089 | File "/opt/stack/new/python-novaclient/.tox/functional/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
2019-02-21 10:34:22.092099 | primary | 2019-02-21 10:34:22.091 | raise mismatch_error
2019-02-21 10:34:22.094390 | primary | 2019-02-21 10:34:22.093 | testtools.matchers._impl.MismatchError: ['create'] != ['create', 'stop']

Matt Riedemann (mriedem) on 2019-02-21
Changed in python-novaclient:
status: New → Confirmed
importance: Undecided → Medium
Changed in python-novaclient:
assignee: nobody → Takashi NATSUME (natsume-takashi)

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

Changed in python-novaclient:
status: Confirmed → In Progress
Changed in python-novaclient:
assignee: Takashi NATSUME (natsume-takashi) → Matt Riedemann (mriedem)
Matt Riedemann (mriedem) on 2019-02-27
Changed in python-novaclient:
assignee: Matt Riedemann (mriedem) → Takashi NATSUME (natsume-takashi)

Reviewed: https://review.openstack.org/638849
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=7e877c4fdb7843b674236204a9a3d31d07e6ad6f
Submitter: Zuul
Branch: master

commit 7e877c4fdb7843b674236204a9a3d31d07e6ad6f
Author: Takashi NATSUME <email address hidden>
Date: Sun Feb 24 00:15:19 2019 +0900

    Fix changes-before values in an instance action test

    In some DBMSs (e.g. MySQL 5.7 (*1)), fractions (millisecond and
    microsecond) of DateTime column is not stored by default.

    *1: https://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html

    Fix specifying the 'changes-before' values
    in the functional test for the 'instance-action-list' command.

    Change-Id: I79e80088bcbf559a58aa90a831b54017af310a26
    Closes-Bug: #1817064

Changed in python-novaclient:
status: In Progress → Fix Released

This issue was fixed in the openstack/python-novaclient 13.0.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers