quantum plugin floating_ip api error
I am using devstack single node installation with quantum enabled for my openstack learning and quantum plugin development.
For the start, I am just trying to create a plugin that calls back openvswitch plugin.
Created new plugin folder under stack/quantum/
Created new plugin folder under stack/quantum/
Created new file under devstack/
Changed localtrc to use my plugin.
UnStacked and restacked. But when I try to login it is failing in floating_ips rest call! If I just commentout my plugin in localrc(switching to ovs) then everything works fine.
Pasted my plugin and locarc contents at the bottom.
Here is the error:
Environment:
Request Method: GET
Request URL: http://
Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
['openstack_
'django.
'django.
'django.
'django.
'django.
'django.
'compressor',
'horizon',
'openstack_
'openstack_
'openstack_
'openstack_auth']
Installed Middleware:
('django.
'django.
'django.
'django.
'django.
'horizon.
'django.
'django.
'django.
Traceback:
File "/usr/local/
111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/
38. return view_func(request, *args, **kwargs)
File "/opt/stack/
54. return view_func(request, *args, **kwargs)
File "/opt/stack/
38. return view_func(request, *args, **kwargs)
File "/usr/local/
48. return self.dispatch(
File "/usr/local/
69. return handler(request, *args, **kwargs)
File "/opt/stack/
155. handled = self.construct_
File "/opt/stack/
146. handled = self.handle_
File "/opt/stack/
118. data = self._get_
File "/opt/stack/
182. self._data = {self.table_
File "/opt/stack/
32. super(ProjectOv
File "/opt/stack/
34. self.usage.
File "/opt/stack/
115. _("Unable to retrieve quota information."))
File "/opt/stack/
112. self.quotas = quotas.
File "/opt/stack/
33. value = self.func(*args)
File "/opt/stack/
88. floating_ips = network.
File "/opt/stack/
141. return NetworkClient(
File "/opt/stack/
125. fips = self.client.
File "/opt/stack/
107. ret = self.function(
File "/opt/stack/
434. **_params)
File "/opt/stack/
996. for r in self._paginatio
File "/opt/stack/
1009. res = self.get(path, params=params)
File "/opt/stack/
982. headers=headers, params=params)
File "/opt/stack/
967. headers=headers, params=params)
File "/opt/stack/
912. self._handle_
File "/opt/stack/
893. exception_
File "/opt/stack/
87. message=message)
Exception Type: QuantumClientEx
Exception Value: 404 Not Found
The resource could not be found.
......
My plugin:
import logging
#import ConfigParser
from quantum.db import db_base_plugin_v2
from quantum.db import l3_db
from quantum.db import api as db
from quantum.db import models_v2
from quantum.api.v2 import attributes
from quantum.
from quantum.common import exceptions as q_exc
from quantum.
from quantum.
LOG = logging.
class TestPlugin(
def __init__(self):
self.ovsint = OVS_plugin()
def create_
return self.ovsint.
def update_
return self.ovsint.
def get_network(self, context, id, fields=None):
return self.ovsint.
def get_networks(self, context, filters=None, fields=None):
return self.ovsint.
def delete_
def create_port(self, context, port):
return self.ovsint.
def update_port(self, context, id, port):
return self.ovsint.
def get_port(self, context, id, fields=None):
return self.ovsint.
def get_ports(self, context, filters=None, fields=None):
return self.ovsint.
def delete_port(self, context, id, l3_port_
return self.ovsint.
.......
My localrc:
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service quantum
Q_PLUGIN=TestPlugin
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- neutron Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask sudhakar for more information if necessary.