Project

General

Profile

Actions

Bug #7103

closed

config: variable substitution happen only once

Added by Loïc Dachary over 10 years ago. Updated over 10 years ago.

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

90%

Source:
Community (dev)
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In ceph.conf if

mon_host = localhost
keyring = $mon_host/$cluster.keyring,$mon_host/$cluster.mon.keyring

it will be expanded to

keyring = localhost/ceph.keyring,$mon_host/ceph.mon.keyring

instead of the expected

keyring = localhost/ceph.keyring,localhost/ceph.mon.keyring
Actions #1

Updated by Loïc Dachary over 10 years ago

  • Subject changed from variable substitution happen only once to config: variable substitution happen only once
  • Status changed from New to 12

The test demonstrating the problem fails with:

[ RUN      ] DaemonConfig.SubstitutionMultiple
test/daemon_config.cc:136: Failure
Value of: tmp
  Actual: "localhost/ceph.keyring,$mon_host/ceph.mon.keyring" 
Expected: string("localhost/ceph.keyring,localhost/ceph.mon.keyring")
Which is: "localhost/ceph.keyring,localhost/ceph.mon.keyring" 
[  FAILED  ] DaemonConfig.SubstitutionMultiple (0 ms)

Actions #2

Updated by Loïc Dachary over 10 years ago

  • Status changed from 12 to In Progress
Actions #3

Updated by Loïc Dachary over 10 years ago

  • Description updated (diff)
Actions #4

Updated by Loïc Dachary over 10 years ago

  • Status changed from In Progress to Fix Under Review
  • % Done changed from 0 to 90
Actions #5

Updated by Sage Weil over 10 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF