No protection against resize down in resize testing

Bug #1450648 reported by Jesse Keating
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Medium
Jesse Keating

Bug Description

When runnig both test_resize_server_confirm and test_resize_server_revert the revert test will fail. I believe this is due to attempting to resize down the filesystem, which isn't supported in a number of scenarios.

If test_resize_server_revert is tested in isolation then it passes, this has to do with re-using the same instance for both tests.

2015-04-30 21:44:19.578 28855 ERROR oslo.messaging.rpc.dispatcher [req-a45aa602-
7dfc-4516-b070-6a5284100681 ] Exception during message handling: Resize error: Unable to resize disk down.
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher payload)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/exception.py", line 71, in wrapped
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher return f(self, context, *args, **kw)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 298, in decorated_function
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher pass
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 284, in decorated_function
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 348, in decorated_function
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 272, in decorated_function
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher migration.instance_uuid, exc_info=True)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 259, in decorated_function
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 326, in decorated_function
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 314, in decorated_function
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 3795, in resize_instance
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher self.instance_events.clear_events_for_instance(instance)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher self.gen.throw(type, value, traceback)
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher File "/opt/bbc/openstack-10.0-bbc40/nova/local/lib/python2.7/site-packages/nova/compute/manager.py", line 6123, in _error_out_instance_on_exception
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher raise error.inner_exception
2015-04-30 21:44:19.578 28855 TRACE oslo.messaging.rpc.dispatcher ResizeError: Resize error: Unable to resize disk down.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

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

Changed in tempest:
assignee: nobody → Jesse Keating (jesse-keating)
status: New → In Progress
Changed in tempest:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/179272
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=613b498ca967a2591bfd74c284f7ab30c1c98f4a
Submitter: Jenkins
Branch: master

commit 613b498ca967a2591bfd74c284f7ab30c1c98f4a
Author: Jesse Keating <email address hidden>
Date: Mon May 4 15:05:19 2015 -0700

    Delete server after resize test

    Explicitly deleting will prevent attempting to resize down an instance
    that was used for other resize tests. Every resize test will get its own
    server.

    Because there is now no potential to be resizing back and forth between
    flavor_ref and flavor_ref_alt we can do away with the code that tried to
    figure out what the direction should be. Resizes will now always be from
    flavor_ref to flavor_ref_alt, another protection against attempting to
    resize down.

    This does add extra work, deleting a server after each test and making a
    new one, however as it does away with resize direction ambiguity and
    happy accidental successes the performance hit is worth it.

    Change-Id: I7ba85c94d40927f31e1e07b9940e5a4ed1a7577f
    Closes-Bug: #1450648

Changed in tempest:
status: In Progress → Fix Released
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.