Error

Volume vol-D34556E0 got an error state error search by Google

args : tuple
('Volume vol-D34556E0 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 0x7fb03a00de90>
    test_case : ImportExportService
    test_create_task_wo_bucket_permissions_export_volume_invalidbucket (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_create_task_wo_bucket_permissions_export_volume_invalidbucket (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 0x7fb03a00de90>
    testMethod : method
    <bound method ImportExportService.test_create_task_wo_bucket_permissions of <c2tests.ec2.importexportservice.ImportExportService testMethod=test_create_task_wo_bucket_permissions_export_volume_invalidbucket>>

    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_create_task_wo_bucket_permissions_export_volume_invalidbucket>,)
    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', 'InvalidBucket'), **{})

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

    self : ImportExportService
    test_create_task_wo_bucket_permissions_export_volume_invalidbucket (c2tests.ec2.importexportservice.ImportExportService)
    task_type : str
    export_volume
    expected_error : str
    InvalidBucket
    1. key = "test1"
    2. self.upload_file(bucket1, key)
    3. with self.switch_project(P2_PROJECT):
    4. assert self.s3client.head_bucket(Bucket=bucket1)
    5. self.assert_error(expected_error, self.create_task_by_type, task_type, bucket1, key)
    6. @common.parametrize([
    7. IMPORT_SNAPSHOT_TASK_TYPE,
    8. IMPORT_IMAGE_TASK_TYPE,

    Locals

    acl : dict
    {'Owner': {'DisplayName': 'p1@hc.cloud.croc.ru', 'ID': '74ce62bc-1122-451f-82de-21b18c930f62'}, 'Grants': [{'Grantee': {'DisplayName': 'p1@hc.cloud.croc.ru', 'ID': '74ce62bc-1122-451f-82de-21b18c930f62', 'Type': 'CanonicalUser'}, 'Permission': 'FULL_CONTROL'}, {'Grantee': {'Type': 'CanonicalUser', 'DisplayName': 'None', 'ID': 'd8745d5e-79fe-4138-8ff6-91f3b1b0dfda'}, 'Permission': 'READ'}]}
    bucket1 : str
    test-90e41d3a-8e17-4149-9a1c-f019ba6582e0
    key : NoneType
    None
    new_acl : dict
    {'Owner': {'DisplayName': 'p1@hc.cloud.croc.ru', 'ID': '74ce62bc-1122-451f-82de-21b18c930f62'}, 'Grants': [{'Grantee': {'DisplayName': 'p1@hc.cloud.croc.ru', 'ID': '74ce62bc-1122-451f-82de-21b18c930f62', 'Type': 'CanonicalUser'}, 'Permission': 'FULL_CONTROL'}, {'Grantee': {'Type': 'CanonicalUser', 'DisplayName': 'None', 'ID': 'd8745d5e-79fe-4138-8ff6-91f3b1b0dfda'}, 'Permission': 'READ'}]}
    p2_canonical_user_id : str
    d8745d5e-79fe-4138-8ff6-91f3b1b0dfda

    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/__init__.py in assert_error (arguments )

    self : ImportExportService
    test_create_task_wo_bucket_permissions_export_volume_invalidbucket (c2tests.ec2.importexportservice.ImportExportService)
    error_codes : list
    ['InvalidBucket']
    func : method
    <bound method ImportExportService.create_task_by_type of <c2tests.ec2.importexportservice.ImportExportService testMethod=test_create_task_wo_bucket_permissions_export_volume_invalidbucket>>
    *args : tuple
    ('export_volume', 'test-90e41d3a-8e17-4149-9a1c-f019ba6582e0', None)
    **kwargs : dict
    {}
    1. if not isinstance(error_codes, list):
    2. error_codes = [error_codes]
    3. try:
    4. func(*args, **kwargs)
    5. except boto.exception.BotoServerError as e:
    6. if type(e.body) == dict:
    7. error_code = e.body["__type"]
    8. else:

    Locals

    Globals

    gethostbyname : builtin_function_or_method
    <built-in function gethostbyname>
    UNSIGNED : UNSIGNED
    <botocore.UNSIGNED object at 0x7fb043b6ef90>
  6. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/importexportservice.py in create_task_by_type (arguments )

    self : ImportExportService
    test_create_task_wo_bucket_permissions_export_volume_invalidbucket (c2tests.ec2.importexportservice.ImportExportService)
    task_type : str
    export_volume
    bucket : str
    test-90e41d3a-8e17-4149-9a1c-f019ba6582e0
    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
  7. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/__init__.py in create_volume (arguments )

    self : ImportExportService
    test_create_task_wo_bucket_permissions_export_volume_invalidbucket (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>
  8. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/utils.py in create_volume (arguments )

    conn : EC2ConnectionLegacy
    <c2tests.profile.EC2ConnectionLegacy object at 0x7fb03ba4ca90>
    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 0x7fb039f91690>
    volume : Volume
    Volume:vol-D34556E0

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

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

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

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

    func : function
    <function wait_for_volumes_status.<locals>.check_state at 0x7fb03a11a560>
    *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'}]
  12. /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 0x7fb03a11a560>
    *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
    1713486046.2513971
    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'}]
  13. /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 0x7fb03ba4ca90>
    final_statuses : list
    ['available']
    got_ids : set
    {'vol-D34556E0'}
    intermediate_statuses : list
    ['creating']
    volume : Volume
    Volume:vol-D34556E0
    volume_ids : list
    ['vol-D34556E0']

    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 03:20: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