-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lightbits: qos support #24
base: master
Are you sure you want to change the base?
Conversation
@@ -632,7 +636,8 @@ def _create_new_lightos_volume(self, | |||
compression=compression, | |||
src_snapshot_name=src_snapshot_lightos_name, | |||
acl=['ALLOW_NONE'], | |||
ip_acl=vol_ipAcl | |||
ip_acl=vol_ipAcl, | |||
qos_policy=qos_policy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you have one extra closing parenthesis )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
cinder/volume/drivers/lightos.py
Outdated
@@ -609,18 +612,19 @@ def _get_volume_specs(self, volume): | |||
compression = self._parse_extra_spec(type_compression, | |||
default_compression) | |||
num_replicas = str(specs.get('lightos:num_replicas', num_replicas)) | |||
qos_policy = str(specs.get('lightos:qos_policy', None)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuval-lb
If you don't provide "lightos:qos_policy" to volume Type, this call will convert the default None to a string-value, this string "None" will pass your check at line #254 assuming you have a policy with name "None" on Lighybits storage and volume creation will fail.
if kwargs.get("qos_policy", None) is not None:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right
8b3121b
to
ea45d56
Compare
@yuval-lb do you want to merge to master! |
ea45d56
to
2de2abb
Compare
I am not merging its just for your review |
TBD: update README files