Ask Your Question
0

NovaAPI can work for Neutron?

asked 2014-09-03 19:05:16 -0600

chwang718 gravatar image

updated 2014-09-08 10:45:04 -0600

Everett Toews gravatar image

Hi Folks,

I was told openstack moved Nova to Neutron.

Currently we have cloud system is using Neutorn. We can use org.jclouds.openstack.nova.v2_0.NovaApi (jclouds 1.8) to create a cloud instance. But we cannot create floating IP by using org.jclouds.openstack.nova.v2_0.extensions.FloatingIPApi.

floatingIPApi.create()

the log:

2014-09-02 18:20:30,757 [cs8nice01 : CreateCloudVmTask-69 -] TRACE org.jclouds.logging.log4j.Log4JLogger.logTrace - using endpoint Optional.of(https://10.2.131.67/rest/compute/v1.1/62804d169e49429db5972a5da02384f2) from caller public abstract org.jclouds.openstack.nova.v2_0.features.ServerApi org.jclouds.openstack.nova.v2_0.NovaApi.getServerApiForZone(java.lang.String)[public] for public abstract com.google.common.util.concurrent.ListenableFuture org.jclouds.openstack.nova.v2_0.features.ServerAsyncApi.create(java.lang.String,java.lang.String,java.lang.String,org.jclouds.openstack.nova.v2_0.options.CreateServerOptions[])[cs8nice01, 37f0ba16-c491-43df-ab0e-1aad2f45f68b, 2, [Lorg.jclouds.openstack.nova.v2_0.options.CreateServerOptions;@11af7bad]
2014-09-02 18:20:30,758 [cs8nice01 : CreateCloudVmTask-69 -] TRACE org.jclouds.logging.log4j.Log4JLogger.logTrace - adding filter org.jclouds.openstack.keystone.v2_0.filters.AuthenticateRequest@634b5ebe from annotation on org.jclouds.openstack.nova.v2_0.features.ServerAsyncApi
2014-09-02 18:20:30,768 [cs8nice01 : CreateCloudVmTask-69 -] TRACE org.jclouds.logging.log4j.Log4JLogger.logTrace - << converted server:create to POST https://10.2.131.67/rest/compute/v1.1/62804d169e49429db5972a5da02384f2/servers HTTP/1.1
2014-09-02 18:20:30,774 [cs8nice01 : CreateCloudVmTask-69 -] TRACE org.jclouds.logging.log4j.Log4JLogger.logTrace - << response from server:create is parsed by UnwrapOnlyJsonValue
2014-09-02 18:20:30,775 [cs8nice01 : CreateCloudVmTask-69 -] TRACE org.jclouds.logging.log4j.Log4JLogger.logTrace - << exceptions from server:create are parsed by MapHttp4xxCodesToExceptions
2014-09-02 18:20:30,775 [cs8nice01 : CreateCloudVmTask-69 -] DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - >> invoking server:create
2014-09-02 18:20:30,776 [cs8nice01 : CreateCloudVmTask-69 -] DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - Sending request 1129184776: POST https://10.2.131.67/rest/compute/v1.1/62804d169e49429db5972a5da02384f2/servers HTTP/1.1
2014-09-02 18:20:31,766 [cs8nice01 : CreateCloudVmTask-69 -] DEBUG org.jclouds.logging.log4j.Log4JLogger.logDebug - Receiving response 1129184776: HTTP/1.1 404 Not Found
2014-09-02 18:20:31,767 [cs8nice01 : CreateCloudVmTask-69 -] ERROR com.hp.hpio.cloud.nova.NovaOperationHandler.createServer - Failed to create Nova instance
org.jclouds.rest.ResourceNotFoundException: {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

Do we need to use Neutorn extensions API to create floating IP or a cloud instance?

org.jclouds.openstack.neutron.v2.NeutronApi

Thanks

Edward.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-09-08 16:55:07 -0600

Everett Toews gravatar image

Working with Floating IPs in Neutron with jclouds is complete but it hasn't been released yet. It should be available in our 1.8.1 release in mid-Sept.

You can see the source code here FloatingIPApi and the Javadoc at FloatingIPApi.

Note that the full class name is:

org.jclouds.openstack.neutron.v2.extensions.FloatingIPApi

You could attempt to try this early by using our snapshot builds. See the Using the daily builds section of the jclouds Install Guide.

edit flag offensive delete link more
0

answered 2014-09-04 08:17:49 -0600

larsks gravatar image

updated 2014-09-04 08:18:12 -0600

OpenStack has not "moved Nova to Neutron". In the current release, you can choose to use either Nova or Neutron for networking. The choice you make will determine which API you use.

If you are using Neutron, you will need to use the Networking API, as documented here. If you are using Nova, you will need to use the os-networks extension to the Compute API, as documented here.

It sounds like you are using Neutron, so you need to use the networking API.

edit flag offensive delete link more

Comments

Thanks, currently our cloud service is Neutron. But the client is using NovaAPI communicate with Neutron. the client can create a cloud instance, and can't create a floating IP using Nova org.jclouds.openstack.nova.v2_0.extensions.FloatingIPApi.

Do you think we need to use Neutron FloatingIPApi?

chwang718 gravatar imagechwang718 ( 2014-09-04 13:29:45 -0600 )edit

That is...almost exactly the question I just answered. "It sounds like you are using Neutron, so you need to use the networking API."

larsks gravatar imagelarsks ( 2014-09-05 10:07:43 -0600 )edit

thank you again, sorry i missed your answers.

chwang718 gravatar imagechwang718 ( 2014-09-08 12:55:01 -0600 )edit

@larsks You're absolutely right about the Nova vs Neutron bit. And note that this developer is using the jclouds Java SDK for OpenStack. Pointing them to jclouds resources will be more helpful to them than pointing them at the raw API doc. Thanks.

Everett Toews gravatar imageEverett Toews ( 2014-09-08 16:58:29 -0600 )edit
0

answered 2014-09-04 13:30:51 -0600

chwang718 gravatar image

Thanks, currently our cloud service is Neutron. But the client is using NovaAPI communicate with Neutron. the client can create a cloud instance, and can't create a floating IP using Nova org.jclouds.openstack.nova.v2_0.extensions.FloatingIPApi.

Do you think we need to use Neutron FloatingIPApi? or Why we can use Nova API to create an instance in Neutron system?

Thank you

Edward

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

Stats

Asked: 2014-09-03 19:05:16 -0600

Seen: 398 times

Last updated: Sep 08 '14