<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hi,</div>
<div><br>
</div>
<div>I am using the Kilo puppet recipes to setup Kilo on Ubuntu 14.04 to test the latest Puppet recipes with Vagrant.</div>
<div>I am creating an keystone admin user from within the puppet recipe.</div>
<div>Creating the keystone user works fine but the second puppetrun gives an error whenever you set a password for the user you want to create.</div>
<div>Error: /Stage[main]/Keystone::Roles::Admin/Keystone_user[admin]: Could not evaluate: Execution of '/usr/bin/openstack token issue --format value' returned 1: ERROR: openstack The resource could not be found.</div>
<div><br>
</div>
<div>* When you do not pass the password in the keystone_user native type it does not throw an error.</div>
<div>* The first run will create the user successfully and set the password</div>
<div>
<div>* After sourcing the credentials file and running manually "/usr/bin/openstack token issue --format value” also does not give an error. </div>
</div>
<div>( I could not immediately find where puppet decides this command is run and with which credentials. )</div>
<div><br>
</div>
<div>Anyone hitting the same issue or knows what could be going wrong?</div>
<div><br>
</div>
<div>Example puppet keystone user config which breaks after the second run:</div>
<div>
<div> keystone_user { 'admin':</div>
<div> password => $::openstack::config::keystone_admin_password, #Removing this line fixes the issue</div>
<div> email => 'admin@openstack',</div>
<div> ensure => present,</div>
<div> enabled => True,</div>
<div> }</div>
</div>
<div><br>
</div>
<div>Thx,</div>
<div>Robert van Leeuwen</div>
</body>
</html>