<html><body>
<p><font size="2" face="sans-serif">Hello, </font><br>
<br>
<font size="2" face="sans-serif">I have some questions concerning what exactly is implemented with respect to the kmip plugin. </font><br>
<font size="2" face="sans-serif">When I attempt to store a symmetric key using the command: </font><br>
<br>
<font size="2" face="sans-serif">curl -X POST -H 'content-type:application/json' -H 'X-Project-Id:12345' -d '{"name": "AES key", "algorithm":"aes", "bit_length":256, "mode":"cbc","payload":"9A855DC48159F6629EBFF919C045C24B57B6B0327AA43FAA5DD6C87FC3E000AB","payload_content_type":"application/octet-stream","payload_content_encoding":"base64", "secret_type":"symmetric"}' </font><a href="http://localhost:9311/v1/secrets"><font size="2" face="sans-serif">http://localhost:9311/v1/secrets</font></a><br>
<br>
<font size="2" face="sans-serif">I receive the following error: SecretGeneralException: Problem seen during crypto processing - Reason: 'NoneType' object has no attribute 'enum'</font><br>
<br>
<font size="2" face="sans-serif">When I also ask barbican to generate a symmetric key using the orders resource: </font><br>
<br>
<font size="2" face="sans-serif">curl -X POST -H 'content-type:application/json' -H 'X-Project-Id: 12345' -d '{ "type":"key", "meta": {"name": "secretname", "algorithm": "aes", "bit_length": 256, "mode": "cbc", "payload_content_type": "application/octet-stream"}}' </font><a href="http://localhost:9311/v1/orders"><font size="2" face="sans-serif">http://localhost:9311/v1/orders</font></a><br>
<br>
<font size="2" face="sans-serif">I get what appears to be the same error: AttributeError: 'NoneType' object has no attribute 'enum'</font><br>
<br>
<font size="2" face="sans-serif">Does this mean symmetric key storage is still not fully implemented? Or is it possible there is a misconfiguration between my kmip plugin and barbican? </font><br>
<font size="2" face="sans-serif">Thank you!</font><br>
<br>
<font size="3" face="Arial"><b>Chris Solis</b></font><br>
<br>
<br>
<img width="16" height="16" src="cid:1__=08BBF4A2DFE0CB3D8f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Christopher N Solis---04/21/2015 03:50:08 PM---Hey Joel. Thanks for the advice!"><font size="2" color="#424282" face="sans-serif">Christopher N Solis---04/21/2015 03:50:08 PM---Hey Joel. Thanks for the advice!</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">Christopher N Solis/Austin/IBM@IBMUS</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">"Coffman, Joel M." <Joel.Coffman@jhuapl.edu></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Cc:        </font><font size="1" face="sans-serif">"Reller, Nathan S." <Nathan.Reller@jhuapl.edu>, "'OpenStack Development Mailing List \(not for usage questions\)'" <openstack-dev@lists.openstack.org>, "Farr, Kaitlin M." <Kaitlin.Farr@jhuapl.edu></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">04/21/2015 03:50 PM</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>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="2" face="sans-serif">Hey Joel. <br>
Thanks for the advice!<br>
I was able to solve the problem and have the ssl connection become trusted. <br>
Barbican seems to be authenticating correctly to the KMIP server as well now.<br>
However, I have another problem. </font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
When I try to store a plain text secret into barbican I receive the following error: </font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
File "/home/swift/barbican/barbican/api/controllers/__init__.py", line 104, in handler<br>
    return fn(inst, *args, **kwargs)<br>
  File "/home/swift/barbican/barbican/api/controllers/__init__.py", line 90, in enforcer<br>
    return fn(inst, *args, **kwargs)<br>
  File "/home/swift/barbican/barbican/api/controllers/__init__.py", line 146, in content_types_enforcer<br>
    return fn(inst, *args, **kwargs)<br>
  File "/home/swift/barbican/barbican/api/controllers/secrets.py", line 326, in on_post<br>
    transport_key_id=data.get('transport_key_id'))<br>
  File "/home/swift/barbican/barbican/plugin/resources.py", line 95, in store_secret<br>
    plugin_name=plugin_name)<br>
  File "/home/swift/barbican/barbican/plugin/interface/secret_store.py", line 478, in _check_plugins_configured<br>
    return plugin_related_function(self, *args, **kwargs)<br>
  File "/home/swift/barbican/barbican/plugin/interface/secret_store.py", line 513, in get_plugin_store<br>
    if ext.obj.store_secret_supports(key_spec):<br>
  File "/home/swift/barbican/barbican/plugin/kmip_secret_store.py", line 481, in store_secret_supports<br>
    return self.generate_supports(key_spec)<br>
  File "/home/swift/barbican/barbican/plugin/kmip_secret_store.py", line 437, in generate_supports<br>
    alg_dict_entry = self.valid_alg_dict.get(key_spec.alg.lower())<br>
