Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to create security group.

I had checked previously asked questions but couldn't find a solution to my problem. At the dashboard when i try to create security group, , get unable to create security group error. Also retrieving gives error.

# cat /etc/nova/nova.conf | grep firewall_driver
firewall_driver=nova.virt.firewall.NoopFirewallDriver
#firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver

# cat /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini | grep firewall
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
# firewall_driver = neutron.agent.firewall.NoopFirewallDriver
# Example: firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver


# tail -n 100 /var/log/nova/nova-api.log

2014-03-24 14:39:06.486 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 33987)

2014-03-24 14:39:06.488 16362 INFO keystoneclient.middleware.auth_token [-] Auth Token proceeding with requested v2.0 apis
2014-03-24 14:39:07.389 16362 INFO nova.osapi_compute.wsgi.server [req-63777b51-da4b-46b2-af82-767598d673de 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/os-simple-tenant-usage?start=2014-03-24T00:00:00&end=2014-03-24T23:59:59&detailed=1 HTTP/1.1" status: 200 len: 193 time: 0.9020300

2014-03-24 14:39:07.392 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 33992)

2014-03-24 14:39:07.409 16362 INFO nova.osapi_compute.wsgi.server [req-fc015ca6-46d4-45dd-a75f-2ed7f5c946a1 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/limits HTTP/1.1" status: 200 len: 604 time: 0.0164211

2014-03-24 14:39:10.210 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 34004)

2014-03-24 14:39:10.235 16362 INFO nova.osapi_compute.wsgi.server [req-7c874d87-84ae-4b51-82b0-c57fc04f3329 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/os-simple-tenant-usage/67aa91184b2b40299b1f05ec6ceb95c1?start=2014-03-24T00:00:00&end=2014-03-24T23:59:59 HTTP/1.1" status: 200 len: 192 time: 0.0235350

2014-03-24 14:39:10.238 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 34005)

2014-03-24 14:39:10.253 16362 INFO nova.osapi_compute.wsgi.server [req-2a441c10-001b-4675-bde3-e762cd681f89 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/limits HTTP/1.1" status: 200 len: 604 time: 0.0135591

2014-03-24 14:39:14.652 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 34018)

2014-03-24 14:39:14.661 16362 ERROR nova.network.security_group.neutron_driver [req-9f5f40ee-47a9-4204-886e-7355f43aa673 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] Neutron Error getting security groups
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver Traceback (most recent call last):
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/nova/network/security_group/neutron_driver.py", line 158, in list
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     security_groups = neutron.list_security_groups(**search_opts).get(
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     ret = self.function(instance, *args, **kwargs)
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 466, in list_security_groups
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     retrieve_all, **_params)
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1197, in list
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     for r in self._pagination(collection, path, **params):
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1210, in _pagination
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     res = self.get(path, params=params)
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1183, in get
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     headers=headers, params=params)
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1168, in retry_request
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     headers=headers, params=params)
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1111, in do_request
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     self._handle_fault_response(status_code, replybody)
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1081, in _handle_fault_response
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     exception_handler_v20(status_code, des_error_body)
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 88, in exception_handler_v20
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver     message=message)
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver NeutronClientException: 404 Not Found
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver 
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver The resource could not be found.
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver 
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver    
2014-03-24 14:39:14.661 16362 TRACE nova.network.security_group.neutron_driver 
2014-03-24 14:39:14.663 16362 ERROR nova.api.openstack [req-9f5f40ee-47a9-4204-886e-7355f43aa673 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] Caught error: 404 Not Found

The resource could not be found.


