yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #82004
[Bug 1868455] [NEW] unit tests with py3.8: glance_store.exceptions.UnknownScheme: Unknown scheme '' found in URI
Public bug reported:
Rebuilding Glance 19.0.0 in Debian Sid gives the below result:
FAIL: glance.tests.unit.v2.test_tasks_resource.TestTasksController.test_create_with_live_time
glance.tests.unit.v2.test_tasks_resource.TestTasksController.test_create_with_live_time
----------------------------------------------------------------------
testtools.testresult.real._StringException: pythonlogging:'': {{{
2020-03-22 13:34:41,556 INFO [glance.db.simple.api] Calling task_create: args=(None, {'id': 'c80a1a6c-bd1f-41c5-90ee-81afedb1d58d', 'status': 'pending', 'type': 'import', 'input': {}, 'result': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'message': None, 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556098), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 556080), 'deleted_at': None, 'deleted': False}), kwargs={}
2020-03-22 13:34:41,556 INFO [glance.db.simple.api] Returning task_create: {'id': 'c80a1a6c-bd1f-41c5-90ee-81afedb1d58d', 'type': 'import', 'status': 'pending', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556098), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 556080), 'deleted_at': None, 'deleted': False, 'input': {}, 'result': None, 'message': None}
2020-03-22 13:34:41,556 INFO [glance.db.simple.api] Calling task_create: args=(None, {'id': 'a85abd86-55b3-4d5b-b0b4-5d0a6e6042fc', 'status': 'pending', 'type': 'import', 'input': {}, 'result': None, 'owner': '2c014f32-55eb-467d-8fcb-4bd706012f81', 'message': None, 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556103), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 46, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 46, 556080), 'deleted_at': None, 'deleted': False}), kwargs={}
2020-03-22 13:34:41,556 INFO [glance.db.simple.api] Returning task_create: {'id': 'a85abd86-55b3-4d5b-b0b4-5d0a6e6042fc', 'type': 'import', 'status': 'pending', 'owner': '2c014f32-55eb-467d-8fcb-4bd706012f81', 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556103), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 46, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 46, 556080), 'deleted_at': None, 'deleted': False, 'input': {}, 'result': None, 'message': None}
2020-03-22 13:34:41,557 INFO [glance.db.simple.api] Calling task_create: args=(None, {'id': '971ec09a-8067-4bc8-a91f-ae3557f1c4c7', 'status': 'pending', 'type': 'import', 'input': {}, 'result': None, 'owner': '5a3e60e8-cfa9-4a9e-a90a-62b42cea92b8', 'message': None, 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556107), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 51, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 51, 556080), 'deleted_at': None, 'deleted': False}), kwargs={}
2020-03-22 13:34:41,557 INFO [glance.db.simple.api] Returning task_create: {'id': '971ec09a-8067-4bc8-a91f-ae3557f1c4c7', 'type': 'import', 'status': 'pending', 'owner': '5a3e60e8-cfa9-4a9e-a90a-62b42cea92b8', 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556107), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 51, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 51, 556080), 'deleted_at': None, 'deleted': False, 'input': {}, 'result': None, 'message': None}
2020-03-22 13:34:41,557 INFO [glance.db.simple.api] Calling task_create: args=(None, {'id': '6bbe7cc2-eae7-4c0f-b50d-a7160b0c6a86', 'status': 'pending', 'type': 'import', 'input': {}, 'result': None, 'owner': 'c6c87f25-8a94-47ed-8c83-053c25f42df4', 'message': None, 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556110), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 56, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 56, 556080), 'deleted_at': None, 'deleted': False}), kwargs={}
2020-03-22 13:34:41,557 INFO [glance.db.simple.api] Returning task_create: {'id': '6bbe7cc2-eae7-4c0f-b50d-a7160b0c6a86', 'type': 'import', 'status': 'pending', 'owner': 'c6c87f25-8a94-47ed-8c83-053c25f42df4', 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556110), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 56, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 56, 556080), 'deleted_at': None, 'deleted': False, 'input': {}, 'result': None, 'message': None}
2020-03-22 13:34:41,563 INFO [glance.db.simple.api] Calling task_create: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'pending', 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'message': '', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571)}), kwargs={}
2020-03-22 13:34:41,564 INFO [glance.db.simple.api] Returning task_create: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'pending', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Calling task_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913'), kwargs={}
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Returning task_get: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'pending', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,565 INFO [glance.domain] Task [7eaae4bb-0eb8-48c1-a299-19a1e2882913] status changing from pending to processing
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Calling task_update: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913', {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'message': '', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571)}), kwargs={}
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Returning task_update: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Calling task_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913'), kwargs={}
2020-03-22 13:34:41,566 INFO [glance.db.simple.api] Returning task_get: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,568 ERROR [glance.async_.flows.base_import] Bad task configuration: Task was not configured properly
2020-03-22 13:34:41,589 INFO [glance.db.simple.api] Calling task_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913'), kwargs={}
2020-03-22 13:34:41,589 INFO [glance.db.simple.api] Returning task_get: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,590 ERROR [glance.domain] Task [7eaae4bb-0eb8-48c1-a299-19a1e2882913] status failed to change from processing to processing
2020-03-22 13:34:41,591 INFO [glance.db.simple.api] Calling task_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913'), kwargs={}
2020-03-22 13:34:41,592 INFO [glance.db.simple.api] Returning task_get: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,594 INFO [glance.db.simple.api] Calling image_create: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'status': 'queued', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'min_disk': 0, 'min_ram': 0, 'protected': False, 'locations': [], 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'disk_format': 'qcow2', 'container_format': 'bare', 'size': None, 'virtual_size': None, 'visibility': 'shared', 'properties': {}, 'os_hidden': False, 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058)}), kwargs={}
2020-03-22 13:34:41,594 INFO [glance.db.simple.api] Returning image_create: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [], 'status': 'queued', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': None, 'virtual_size': None, 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,594 INFO [glance.db.simple.api] Calling image_tag_set_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', set()), kwargs={}
2020-03-22 13:34:41,595 INFO [glance.db.simple.api] Returning image_tag_set_all: None
2020-03-22 13:34:41,598 INFO [glance.db.simple.api] Calling image_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783'), kwargs={}
2020-03-22 13:34:41,599 INFO [glance.db.simple.api] Returning image_get: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [], 'status': 'queued', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': None, 'virtual_size': None, 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,599 INFO [glance.db.simple.api] Calling image_tag_get_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783'), kwargs={}
2020-03-22 13:34:41,599 INFO [glance.db.simple.api] Returning image_tag_get_all: []
2020-03-22 13:34:41,600 INFO [glance.db.simple.api] Calling image_update: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'status': 'saving', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'min_disk': 0, 'min_ram': 0, 'protected': False, 'locations': [], 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'disk_format': 'qcow2', 'container_format': 'bare', 'size': None, 'virtual_size': None, 'visibility': 'shared', 'properties': {}, 'os_hidden': False}), kwargs={'purge_props': True, 'from_state': None}
2020-03-22 13:34:41,600 INFO [glance.db.simple.api] Returning image_update: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [], 'status': 'saving', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': None, 'virtual_size': None, 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 600399), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,600 INFO [glance.db.simple.api] Calling image_tag_set_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', set()), kwargs={}
2020-03-22 13:34:41,600 INFO [glance.db.simple.api] Returning image_tag_set_all: None
2020-03-22 13:34:41,601 INFO [glance.common.scripts.image_import.main] Task 7eaae4bb-0eb8-48c1-a299-19a1e2882913: Got image data uri <MagicMock name='validate_location_uri()' id='139638132170064'> to be imported
2020-03-22 13:34:41,606 INFO [glance.db.simple.api] Calling image_update: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'status': 'active', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'min_disk': 0, 'min_ram': 0, 'protected': False, 'locations': [{'url': '433d9e01-e556-4880-bea9-7d62c0713783', 'metadata': {}, 'status': 'active'}], 'checksum': 'Z', 'os_hash_algo': 'sha512', 'os_hash_value': 'ZZ', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'disk_format': 'qcow2', 'container_format': 'bare', 'size': 0, 'virtual_size': None, 'visibility': 'shared', 'properties': {}, 'os_hidden': False}), kwargs={'purge_props': True, 'from_state': None}
2020-03-22 13:34:41,607 INFO [glance.db.simple.api] Calling wrapper: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', {'url': '433d9e01-e556-4880-bea9-7d62c0713783', 'metadata': {}, 'status': 'active'}), kwargs={}
2020-03-22 13:34:41,608 INFO [glance.db.simple.api] Returning wrapper: None
2020-03-22 13:34:41,608 INFO [glance.db.simple.api] Returning image_update: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [{'id': '74879b78-7fd1-4f63-94d0-e0997762db71', 'url': '433d9e01-e556-4880-bea9-7d62c0713783', 'metadata': {}, 'status': 'active'}], 'status': 'active', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': 0, 'virtual_size': None, 'checksum': 'Z', 'os_hash_algo': 'sha512', 'os_hash_value': 'ZZ', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 608180), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,608 INFO [glance.db.simple.api] Calling image_tag_set_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', set()), kwargs={}
2020-03-22 13:34:41,608 INFO [glance.db.simple.api] Returning image_tag_set_all: None
2020-03-22 13:34:41,618 WARNING [glance.async_.taskflow_executor] Task 'import-ImportToStore-7eaae4bb-0eb8-48c1-a299-19a1e2882913' (c71f46de-c8a7-405c-a2ff-4948a811c994) transitioned into state 'FAILURE' from state 'RUNNING'
3 predecessors (most recent first):
Atom 'import-CreateImage-7eaae4bb-0eb8-48c1-a299-19a1e2882913' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': '433d9e01-e556-4880-bea9-7d62c0713783'}
|__Atom 'import_retry' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': [(None, {})]}
|__Flow 'import'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
result = task.execute(**arguments)
File "/<<PKGBUILDDIR>>/glance/async_/flows/base_import.py", line 337, in execute
self.image_repo.save(image)
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 99, in save
result = self.base.save(base_item, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/notifier.py", line 515, in save
super(ImageRepoProxy, self).save(image, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 99, in save
result = self.base.save(base_item, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 135, in save
return super(ImageRepoProxy, self).save(image, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 99, in save
result = self.base.save(base_item, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/quota/__init__.py", line 117, in save
return super(ImageRepoProxy, self).save(image, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 99, in save
result = self.base.save(base_item, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/location.py", line 86, in save
self._set_acls(image)
File "/<<PKGBUILDDIR>>/glance/location.py", line 66, in _set_acls
member_ids = [m.member_id for m in member_repo.list()]
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 89, in list
items = self.base.list(*args, **kwargs)
File "/<<PKGBUILDDIR>>/glance/db/__init__.py", line 259, in list
self.context, image_id=self.image.image_id)
File "/<<PKGBUILDDIR>>/glance/db/sqlalchemy/api.py", line 1181, in image_member_find
session = get_session()
File "/<<PKGBUILDDIR>>/glance/db/sqlalchemy/api.py", line 102, in get_session
facade = _create_facade_lazily()
File "/<<PKGBUILDDIR>>/glance/db/sqlalchemy/api.py", line 87, in _create_facade_lazily
_FACADE = session.EngineFacade.from_config(CONF)
File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1374, in from_config
expire_on_commit=expire_on_commit, _conf=conf)
File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1295, in __init__
slave_connection=slave_connection)
File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 510, in _start
engine_args, maker_args)
File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 532, in _setup_for_connection
"No sql_connection parameter is established")
oslo_db.exception.CantStartEngineError: No sql_connection parameter is established
2020-03-22 13:34:41,624 WARNING [glance.async_.taskflow_executor] Task 'import-ImportToStore-7eaae4bb-0eb8-48c1-a299-19a1e2882913' (c71f46de-c8a7-405c-a2ff-4948a811c994) transitioned into state 'REVERTED' from state 'REVERTING' with result 'None'
2020-03-22 13:34:41,625 INFO [glance.db.simple.api] Calling image_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783'), kwargs={}
2020-03-22 13:34:41,626 INFO [glance.db.simple.api] Returning image_get: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [{'id': '74879b78-7fd1-4f63-94d0-e0997762db71', 'url': '433d9e01-e556-4880-bea9-7d62c0713783', 'metadata': {}, 'status': 'active'}], 'status': 'active', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': 0, 'virtual_size': None, 'checksum': 'Z', 'os_hash_algo': 'sha512', 'os_hash_value': 'ZZ', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 608180), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,626 INFO [glance.db.simple.api] Calling image_tag_get_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783'), kwargs={}
2020-03-22 13:34:41,626 INFO [glance.db.simple.api] Returning image_tag_get_all: []
2020-03-22 13:34:41,628 WARNING [glance.async_.taskflow_executor] Task 'import-CreateImage-7eaae4bb-0eb8-48c1-a299-19a1e2882913' (7c5fc998-5bd5-400b-b251-cc5cfd2de9db) transitioned into state 'REVERT_FAILURE' from state 'REVERTING'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 72, in _revert_task
result = task.revert(**arguments)
File "/<<PKGBUILDDIR>>/glance/async_/flows/base_import.py", line 82, in revert
image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 187, in delete
return self.image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/location.py", line 437, in delete
location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 130, in delete_image_location_from_backend
safe_delete_from_backend(context, image_id, location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 63, in safe_delete_from_backend
context=context)
File "/usr/lib/python3/dist-packages/glance_store/backend.py", line 357, in delete_from_backend
loc = location.get_location_from_uri(uri, conf=CONF)
File "/usr/lib/python3/dist-packages/glance_store/location.py", line 75, in get_location_from_uri
raise exceptions.UnknownScheme(scheme=pieces.scheme)
glance_store.exceptions.UnknownScheme: Unknown scheme '' found in URI
2020-03-22 13:34:41,629 ERROR [taskflow.engines.action_engine.engine] Engine execution has failed, something bad must of happened (last 10 machine transitions were [('SCHEDULING', 'WAITING'), ('WAITING', 'ANALYZING'), ('ANALYZING', 'SCHEDULING'), ('SCHEDULING', 'WAITING'), ('WAITING', 'ANALYZING'), ('ANALYZING', 'SCHEDULING'), ('SCHEDULING', 'WAITING'), ('WAITING', 'ANALYZING'), ('ANALYZING', 'GAME_OVER'), ('GAME_OVER', 'FAILURE')])
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 300, in run_iter
failure.Failure.reraise_if_any(memory.failures)
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 339, in reraise_if_any
failures[0].reraise()
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 346, in reraise
six.reraise(*self._exc_info)
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 72, in _revert_task
result = task.revert(**arguments)
File "/<<PKGBUILDDIR>>/glance/async_/flows/base_import.py", line 82, in revert
image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 187, in delete
return self.image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/location.py", line 437, in delete
location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 130, in delete_image_location_from_backend
safe_delete_from_backend(context, image_id, location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 63, in safe_delete_from_backend
context=context)
File "/usr/lib/python3/dist-packages/glance_store/backend.py", line 357, in delete_from_backend
loc = location.get_location_from_uri(uri, conf=CONF)
File "/usr/lib/python3/dist-packages/glance_store/location.py", line 75, in get_location_from_uri
raise exceptions.UnknownScheme(scheme=pieces.scheme)
glance_store.exceptions.UnknownScheme: Unknown scheme '' found in URI
2020-03-22 13:34:41,631 WARNING [glance.async_.taskflow_executor] Flow 'import' (eacad632-34f0-424d-a875-37743ec3b041) transitioned into state 'FAILURE' from state 'RUNNING'
2020-03-22 13:34:41,631 ERROR [glance.async_.taskflow_executor] Failed to execute task 7eaae4bb-0eb8-48c1-a299-19a1e2882913: Unknown scheme '' found in URI
2020-03-22 13:34:41,631 INFO [glance.domain] Task [7eaae4bb-0eb8-48c1-a299-19a1e2882913] status changing from processing to failure
2020-03-22 13:34:41,631 INFO [glance.db.simple.api] Calling task_update: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913', {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'failure', 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'message': 'Task failed due to Internal Error', 'expires_at': datetime.datetime(2020, 3, 24, 13, 34, 41, 631756), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732)}), kwargs={}
2020-03-22 13:34:41,632 INFO [glance.db.simple.api] Returning task_update: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'failure', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': datetime.datetime(2020, 3, 24, 13, 34, 41, 631756), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 632192), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': 'Task failed due to Internal Error'}
}}}
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mock/mock.py", line 1330, in patched
return func(*args, **keywargs)
File "/<<PKGBUILDDIR>>/glance/tests/unit/v2/test_tasks_resource.py", line 358, in test_create_with_live_time
task_executor.begin_processing(new_task.task_id)
File "/<<PKGBUILDDIR>>/glance/async_/taskflow_executor.py", line 145, in begin_processing
super(TaskExecutor, self).begin_processing(task_id)
File "/<<PKGBUILDDIR>>/glance/async_/__init__.py", line 63, in begin_processing
self._run(task_id, task.type)
File "/<<PKGBUILDDIR>>/glance/async_/taskflow_executor.py", line 186, in _run
self.task_repo.save(task)
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/<<PKGBUILDDIR>>/glance/async_/taskflow_executor.py", line 174, in _run
engine.run()
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 247, in run
for _state in self.run_iter(timeout=timeout):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 328, in run_iter
self._change_state(states.FAILURE)
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 300, in run_iter
failure.Failure.reraise_if_any(memory.failures)
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 339, in reraise_if_any
failures[0].reraise()
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 346, in reraise
six.reraise(*self._exc_info)
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 72, in _revert_task
result = task.revert(**arguments)
File "/<<PKGBUILDDIR>>/glance/async_/flows/base_import.py", line 82, in revert
image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 187, in delete
return self.image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/location.py", line 437, in delete
location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 130, in delete_image_location_from_backend
safe_delete_from_backend(context, image_id, location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 63, in safe_delete_from_backend
context=context)
File "/usr/lib/python3/dist-packages/glance_store/backend.py", line 357, in delete_from_backend
loc = location.get_location_from_uri(uri, conf=CONF)
File "/usr/lib/python3/dist-packages/glance_store/location.py", line 75, in get_location_from_uri
raise exceptions.UnknownScheme(scheme=pieces.scheme)
glance_store.exceptions.UnknownScheme: Unknown scheme '' found in URI
** Affects: glance
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1868455
Title:
unit tests with py3.8: glance_store.exceptions.UnknownScheme: Unknown
scheme '' found in URI
Status in Glance:
New
Bug description:
Rebuilding Glance 19.0.0 in Debian Sid gives the below result:
FAIL: glance.tests.unit.v2.test_tasks_resource.TestTasksController.test_create_with_live_time
glance.tests.unit.v2.test_tasks_resource.TestTasksController.test_create_with_live_time
----------------------------------------------------------------------
testtools.testresult.real._StringException: pythonlogging:'': {{{
2020-03-22 13:34:41,556 INFO [glance.db.simple.api] Calling task_create: args=(None, {'id': 'c80a1a6c-bd1f-41c5-90ee-81afedb1d58d', 'status': 'pending', 'type': 'import', 'input': {}, 'result': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'message': None, 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556098), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 556080), 'deleted_at': None, 'deleted': False}), kwargs={}
2020-03-22 13:34:41,556 INFO [glance.db.simple.api] Returning task_create: {'id': 'c80a1a6c-bd1f-41c5-90ee-81afedb1d58d', 'type': 'import', 'status': 'pending', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556098), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 556080), 'deleted_at': None, 'deleted': False, 'input': {}, 'result': None, 'message': None}
2020-03-22 13:34:41,556 INFO [glance.db.simple.api] Calling task_create: args=(None, {'id': 'a85abd86-55b3-4d5b-b0b4-5d0a6e6042fc', 'status': 'pending', 'type': 'import', 'input': {}, 'result': None, 'owner': '2c014f32-55eb-467d-8fcb-4bd706012f81', 'message': None, 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556103), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 46, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 46, 556080), 'deleted_at': None, 'deleted': False}), kwargs={}
2020-03-22 13:34:41,556 INFO [glance.db.simple.api] Returning task_create: {'id': 'a85abd86-55b3-4d5b-b0b4-5d0a6e6042fc', 'type': 'import', 'status': 'pending', 'owner': '2c014f32-55eb-467d-8fcb-4bd706012f81', 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556103), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 46, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 46, 556080), 'deleted_at': None, 'deleted': False, 'input': {}, 'result': None, 'message': None}
2020-03-22 13:34:41,557 INFO [glance.db.simple.api] Calling task_create: args=(None, {'id': '971ec09a-8067-4bc8-a91f-ae3557f1c4c7', 'status': 'pending', 'type': 'import', 'input': {}, 'result': None, 'owner': '5a3e60e8-cfa9-4a9e-a90a-62b42cea92b8', 'message': None, 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556107), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 51, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 51, 556080), 'deleted_at': None, 'deleted': False}), kwargs={}
2020-03-22 13:34:41,557 INFO [glance.db.simple.api] Returning task_create: {'id': '971ec09a-8067-4bc8-a91f-ae3557f1c4c7', 'type': 'import', 'status': 'pending', 'owner': '5a3e60e8-cfa9-4a9e-a90a-62b42cea92b8', 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556107), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 51, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 51, 556080), 'deleted_at': None, 'deleted': False, 'input': {}, 'result': None, 'message': None}
2020-03-22 13:34:41,557 INFO [glance.db.simple.api] Calling task_create: args=(None, {'id': '6bbe7cc2-eae7-4c0f-b50d-a7160b0c6a86', 'status': 'pending', 'type': 'import', 'input': {}, 'result': None, 'owner': 'c6c87f25-8a94-47ed-8c83-053c25f42df4', 'message': None, 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556110), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 56, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 56, 556080), 'deleted_at': None, 'deleted': False}), kwargs={}
2020-03-22 13:34:41,557 INFO [glance.db.simple.api] Returning task_create: {'id': '6bbe7cc2-eae7-4c0f-b50d-a7160b0c6a86', 'type': 'import', 'status': 'pending', 'owner': 'c6c87f25-8a94-47ed-8c83-053c25f42df4', 'expires_at': datetime.datetime(2021, 3, 22, 13, 34, 41, 556110), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 56, 556080), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 56, 556080), 'deleted_at': None, 'deleted': False, 'input': {}, 'result': None, 'message': None}
2020-03-22 13:34:41,563 INFO [glance.db.simple.api] Calling task_create: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'pending', 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'message': '', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571)}), kwargs={}
2020-03-22 13:34:41,564 INFO [glance.db.simple.api] Returning task_create: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'pending', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Calling task_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913'), kwargs={}
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Returning task_get: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'pending', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,565 INFO [glance.domain] Task [7eaae4bb-0eb8-48c1-a299-19a1e2882913] status changing from pending to processing
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Calling task_update: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913', {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'message': '', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571)}), kwargs={}
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Returning task_update: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,565 INFO [glance.db.simple.api] Calling task_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913'), kwargs={}
2020-03-22 13:34:41,566 INFO [glance.db.simple.api] Returning task_get: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,568 ERROR [glance.async_.flows.base_import] Bad task configuration: Task was not configured properly
2020-03-22 13:34:41,589 INFO [glance.db.simple.api] Calling task_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913'), kwargs={}
2020-03-22 13:34:41,589 INFO [glance.db.simple.api] Returning task_get: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,590 ERROR [glance.domain] Task [7eaae4bb-0eb8-48c1-a299-19a1e2882913] status failed to change from processing to processing
2020-03-22 13:34:41,591 INFO [glance.db.simple.api] Calling task_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913'), kwargs={}
2020-03-22 13:34:41,592 INFO [glance.db.simple.api] Returning task_get: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'processing', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': ''}
2020-03-22 13:34:41,594 INFO [glance.db.simple.api] Calling image_create: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'status': 'queued', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'min_disk': 0, 'min_ram': 0, 'protected': False, 'locations': [], 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'disk_format': 'qcow2', 'container_format': 'bare', 'size': None, 'virtual_size': None, 'visibility': 'shared', 'properties': {}, 'os_hidden': False, 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058)}), kwargs={}
2020-03-22 13:34:41,594 INFO [glance.db.simple.api] Returning image_create: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [], 'status': 'queued', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': None, 'virtual_size': None, 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,594 INFO [glance.db.simple.api] Calling image_tag_set_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', set()), kwargs={}
2020-03-22 13:34:41,595 INFO [glance.db.simple.api] Returning image_tag_set_all: None
2020-03-22 13:34:41,598 INFO [glance.db.simple.api] Calling image_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783'), kwargs={}
2020-03-22 13:34:41,599 INFO [glance.db.simple.api] Returning image_get: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [], 'status': 'queued', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': None, 'virtual_size': None, 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,599 INFO [glance.db.simple.api] Calling image_tag_get_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783'), kwargs={}
2020-03-22 13:34:41,599 INFO [glance.db.simple.api] Returning image_tag_get_all: []
2020-03-22 13:34:41,600 INFO [glance.db.simple.api] Calling image_update: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'status': 'saving', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'min_disk': 0, 'min_ram': 0, 'protected': False, 'locations': [], 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'disk_format': 'qcow2', 'container_format': 'bare', 'size': None, 'virtual_size': None, 'visibility': 'shared', 'properties': {}, 'os_hidden': False}), kwargs={'purge_props': True, 'from_state': None}
2020-03-22 13:34:41,600 INFO [glance.db.simple.api] Returning image_update: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [], 'status': 'saving', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': None, 'virtual_size': None, 'checksum': None, 'os_hash_algo': None, 'os_hash_value': None, 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 600399), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,600 INFO [glance.db.simple.api] Calling image_tag_set_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', set()), kwargs={}
2020-03-22 13:34:41,600 INFO [glance.db.simple.api] Returning image_tag_set_all: None
2020-03-22 13:34:41,601 INFO [glance.common.scripts.image_import.main] Task 7eaae4bb-0eb8-48c1-a299-19a1e2882913: Got image data uri <MagicMock name='validate_location_uri()' id='139638132170064'> to be imported
2020-03-22 13:34:41,606 INFO [glance.db.simple.api] Calling image_update: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'status': 'active', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'min_disk': 0, 'min_ram': 0, 'protected': False, 'locations': [{'url': '433d9e01-e556-4880-bea9-7d62c0713783', 'metadata': {}, 'status': 'active'}], 'checksum': 'Z', 'os_hash_algo': 'sha512', 'os_hash_value': 'ZZ', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'disk_format': 'qcow2', 'container_format': 'bare', 'size': 0, 'virtual_size': None, 'visibility': 'shared', 'properties': {}, 'os_hidden': False}), kwargs={'purge_props': True, 'from_state': None}
2020-03-22 13:34:41,607 INFO [glance.db.simple.api] Calling wrapper: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', {'url': '433d9e01-e556-4880-bea9-7d62c0713783', 'metadata': {}, 'status': 'active'}), kwargs={}
2020-03-22 13:34:41,608 INFO [glance.db.simple.api] Returning wrapper: None
2020-03-22 13:34:41,608 INFO [glance.db.simple.api] Returning image_update: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [{'id': '74879b78-7fd1-4f63-94d0-e0997762db71', 'url': '433d9e01-e556-4880-bea9-7d62c0713783', 'metadata': {}, 'status': 'active'}], 'status': 'active', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': 0, 'virtual_size': None, 'checksum': 'Z', 'os_hash_algo': 'sha512', 'os_hash_value': 'ZZ', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 608180), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,608 INFO [glance.db.simple.api] Calling image_tag_set_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783', set()), kwargs={}
2020-03-22 13:34:41,608 INFO [glance.db.simple.api] Returning image_tag_set_all: None
2020-03-22 13:34:41,618 WARNING [glance.async_.taskflow_executor] Task 'import-ImportToStore-7eaae4bb-0eb8-48c1-a299-19a1e2882913' (c71f46de-c8a7-405c-a2ff-4948a811c994) transitioned into state 'FAILURE' from state 'RUNNING'
3 predecessors (most recent first):
Atom 'import-CreateImage-7eaae4bb-0eb8-48c1-a299-19a1e2882913' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': '433d9e01-e556-4880-bea9-7d62c0713783'}
|__Atom 'import_retry' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {}, 'provides': [(None, {})]}
|__Flow 'import'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
result = task.execute(**arguments)
File "/<<PKGBUILDDIR>>/glance/async_/flows/base_import.py", line 337, in execute
self.image_repo.save(image)
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 99, in save
result = self.base.save(base_item, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/notifier.py", line 515, in save
super(ImageRepoProxy, self).save(image, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 99, in save
result = self.base.save(base_item, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 135, in save
return super(ImageRepoProxy, self).save(image, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 99, in save
result = self.base.save(base_item, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/quota/__init__.py", line 117, in save
return super(ImageRepoProxy, self).save(image, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 99, in save
result = self.base.save(base_item, from_state=from_state)
File "/<<PKGBUILDDIR>>/glance/location.py", line 86, in save
self._set_acls(image)
File "/<<PKGBUILDDIR>>/glance/location.py", line 66, in _set_acls
member_ids = [m.member_id for m in member_repo.list()]
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 89, in list
items = self.base.list(*args, **kwargs)
File "/<<PKGBUILDDIR>>/glance/db/__init__.py", line 259, in list
self.context, image_id=self.image.image_id)
File "/<<PKGBUILDDIR>>/glance/db/sqlalchemy/api.py", line 1181, in image_member_find
session = get_session()
File "/<<PKGBUILDDIR>>/glance/db/sqlalchemy/api.py", line 102, in get_session
facade = _create_facade_lazily()
File "/<<PKGBUILDDIR>>/glance/db/sqlalchemy/api.py", line 87, in _create_facade_lazily
_FACADE = session.EngineFacade.from_config(CONF)
File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1374, in from_config
expire_on_commit=expire_on_commit, _conf=conf)
File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1295, in __init__
slave_connection=slave_connection)
File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 510, in _start
engine_args, maker_args)
File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 532, in _setup_for_connection
"No sql_connection parameter is established")
oslo_db.exception.CantStartEngineError: No sql_connection parameter is established
2020-03-22 13:34:41,624 WARNING [glance.async_.taskflow_executor] Task 'import-ImportToStore-7eaae4bb-0eb8-48c1-a299-19a1e2882913' (c71f46de-c8a7-405c-a2ff-4948a811c994) transitioned into state 'REVERTED' from state 'REVERTING' with result 'None'
2020-03-22 13:34:41,625 INFO [glance.db.simple.api] Calling image_get: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783'), kwargs={}
2020-03-22 13:34:41,626 INFO [glance.db.simple.api] Returning image_get: {'id': '433d9e01-e556-4880-bea9-7d62c0713783', 'name': 'test-task', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'locations': [{'id': '74879b78-7fd1-4f63-94d0-e0997762db71', 'url': '433d9e01-e556-4880-bea9-7d62c0713783', 'metadata': {}, 'status': 'active'}], 'status': 'active', 'protected': False, 'visibility': 'shared', 'container_format': 'bare', 'disk_format': 'qcow2', 'min_ram': 0, 'min_disk': 0, 'size': 0, 'virtual_size': None, 'checksum': 'Z', 'os_hash_algo': 'sha512', 'os_hash_value': 'ZZ', 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 594058), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 608180), 'deleted_at': None, 'deleted': False, 'os_hidden': False, 'properties': []}
2020-03-22 13:34:41,626 INFO [glance.db.simple.api] Calling image_tag_get_all: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '433d9e01-e556-4880-bea9-7d62c0713783'), kwargs={}
2020-03-22 13:34:41,626 INFO [glance.db.simple.api] Returning image_tag_get_all: []
2020-03-22 13:34:41,628 WARNING [glance.async_.taskflow_executor] Task 'import-CreateImage-7eaae4bb-0eb8-48c1-a299-19a1e2882913' (7c5fc998-5bd5-400b-b251-cc5cfd2de9db) transitioned into state 'REVERT_FAILURE' from state 'REVERTING'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 72, in _revert_task
result = task.revert(**arguments)
File "/<<PKGBUILDDIR>>/glance/async_/flows/base_import.py", line 82, in revert
image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 187, in delete
return self.image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/location.py", line 437, in delete
location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 130, in delete_image_location_from_backend
safe_delete_from_backend(context, image_id, location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 63, in safe_delete_from_backend
context=context)
File "/usr/lib/python3/dist-packages/glance_store/backend.py", line 357, in delete_from_backend
loc = location.get_location_from_uri(uri, conf=CONF)
File "/usr/lib/python3/dist-packages/glance_store/location.py", line 75, in get_location_from_uri
raise exceptions.UnknownScheme(scheme=pieces.scheme)
glance_store.exceptions.UnknownScheme: Unknown scheme '' found in URI
2020-03-22 13:34:41,629 ERROR [taskflow.engines.action_engine.engine] Engine execution has failed, something bad must of happened (last 10 machine transitions were [('SCHEDULING', 'WAITING'), ('WAITING', 'ANALYZING'), ('ANALYZING', 'SCHEDULING'), ('SCHEDULING', 'WAITING'), ('WAITING', 'ANALYZING'), ('ANALYZING', 'SCHEDULING'), ('SCHEDULING', 'WAITING'), ('WAITING', 'ANALYZING'), ('ANALYZING', 'GAME_OVER'), ('GAME_OVER', 'FAILURE')])
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 300, in run_iter
failure.Failure.reraise_if_any(memory.failures)
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 339, in reraise_if_any
failures[0].reraise()
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 346, in reraise
six.reraise(*self._exc_info)
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 72, in _revert_task
result = task.revert(**arguments)
File "/<<PKGBUILDDIR>>/glance/async_/flows/base_import.py", line 82, in revert
image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 187, in delete
return self.image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/location.py", line 437, in delete
location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 130, in delete_image_location_from_backend
safe_delete_from_backend(context, image_id, location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 63, in safe_delete_from_backend
context=context)
File "/usr/lib/python3/dist-packages/glance_store/backend.py", line 357, in delete_from_backend
loc = location.get_location_from_uri(uri, conf=CONF)
File "/usr/lib/python3/dist-packages/glance_store/location.py", line 75, in get_location_from_uri
raise exceptions.UnknownScheme(scheme=pieces.scheme)
glance_store.exceptions.UnknownScheme: Unknown scheme '' found in URI
2020-03-22 13:34:41,631 WARNING [glance.async_.taskflow_executor] Flow 'import' (eacad632-34f0-424d-a875-37743ec3b041) transitioned into state 'FAILURE' from state 'RUNNING'
2020-03-22 13:34:41,631 ERROR [glance.async_.taskflow_executor] Failed to execute task 7eaae4bb-0eb8-48c1-a299-19a1e2882913: Unknown scheme '' found in URI
2020-03-22 13:34:41,631 INFO [glance.domain] Task [7eaae4bb-0eb8-48c1-a299-19a1e2882913] status changing from processing to failure
2020-03-22 13:34:41,631 INFO [glance.db.simple.api] Calling task_update: args=(<glance.context.RequestContext object at 0x7f0008bbb090>, '7eaae4bb-0eb8-48c1-a299-19a1e2882913', {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'failure', 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'message': 'Task failed due to Internal Error', 'expires_at': datetime.datetime(2020, 3, 24, 13, 34, 41, 631756), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 565732)}), kwargs={}
2020-03-22 13:34:41,632 INFO [glance.db.simple.api] Returning task_update: {'id': '7eaae4bb-0eb8-48c1-a299-19a1e2882913', 'type': 'import', 'status': 'failure', 'owner': '6838eb7b-6ded-434a-882c-b344c77fe8df', 'expires_at': datetime.datetime(2020, 3, 24, 13, 34, 41, 631756), 'created_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 563571), 'updated_at': datetime.datetime(2020, 3, 22, 13, 34, 41, 632192), 'deleted_at': None, 'deleted': False, 'input': {'import_from': 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', 'import_from_format': 'qcow2', 'image_properties': {'disk_format': 'qcow2', 'container_format': 'bare', 'name': 'test-task'}}, 'result': None, 'message': 'Task failed due to Internal Error'}
}}}
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mock/mock.py", line 1330, in patched
return func(*args, **keywargs)
File "/<<PKGBUILDDIR>>/glance/tests/unit/v2/test_tasks_resource.py", line 358, in test_create_with_live_time
task_executor.begin_processing(new_task.task_id)
File "/<<PKGBUILDDIR>>/glance/async_/taskflow_executor.py", line 145, in begin_processing
super(TaskExecutor, self).begin_processing(task_id)
File "/<<PKGBUILDDIR>>/glance/async_/__init__.py", line 63, in begin_processing
self._run(task_id, task.type)
File "/<<PKGBUILDDIR>>/glance/async_/taskflow_executor.py", line 186, in _run
self.task_repo.save(task)
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/<<PKGBUILDDIR>>/glance/async_/taskflow_executor.py", line 174, in _run
engine.run()
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 247, in run
for _state in self.run_iter(timeout=timeout):
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 328, in run_iter
self._change_state(states.FAILURE)
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
self.force_reraise()
File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
six.reraise(self.type_, self.value, self.tb)
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/engine.py", line 300, in run_iter
failure.Failure.reraise_if_any(memory.failures)
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 339, in reraise_if_any
failures[0].reraise()
File "/usr/lib/python3/dist-packages/taskflow/types/failure.py", line 346, in reraise
six.reraise(*self._exc_info)
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/usr/lib/python3/dist-packages/taskflow/engines/action_engine/executor.py", line 72, in _revert_task
result = task.revert(**arguments)
File "/<<PKGBUILDDIR>>/glance/async_/flows/base_import.py", line 82, in revert
image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 187, in delete
return self.image.delete()
File "/<<PKGBUILDDIR>>/glance/domain/proxy.py", line 189, in delete
self.base.delete()
File "/<<PKGBUILDDIR>>/glance/location.py", line 437, in delete
location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 130, in delete_image_location_from_backend
safe_delete_from_backend(context, image_id, location)
File "/<<PKGBUILDDIR>>/glance/common/store_utils.py", line 63, in safe_delete_from_backend
context=context)
File "/usr/lib/python3/dist-packages/glance_store/backend.py", line 357, in delete_from_backend
loc = location.get_location_from_uri(uri, conf=CONF)
File "/usr/lib/python3/dist-packages/glance_store/location.py", line 75, in get_location_from_uri
raise exceptions.UnknownScheme(scheme=pieces.scheme)
glance_store.exceptions.UnknownScheme: Unknown scheme '' found in URI
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1868455/+subscriptions
Follow ups