AttributeError: 'NoneType' object has no attribute 'lower'</font><font size="3" face="serif"><br>
</font><font size="2" face="sans-serif"><br>
I don't really know what could be causing this error. Any ideas?</font><font size="3" face="serif"><br>
</font><font size="1" face="Arial"><br>
Regards,</font><font size="3" face="serif"><br>
</font><font size="1" face="Arial"><br>
 </font><font size="3" color="#0000FF" face="Arial"><b> </b></font><font size="3" face="Arial"><b>CHRIS SOLIS</b></font><font size="1" face="Arial"><br>
</font><font size="3" face="serif"><br>
<br>
<br>
</font><img src="cid:1__=08BBF4A2DFE0CB3D8f9e8a93df938@us.ibm.com" width="16" height="16" alt="Inactive hide details for "Coffman, Joel M." ---04/16/2015 03:22:25 PM---However, I cannot not make a request to the kmip plugi"><font size="2" color="#424282" face="sans-serif">"Coffman, Joel M." ---04/16/2015 03:22:25 PM---However, I cannot not make a request to the kmip plugin because of an ssl error: The keyfile, certfi</font><font size="3" face="serif"><br>
</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
From: </font><font size="1" face="sans-serif">"Coffman, Joel M." <Joel.Coffman@jhuapl.edu></font><font size="1" color="#5F5F5F" face="sans-serif"><br>
To: </font><font size="1" face="sans-serif">"'OpenStack Development Mailing List (not for usage questions)'" <openstack-dev@lists.openstack.org>, Christopher N Solis/Austin/IBM@IBMUS</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Cc: </font><font size="1" face="sans-serif">"Reller, Nathan S." <Nathan.Reller@jhuapl.edu>, "Farr, Kaitlin M." <Kaitlin.Farr@jhuapl.edu>, "Coffman, Joel M." <Joel.Coffman@jhuapl.edu></font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Date: </font><font size="1" face="sans-serif">04/16/2015 03:22 PM</font><font size="1" color="#5F5F5F" face="sans-serif"><br>
Subject: </font><font size="1" face="sans-serif">RE: [openstack-dev] [barbican] Utilizing the KMIP plugin</font><font size="3" face="serif"><br>
</font><hr width="100%" size="2" align="left" noshade><font size="3" face="serif"><br>
<br>
</font><font size="2" face="Arial"><br>
However, I cannot not make a request to the kmip plugin because of an ssl error:</font><font size="2" color="#1F497D" face="Calibri"><br>
The keyfile, certfile, and ca_certs are passed directly to ssl.wrap_socket. Debugging any SSL errors isn’t easy – Google is generally the best resource to identify and resolve issues based on the error codes returned by OpenSSL. :-(<br>
 </font><font size="2" face="Arial"><br>
What exactly is each variable suppose to contain?</font><font size="2" color="#1F497D" face="Calibri"><br>
See the ssl.wrap_socket documentation for more details.</font><font size="2" face="Arial"><br>
I have keyfile and certfile being a self signed certificate and 2048 bit RSA key respectively for barbican to use and ca_certs is the kmip_plugins' certificate for barbican to trust. Does this setup sound right?</font><font size="2" color="#1F497D" face="Calibri"><br>
In the sentence, you swap the key and certificate (i.e., the RSA key should be the keyfile and the self-signed certificate should be the certfile), but that’s probably not the real issue. :-)<br>
 <br>
If credentials (i.e., a key and certificate) weren’t provided to you for the KMIP appliance, you’ll probably need to have the KMIP appliance sign your self-signed certificate so it knows that it’s valid. The procedure differs by appliance but loosely resembles the following:</font><font size="3" face="serif"> </font>
<ul style="padding-left: 36pt"><font size="2" color="#1F497D" face="Calibri">1.       Generate key and certificate on local machine using OpenSSL<br>
2.       Upload certificate to KMIP appliance<br>
3.       Sign the certificate using the KMIP appliance’s server certificate</font></ul>
<br>
<font size="2" color="#1F497D" face="Calibri">Alternatively, a key and certificate could be provided for the KMIP appliance; you would use those files rather than generating them locally.<br>
 <br>
