Ask Your Question
1

Problem during create instance with JCloud: No enum constant org.jclouds.openstack.neutron.v2_0.domain.NetworkType.VXLAN

asked 2014-08-10 11:13:46 -0500

anhdenday gravatar image

updated 2015-08-03 18:20:16 -0500

smaffulli gravatar image

I've installed openstack in my server, after that I used JCloud (cloudwatt) from my computer (client) to connect to my OpenStack via API to create an instance....etc. I have been following cloudwatt site sample.

Everything seem ok until I try creating network, because I've checked in my openstack dashboard and see that it's already created keypair, security group, and network name but without Subnets. I get the error below and of course the instance cannot be created.

22:57:34.808 [main] DEBUG jclouds.wire - << "{"network": {"status": "ACTIVE", "subnets": [], "name": "jcnetwork", "provider:physical_network": null, "admin_state_up": true, "tenant_id": "88aa7a7d4f8c4c3c8df8a985da345858", "provider:network_type": "vxlan", "shared": false, "id": "50d8aad3-11cd-48fb-8a45-af7da3d7f1d4", "provider:segmentation_id": 1003}}"
Exception in thread "main" java.lang.IllegalArgumentException: No enum constant org.jclouds.openstack.neutron.v2_0.domain.NetworkType.VXLAN
    at java.lang.Enum.valueOf(Enum.java:236)
    at org.jclouds.openstack.neutron.v2_0.domain.NetworkType.valueOf(NetworkType.java:26)
    at org.jclouds.openstack.neutron.v2_0.domain.NetworkType.fromValue(NetworkType.java:40)
    at org.jclouds.openstack.neutron.v2_0.domain.Network.<init>(Network.java:57)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at com.google.common.reflect.Invokable$ConstructorInvokable.invokeInternal(Invokable.java:242)
    at com.google.common.reflect.Invokable.invoke(Invokable.java:102)
    at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.newInstance(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:215)
    at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:195)
    at com.google.gson.Gson.fromJson(Gson.java:803)
    at org.jclouds.http.functions.ParseFirstJsonValueNamed.apply(ParseFirstJsonValueNamed.java:83)
    at org.jclouds.http.functions.ParseFirstJsonValueNamed.apply(ParseFirstJsonValueNamed.java:47)
    at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
    at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
    at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
    at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
    at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
    at $Proxy78.create(Unknown Source)
    at vn.openstack.cloud.OpenstackClient.createNetwork(OpenstackClient.java:126)
    at vn.openstack.cloud.Cloudwatt.main(Cloudwatt.java:37)

Please help me, thanks you so much

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-11 11:01:31 -0500

Fdot gravatar image

Hello,

Just send you an answer on the Cloudwatt dev website. But let's continue here ;)

Are you testing on the Cloudwatt service or on your own OpenStack installation ?

Best,

F.

edit flag offensive delete link more

Comments

What do you mean about Cloudwatt service? The information below is what do you want to say?

  /*
    * String user = "masco.kaliyamoorthy@enovance.com"; String password =
     * "Masvandayar@003"; String tenant =
     * "e2614ec6-8a63-11e3-b8f7-525400872571"; String url =
     * "https://identity.fr1.cloudwatt.com/v2.0/";
     */

No As i already said before, I install my own OpenStack and I've changed user, passward and authUrl keystone :)

Thanks you so much

anhdenday gravatar imageanhdenday ( 2014-08-11 11:29:42 -0500 )edit

Thanks you for reply on cloudwatt

Maybe your OpenStack environment is different than mine. I have to discovery more and change the code for adapt my environment :(

anhdenday gravatar imageanhdenday ( 2014-08-11 11:52:54 -0500 )edit

Instead of conversating using comments, which are hard to read, try to edit the question and the answer as you go so that this Question becomes more useful for future readers. https://ask.openstack.org/faq

smaffulli gravatar imagesmaffulli ( 2014-08-11 15:00:17 -0500 )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

2 followers

Stats

Asked: 2014-08-10 11:13:46 -0500

Seen: 331 times

Last updated: Aug 11 '14