TypeError when computing QOS feature name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
Luciano Lo Giudice | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Wallaby |
Fix Released
|
High
|
Unassigned | ||
Xena |
Fix Released
|
High
|
Unassigned | ||
Yoga |
Fix Released
|
High
|
Unassigned | ||
cinder (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Impish |
Won't Fix
|
High
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned |
Bug Description
=========== Bug description =============
The utility function 'qos_min_
An easy fix is to check for `None`, and if so, return an empty string.
=========== SRU details for Ubuntu =============
[Impact]
See above.
[Test Case]
charm-cinder-netapp gate fails (https:/
2021-11-22 21:17:10.298776 | focal-medium | 2021-11-22 21:17:10 [INFO] test_create_volume (zaza.openstack
2021-11-22 21:17:10.298864 | focal-medium | 2021-11-22 21:17:10 [INFO] Test creating volumes with basic configuration.
2021-11-22 21:17:10.298940 | focal-medium | 2021-11-22 21:17:10 [INFO] ...
2021-11-22 21:17:34.664694 | focal-medium | 2021-11-22 21:17:34 [INFO] Volume status wait: resource 26a180f3-
2021-11-22 21:17:36.016716 | focal-medium | 2021-11-22 21:17:36 [INFO] ERROR
2021-11-22 21:17:36.016827 | focal-medium | 2021-11-22 21:17:36 [INFO] =======
2021-11-22 21:17:36.016905 | focal-medium | 2021-11-22 21:17:36 [INFO] ERROR: test_create_volume (zaza.openstack
2021-11-22 21:17:36.016915 | focal-medium | 2021-11-22 21:17:36 [INFO] Test creating volumes with basic configuration.
2021-11-22 21:17:36.016922 | focal-medium | 2021-11-22 21:17:36 [INFO] -------
2021-11-22 21:17:36.016930 | focal-medium | 2021-11-22 21:17:36 [INFO] Traceback (most recent call last):
2021-11-22 21:17:36.016938 | focal-medium | 2021-11-22 21:17:36 [INFO] File "/home/
2021-11-22 21:17:36.017021 | focal-medium | 2021-11-22 21:17:36 [INFO] host = getattr(test_vol, 'os-vol-
2021-11-22 21:17:36.017030 | focal-medium | 2021-11-22 21:17:36 [INFO] AttributeError: 'NoneType' object has no attribute 'split'
2021-11-22 21:17:36.017037 | focal-medium | 2021-11-22 21:17:36 [INFO] -------
[Regression Potential]
It's possible that a user may expect the QOS to be non-empty and make
some assertions based on that assumption. In addition, a user may
expect an exception of type `TypeError` to be raised when the node name
is None.
CVE References
tags: | added: low-hanging-fruit qos type-error |
Changed in cinder: | |
importance: | Undecided → Low |
Changed in cinder: | |
assignee: | nobody → Luciano Lo Giudice (lmlogiudice) |
description: | updated |
description: | updated |
description: | updated |
Changed in cinder (Ubuntu Jammy): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in cloud-archive: | |
status: | Triaged → Fix Committed |
Changed in cinder (Ubuntu Impish): | |
status: | New → Triaged |
importance: | Undecided → High |
Fix proposed to branch: master /review. opendev. org/c/openstack /cinder/ +/815560
Review: https:/