ValueError

badly formed hexadecimal UUID string search by Google

args : tuple
('badly formed hexadecimal UUID string',)

Traceback

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

    self : _Outcome
    <unittest.case._Outcome object at 0x7fe3fc4fae90>
    test_case : ACL
    test_upload_key_anonymous_user (c2tests.s3.acl.ACL)
    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 : ACL
    test_upload_key_anonymous_user (c2tests.s3.acl.ACL)
    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 0x7fe3fc4fae90>
    testMethod : method
    <bound method ACL.test_upload_key_anonymous_user of <c2tests.s3.acl.ACL testMethod=test_upload_key_anonymous_user>>

    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/s3/acl.py in test_upload_key_anonymous_user (arguments )

    self : ACL
    test_upload_key_anonymous_user (c2tests.s3.acl.ACL)
    1. # In croc cloud we use uuid4 as id of projects and as id of RGW users (s3 users)
    2. # In this test we check that S3 returns id string (uuid4) of S3 user
    3. # who is owner of this bucket.
    4. # We only check that id string is valid uuid4,
    5. # we dont't check that id is correct id of this cloud/s3 user.
    6. uuid.UUID(str(keys[0]["Owner"]["ID"]), version=4)
    7. def test_unexistant_user(self):
    8. """Attempt to grant read access ACL with unexistant user."""

    Locals

    anonymous_client : S3
    <botocore.client.S3 object at 0x7fe3fc2855d0>
    bucket : str
    test-4e1b8428-7fab-4bf2-9374-035d8cf12190
    keys : list
    [{'Key': 'object_name', 'LastModified': datetime.datetime(2024, 2, 22, 22, 34, 26, 652000, tzinfo=tzutc()), 'ETag': '"098f6bcd4621d373cade4e832627b4f6"', 'Size': 4, 'StorageClass': 'STANDARD', 'Owner': {'DisplayName': '', 'ID': 'anonymous'}}]

    Globals

    _MAX_XML_REQUEST_SIZE : int
    1048576
    OBJECT_NAME : str
    object_name
    P2_PROJECT : str
    p2
  4. /usr/local/lib/python3.7/uuid.py in __init__ (arguments )

    self : UUID
    Value of variable is unknown because AttributeError("'UUID' object has no attribute 'int'") was raised
    hex : str
    anonymous
    bytes : NoneType
    None
    bytes_le : NoneType
    None
    fields : NoneType
    None
    int : NoneType
    None
    version : int
    4
    is_safe : SafeUUID
    SafeUUID.unknown
    1. 'or int arguments must be given')
    2. if hex is not None:
    3. hex = hex.replace('urn:', '').replace('uuid:', '')
    4. hex = hex.strip('{}').replace('-', '')
    5. if len(hex) != 32:
    6. raise ValueError('badly formed hexadecimal UUID string')
    7. int = int_(hex, 16)
    8. if bytes_le is not None:
    9. if len(bytes_le) != 16:
    10. raise ValueError('bytes_le is not a 16-char string')

    Locals

    Globals

    _generate_time_safe : NoneType
    None
    _has_uuid_generate_time_safe : NoneType
    None
    _last_timestamp : NoneType
    None
    _node : NoneType
    None
    _NODE_GETTERS_UNIX : list
    [<function _unix_getnode at 0x7fe40a480d40>, <function _ifconfig_getnode at 0x7fe40a4808c0>, <function _ip_getnode at 0x7fe40a480950>, <function _arp_getnode at 0x7fe40a4809e0>, <function _lanscan_getnode at 0x7fe40a480a70>, <function _netstat_getnode at 0x7fe40a480b00>]
    _NODE_GETTERS_WIN32 : list
    [<function _windll_getnode at 0x7fe40a480dd0>, <function _netbios_getnode at 0x7fe40a480c20>, <function _ipconfig_getnode at 0x7fe40a480b90>]
    _uuid : NoneType
    None
    _UuidCreate : NoneType
    None
    NAMESPACE_DNS : UUID
    6ba7b810-9dad-11d1-80b4-00c04fd430c8
    NAMESPACE_OID : UUID
    6ba7b812-9dad-11d1-80b4-00c04fd430c8
    NAMESPACE_URL : UUID
    6ba7b811-9dad-11d1-80b4-00c04fd430c8
    NAMESPACE_X500 : UUID
    6ba7b814-9dad-11d1-80b4-00c04fd430c8
    RESERVED_FUTURE : str
    reserved for future definition
    RESERVED_MICROSOFT : str
    reserved for Microsoft compatibility
    RESERVED_NCS : str
    reserved for NCS compatibility
    RFC_4122 : str
    specified in RFC 4122

Environment

Time of report generation
2024-02-23 01:34:26
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