<p dir="ltr">What version of openstack client do you have? What version of the module are you using?</p>
<div class="gmail_quote">On Feb 19, 2016 7:20 AM, "Ptacek, MichalX" <<a href="mailto:michalx.ptacek@intel.com">michalx.ptacek@intel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hi all,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I was playing some time with puppet-keystone deployments,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">and also reported one issue related to this:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a href="https://bugs.launchpad.net/puppet-keystone/+bug/1547394" target="_blank">https://bugs.launchpad.net/puppet-keystone/+bug/1547394</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">but in general my observations are that keystone_service is using v3 credentials with openstack cli commands that are not compatible<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">e.g.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri Light",sans-serif;color:#333333;background:white">Error: Failed to apply catalog: Execution of '/bin/openstack service list --quiet --format csv --long' returned 2: usage: openstack service
list [-h] [-f {csv,table}] [-c COLUMN]</span><span style="font-size:11.0pt;font-family:"Calibri Light",sans-serif;color:#333333"><br>
<span style="background:white"> [--max-width <integer>]</span><br>
<span style="background:white"> [--quote {all,minimal,none,nonnumeric}]</span><br>
<span style="background:white">openstack service list: error: unrecognized arguments: --long<u></u><u></u></span></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333;background:white"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333;background:white"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">It can’t be bug, because whole module will not work due to this
</span><span style="font-size:11.0pt;font-family:Wingdings">J</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I think I miss something important somewhere …<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">My latest manifest file is :<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">Exec { logoutput => 'on_failure' } <u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">package { 'curl': ensure => present }<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> <u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">node keystone {<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> <u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> class { '::mysql::server': }<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> class { '::keystone::db::mysql':<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> password => 'keystone',<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> }<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> <u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> class { '::keystone':<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> verbose => true,<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> debug => true,<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> database_connection => 'mysql://<a href="http://keystone:keystone@127.0.0.1/keystone" target="_blank">keystone:keystone@127.0.0.1/keystone</a>',<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> catalog_type => 'sql',<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> admin_token => 'admin_token',<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> }<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> <u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> class { '::keystone::roles::admin':<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> email => '<a href="mailto:example@abc.com" target="_blank">example@abc.com</a>',<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> password => 'ChangeMe',<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> }<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> <u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> class { '::keystone::endpoint':<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> public_url => "http://${::fqdn}:5000/v2.0",<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> admin_url => "http://${::fqdn}:35357/v2.0",<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black"> }<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;background:white;word-spacing:0px">
<span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black">} <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Env variables looks as follows(before service list is called with --long)<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">{"OS_IDENTITY_API_VERSION"=>"3", "OS_TOKEN"=>"admin_token", "OS_URL"=>"<a href="http://127.0.0.1:35357/v3" target="_blank">http://127.0.0.1:35357/v3</a>"}<u></u><u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Debug: Executing: '/bin/openstack service list --quiet --format csv --long'<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks for any hint,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Michal<u></u><u></u></span></p>
</div>
<p>--------------------------------------------------------------<br>
Intel Research and Development Ireland Limited<br>
Registered in Ireland<br>
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare<br>
Registered Number: 308263</p>
<p>This e-mail and any attachments may contain confidential material for the
sole use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.</p>
<p></p>
</div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div>