Bug #74986
closedpython-common: Cephadm sets OS tunning profile using YAML with empty str as profile name
0%
Description
Description of problem:
========================
On 9.0 cluster, when tried to apply a YAML for OS tunning that has empty string for name, it passes successfully
How reproducible:
=================
Always
Steps to Reproduce:
====================
1. Deploy a ceph 9.0 cluster
2. Try to apply a YAML which has empty string as profile name to set up OS tunning profile using Cephadm
Actual results:
===============
[root@ceph-saya-tfa-grtd6p-node1-installer ~]# cat /tmp/tmpveow_hn1.yaml
profile_name: ''
placement:
hosts:
ceph-saya-tfa-grtd6p-node2
ceph-saya-tfa-grtd6p-node3
settings:
fs.file-max: 100000
[root@ceph-saya-tfa-grtd6p-node1-installer ~]# cephadm shell --mount /tmp:/tmp – ceph orch tuned-profile apply -i /tmp/tmpveow_hn1.yaml
Inferring fsid f64f341c-655d-11eb-8778-fa163e914bcc
Inferring config /var/lib/ceph/f64f341c-655d-11eb-8778-fa163e914bcc/mon.ceph-saya-tfa-grtd6p-node1-installer/config
Saved tuned profile
When the "profile_name" spec itself is not added, then there is failure
[root@ceph-saya-tfa-grtd6p-node1-installer ~]# cat /tmp/no_profile_name.yaml
placement:
hosts:
ceph-saya-tfa-grtd6p-node2
ceph-saya-tfa-grtd6p-node3
settings:
fs.file-max: 100000
[root@ceph-saya-tfa-grtd6p-node1-installer ~]# cephadm shell --mount /tmp:/tmp – ceph orch tuned-profile apply -i /tmp/no_profile_name.yaml
Inferring fsid f64f341c-655d-11eb-8778-fa163e914bcc
Inferring config /var/lib/ceph/f64f341c-655d-11eb-8778-fa163e914bcc/mon.ceph-saya-tfa-grtd6p-node1-installer/config
Error EINVAL: Tuned profile spec must include "profile_name" field
Expected results:
=================
When the "profile_name" is empty, Cephadm should return appropriate error message
AJ Updated by Ashwin Joshi 5 months ago
- Backport set to tentacle
- Pull request ID set to 67384
GA Updated by Guillaume Abrioux 5 months ago
- Assignee set to Ashwin Joshi
GA Updated by Guillaume Abrioux 5 months ago
- Status changed from New to Pending Backport
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #77625: umbrella: python-common: Cephadm sets OS tunning profile using YAML with empty str as profile name added
UB Updated by Upkeep Bot 5 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 5 months ago
- Merge Commit set to 831c5c0dd44b71d481ffa186e999c26fef3723f7
- Fixed In set to v21.3.0-45-g831c5c0dd4
- Upkeep Timestamp set to 2026-06-24T13:53:55+00:00
AJ Updated by Ashwin Joshi 5 months ago
- Backport changed from tentacle to umbrella
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-06-24T13:53:55+00:00 to 2026-08-27T18:35:48+00:00