<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:"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
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Hi again,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">according to </span><a href="http://redir.netcentrum.cz/?noaudit&url=http%3A%2F%2Fdocs%2Eopenstack%2Eorg%2Fdeveloper%2Fkeystoneauth%2Fapi%2Fkeystoneauth1%2Eexceptions%2Ehtml" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#255C97;background:white">http://docs.openstack.org/developer/keystoneauth/api/keystoneauth1.exceptions.html</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Error is caused by not found endpoint</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><br style="orphans: auto;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px">
<br>
<span style="background:white"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">endpoints were not created during puppet-keystone deployment because of following error:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white"> </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><br>
<span style="background:white"> </span><br>
<span style="background:white">Notice: /Stage[main]/Keystone::Roles::Admin/Keystone_user_role[admin@admin]/ensure: created</span><br>
<span style="background:white">Debug: /Stage[main]/Keystone::Roles::Admin/Keystone_user_role[admin@admin]: The container Class[Keystone::Roles::Admin] will propagate my refresh event</span><br>
<span style="background:white">Debug: Class[Keystone::Roles::Admin]: The container Stage[main] will propagate my refresh event</span><br>
<span style="background:white">Debug: Prefetching openstack resources for keystone_service</span><br>
<span style="background:white">Debug: Executing: '/bin/openstack service list --quiet --format csv --long'</span><br>
<span style="background:white">Debug: Storing state</span><br>
<span style="background:white">Info: Creating state file /var/lib/puppet/state/state.yaml</span><br>
<span style="background:white">Debug: Stored state in 0.39 seconds</span><br>
<span style="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><br>
<span style="background:white">                              [--max-width <integer>]</span><br>
<span style="background:white">                              [--quote {all,minimal,none,nonnumeric}]</span><br>
</span><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:red;background:white">openstack service list: error: unrecognized arguments: --long</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><br>
<span style="background:white">Debug: Finishing transaction 28151500<o:p></o:p></span></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:9.0pt;font-family:"Arial",sans-serif">Is it a bug in puppet-keystone or I am calling it from some wrong context or have wrong version of python-openstackclient (1.0.1-1.fc22.noarch) ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif">(relevant part of my manifest is from keystone/examples/v3_basic.pp)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif">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>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<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"> Ptacek, MichalX [mailto:michalx.ptacek@intel.com]
<br>
<b>Sent:</b> Friday, February 19, 2016 11:44 AM<br>
<b>To:</b> openstack-operators@lists.openstack.org<br>
<b>Subject:</b> [Openstack-operators] Visibility issues using puppet keystone v3<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Hi, </span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><br>
<span style="background:white"> </span><br>
<span style="background:white">I have some issues on keystone (v3) installed from puppet module,</span><br>
<span style="background:white">some records from keystone db are not visible through openstack cli, like admin user below created by:</span><br>
<span style="background:white">/bin/openstack user create --format shell admin --enable --password a_big_secret --email
<a href="mailto:test@example.tld">test@example.tld</a> --domain Default</span><br>
<span style="background:white"> </span><br>
<span style="background:white">I can see it in keystone db directly or via curl, </span><br>
<span style="background:white"> </span><br>
<span style="background:white">[root@charon ~]# curl -si -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json"<span class="apple-converted-space"> </span></span></span><a href="http://redir.netcentrum.cz/?noaudit&url=http%3A%2F%2Flocalhost%3A35357%2Fv3%2Fusers" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#255C97;background:white">http://localhost:35357/v3/users</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><br>
<span style="background:white">HTTP/1.1 200 OK</span><br>
<span style="background:white">Vary: X-Auth-Token</span><br>
<span style="background:white">Content-Type: application/json</span><br>
<span style="background:white">Content-Length: 315</span><br>
<span style="background:white">Date: Fri, 19 Feb 2016 10:36:32 GMT</span><br>
<span style="background:white"> </span><br>
<span style="background:white">{"users": [{"name": "admin", "links": {"self": "</span></span><a href="http://redir.netcentrum.cz/?noaudit&url=http%3A%2F%2Flocalhost%3A35357%2Fv3%2Fusers%2F598652ccea444b99bbe2133204fa1fb4" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#255C97;background:white">http://localhost:35357/v3/users/598652ccea444b99bbe2133204fa1fb4</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">"},
 "domain_id": "default", "enabled": true, "email": "<a href="mailto:test@example.tld">test@example.tld</a>", "id": "598652ccea444b99bbe2133204fa1fb4"}], "links": {"self": "</span><a href="http://redir.netcentrum.cz/?noaudit&url=http%3A%2F%2Flocalhost%3A35357%2Fv3%2Fusers" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#255C97;background:white">http://localhost:35357/v3/users</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">",
 "previous": null, "next": null}}</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><br>
<span style="background:white"> </span><br>
<span style="background:white">but for some reason I can't see it from python-openstackclient</span><br>
<span style="background:white"> </span><br>
<span style="background:white">export OS_IDENTITY_API_VERSION=3</span><br>
<span style="background:white">export OS_AUTH_URL=</span></span><a href="http://redir.netcentrum.cz/?noaudit&url=http%3A%2F%2F127%2E0%2E0%2E1%3A35357%2Fv3" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#255C97;background:white">http://127.0.0.1:35357/v3</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><br>
<span style="background:white">export OS_DEFAULT_DOMAIN=default</span><br>
<span style="background:white">export OS_USER_DOMAIN_NAME=default</span><br>
<span style="background:white">export OS_PROJECT_DOMAIN_NAME=default</span><br>
<span style="background:white">export OS_USERNAME=admin</span><br>
<span style="background:white">export OS_PASSWORD=a_big_secret</span><br>
<span style="background:white">export OS_PROJECT_NAME=admin</span><br>
<span style="background:white"> </span><br>
<span style="background:white"> </span><br>
<span style="background:white">root@charon ~]# openstack user list --debug</span><br>
<span style="background:white">...........................................</span><br>
<span style="background:white">INFO: openstackclient.common.clientmanager Using auth plugin: v3password</span><br>
<span style="background:white">INFO: openstackclient.shell command: openstackclient.identity.v3.user.ListUser</span><br>
<span style="background:white">DEBUG: openstackclient.identity.v3.user.ListUser take_action(Namespace(columns=[], domain=None, formatter='table', group=None, long=False, max_width=0, quote_mode='nonnumeric'))</span><br>
<span style="background:white">DEBUG: openstackclient.identity.client Instantiating identity client: <class 'keystoneclient.v3.client.Client'></span><br>
<span style="background:white">DEBUG: openstackclient.identity.client Using auth plugin: None</span><br>
<span style="background:white">DEBUG: keystoneclient.auth.identity.v3 Making authentication request to<span class="apple-converted-space"> </span></span></span><a href="http://redir.netcentrum.cz/?noaudit&url=http%3A%2F%2F127%2E0%2E0%2E1%3A35357%2Fv3%2Fauth%2Ftokens" target="_blank"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#255C97;background:white">http://127.0.0.1:35357/v3/auth/tokens</span></a><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><br>
<span style="background:white">INFO: requests.packages.urllib3.connectionpool Starting new HTTP connection (1): 127.0.0.1</span><br>
<span style="background:white">DEBUG: requests.packages.urllib3.connectionpool "POST /v3/auth/tokens HTTP/1.1" 201 504</span><br>
<span style="background:white">ERROR: openstack The service catalog is empty.</span><br>
<span style="background:white"> </span><br>
<br>
<span style="background:white">can someone please suggest what am I doing wrong ?<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">Michal</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></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<o:p></o:p></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.<o:p></o:p></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>
</body>
</html>