2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack Traceback (most recent call last):
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 119, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     return req.get_response(self.application)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     application, catch_exc_info=False)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     return resp(environ, start_response)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 539, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     return self.app(env, start_response)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     return resp(environ, start_response)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     return resp(environ, start_response)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     response = self.app(environ, start_response)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     return resp(environ, start_response)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 938, in __call__
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     content_type, body, accept)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 997, in _process_stack
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1078, in dispatch
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     return method(req=request, **action_args)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/security_groups.py", line 290, in index
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     search_opts=search_opts)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/security_group/neutron_driver.py", line 162, in list
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     LOG.exception(_("Neutron Error getting security groups"))
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/network/security_group/neutron_driver.py", line 158, in list
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     security_groups = neutron.list_security_groups(**search_opts).get(
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     ret = self.function(instance, *args, **kwargs)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 466, in list_security_groups
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     retrieve_all, **_params)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1197, in list
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     for r in self._pagination(collection, path, **params):
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1210, in _pagination
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     res = self.get(path, params=params)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1183, in get
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     headers=headers, params=params)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1168, in retry_request
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     headers=headers, params=params)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1111, in do_request
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     self._handle_fault_response(status_code, replybody)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1081, in _handle_fault_response
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     exception_handler_v20(status_code, des_error_body)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 88, in exception_handler_v20
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack     message=message)
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack NeutronClientException: 404 Not Found
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack 
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack The resource could not be found.
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack 
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack    
2014-03-24 14:39:14.663 16362 TRACE nova.api.openstack 
2014-03-24 14:39:14.668 16362 INFO nova.api.openstack [req-9f5f40ee-47a9-4204-886e-7355f43aa673 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] http://d00-1e-4f-3d-2a-e6.foo.net.tr:8774/v2/67aa91184b2b40299b1f05ec6ceb95c1/os-security-groups returned with HTTP 500
2014-03-24 14:39:14.669 16362 INFO nova.osapi_compute.wsgi.server [req-9f5f40ee-47a9-4204-886e-7355f43aa673 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/os-security-groups HTTP/1.1" status: 500 len: 335 time: 0.0164011

2014-03-24 14:39:14.672 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 34020)

2014-03-24 14:39:14.682 16362 INFO nova.osapi_compute.wsgi.server [req-5adea23c-ec14-4e11-951b-3230c448a6a2 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/os-keypairs HTTP/1.1" status: 200 len: 188 time: 0.0090592

2014-03-24 14:39:14.723 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 34024)

2014-03-24 14:39:14.840 16362 INFO nova.osapi_compute.wsgi.server [req-0f6de132-d388-43c3-9833-5c2c0c8c1184 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/servers/detail?project_id=67aa91184b2b40299b1f05ec6ceb95c1 HTTP/1.1" status: 200 len: 187 time: 0.1164501

2014-03-24 14:39:14.976 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 34028)

2014-03-24 14:39:14.986 16362 INFO nova.osapi_compute.wsgi.server [req-7f3a628e-8678-4637-b623-2f2b825adcc4 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/os-quota-sets/67aa91184b2b40299b1f05ec6ceb95c1 HTTP/1.1" status: 200 len: 495 time: 0.0095732

2014-03-24 14:39:15.047 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 34034)

2014-03-24 14:39:15.065 16362 INFO nova.osapi_compute.wsgi.server [req-3edf3d91-8c4f-42f5-85b9-a6608ba4ec98 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/flavors/detail HTTP/1.1" status: 200 len: 2473 time: 0.0173268

2014-03-24 14:39:15.069 16362 INFO nova.osapi_compute.wsgi.server [-] (16362) accepted ('127.0.0.1', 34035)

2014-03-24 14:39:15.097 16362 INFO nova.osapi_compute.wsgi.server [req-eca07bf0-4aaf-49b4-9def-3f9126330e0f 9350b3bef19a4a0f9c41beea4a598dd0 67aa91184b2b40299b1f05ec6ceb95c1] 127.0.0.1 "GET /v2/67aa91184b2b40299b1f05ec6ceb95c1/servers/detail?project_id=67aa91184b2b40299b1f05ec6ceb95c1 HTTP/1.1" status: 200 len: 187 time: 0.0275030

# dpkg -s python-neutronclient
Package: python-neutronclient
Status: install ok installed
Priority: extra
Section: python
Installed-Size: 787
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Version: 1:2.3.0-0ubuntu1.1~cloud0

Couldn't figured it out what the problem is.