<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 255); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello Christopher, </div>
<div><br>
</div>
<div>My local configuration is indeed seeing the kmip_plugin selection, but when stevedore tries to load the KMIP plugin it crashes because required files are missing in my local environment (see <a href="https://github.com/openstack/barbican/blob/master/barbican/plugin/kmip_secret_store.py#L131" class="link" rel="noreferrer" target="_blank" style="color: rgb(29, 64, 255); text-decoration: none; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 17px; white-space: pre-wrap; widows: 1; background-color: rgb(226, 237, 255);">https://github.com/openstack/barbican/blob/master/barbican/plugin/kmip_secret_store.py#L131</a>)
for example.</div>
<div><br>
</div>
<div>Stevedore logs the exception but then doesn’t load this module, so when Barbican asks for an available plugin it doesn’t see it and crashes as you see. So the root exception from stevedore isn’t showing up in my logs for some reason, and probably not in
yours as well. We’ll try to put up a CR to at least expose this exception in logs. In the mean time, make sure the KMIP values checked via that link above are configured on your machine.</div>
<div><br>
</div>
<div>Sorry for the inconvenience,</div>
<div>John</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Christopher N Solis <<a href="mailto:cnsolis@us.ibm.com">cnsolis@us.ibm.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, April 8, 2015 at 11:27 AM<br>
<span style="font-weight:bold">To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [openstack-dev] [barbican] Utilizing the KMIP plugin<br>
</div>
<div><br>
</div>
<div>
<div>
<p><font size="2" face="sans-serif">Hey John. </font><br>
<font size="2" face="sans-serif">I do have the barbican-api.conf file located in the /etc/barbican folder. But that does not seem to be the one that barbican
</font><br>
<font size="2" face="sans-serif">reads from. It seems to be reading from the barbican-api.conf file locate in my home directory.
</font><br>
<font size="2" face="sans-serif">Either way, both have the exact same configurations.
</font><br>
<br>
<font size="2" face="sans-serif">I also checked the setup.cfg file and it does have the line for kmip_plugin .
</font><br>
<br>
<font size="1" face="Arial">Regards,</font><br>
<br>
<font size="1" face="Arial"> </font><font size="3" color="#0000FF" face="Arial"><b> </b></font><font size="3" face="Arial"><b>CHRIS SOLIS</b></font><br>
<br>
<img width="16" height="16" src="cid:1__=08BBF4B2DFCA70188f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for John Wood ---04/07/2015 10:39:18 AM---Hello Christopher, Just checking, but is that barbican-api.conf"><font size="2" color="#424282" face="sans-serif">John
Wood ---04/07/2015 10:39:18 AM---Hello Christopher, Just checking, but is that barbican-api.conf file located in your local system's</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From: </font><font size="1" face="sans-serif">John Wood <<a href="mailto:john.wood@RACKSPACE.COM">john.wood@RACKSPACE.COM</a>></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To: </font><font size="1" face="sans-serif">"<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date: </font><font size="1" face="sans-serif">04/07/2015 10:39 AM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject: </font><font size="1" face="sans-serif">Re: [openstack-dev] [barbican] Utilizing the KMIP plugin</font><br>
</p>
<hr width="100%" size="2" align="left" noshade="" style="color:#8091A5; ">
<br>
<br>
<br>
<font size="1" color="#0000FF" face="Calibri">Hello Christopher,</font><br>
<br>
<font size="1" color="#0000FF" face="Calibri">Just checking, but is that barbican-api.conf file located in your local system’s /etc/barbican folder? If not that is the preferred place for local development. Modifying the copy that is in your local git repository
will have no effect.</font><br>
<br>
<font size="1" color="#0000FF" face="Calibri">Also, please double check that your local git repository’s setup.cfg has a line like this in there (at/around #35):</font><br>
<br>
<font size="1" color="#0000FF" face="Calibri"> kmip_plugin = barbican.plugin.kmip_secret_store:KMIPSecretStore</font><br>
<br>
<font size="1" color="#0000FF" face="Calibri">Thanks,</font><br>
<font size="1" color="#0000FF" face="Calibri">John</font><br>
<br>
<br>
<br>
<br>
<font size="2" face="Calibri"><b>From: </b></font><font size="2" face="Calibri">Christopher N Solis <</font><a href="mailto:cnsolis@us.ibm.com"><font size="2" color="#0000FF" face="Calibri"><u>cnsolis@us.ibm.com</u></font></a><font size="2" face="Calibri">></font><font size="2" face="Calibri"><b><br>
Reply-To: </b></font><font size="2" face="Calibri">"</font><a href="mailto:openstack-dev@lists.openstack.org"><font size="2" color="#0000FF" face="Calibri"><u>openstack-dev@lists.openstack.org</u></font></a><font size="2" face="Calibri">" <</font><a href="mailto:openstack-dev@lists.openstack.org"><font size="2" color="#0000FF" face="Calibri"><u>openstack-dev@lists.openstack.org</u></font></a><font size="2" face="Calibri">></font><font size="2" face="Calibri"><b><br>
Date: </b></font><font size="2" face="Calibri">Monday, April 6, 2015 at 10:25 AM</font><font size="2" face="Calibri"><b><br>
To: </b></font><font size="2" face="Calibri">"</font><a href="mailto:openstack-dev@lists.openstack.org"><font size="2" color="#0000FF" face="Calibri"><u>openstack-dev@lists.openstack.org</u></font></a><font size="2" face="Calibri">" <</font><a href="mailto:openstack-dev@lists.openstack.org"><font size="2" color="#0000FF" face="Calibri"><u>openstack-dev@lists.openstack.org</u></font></a><font size="2" face="Calibri">></font><font size="2" face="Calibri"><b><br>
Subject: </b></font><font size="2" face="Calibri">[openstack-dev] [barbican] Utilizing the KMIP plugin</font><br>
<p><font size="2" color="#0000FF" face="sans-serif">Hello!</font><font size="1" color="#0000FF" face="Calibri"><br>
</font><font size="2" color="#0000FF" face="sans-serif"><br>
Sorry to Kaitlin Farr for not responding directly to your e-mail. <br>
My openstack settings were misconfigured and I was not receiving e-mail from the dev mailing list.
<br>
Thanks for looking into the issue. </font><font size="1" color="#0000FF" face="Calibri"><br>
</font><font size="2" color="#0000FF" face="sans-serif"><br>
I double checked the permissions at the bottom of the kmip_plugin part in the barbican-api.conf file
<br>
and they are set to 400. </font><font size="1" color="#0000FF" face="Calibri"><br>
</font><font size="2" color="#0000FF" face="sans-serif"><br>
I would also like to note that I do not think the code ever actually entered the __init__ function<br>
of KMIPSecretStore. I put a breakpoint in the __init__ function but the debugger never gets open.
<br>
The error occurs and returns without ever seeming to enter the init function. </font>
<font size="1" color="#0000FF" face="Calibri"><br>
</font><font size="2" color="#0000FF" face="sans-serif"><br>
Here are the parts of the barbican-api.conf file that concern the kmip_plugin: <br>
.....................<br>
[secretstore]<br>
namespace = barbican.secretstore.plugin<br>
enabled_secretstore_plugins = kmip_plugin<br>
.....................<br>
[kmip_plugin]<br>
username = '**********'<br>
password = '**********'<br>
host = ********<br>
port = ********<br>
keyfile = '/etc/barbican/rootCA.key'<br>
certfile = '/etc/barbican/rootCA.pem'<br>
ca_certs = '/etc/barbican/rootCA.pem'<br>
.......................</font><font size="1" color="#0000FF" face="Calibri"><br>
</font><font size="2" color="#0000FF" face="sans-serif"><br>
Thank You!!</font><font size="1" color="#0000FF" face="Calibri"><br>
</font><font size="2" color="#0000FF" face="sans-serif"><br>
Regards, <br>
Christopher Solis</font><tt><font size="2">__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br>
</font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
</font></tt></p>
<p></p>
</div>
</div>
</span>
</body>
</html>