Escape dollar sign in nova.conf

Bug #1316120 reported by Igor Shishkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Bogdan Dobrelya

Bug Description

%subj.

U1dSia3^_)'7$Y[.f>uM -- password

host_password=U1dSia3^_)'7$Y[.f>uM -- failed to start nova-compute because of parsing errors
host_password="U1dSia3^_)'7$$Y[.f>uM" -- works fine.

Please escape $ sign in nova.conf.

Changed in fuel:
status: New → Confirmed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Probably it should be escaped in astute.yaml and puppet should use it as is, otherwise we will use the password which are not equal to the ones from fuel_settings hash (astute.yaml).

Revision history for this message
Igor Shishkin (teran) wrote :

Does anything but puppet uses passwords from astute.yaml?

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

OSTF will use the same password from Nailgun API as puppet does from astute.yaml.
Looks like we should either
*make escaping for every given module (puppet, ostf, etc.) relied on nova admin password on his own. Looks like an ugly hacking indeed.
*keep the escaped passwords in nailgun (cons: in general, escaping for some modules might vary)
or
*fix Oslo.config as appropriate. It should accept host_password=U1dSia3^_)'7$Y[.f>uM as is. The best one IMHO.

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

How to test:
$pass="qwe\$rty"
$pass_q=regsubst($pass, '(^.*\$.*$)' , '"\1"' ,'G')
$pass_r=regsubst($pass_q, '\${1}', '$$')
notify { $pass_q: }
notify { $pass_r: }

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/92179

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/92179
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=96e4bea64880c48b0688f9be31205ff0bc4994d0
Submitter: Jenkins
Branch: master

commit 96e4bea64880c48b0688f9be31205ff0bc4994d0
Author: Bogdan Dobrelya <email address hidden>
Date: Mon May 5 21:17:25 2014 +0300

    Escape dollar symbol in host_password

    Escape $ and put the pass into the double quotes
    as a workaround for existing parsing issue

    Closes-bug: #1316120

    Change-Id: Ifd6146455083400252c272c9382a27a56e9c7024
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
Mike Scherbakov (mihgen)
tags: added: release-notes
Revision history for this message
Meg McRoberts (dreidellhasa) wrote :

Added to "Fixed Issues" in 5.0 Release Notes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.