Ask Your Question
1

Sahara floating ip issue (floating ip not found)

asked 2014-09-15 12:02:58 -0600

belle gravatar image

updated 2014-09-15 16:01:25 -0600

I have the latest Sahara version (sahara-2014.2.b3) installed with the following configuration:

**sahara.conf**:

use_floating_ips=True
use_neutron=True
use_namespaces=False``

**settings.py:**

HORIZON_CONFIG = {
    'dashboards': ('project', 'admin', 'settings', 'router', 'sahara',),

INSTALLED_APPS = [
   .......
    'saharadashboard',
]

**local_settings.py:**

SAHARA_URL = 'http://192.168.10.11:8386/v1.1'
SAHARA_USE_NEUTRON = True
AUTO_ASSIGNMENT_ENABLED = False

when I create a "Node Group template" I can see the "Floating IP Pool" and I can see these 2 options:

Do not assign floating IPs 
ext-net

If I select ext-net, I get this error message:

Error: Floating IP pool 9de9b761-621d-454f-83d9-5f63aa71ca0d for node group 'master' not found

If I select " Do not assign floating IPs"

Then I can create the "Node Group template" and the Cluster template successfully. But when I start the cluster, i get the same error related to the floating ip:

Error: Node Group master is missing 'floating_ip_pool' field

Is there anything wrong with the config? Any help would be greatly appreciated.

Here's the error from sahara.log:

 DEBUG sahara.utils.api [-] Validation Error occurred: error_code=400, error_message=Node Group master is missing 'floating_ip_pool' field, error_name=MISSING_FLOATING_NETWORK bad_request /opt/sahara/local/lib/python2.7/site-packages/sahara/utils/api.py:245
DEBUG sahara.utils.api [-] Validation Error occurred: error_code=400, error_message=Floating IP pool 9de9b761-621d-454f-83d9-5f63aa71ca0d for node group 'master' not found, error_name=INVALID_REFERENCE bad_request /opt/sahara/local/lib/python2.7/site-packages/sahara/utils/api.py:245
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-09-15 16:41:02 -0600

alazarev gravatar image

updated 2014-09-16 12:39:16 -0600

mpetason gravatar image

floating_ip_pool field is required when use_floating_ips=true. That's why you are getting error in case of "Do not assign floating IPs" selection.

The first error message is more tricky. Horizon uses neutron.Client().list_networks({'router:external': True}) to get list of available pools. Sahara uses nova.Client().networks.find(id=pool_id) that passthrough request to neutron. So, results must be pretty the same. Could you please check if you really have Floating IP pool with ID 9de9b761-621d-454f-83d9-5f63aa71ca0d. Is it accessible from the current tenant?

edit flag offensive delete link more

Comments

Yes I do have a floating ip pool with ID 9de9b761-621d-454f-83d9-5f63aa71ca0d which is pointing to th ext-net. I can start an instance and associate a floating ip using that pool on the current tenant.

belle gravatar imagebelle ( 2014-09-15 16:58:43 -0600 )edit

Hi Alazarev, I found an issue that might be related to the problem I am seeing. You mentioned that " Sahara uses "nova.Client().networks.find(id=pool_id)" ....". When I run "nova network-list", i got an error message: ERROR (NotFound): Not Found (HTTP 404), do you think this is the reason why?

belle gravatar imagebelle ( 2014-09-15 19:56:06 -0600 )edit

Problem solved.. Found out that the network extension on nova was not enabled. After enabling it by adding the os_networks on the osapi_compute_ext_list in nova.conf & restarting the nova-api, it worked. Thanks for the info that sahara uses novaclient, that gave me a idea on how to solve the issue.

belle gravatar imagebelle ( 2014-09-19 12:35:43 -0600 )edit

I've filed https://bugs.launchpad.net/sahara/+bu... to address that.

alazarev gravatar imagealazarev ( 2014-09-22 11:47:27 -0600 )edit

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: 2014-09-15 12:02:58 -0600

Seen: 1,506 times

Last updated: Sep 16 '14