Project

General

Profile

Actions

Bug #74986

closed
AJ AJ

python-common: Cephadm sets OS tunning profile using YAML with empty str as profile name

Bug #74986: python-common: Cephadm sets OS tunning profile using YAML with empty str as profile name

Added by Ashwin Joshi 10 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Fixed In:
v21.3.0-45-g831c5c0dd4
Released In:
Upkeep Timestamp:
2026-08-27T18:35:48+00:00

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


Related issues 1 (0 open — 1 closed)

Copied to Ceph - Backport #77625: umbrella: python-common: Cephadm sets OS tunning profile using YAML with empty str as profile nameResolvedAshwin Joshi

Actions

AJ Updated by Ashwin Joshi 5 months ago Actions #1

  • Backport set to tentacle
  • Pull request ID set to 67384

GA Updated by Guillaume Abrioux 5 months ago Actions #2

  • Assignee set to Ashwin Joshi

GA Updated by Guillaume Abrioux 5 months ago Actions #3

  • Status changed from New to Pending Backport

UB Updated by Upkeep Bot 5 months ago Actions #4

  • 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 Actions #5

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 5 months ago Actions #6

  • 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 Actions #7

  • Backport changed from tentacle to umbrella

UB Updated by Upkeep Bot 3 months ago Actions #8

  • 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
Actions

Also available in: PDF Atom