Skip to content

Instantly share code, notes, and snippets.

@jimrollenhagen
Created January 25, 2018 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimrollenhagen/384077e2ed606ee84051cb4a7f66c51c to your computer and use it in GitHub Desktop.
Save jimrollenhagen/384077e2ed606ee84051cb4a7f66c51c to your computer and use it in GitHub Desktop.
==============================
Failed 1 tests - output below:
==============================
nova.tests.functional.test_servers.TraitsTrackingTests.test_traits_exist_in_placement
-------------------------------------------------------------------------------------
Captured stderr:
~~~~~~~~~~~~~~~~
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-keypairs":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compute_api:
os-keypairs" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-server-usage":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compute_
api:os-server-usage" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-config-drive":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compute_
api:os-config-drive" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-extended-availability-zone":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now
, "os_compute_api:os-extended-availability-zone" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-extended-volumes":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_comp
ute_api:os-extended-volumes" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:image-size":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compute_api:i
mage-size" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-flavor-access":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compute
_api:os-flavor-access" policy for POST, PUT, GET /flavors which was added for extensions is not needed any more. NOTE: This policy is deprecated only for POST /flavors, PUT /flavors, GET /flavors/{flavor_id} & GET /flavors/detail. This policy for other API operations is still valid and not deprecated. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-extended-status":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compu
te_api:os-extended-status" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-flavor-rxtx":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compute_a
pi:os-flavor-rxtx" policy which was added for extensions is not needed any more. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-hide-server-addresses":"is_admin:False" was deprecated for removal in 17.0.0. Reason: Capability of configuring the server states to hide the address has been deprecated for removal. Now this policy is not needed to control the serv
er address. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_policy/policy.py:623: UserWarning: Policy "os_compute_api:os-security-groups":"rule:admin_or_owner" was deprecated for removal in 17.0.0. Reason: Nova API extension concept has been removed in Pike. Those extensions have their own policies enforcement. As there is no extensions now, "os_compu
te_api:os-security-groups" policy for POST, GET /servers which was added for extensions is not needed any more. NOTE: This policy is deprecated only for POST /servers, GET /servers/{server_id} & GET /servers/detail. This policy for other API operations is still valid and not deprecated. Its value may be silently ignored in the future.
'reason': default.deprecated_reason
/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/paste/deploy/loadwsgi.py:22: DeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.
return pkg_resources.EntryPoint.parse("x=" + s).load(False)
Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
2018-01-25 22:05:14,988 WARNING [oslo_config.cfg] Config option key_manager.api_class is deprecated. Use option key_manager.backend instead.
2018-01-25 22:05:18,481 INFO [248_add_expire_reservations_index] Skipped adding reservations_deleted_expire_idx because an equivalent index already exists.
2018-01-25 22:05:24,959 INFO [nova.service] Starting conductor node (version 17.0.0)
2018-01-25 22:05:24,973 INFO [oslo_service.periodic_task] Skipping periodic task _discover_hosts_in_cells because its interval is negative
2018-01-25 22:05:25,039 INFO [nova.service] Starting scheduler node (version 17.0.0)
2018-01-25 22:05:25,096 INFO [nova.virt.driver] Loading compute driver 'fake.SmallFakeDriver'
2018-01-25 22:05:25,096 INFO [nova.service] Starting compute node (version 17.0.0)
2018-01-25 22:05:25,144 WARNING [nova.compute.manager] No compute node record found for host host1. If this is the first time this service is starting on this host, then you can ignore this warning.
2018-01-25 22:05:25,147 WARNING [nova.compute.monitors] Excluding nova.compute.monitors.cpu monitor virt_driver. Not in the list of enabled monitors (CONF.compute_monitors).
2018-01-25 22:05:25,154 WARNING [nova.compute.resource_tracker] No compute node record for host1:host1
2018-01-25 22:05:25,161 INFO [nova.compute.resource_tracker] Compute node record created for host1:host1 with uuid: ebc23f2d-05ea-41a4-99fe-ffb9bbc5b760
2018-01-25 22:05:25,209 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "GET /placement/resource_providers/ebc23f2d-05ea-41a4-99fe-ffb9bbc5b760" status: 404 len: 227 microversion: 1.14
2018-01-25 22:05:25,221 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "POST /placement/resource_providers" status: 201 len: 0 microversion: 1.14
2018-01-25 22:05:25,222 INFO [nova.scheduler.client.report] [req-d6657b0d-849e-4da5-b49c-346138fbf6ad] Created resource provider record via placement API for resource provider with UUID ebc23f2d-05ea-41a4-99fe-ffb9bbc5b760 and name host1.
2018-01-25 22:05:25,232 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "GET /placement/resource_providers/ebc23f2d-05ea-41a4-99fe-ffb9bbc5b760/aggregates" status: 200 len: 18 microversion: 1.1
2018-01-25 22:05:25,244 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "GET /placement/resource_providers/ebc23f2d-05ea-41a4-99fe-ffb9bbc5b760/traits" status: 200 len: 49 microversion: 1.6
2018-01-25 22:05:25,256 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "GET /placement/resource_providers/ebc23f2d-05ea-41a4-99fe-ffb9bbc5b760/inventories" status: 200 len: 54 microversion: 1.0
2018-01-25 22:05:25,273 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "PUT /placement/resource_providers/ebc23f2d-05ea-41a4-99fe-ffb9bbc5b760/inventories" status: 200 len: 399 microversion: 1.0
2018-01-25 22:05:25,285 INFO [nova.objects.resource_provider] Synced traits from os_traits into API DB: set(['HW_NIC_MULTIQUEUE', 'HW_NIC_OFFLOAD_TXUDP', 'HW_GPU_RESOLUTION_W1280H800', 'HW_CPU_X86_AVX512VL', 'HW_GPU_API_OPENGL_V4_5', 'HW_CPU_X86_3DNOW', 'HW_GPU_API_OPENGL_V4_3', 'HW_GPU_API_OPENGL_V4_2', 'HW_CPU_X86_SSE4A', 'HW_GPU_API_OPENGL_V4_0', 'HW_NI
C_OFFLOAD_L2CRC', 'HW_GPU_API_DIRECT3D_V9_0', 'HW_CPU_X86_ASF', 'HW_CPU_X86_SHA', 'HW_NIC_VMDQ', 'HW_GPU_RESOLUTION_W320H240', 'HW_GPU_API_DIRECT3D_V12_0', 'HW_GPU_RESOLUTION_W7680H4320', 'HW_GPU_API_CUDA_V2_0', 'HW_GPU_API_DIRECT3D_V10_0', 'HW_GPU_API_DIRECT3D_V10_1', 'HW_GPU_RESOLUTION_W2560H1440', 'HW_CPU_X86_SSE42', 'HW_NIC_OFFLOAD_VXLAN', 'STORAGE_DISK_SS
D', 'HW_CPU_X86_MPX', 'HW_GPU_API_OPENCL_V1_2', 'HW_GPU_RESOLUTION_W1366H768', 'HW_GPU_API_OPENCL_V1_0', 'HW_GPU_API_OPENCL_V1_1', 'HW_GPU_API_DIRECTX_V11', 'HW_GPU_API_DIRECTX_V10', 'HW_NIC_DCB_PFC', 'HW_GPU_API_DIRECTX_V12', 'HW_NIC_OFFLOAD_UCS', 'HW_CPU_X86_TBM', 'HW_CPU_X86_SVM', 'HW_GPU_RESOLUTION_W1680H1050', 'HW_NIC_ACCEL_DIFFIEH', 'HW_GPU_API_OPENGL_V3
_0', 'HW_GPU_API_OPENGL_V3_1', 'HW_GPU_API_OPENGL_V3_2', 'HW_GPU_API_OPENGL_V3_3', 'HW_CPU_X86_SSSE3', 'HW_NIC_ACCEL_DEFLATE', 'HW_NIC_ACCEL_LZS', 'HW_GPU_API_CUDA_V1_0', 'HW_GPU_API_CUDA_V1_1', 'HW_GPU_API_CUDA_V1_2', 'HW_GPU_API_CUDA_V1_3', 'HW_CPU_X86_SSE2', 'HW_CPU_X86_SSE3', 'HW_CPU_X86_SGX', 'HW_CPU_X86_AVX', 'HW_GPU_RESOLUTION_W800H600', 'HW_NIC_ACCEL_T
LS', 'STORAGE_DISK_HDD', 'HW_CPU_X86_VMX', 'HW_NIC_OFFLOAD_SCS', 'HW_NIC_OFFLOAD_FDF', 'HW_NIC_OFFLOAD_RDMA', 'HW_NIC_SRIOV', 'HW_GPU_RESOLUTION_W1152H864', 'HW_GPU_RESOLUTION_W1280H720', 'HW_NIC_ACCEL_IPSEC', 'HW_GPU_API_VULKAN', 'HW_NIC_OFFLOAD_TSO', 'HW_GPU_API_DIRECT3D_V7_0', 'HW_GPU_API_DIRECT3D_V11_3', 'HW_GPU_API_DIRECT3D_V11_2', 'HW_GPU_API_DIRECT3D_V1
1_1', 'HW_GPU_API_DIRECT3D_V11_0', 'HW_GPU_RESOLUTION_W3840H2160', 'HW_CPU_X86_AVX2', 'HW_GPU_API_CUDA_V7_0', 'HW_GPU_API_CUDA_V7_1', 'HW_GPU_API_CUDA_V3_2', 'HW_GPU_API_CUDA_V3_0', 'HW_NIC_OFFLOAD_QINQ', 'HW_GPU_API_CUDA_V3_7', 'HW_GPU_API_CUDA_V3_5', 'HW_GPU_RESOLUTION_W1920H1080', 'HW_NIC_OFFLOAD_TX', 'HW_CPU_X86_BMI', 'HW_CPU_X86_AVX512DQ', 'HW_GPU_API_OPE
NCL_V2_1', 'HW_GPU_API_OPENCL_V2_0', 'HW_GPU_API_CUDA_V5_2', 'HW_CPU_X86_F16C', 'HW_NIC_OFFLOAD_GRO', 'HW_GPU_API_OPENGL_V1_2', 'HW_GPU_API_OPENGL_V1_3', 'HW_GPU_API_OPENGL_V1_1', 'HW_GPU_RESOLUTION_W1600H900', 'HW_GPU_RESOLUTION_W2560H1600', 'HW_GPU_API_OPENGL_V1_4', 'HW_GPU_API_OPENGL_V1_5', 'HW_NIC_OFFLOAD_RXVLAN', 'HW_GPU_API_OPENGL_V2_1', 'HW_CPU_X86_SSE4
1', 'HW_CPU_X86_FMA3', 'HW_GPU_RESOLUTION_W1280H1024', 'HW_NIC_OFFLOAD_GRE', 'HW_NIC_OFFLOAD_LRO', 'HW_CPU_X86_AVX512ER', 'HW_NIC_ACCEL_ECC', 'HW_NIC_ACCEL_SSL', 'HW_NIC_OFFLOAD_GENEVE', 'HW_GPU_API_OPENGL_V2_0', 'HW_NIC_OFFLOAD_SG', 'HW_GPU_API_DIRECT3D_V6_0', 'HW_NIC_SRIOV_MULTIQUEUE', 'HW_NIC_DCB_ETS', 'HW_CPU_X86_XOP', 'HW_NIC_SRIOV_QOS_TX', 'HW_GPU_API_CU
DA_V6_2', 'HW_GPU_API_CUDA_V6_1', 'HW_GPU_API_CUDA_V6_0', 'HW_GPU_API_DIRECT3D_V8_0', 'HW_GPU_API_DIRECT3D_V8_1', 'HW_CPU_X86_AESNI', 'HW_GPU_API_DXVA', 'HW_NIC_PROGRAMMABLE_PIPELINE', 'HW_NIC_OFFLOAD_TXVLAN', 'HW_CPU_X86_MMX', 'HW_GPU_RESOLUTION_W640H480', 'HW_CPU_X86_AVX512BW', 'HW_GPU_API_CUDA_V2_1', 'HW_CPU_X86_AVX512F', 'HW_GPU_RESOLUTION_W1440H900', 'HW_
NIC_OFFLOAD_GSO', 'HW_GPU_API_DIRECT2D', 'HW_GPU_API_OPENGL_V4_4', 'HW_GPU_API_CUDA_V5_0', 'HW_NIC_OFFLOAD_RXHASH', 'HW_NIC_OFFLOAD_UFO', 'HW_NIC_ACCEL_RSA', 'HW_CPU_X86_AVX512CD', 'HW_CPU_X86_TSX', 'HW_GPU_API_OPENCL_V2_2', 'HW_CPU_X86_BMI2', 'HW_CPU_X86_SSE', 'HW_CPU_X86_AVX512PF', 'HW_GPU_API_DIRECT3D_V9_0L', 'HW_GPU_RESOLUTION_W1600H1200', 'HW_CPU_X86_CLMU
L', 'HW_GPU_API_DIRECT3D_V9_0B', 'HW_GPU_API_DIRECT3D_V9_0C', 'HW_CPU_X86_ABM', 'HW_NIC_DCB_QCN', 'HW_NIC_OFFLOAD_SWITCHDEV', 'HW_GPU_RESOLUTION_W1024H768', 'HW_GPU_RESOLUTION_W1360H768', 'HW_NIC_SRIOV_QOS_RX', 'HW_GPU_API_CUDA_V5_3', 'HW_GPU_API_OPENGL_V4_1', 'HW_NIC_OFFLOAD_RX', 'HW_NIC_OFFLOAD_TCS', 'HW_GPU_RESOLUTION_W1920H1200', 'HW_GPU_RESOLUTION_W1024H6
00', 'HW_GPU_RESOLUTION_W1280H768', 'MISC_SHARES_VIA_AGGREGATE', 'HW_CPU_X86_FMA4', 'HW_NIC_OFFLOAD_LSO'])
2018-01-25 22:05:25,288 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "GET /placement/traits?name=in:VMX,CUSTOM_FOO" status: 200 len: 14 microversion: 1.6
2018-01-25 22:05:25,296 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "PUT /placement/traits/CUSTOM_FOO" status: 201 len: 0 microversion: 1.6
2018-01-25 22:05:25,301 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "PUT /placement/traits/VMX" status: 400 len: 444 microversion: 1.6
2018-01-25 22:05:25,302 ERROR [nova.compute.manager] Error updating resources for node host1.
Traceback (most recent call last):
File "nova/compute/manager.py", line 7264, in update_available_resource_for_node
rt.update_available_resource(context, nodename)
File "nova/compute/resource_tracker.py", line 680, in update_available_resource
self._update_available_resource(context, resources)
File "/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 274, in inner
return f(*args, **kwargs)
File "nova/compute/resource_tracker.py", line 704, in _update_available_resource
self._init_compute_node(context, resources)
File "nova/compute/resource_tracker.py", line 590, in _init_compute_node
self._update(context, cn)
File "nova/compute/resource_tracker.py", line 896, in _update
compute_node.uuid, traits)
File "nova/scheduler/client/__init__.py", line 37, in __run_method
return getattr(self.instance, __name)(*args, **kwargs)
File "nova/scheduler/client/report.py", line 64, in wrapper
return f(self, *a, **k)
File "nova/scheduler/client/report.py", line 1061, in set_traits_for_provider
self._ensure_traits(traits)
File "nova/scheduler/client/report.py", line 64, in wrapper
return f(self, *a, **k)
File "nova/scheduler/client/report.py", line 1024, in _ensure_traits
error=resp.text)
TraitCreationFailed: Failed to create trait VMX: <html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
The server could not comply with the request since it is either malformed or otherwise incorrect.<br /><br />
The trait is invalid. A valid trait must be no longer than 255 characters, start with the prefix &quot;CUSTOM_&quot; and use following characters: &quot;A&quot;-&quot;Z&quot;, &quot;0&quot;-&quot;9&quot; and &quot;_&quot;
</body>
</html>
2018-01-25 22:05:25,310 INFO [nova.api.openstack.placement.requestlog] 127.0.0.1 "GET /placement/traits" status: 404 len: 154 microversion: 1.0
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/functional/test_servers.py", line 1563, in test_traits_exist_in_placement
self.assertIn('CUSTOM_FOO', self.placement_api.get('/traits').body['traits'])
File "nova/tests/fixtures.py", line 1652, in get
return client.APIResponse(self.fixture._fake_get(None, url))
File "nova/tests/functional/api/client.py", line 59, in __init__
self.body = jsonutils.loads(self.content)
File "/opt/stack/nova/.tox/functional/lib/python2.7/site-packages/oslo_serialization/jsonutils.py", line 260, in loads
return json.loads(encodeutils.safe_decode(s, encoding), **kwargs)
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
======
Totals
======
Ran: 1 tests in 19.0000 sec.
- Passed: 0
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 1
Sum of execute time for each test: 10.4534 sec.
==============
Worker Balance
==============
- Worker 0 (1 tests) => 0:00:10.453417
ERROR: InvocationError: '/opt/stack/nova/.tox/functional/bin/stestr --test-path=./nova/tests/functional --group-regex=nova\\.tests\\.functional\\.api\\.openstack\\.placement\\.test_placement_api(?:\\.|_)([^_]+) run nova.tests.functional.test_servers.TraitsTrackingTests'
________________________________________________________________________________________________________________________________________________________________________________ summary _________________________________________________________________________________________________________________________________________________________________________________
ERROR: functional: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment