Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

NovaAPI can work for Neutron?

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 (jcloud1.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.

click to hide/show revision 2
No.2 Revision

NovaAPI can work for Neutron?

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 (jcloud1.8) (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.