Volume vol-55A4A8C0 got an error state error search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
- outcome.expecting_failure = False
- with outcome.testPartExecutor(self):
- self.tearDown()
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/volumes.py in test_describe_filters (arguments ▶)
- @common.mark.tags
- def test_describe_filters(self):
- """Test DescribeVolumes with different filters."""
- zone = self.ec2zone
- volume1 = self.create_volume(zone=zone)
- snapshot1 = self.create_snapshot(volume1.id)
- volume2 = self.create_volume(snapshot=snapshot1, zone=zone)
- def _filter_test(filters, volume1_in, volume2_in):
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in create_volume (arguments ▶)
- zone = zone or self.ec2zone
- if kwargs.get("volume_type"):
- zone = self.get_zone_for_vtype(kwargs["volume_type"], zone)
- self.log.warning("Create volume: args: %s; kwargs: %s", (size, zone), kwargs)
- volume = utils.create_volume(self.conn, size, zone, **kwargs)
- self.log.info("Volume created: %s", common.pprint(volume))
- self.entities[resources.EC2_VOLUMES].append(volume)
- return volume
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in create_volume (arguments ▶)
- kwargs["iops"] = driver.default_iops
- volume = conn.create_volume(size, zone, **kwargs)
- if wait:
- try:
- wait_for_volume_creating(conn, [volume])
- except:
- volume.delete()
- raise
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_for_volume_creating (arguments ▶)
- wait_for_volumes_status(
- conn,
- volumes,
- [constants.VOLUME_STATUS_AVAILABLE],
- intermediate_statuses=[
- constants.VOLUME_STATUS_CREATING,
- ]
- )
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_for_volumes_status (arguments ▶)
- raise Error("Volume {0} has disappeared.",
- set(volume_ids).difference(got_ids).pop())
- return True
- wait_long(check_state)
- def wait_for_volume_creating(conn, volumes):
- """Waits until the moment when volumes finish their creating."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments ▶)
- def wait_long(func, *args, **kwargs):
- """Fail unless func return success within the long timeout"""
- return wait(5 * constants.MINUTE_SECONDS, func, *args, **kwargs)
- def wait_long_enough(func, *args, **kwargs):
- """Fail unless func return success within the enough long timeout."""
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait (arguments ▶)
- def wait(timeout, func, *args, **kwargs):
- """Fail unless func return success within specified number of seconds"""
- endtime = time.time() + float(timeout)
- while time.time() < endtime:
- result = func(*args, **kwargs)
- if result:
- return result
- time.sleep(min(timeout, 0.1))
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in check_state (arguments ▶)
- pass
- elif intermediate_statuses is not None:
- if volume.status in intermediate_statuses:
- return False
- else:
- raise Error("Volume {0} got an error state {1}", volume.id, volume.status)
- else:
- return False
- if got_ids != set(volume_ids):