Actions
Bug #61533
closedosd specs with 'spec' field but device selection outside of 'spec' field fail to apply
% Done:
0%
Source:
Tags:
backport_processed
Backport:
reef, quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Description
currently a spec like
service_type: osd service_id: foo service_name: osd.foo placement: host_pattern: '*' spec: data_devices: paths: - /dev/vdc - /dev/vdd
and a spec like
service_type: osd service_id: default_drive_group placement: host_pattern: '*' data_devices: all: true
work fine, but
service_type: osd service_id: xxx service_name: osd.xxx placement: hosts: - vm-00 spec: osds_per_device: 2 data_devices: paths: - /dev/vde
fails with
Error EINVAL: ServiceSpec: 'dict' object has no attribute 'validate'
This is due to handling of the `spec` field along with special conversions of the device selection part of the spec (`data_devices` portion in the examples) that must be transformed into instances of the `DeviceSelection` class rather than just being a dict in order to validate the spec.
Updated by Backport Bot 10 months ago
- Copied to Backport #61684: reef: osd specs with 'spec' field but device selection outside of 'spec' field fail to apply added
Updated by Backport Bot 10 months ago
- Copied to Backport #61685: quincy: osd specs with 'spec' field but device selection outside of 'spec' field fail to apply added
Updated by Backport Bot 10 months ago
- Copied to Backport #61686: pacific: osd specs with 'spec' field but device selection outside of 'spec' field fail to apply added
Updated by Adam King about 1 month ago
- Status changed from Pending Backport to Resolved
Actions