Ask Your Question
0

Savanna with Quantum Network

asked 2013-07-21 07:34:11 -0500

Hi,

I installed Savanna including the dashboard. I am able to create everything, like node group templates, cluster templates etc. But when i try to launch the cluster, i get an error. Later from few searches i found that Savanna is not ready to fully support Neutron/Quantum and only support Nova-Network [Pls correct me if i am wrong].

Is there any workaround, that can make Savanna work on a Quantum Network. I am getting the following error in the savanna API Log.

2013-07-20 19:53:26.218 18342 WARNING savanna.service.instances [-] Can't start cluster 'test' (reason: unexpected type <type 'nonetype'=""> for addr arg) Traceback (most recent call last): File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 346, in fire_timers timer() File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/eventlet/hubs/timer.py", line 56, in __call__ cb(args, *kw) File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/eventlet/greenthread.py", line 194, in main result = function(args, *kwargs) File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/savanna/context.py", line 127, in wrapper func(args, *kwargs) File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/savanna/service/api.py", line 110, in _provision_cluster i.create_cluster(cluster) File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/savanna/service/instances.py", line 48, in create_cluster _rollback_cluster_creation(cluster, ex) File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ self.gen.next() File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/savanna/service/instances.py", line 36, in create_cluster _await_instances(cluster) File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/savanna/service/instances.py", line 183, in _await_instances if not _check_if_up(instance): File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/savanna/service/instances.py", line 203, in _check_if_up if not networks.init_instances_ips(instance, server): File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/savanna/service/networks.py", line 55, in init_instances_ips network = netaddr.IPNetwork(nova_network.cidr) File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 907, in __init__ implicit_prefix, flags) File "/usr/local/savanna/savanna-venv/local/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 802, in parse_ip_network raise TypeError('unexpected type %s for addr arg' % type(addr)) TypeError: unexpected type <type 'nonetype'=""> for addr arg (18342) accepted ('127.0.0.1', 42740)

Thanks in advance.

edit retag flag offensive close merge delete

16 answers

Sort by ยป oldest newest most voted
0

answered 2013-08-29 22:29:52 -0500

Thx Thej, our current infrastructure won't allow for floating IPs. The change above will get us working until the Neutron bp is completed.

edit flag offensive delete link more
0

answered 2013-07-30 06:43:23 -0500

when I am launching cluster after some floating ip available, I can see the instace, but when the launching finished and the cluster turned error ,the instaces were deleted. Does that mean, if I use quantum, I can not run savanna? What can I do if I want to run savanna? Thanks.

edit flag offensive delete link more
0

answered 2013-07-21 10:13:31 -0500

SergeyLukjanov gravatar image

Unfortunately we are not test Savanna with Neutron now. Here is a bp for integration with Neutron - https://blueprints.launchpad.net/savanna/+spec/add-neutron-support (https://blueprints.launchpad.net/sava...)

BTW you can try to use flag use-floating-ips to make savanna use only internal ips, theoretically if savanna will able to access instances using internal network than cluster should be created ok.

edit flag offensive delete link more
0

answered 2013-07-21 14:49:26 -0500

Dear Sergey,

Thanks for you reply. But in my case I have set "use_floating_ips=False" in my config file. And the interesting part is even when use_floating_ips is set to true i am getting the same error.

Any help please.

Thanks.

edit flag offensive delete link more
0

answered 2013-07-21 15:20:07 -0500

arindam-live gravatar image

quantum does not support auto assignment of floating ip. link: https://blueprints.launchpad.net/neutron/+spec/auto-associate-floating-ip (https://blueprints.launchpad.net/neut...)

edit flag offensive delete link more
0

answered 2013-07-21 16:00:17 -0500

SergeyLukjanov gravatar image

Savanna could work w/o floating ip if internal network is accessible from host where savanna installed.

edit flag offensive delete link more
0

answered 2013-07-21 16:33:00 -0500

SergeyLukjanov gravatar image

I read code one more time and I think savanna will not work with neutron at all before this bp will be implemented.

edit flag offensive delete link more
0

answered 2013-07-22 05:52:13 -0500

Okie, but I dont want it to have floating IP, is it possible to patch the code, to work without neutron and to work only with internal IP's so that we need not wait till the bp to be implemented for people who want to try out savanna.

also use_floating_ips doesn't seem to have any effect i believe. So cant it be considered as a bug.

Thanks & Regards.

edit flag offensive delete link more
0

answered 2013-07-30 09:34:45 -0500

WangDong, in order to use Savanna you can change Quantum to Nova-network in your OpenStack environment. Quantum (Neutron) support targeted for Savanna 0.3 which is tentatively expected to release in mid-October: https://wiki.openstack.org/wiki/Savanna/Roadmap (https://wiki.openstack.org/wiki/Savan...)

edit flag offensive delete link more
0

answered 2013-07-31 12:12:14 -0500

Dear DongWang,

Kindly replace your network.py with the modifications i made after that restart the savanna-api.

The network.py will be at <savanna install="" dir="">/lib/python2.7/site-packages/savanna/service/network.py

After replacing the file and restarting savanna api, launch cluster, all the vm's in your cluster will come up, and you can verify this from the instances page.

Once you find the instances are up, assign floating ip for all nodes.

If you are running savanna api with --debug flag, you will see some informative logs.

I have added some logs, for my understanding, and the code is not neat and clean. (i am not a programmer basically) :)

Kindly let me know if this works or not.

Thanks

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-21 07:34:11 -0500

Seen: 46 times

Last updated: Aug 29 '13