Error

Volume vol-1C0DB500 got an error state error search by Google

args : tuple
('Volume vol-1C0DB500 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 0x7fb039e0ca90>
    test_case : ImportExportService
    test_cancel_task_export_volume (c2tests.ec2.importexportservice.ImportExportService)
    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 0x7fb0513c8fd0>
    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 : ImportExportService
    test_cancel_task_export_volume (c2tests.ec2.importexportservice.ImportExportService)
    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 0x7fb039e0ca90>
    testMethod : method
    <bound method ImportExportService.test_cancel_task of <c2tests.ec2.importexportservice.ImportExportService testMethod=test_cancel_task_export_volume>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    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/parameterized/parameterized.py in standalone_func (arguments )

    *a : tuple
    (<c2tests.ec2.importexportservice.ImportExportService testMethod=test_cancel_task_export_volume>,)
    1. @classmethod
    2. def param_as_standalone_func(cls, p, func, name):
    3. @wraps(func)
    4. def standalone_func(*a):
    5. return func(*(a + p.args), **p.kwargs)
    6. standalone_func.__name__ = name
    7. # place_as is used by py.test to determine what source file should be
    8. # used for this test.

    Locals

    p : param
    param(*('export_volume',), **{})

    Globals

    PY2 : bool
    False
    PY3 : bool
    True
    string_types : tuple
    (<class 'str'>,)
  4. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/importexportservice.py in test_cancel_task (arguments )

    self : ImportExportService
    test_cancel_task_export_volume (c2tests.ec2.importexportservice.ImportExportService)
    task_type : str
    export_volume
    1. EXPORT_INSTANCE_TASK_TYPE,
    2. ])
    3. def test_cancel_task(self, task_type):
    4. """Tests task cancelling."""
    5. task_id = self.create_task_by_type(task_type, self.test_bucket)
    6. if task_type in IMPORT_TASK_TYPES:
    7. self.conn.cancel_import_task(task_id)
    8. else:

    Locals

    Globals

    CANCELLED_TASK_STATUS : str
    cancelled
    COMPLETED_TASK_STATUS : str
    completed
    EXPORT_INSTANCE_TASK_TYPE : str
    export_instance
    EXPORT_VOLUME_TASK_TYPE : str
    export_volume
    FAILED_TASK_STATUS : str
    failed
    FINISHED_TASK_STATUSES : set
    {'completed', 'failed', 'cancelled'}
    IMAGES : dict
    {'raw': 'cirros-0.3.4-x86_64-disk.raw', 'vmdk': 'tiny_core.vmdk', 'ova': 'tiny_core.ova', 'invalid_ova': 'empty.ova'}
    IMPORT_IMAGE_TASK_TYPE : str
    import_image
    IMPORT_SNAPSHOT_TASK_TYPE : str
    import_snapshot
    IMPORT_TASK_TYPES : set
    {'import_snapshot', 'import_image'}
    INSTANCE_DEALLOCATION_DELAY : int
    65
    P2_PROJECT : str
    p2
    WAIT_INSTANCE_STOPPED_TIMEOUT : int
    180
    WAIT_TASK_FINISHED_TIMEOUT : int
    540
  5. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/importexportservice.py in create_task_by_type (arguments )

    self : ImportExportService
    test_cancel_task_export_volume (c2tests.ec2.importexportservice.ImportExportService)
    task_type : str
    export_volume
    bucket : str
    test-1e66237e-d2bc-45d3-8a2f-6129824d0f25
    key : NoneType
    None
    disk_format : str
    vmdk
    image_name : str
    tiny_core.vmdk
    **kwargs : dict
    {}
    1. return task.id
    2. elif task_type == EXPORT_VOLUME_TASK_TYPE:
    3. image_name = image_name or IMAGES[disk_format]
    4. snapshot = self.get_public_snapshot(image_name=image_name)
    5. volume = self.create_volume(snapshot=snapshot.id)
    6. return self.conn.create_volume_export_task(volume.id, bucket,
    7. disk_image_format=disk_format, **kwargs).id
    8. else:

    Locals

    snapshot : Snapshot
    Snapshot:snap-70F25F43

    Globals

    CANCELLED_TASK_STATUS : str
    cancelled
    COMPLETED_TASK_STATUS : str
    completed
    EXPORT_INSTANCE_TASK_TYPE : str
    export_instance
    EXPORT_VOLUME_TASK_TYPE : str
    export_volume
    FAILED_TASK_STATUS : str
    failed
    FINISHED_TASK_STATUSES : set
    {'completed', 'failed', 'cancelled'}
    IMAGES : dict
    {'raw': 'cirros-0.3.4-x86_64-disk.raw', 'vmdk': 'tiny_core.vmdk', 'ova': 'tiny_core.ova', 'invalid_ova': 'empty.ova'}
    IMPORT_IMAGE_TASK_TYPE : str
    import_image
    IMPORT_SNAPSHOT_TASK_TYPE : str
    import_snapshot
    IMPORT_TASK_TYPES : set
    {'import_snapshot', 'import_image'}
    INSTANCE_DEALLOCATION_DELAY : int
    65
    P2_PROJECT : str
    p2
    WAIT_INSTANCE_STOPPED_TIMEOUT : int
    180
    WAIT_TASK_FINISHED_TIMEOUT : int
    540
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in create_volume (arguments )

    self : ImportExportService
    test_cancel_task_export_volume (c2tests.ec2.importexportservice.ImportExportService)
    size : NoneType
    None
    zone : str
    az-1
    **kwargs : dict
    {'snapshot': 'snap-70F25F43'}
    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 0x7fb043b6ef90>
  7. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in create_volume (arguments )

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7fb04217c310>
    size : NoneType
    None
    zone : str
    az-1
    wait : bool
    True
    **kwargs : dict
    {'snapshot': 'snap-70F25F43'}
    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 0x7fb03a0ffbd0>
    volume : Volume
    Volume:vol-1C0DB500

    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_for_volume_creating (arguments )

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7fb04217c310>
    volumes : list
    [Volume:vol-1C0DB500]
    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'}]
  9. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in wait_for_volumes_status (arguments )

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7fb04217c310>
    volumes : list
    [Volume:vol-1C0DB500]
    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-1C0DB500']

    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 wait_long (arguments )

    func : function
    <function wait_for_volumes_status.<locals>.check_state at 0x7fb039fb14d0>
    *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'}]
  11. /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 0x7fb039fb14d0>
    *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
    1713483592.0171926
    result : bool
    False

    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'}]
  12. /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 0x7fb04217c310>
    final_statuses : list
    ['available']
    got_ids : set
    {'vol-1C0DB500'}
    intermediate_statuses : list
    ['creating']
    volume : Volume
    Volume:vol-1C0DB500
    volume_ids : list
    ['vol-1C0DB500']

    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-04-19 02:39:56
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