Error

Volume vol-2A81CEA0 got an error state error search by Google

args : tuple
('Volume vol-2A81CEA0 got an error state error',)

Traceback

  1. /usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments )

    self : _Outcome
    <unittest.case._Outcome object at 0x7fe3fdab1150>
    test_case : Snapshots
    test_describe_tags (c2tests.ec2.snapshots.Snapshots)
    isTest : bool
    True
    1. @contextlib.contextmanager
    2. def testPartExecutor(self, test_case, isTest=False):
    3. old_success = self.success
    4. self.success = True
    5. try:
    6. yield
    7. except KeyboardInterrupt:
    8. raise
    9. except SkipTest as e:
    10. self.success = False

    Locals

    exc_info : NoneType
    None
    old_success : bool
    True

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fe415310fc0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  2. /usr/local/lib/python3.7/unittest/case.py in run (arguments )

    self : Snapshots
    test_describe_tags (c2tests.ec2.snapshots.Snapshots)
    result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    1. with outcome.testPartExecutor(self):
    2. self.setUp()
    3. if outcome.success:
    4. outcome.expecting_failure = expecting_failure
    5. with outcome.testPartExecutor(self, isTest=True):
    6. testMethod()
    7. outcome.expecting_failure = False
    8. with outcome.testPartExecutor(self):
    9. self.tearDown()

    Locals

    expecting_failure : bool
    False
    expecting_failure_class : bool
    False
    expecting_failure_method : bool
    False
    orig_result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    outcome : _Outcome
    <unittest.case._Outcome object at 0x7fe3fdab1150>
    testMethod : method
    <bound method Snapshots.test_describe_tags of <c2tests.ec2.snapshots.Snapshots testMethod=test_describe_tags>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fe415310fc0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  3. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/snapshots.py in test_describe_tags (arguments )

    self : Snapshots
    test_describe_tags (c2tests.ec2.snapshots.Snapshots)
    1. @common.mark.describe
    2. @common.mark.tags
    3. def test_describe_tags(self):
    4. """Tests that tags described properly in tagSet."""
    5. volume = self.create_volume()
    6. self.create_snapshot(volume.id)
    7. snapshot = self.create_snapshot(volume.id)
    8. self.create_tag(snapshot.id, "test_snap_key", "test_snap_value")
  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in create_volume (arguments )

    self : Snapshots
    test_describe_tags (c2tests.ec2.snapshots.Snapshots)
    size : NoneType
    None
    zone : str
    az-1
    **kwargs : dict
    {}
    1. zone = zone or self.ec2zone
    2. if kwargs.get("volume_type"):
    3. zone = self.get_zone_for_vtype(kwargs["volume_type"], zone)
    4. self.log.warning("Create volume: args: %s; kwargs: %s", (size, zone), kwargs)
    5. volume = utils.create_volume(self.conn, size, zone, **kwargs)
    6. self.log.info("Volume created: %s", common.pprint(volume))
    7. self.entities[resources.EC2_VOLUMES].append(volume)
    8. return volume

    Locals

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7fe407aa0ed0>
  5. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in create_volume (arguments )

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7fe406124a10>
    size : int
    1
    zone : str
    az-1
    wait : bool
    True
    **kwargs : dict
    {}
    1. kwargs["iops"] = driver.default_iops
    2. volume = conn.create_volume(size, zone, **kwargs)
    3. if wait:
    4. try:
    5. wait_for_volume_creating(conn, [volume])
    6. except:
    7. volume.delete()
    8. raise

    Locals

    driver : VolumeDriverStandard
    <c2tests.utils.VolumeDriverStandard object at 0x7fe3fc94e3d0>
    volume : Volume
    Volume:vol-2A81CEA0

    Globals

    _DD : str
    /bin/dd
    _QEMU_IMG : str
    /usr/bin/qemu-img
    LOG : RootLogger
    <RootLogger root (DEBUG)>
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
    RULES : list
    [{'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'tcp', 'from_port': '22', 'to_port': '22'}, {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}]
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_for_volume_creating (arguments )

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7fe406124a10>
    volumes : list
    [Volume:vol-2A81CEA0]
    1. wait_for_volumes_status(
    2. conn,
    3. volumes,
    4. [constants.VOLUME_STATUS_AVAILABLE],
    5. intermediate_statuses=[
    6. constants.VOLUME_STATUS_CREATING,
    7. ]
    8. )

    Locals

    Globals

    _DD : str
    /bin/dd
    _QEMU_IMG : str
    /usr/bin/qemu-img
    LOG : RootLogger
    <RootLogger root (DEBUG)>
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
    RULES : list
    [{'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'tcp', 'from_port': '22', 'to_port': '22'}, {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}]
  7. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_for_volumes_status (arguments )

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7fe406124a10>
    volumes : list
    [Volume:vol-2A81CEA0]
    final_statuses : list
    ['available']
    intermediate_statuses : list
    ['creating']
    1. raise Error("Volume {0} has disappeared.",
    2. set(volume_ids).difference(got_ids).pop())
    3. return True
    4. wait_long(check_state)
    5. def wait_for_volume_creating(conn, volumes):
    6. """Waits until the moment when volumes finish their creating."""

    Locals

    volume_ids : list
    ['vol-2A81CEA0']

    Globals

    _DD : str
    /bin/dd
    _QEMU_IMG : str
    /usr/bin/qemu-img
    LOG : RootLogger
    <RootLogger root (DEBUG)>
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
    RULES : list
    [{'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'tcp', 'from_port': '22', 'to_port': '22'}, {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}]
  8. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_long (arguments )

    func : function
    <function wait_for_volumes_status.<locals>.check_state at 0x7fe3fd769f80>
    *args : tuple
    ()
    **kwargs : dict
    {}
    1. def wait_long(func, *args, **kwargs):
    2. """Fail unless func return success within the long timeout"""
    3. return wait(5 * constants.MINUTE_SECONDS, func, *args, **kwargs)
    4. def wait_long_enough(func, *args, **kwargs):
    5. """Fail unless func return success within the enough long timeout."""

    Locals

    Globals

    _DD : str
    /bin/dd
    _QEMU_IMG : str
    /usr/bin/qemu-img
    LOG : RootLogger
    <RootLogger root (DEBUG)>
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
    RULES : list
    [{'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'tcp', 'from_port': '22', 'to_port': '22'}, {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}]
  9. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait (arguments )

    timeout : int
    300
    func : function
    <function wait_for_volumes_status.<locals>.check_state at 0x7fe3fd769f80>
    *args : tuple
    ()
    **kwargs : dict
    {}
    1. def wait(timeout, func, *args, **kwargs):
    2. """Fail unless func return success within specified number of seconds"""
    3. endtime = time.time() + float(timeout)
    4. while time.time() < endtime:
    5. result = func(*args, **kwargs)
    6. if result:
    7. return result
    8. time.sleep(min(timeout, 0.1))

    Locals

    endtime : float
    1708636548.8568377

    Globals

    _DD : str
    /bin/dd
    _QEMU_IMG : str
    /usr/bin/qemu-img
    LOG : RootLogger
    <RootLogger root (DEBUG)>
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
    RULES : list
    [{'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'tcp', 'from_port': '22', 'to_port': '22'}, {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}]
  10. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in check_state (arguments )

    1. pass
    2. elif intermediate_statuses is not None:
    3. if volume.status in intermediate_statuses:
    4. return False
    5. else:
    6. raise Error("Volume {0} got an error state {1}", volume.id, volume.status)
    7. else:
    8. return False
    9. if got_ids != set(volume_ids):

    Locals

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7fe406124a10>
    final_statuses : list
    ['available']
    got_ids : set
    {'vol-2A81CEA0'}
    intermediate_statuses : list
    ['creating']
    volume : Volume
    Volume:vol-2A81CEA0
    volume_ids : list
    ['vol-2A81CEA0']

    Globals

    _DD : str
    /bin/dd
    _QEMU_IMG : str
    /usr/bin/qemu-img
    LOG : RootLogger
    <RootLogger root (DEBUG)>
    md5 : builtin_function_or_method
    <built-in function openssl_md5>
    RULES : list
    [{'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'tcp', 'from_port': '22', 'to_port': '22'}, {'cidr_ip': '0.0.0.0/0', 'ip_protocol': 'icmp', 'from_port': '-1', 'to_port': '-1'}]

Environment

Time of report generation
2024-02-23 00:10:50
Python version
3.7.9 (default, Sep 21 2022, 19:11:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Path to executable
/root/c2tests/.venv/bin/python
Working directory
/root/c2tests
Arguments vector
  1. /root/c2tests/.venv/bin/c2tests
  2. run
  3. -s
  4. ec2
  5. s3
  6. vpc