This is a reasonable addition to me to quickly clean things up when I know what I'm doing, but I'm hitting an authorization issue:
Traceback (most recent call last):
File "./leon.py", line 92, in <module>
leon.clean_spurious_security_groups()
File "./leon.py", line 73, in clean_spurious_security_groups
groups = self.nova.security_groups.list()
File "/tmp/venv/local/lib/python2.7/site-packages/python_novaclient-2.15.0-py2.7.egg/novaclient/v1_1/security_groups.py", line 96, in list
'security_groups')
--snip a bunch of novaclient code--
File "/tmp/venv/local/lib/python2.7/site-packages/python_novaclient-2.15.0-py2.7.egg/novaclient/client.py", line 189, in request
raise exceptions.from_response(resp, body, url, method)
novaclient.exceptions.Unauthorized: The request you have made requires authentication. (HTTP 401)
I have a unit_config file with the auth* and juju_env parameters defined. I can also manually run "nova secgroup-list" and view my security groups. Do I need to have some authorization enabled on my account?
This is a reasonable addition to me to quickly clean things up when I know what I'm doing, but I'm hitting an authorization issue:
Traceback (most recent call last): clean_spurious_ security_ groups( ) security_ groups security_ groups. list() local/lib/ python2. 7/site- packages/ python_ novaclient- 2.15.0- py2.7.egg/ novaclient/ v1_1/security_ groups. py", line 96, in list groups' ) local/lib/ python2. 7/site- packages/ python_ novaclient- 2.15.0- py2.7.egg/ novaclient/ client. py", line 189, in request from_response( resp, body, url, method) exceptions. Unauthorized: The request you have made requires authentication. (HTTP 401)
File "./leon.py", line 92, in <module>
leon.
File "./leon.py", line 73, in clean_spurious_
groups = self.nova.
File "/tmp/venv/
'security_
--snip a bunch of novaclient code--
File "/tmp/venv/
raise exceptions.
novaclient.
I have a unit_config file with the auth* and juju_env parameters defined. I can also manually run "nova secgroup-list" and view my security groups. Do I need to have some authorization enabled on my account?