Hope that information is helpful.<br>
 <br>
Joel<br>
 <br>
 </font><font size="2" face="Calibri"><b><br>
From:</b></font><font size="2" face="Calibri"> John Wood [</font><a href="mailto:john.wood@RACKSPACE.COM"><font size="2" color="#0000FF" face="Calibri"><u>mailto:john.wood@RACKSPACE.COM</u></font></a><font size="2" face="Calibri">] </font><font size="2" face="Calibri"><b><br>
Sent:</b></font><font size="2" face="Calibri"> Wednesday, April 15, 2015 9:19 AM</font><font size="2" face="Calibri"><b><br>
To:</b></font><font size="2" face="Calibri"> OpenStack Development Mailing List (not for usage questions)</font><font size="2" face="Calibri"><b><br>
Cc:</b></font><font size="2" face="Calibri"> Reller, Nathan S.; Farr, Kaitlin M.</font><font size="2" face="Calibri"><b><br>
Subject:</b></font><font size="2" face="Calibri"> Re: [openstack-dev] [barbican] Utilizing the KMIP plugin</font><font size="3" face="Times New Roman"><br>
 </font><font size="2" color="#0000FF" face="Calibri"><br>
Hello Christopher,<br>
 <br>
I’m glad you are making progress. I’m including two folks that worked on the KMIP plugin to see if they can help with your error diagnosis.<br>
 <br>
Thanks,<br>
John<br>
 <br>
 </font><font size="2" face="Calibri"><b><br>
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">"OpenStack Development Mailing List (not for usage questions)" <</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">Tuesday, April 14, 2015 at 10:21 AM</font><font size="2" face="Calibri"><b><br>
To: </b></font><font size="2" face="Calibri">"OpenStack Development Mailing List (not for usage questions)" <</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">Re: [openstack-dev] [barbican] Utilizing the KMIP plugin</font><font size="2" color="#0000FF" face="Calibri"><br>
 </font><font size="3" face="serif"> </font>
<p><font size="2" color="#0000FF" face="Arial">Hey John. <br>
Thanks!<br>
You were right. It was reading the config from the /root directory because I switched to the root user. <br>
After switching back to the normal user it is reading the correct config file again. <br>
It is trying to use the kmip plugin now. <br>
<br>
However, I cannot not make a request to the kmip plugin because of an ssl error:<br>
<br>
2015-04-14 10:02:26,219 - barbican.plugin.kmip_secret_store - ERROR - Error opening or writing to client<br>
Traceback (most recent call last):<br>
 File "/home/swift/barbican/barbican/plugin/kmip_secret_store.py", line 167, in generate_symmetric_key<br>
   self.client.open()<br>
 File "/home/swift/.pyenv/versions/barbican27/lib/python2.7/site-packages/kmip/services/kmip_client.py", line 86, in open<br>
   self.socket.connect((self.host, self.port))<br>
 File "/home/swift/.pyenv/versions/2.7.6/lib/python2.7/ssl.py", line 333, in connect<br>
   self._real_connect(addr, False)<br>
 File "/home/swift/.pyenv/versions/2.7.6/lib/python2.7/ssl.py", line 314, in _real_connect<br>
   self.ca_certs, self.ciphers)<br>
