<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi Matt,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">thanks for good hint !<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Issue disappeared with newer python-openstackclient-1.0.3-3.fc23.noarch<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">python-openstackclient-1.0.1-1.fc22.noarch is too old,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">it’s interesting, as supported platforms for puppet-openstack is fedora21,22 and I get it running just with fc23
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1F497D">J</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Michal<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Matt Fischer [mailto:matt@mattfischer.com]
<br>
<b>Sent:</b> Friday, February 19, 2016 4:27 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions) <openstack-dev@lists.openstack.org><br>
<b>Subject:</b> Re: [openstack-dev] [puppet] is puppet-keystone using v3 credentials correctly ?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">You shouldn't have to do any of that, it should just work. I have OSC 2.0.0 in my environment though (Ubuntu). I'm just guessing but perhaps that client is too old? Maybe a Fedora user could recommend a version.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Feb 19, 2016 at 7:38 AM, Matthew Mosesohn <<a href="mailto:mmosesohn@mirantis.com" target="_blank">mmosesohn@mirantis.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Hi Michal,<br>
<br>
Just add --os-identity-api-version=3 to your command it will work. The<br>
provider uses v3 openstackclient via env var<br>
OS_IDENTITY_API_VERSION=3. The default is still 2.<br>
<br>
Best Regards,<br>
Matthew Mosesohn<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
On Fri, Feb 19, 2016 at 5:25 PM, Matt Fischer <<a href="mailto:matt@mattfischer.com">matt@mattfischer.com</a>> wrote:<br>
> What version of openstack client do you have? What version of the module are<br>
> you using?<br>
><br>
> On Feb 19, 2016 7:20 AM, "Ptacek, MichalX" <<a href="mailto:michalx.ptacek@intel.com">michalx.ptacek@intel.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>><br>
>><br>
>> I was playing some time with puppet-keystone deployments,<br>
>><br>
>> and also reported one issue related to this:<br>
>><br>
>> <a href="https://bugs.launchpad.net/puppet-keystone/+bug/1547394" target="_blank">
https://bugs.launchpad.net/puppet-keystone/+bug/1547394</a><br>
>><br>
>> but in general my observations are that keystone_service is using v3<br>
>> credentials with openstack cli commands that are not compatible<br>
>><br>
>><br>
>><br>
>> e.g.<br>
>><br>
>> Error: Failed to apply catalog: Execution of '/bin/openstack service list<br>
>> --quiet --format csv --long' returned 2: usage: openstack service list [-h]<br>
>> [-f {csv,table}] [-c COLUMN]<br>
>>                               [--max-width <integer>]<br>
>>                               [--quote {all,minimal,none,nonnumeric}]<br>
>> openstack service list: error: unrecognized arguments: --long<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> It can’t be bug, because whole module will not work due to this J<br>
>><br>
>> I think I miss something important somewhere …<br>
>><br>
>><br>
>><br>
>> My latest manifest file is :<br>
>><br>
>><br>
>><br>
>> Exec { logoutput => 'on_failure' }<br>
>><br>
>> package { 'curl': ensure => present }<br>
>><br>
>><br>
>><br>
>> node keystone {<br>
>><br>
>><br>
>><br>
>>   class { '::mysql::server': }<br>
>><br>
>>   class { '::keystone::db::mysql':<br>
>><br>
>>     password => 'keystone',<br>
>><br>
>>   }<br>
>><br>
>><br>
>><br>
>>   class { '::keystone':<br>
>><br>
>>     verbose             => true,<br>
>><br>
>>     debug               => true,<br>
>><br>
>>     database_connection => 'mysql://<a href="http://keystone:keystone@127.0.0.1/keystone" target="_blank">keystone:keystone@127.0.0.1/keystone</a>',<br>
>><br>
>>     catalog_type        => 'sql',<br>
>><br>
>>     admin_token         => 'admin_token',<br>
>><br>
>>   }<br>
>><br>
>><br>
>><br>
>>   class { '::keystone::roles::admin':<br>
>><br>
>>     email    => '<a href="mailto:example@abc.com">example@abc.com</a>',<br>
>><br>
>>     password => 'ChangeMe',<br>
>><br>
>>   }<br>
>><br>
>><br>
>><br>
>>   class { '::keystone::endpoint':<br>
>><br>
>>     public_url => "<a href="http://$%7b::fqdn%7d:5000/v2.0">http://${::fqdn}:5000/v2.0</a>",<br>
>><br>
>>     admin_url  => "<a href="http://$%7b::fqdn%7d:35357/v2.0">http://${::fqdn}:35357/v2.0</a>",<br>
>><br>
>>   }<br>
>><br>
>> }<br>
>><br>
>><br>
>><br>
>> Env variables looks as follows(before service list is called with --long)<br>
>><br>
>> {"OS_IDENTITY_API_VERSION"=>"3", "OS_TOKEN"=>"admin_token",<br>
>> "OS_URL"=>"<a href="http://127.0.0.1:35357/v3" target="_blank">http://127.0.0.1:35357/v3</a>"}<br>
>><br>
>> Debug: Executing: '/bin/openstack service list --quiet --format csv<br>
>> --long'<br>
>><br>
>><br>
>><br>
>> Thanks for any hint,<br>
>><br>
>> Michal<br>
>><br>
>> --------------------------------------------------------------<br>
>> Intel Research and Development Ireland Limited<br>
>> Registered in Ireland<br>
>> Registered Office: Collinstown Industrial Park, Leixlip, County Kildare<br>
>> Registered Number: 308263<br>
>><br>
>> This e-mail and any attachments may contain confidential material for the<br>
>> sole use of the intended recipient(s). Any review or distribution by others<br>
>> is strictly prohibited. If you are not the intended recipient, please<br>
>> contact the sender and delete all copies.<br>
>><br>
>><br>
>> __________________________________________________________________________<br>
>> OpenStack Development Mailing List (not for usage questions)<br>
>> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
>><br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</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>
</body>
</html>