nova driver fails to connect to VCenter when VCenter password has "$$" in it

Bug #1310457 reported by chetanpatige
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Low
Andreas Jaeger
oslo-incubator
Invalid
Undecided
Unassigned

Bug Description

I have VCenter with username="Testuser" and password as "Pa$$word". I see that the nova.conf had the password right i.e., "Pa$$word" but the nova driver failed to connect to the VCenter. I was able to login to the VCenter via VSphere Client. On investigation i see that the nova driver took the password as "Pa$word" and not "Pa$$word".

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

This is working as expected. The config files support string interpolation to combine option values using $varname as the syntax. Two $ are used to disable interpolation, so $$ becomes $ in the config value. In your case, where you need $$ as the output, the input should include $$$$.

Changed in oslo:
status: New → Invalid
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

I did a quick scan and didn't find this information in the configuration reference (http://docs.openstack.org/icehouse/config-reference/content/). Maybe we can add a short "syntax" section?

Tom Fifield (fifieldt)
Changed in openstack-manuals:
status: New → Triaged
importance: Undecided → Low
milestone: none → juno
Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

Doug, do you have some more information on this syntactic sugar, please? Any reference?

Revision history for this message
Andreas Jaeger (jaegerandi) wrote :
Changed in openstack-manuals:
assignee: nobody → Andreas Jaeger (jaegerandi)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to openstack-manuals (master)

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

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

Reviewed: https://review.openstack.org/90594
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=40dc11f9bfbb8917a09902f97bd5387cd2484cbd
Submitter: Jenkins
Branch: master

commit 40dc11f9bfbb8917a09902f97bd5387cd2484cbd
Author: Andreas Jaeger <email address hidden>
Date: Sun Apr 27 11:42:00 2014 +0200

    Document INI format for Config Reference

    Document the format of OpenStack configuration files - INI format.

    Add an entry to the glossary for INI.

    Change-Id: I4d0e16b36d1e261b223b3f842dbdac5fcfa770ab
    Closes-Bug: #1310457

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

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.