SSLError: [Errno 0] _ssl.c:343: error:00000000:lib(0):func(0):reason(0)<br>
<br>
I believe there is a problem in the KMIP plugin part of the barbican-api.conf file: <br>
keyfile = '/path/to/certs/cert.key'<br>
certfile = '/path/to/certs/cert.crt'<br>
ca_certs = '/path/to/certs/LocalCA.crt'<br>
<br>
What exactly is each variable suppose to contain? <br>
I have keyfile and certfile being a self signed certificate and 2048 bit RSA key respectively for barbican to use and <br>
ca_certs is the kmip_plugins' certificate for barbican to trust. Does this setup sound right?<br>
<br>
Regards, <br>
Christopher Solis</font><font size="2" color="#0000FF" face="Calibri"><br>
</font><font size="3" face="serif"><br>
</font><img src="cid:1__=08BBF4A2DFE0CB3D8f9e8a93df938@us.ibm.com" width="16" height="16" alt="Inactive hide details for John Wood ---04/10/2015 07:24:59 PM---Hello Christopher, It does seem that configs are being read for"><font size="2" color="#424282" face="Arial">John Wood ---04/10/2015 07:24:59 PM---Hello Christopher, It does seem that configs are being read for another location. Try to remove that</font><font size="1" color="#5F5F5F" face="Arial"><br>
<br>
From: </font><font size="1" color="#0000FF" face="Arial">John Wood <</font><a href="mailto:john.wood@RACKSPACE.COM"><font size="1" color="#0000FF" face="Arial"><u>john.wood@RACKSPACE.COM</u></font></a><font size="1" color="#0000FF" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
To: </font><font size="1" color="#0000FF" face="Arial">"OpenStack Development Mailing List (not for usage questions)" <</font><a href="mailto:openstack-dev@lists.openstack.org"><font size="1" color="#0000FF" face="Arial"><u>openstack-dev@lists.openstack.org</u></font></a><font size="1" color="#0000FF" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
Date: </font><font size="1" color="#0000FF" face="Arial">04/10/2015 07:24 PM</font><font size="1" color="#5F5F5F" face="Arial"><br>
Subject: </font><font size="1" color="#0000FF" face="Arial">Re: [openstack-dev] [barbican] Utilizing the KMIP plugin</font><font size="3" face="serif"><br>
</font><hr width="100%" size="2" align="left" noshade><font size="2" color="#0000FF" face="Calibri"><br>
<br>
</font><font size="1" color="#0000FF" face="Calibri"><br>
<br>
Hello Christopher,<br>
<br>
It does seem that configs are being read for another location. Try to remove that copy in you home directory (so just keep the /etc location). If you see the same issue, try to rename your /etc/barbican/barbican-api.conf file to something else. Barbican should crash, probably with a No SQL connection error.<br>
<br>
Also, double check the ‘kmip_plugin’ setting in setup.cfg as per below, and try running ‘pip install -e .’ again in your virtual environment.<br>
<br>
FWIW, this CR adds better logging of plugin errors once the loading problem you have is figured out: </font><a href="https://review.openstack.org/#/c/171868/"><font size="1" color="#0000FF" face="Calibri"><u>https://review.openstack.org/#/c/171868/</u></font></a><font size="1" color="#0000FF" face="Calibri"><br>
<br>
Thanks,<br>
John</font><font size="2" color="#0000FF" face="Calibri"><br>
</font><font size="2" color="#0000FF" face="Calibri"><b><br>
<br>
From: </b></font><font size="2" color="#0000FF" 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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Reply-To: </b></font><font size="2" color="#0000FF" face="Calibri">"OpenStack Development Mailing List (not for usage questions)" <</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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Date: </b></font><font size="2" color="#0000FF" face="Calibri">Thursday, April 9, 2015 at 1:55 PM</font><font size="2" color="#0000FF" face="Calibri"><b><br>
To: </b></font><font size="2" color="#0000FF" face="Calibri">"OpenStack Development Mailing List (not for usage questions)" <</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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Subject: </b></font><font size="2" color="#0000FF" face="Calibri">Re: [openstack-dev] [barbican] Utilizing the KMIP plugin</font><font size="3" face="serif"> </font>
<p><font size="2" color="#0000FF" face="Arial">Hey John. <br>
Thanks for letting me know about the error. But I think my configuration is not seeing the kmip_plugin selection.<br>
In my barbican-api.conf file in /etc/barbican I have set enabled_secretstore_plugins = kmip_plugin<br>
<br>
However, I don't think it is creating a KMIPSecretStore instance. <br>
I edited the code in kmip_secret_store.py and put a breakpoint at the very beginning of the init function.<br>
When I make a barbican request to put a secret in there, it did not stop at the breakpoint at all. <br>
I put another breakpoint in the store_crypto.py file inside the init function for the StoreCryptoAdapterPlugin and I <br>
was able to enter the code at that breakpoint. <br>
<br>
So even though in my barbican-api.conf file I specified kmip_plugin it seems to be using the store_crypto plugin instead. <br>
<br>
Is there something that might cause this to happen? <br>
I also want to note that my code has the most up to date pull from the community code. <br>
<br>
Here's what my /etc/barbican/barbican-api.conf file has in it: <br>
<br>
# ================= Secret Store Plugin ===================<br>
[secretstore]<br>
namespace = barbican.secretstore.plugin<br>
enabled_secretstore_plugins = kmip_plugin<br>
...<br>
...<br>
...<br>
# ================== KMIP plugin =====================<br>
[kmip_plugin]<br>
username = '******'<br>
password = '******'<br>
host = 10.0.2.15<br>
port = 5696<br>
keyfile = '/etc/barbican/rootCA.key'<br>
certfile = '/etc/barbican/rootCA.pem'<br>
ca_certs = '/etc/barbican/rootCA.pem'</font><font size="1" color="#0000FF" face="Arial"><br>
<br>
<br>
Regards, <br>
Christopher Solis</font><font size="1" color="#0000FF" face="Calibri"><br>
</font><font size="2" color="#0000FF" face="Calibri"><br>
</font><font size="3" face="serif"><br>
</font><img src="cid:1__=08BBF4A2DFE0CB3D8f9e8a93df938@us.ibm.com" width="16" height="16" alt="Inactive hide details for John Wood ---04/08/2015 03:16:58 PM---Hello Christopher, My local configuration is indeed seeing the "><font size="2" color="#424282" face="Arial">John Wood ---04/08/2015 03:16:58 PM---Hello Christopher, My local configuration is indeed seeing the kmip_plugin selection, but when steve</font><font size="1" color="#5F5F5F" face="Arial"><br>
<br>
From: </font><font size="1" color="#0000FF" face="Arial">John Wood <</font><a href="mailto:john.wood@RACKSPACE.COM"><font size="1" color="#0000FF" face="Arial"><u>john.wood@RACKSPACE.COM</u></font></a><font size="1" color="#0000FF" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
To: </font><font size="1" color="#0000FF" face="Arial">"OpenStack Development Mailing List (not for usage questions)" <</font><a href="mailto:openstack-dev@lists.openstack.org"><font size="1" color="#0000FF" face="Arial"><u>openstack-dev@lists.openstack.org</u></font></a><font size="1" color="#0000FF" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
Date: </font><font size="1" color="#0000FF" face="Arial">04/08/2015 03:16 PM</font><font size="1" color="#5F5F5F" face="Arial"><br>
Subject: </font><font size="1" color="#0000FF" face="Arial">Re: [openstack-dev] [barbican] Utilizing the KMIP plugin</font><font size="3" face="serif"><br>
</font><hr width="100%" size="2" align="left" noshade><font size="1" color="#0000FF" face="Calibri"><br>
<br>
<br>
<br>
Hello Christopher, <br>
<br>
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 </font><a href="https://github.com/openstack/barbican/blob/master/barbican/plugin/kmip_secret_store.py#L131" target="_blank"><font size="1" color="#1D40FF" face="Arial"><u>https://github.com/openstack/barbican/blob/master/barbican/plugin/kmip_secret_store.py#L131</u></font></a><font size="1" color="#0000FF" face="Calibri">) for example.<br>
<br>
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.<br>
<br>
Sorry for the inconvenience,<br>
John</font><font size="2" color="#0000FF" face="Calibri"><b><br>
<br>
<br>
From: </b></font><font size="2" color="#0000FF" 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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Reply-To: </b></font><font size="2" color="#0000FF" face="Calibri">"OpenStack Development Mailing List (not for usage questions)" <</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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Date: </b></font><font size="2" color="#0000FF" face="Calibri">Wednesday, April 8, 2015 at 11:27 AM</font><font size="2" color="#0000FF" face="Calibri"><b><br>
To: </b></font><font size="2" color="#0000FF" face="Calibri">"OpenStack Development Mailing List (not for usage questions)" <</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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Subject: </b></font><font size="2" color="#0000FF" face="Calibri">Re: [openstack-dev] [barbican] Utilizing the KMIP plugin </font><font size="3" face="serif"> </font>
<p><font size="2" color="#0000FF" face="Arial">Hey John. <br>
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 <br>
reads from. It seems to be reading from the barbican-api.conf file locate in my home directory. <br>
Either way, both have the exact same configurations. <br>
<br>
I also checked the setup.cfg file and it does have the line for kmip_plugin . </font><font size="1" color="#0000FF" face="Arial"><br>
<br>
Regards,</font><font size="3" color="#0000FF" face="Arial"><b><br>
<br>
CHRIS SOLIS</b></font><font size="2" color="#0000FF" face="Calibri"><br>
</font><font size="3" face="serif"><br>
</font><img src="cid:1__=08BBF4A2DFE0CB3D8f9e8a93df938@us.ibm.com" width="16" height="16" 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="Arial">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><font size="1" color="#5F5F5F" face="Arial"><br>
<br>
From: </font><font size="1" color="#0000FF" face="Arial">John Wood <</font><a href="mailto:john.wood@RACKSPACE.COM"><font size="1" color="#0000FF" face="Arial"><u>john.wood@RACKSPACE.COM</u></font></a><font size="1" color="#0000FF" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
To: </font><font size="1" color="#0000FF" face="Arial">"</font><a href="mailto:openstack-dev@lists.openstack.org"><font size="1" color="#0000FF" face="Arial"><u>openstack-dev@lists.openstack.org</u></font></a><font size="1" color="#0000FF" face="Arial">" <</font><a href="mailto:openstack-dev@lists.openstack.org"><font size="1" color="#0000FF" face="Arial"><u>openstack-dev@lists.openstack.org</u></font></a><font size="1" color="#0000FF" face="Arial">></font><font size="1" color="#5F5F5F" face="Arial"><br>
Date: </font><font size="1" color="#0000FF" face="Arial">04/07/2015 10:39 AM</font><font size="1" color="#5F5F5F" face="Arial"><br>
Subject: </font><font size="1" color="#0000FF" face="Arial">Re: [openstack-dev] [barbican] Utilizing the KMIP plugin</font><font size="3" face="serif"><br>
</font><hr width="100%" size="2" align="left" noshade><font size="1" color="#0000FF" face="Calibri"><br>
<br>
<br>
<br>
Hello Christopher,<br>
<br>
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.<br>
<br>
Also, please double check that your local git repository’s setup.cfg has a line like this in there (at/around #35):<br>
<br>
 kmip_plugin = barbican.plugin.kmip_secret_store:KMIPSecretStore<br>
<br>
Thanks,<br>
John<br>
</font><font size="2" color="#0000FF" face="Calibri"><b><br>
<br>
<br>
<br>
From: </b></font><font size="2" color="#0000FF" 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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Reply-To: </b></font><font size="2" color="#0000FF" 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" color="#0000FF" 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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Date: </b></font><font size="2" color="#0000FF" face="Calibri">Monday, April 6, 2015 at 10:25 AM</font><font size="2" color="#0000FF" face="Calibri"><b><br>
To: </b></font><font size="2" color="#0000FF" 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" color="#0000FF" 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" color="#0000FF" face="Calibri">></font><font size="2" color="#0000FF" face="Calibri"><b><br>
Subject: </b></font><font size="2" color="#0000FF" face="Calibri">[openstack-dev] [barbican] Utilizing the KMIP plugin</font><font size="1" color="#0000FF" face="Calibri"> </font><font size="2" color="#0000FF" face="Calibri"> </font><font size="3" face="serif"> </font>
<p><font size="2" color="#0000FF" face="Arial">Hello!<br>
<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. <br>
<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. <br>
<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. <br>
<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>
.......................<br>
<br>
Thank You!!<br>
<br>
Regards, <br>
Christopher Solis</font><font size="2" color="#0000FF" face="Calibri">__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: </font><a href="mailto:OpenStack-dev-request@lists.openstack.org"><font size="2" color="#0000FF" face="Calibri"><u>OpenStack-dev-request@lists.openstack.org</u></font></a><font size="2" color="#0000FF" face="Calibri">?subject:unsubscribe</font><font size="3" color="#0000FF" face="serif"><u><br>
</u></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><font size="2" color="#0000FF" face="Calibri"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a><font size="2" color="#0000FF" face="Calibri">__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: </font><a href="mailto:OpenStack-dev-request@lists.openstack.org"><font size="2" color="#0000FF" face="Calibri"><u>OpenStack-dev-request@lists.openstack.org</u></font></a><font size="2" color="#0000FF" face="Calibri">?subject:unsubscribe</font><font size="3" color="#0000FF" face="serif"><u><br>
</u></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><font size="2" color="#0000FF" face="Calibri"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a><font size="2" color="#0000FF" face="Arial"><br>
<br>
[attachment "graycol.gif" deleted by Christopher N Solis/Austin/IBM] </font><font size="2" color="#0000FF" face="Courier New">__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: </font><a href="mailto:OpenStack-dev-request@lists.openstack.org"><font size="2" color="#0000FF" face="Courier New"><u>OpenStack-dev-request@lists.openstack.org</u></font></a><font size="2" color="#0000FF" face="Courier New">?subject:unsubscribe</font><font size="3" color="#0000FF" face="serif"><u><br>
</u></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><font size="2" color="#0000FF" face="Courier New"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a><font size="2" color="#0000FF" face="Arial"><br>
<br>
[attachment "graycol.gif" deleted by Christopher N Solis/Austin/IBM] </font><tt><font size="2">__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: OpenStack-dev-request@lists.openstack.org?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></body></html>