Ok, I fixed it (using the full class name helps) but now jcloud is complaining
of a missing id, any idea which property or field is missing or incorrect (and
what might be the corresponding property in openstack, is it "Identity: null"
?) ?
Any json example for 4.1 (or 4.0.0-grouping) openstack cartridge definitions ?
Thanks
Martin
IaaS: [ Type: openstack-Core, Name: null, Class Name:
org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas, Image Id:
RegionOne/17e9f85b-a849-4c56-9756-6d0f8010e97a, Max Instance Limit: 4,
Provider: null, Identity: null, Credentials: null, Properties: Property
[name=instanceType, value=RegionOne/81a58aa9-af04-488f-81d1-e529cdc14235] |
Property [name=keyPair, value=phoenix] | Property [name=autoAssignIp,
value=false] | Property [name=securityGroups, value=default] | ] |
Properties: Property [name=payload_parameter.MB_IP, value=octl.qmog.cisco.com]
| Property [name=payload_parameter.MB_PORT, value=61616] | Property
[name=payload_parameter.CEP_IP, value=octl.qmog.cisco.com] | Property
[name=payload_parameter.CEP_PORT, value=7611] | Property
[name=payload_parameter.CERT_TRUSTSTORE,
value=/opt/apache-stratos-cartridge-agent/security/client-truststore.jks] |
Property [name=payload_parameter.TRUSTSTORE_PASSWORD, value=wso2carbon] |
Property [name=payload_parameter.ENABLE_DATA_PUBLISHER, value=false] | Property
[name=payload_parameter.MONITORING_SERVER_IP, value=octl.qmog.cisco.com] |
Property [name=payload_parameter.MONITORING_SERVER_PORT, value=0] | Property
[name=payload_parameter.MONITORING_SERVER_SECURE_PORT, value=0] | Property
[name=payload_parameter.MONITORING_SERVER_ADMIN_USERNAME, value=xxxx] |
Property [name=payload_parameter.MONITORING_SERVER_ADMIN_PASSWORD, value=xxxx]
| Property [name=payload_parameter.SIMPLE_PROPERTY, value=value] |
{org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
TID: [0] [STRATOS] [2014-10-03 23:55:10,731] ERROR
{org.apache.stratos.cloud.controller.util.CloudControllerUtil} - Unable to
build the jclouds object for iaas of type: openstack-Core
{org.apache.stratos.cloud.controller.util.CloudControllerUtil}
java.lang.NullPointerException: id must be defined
at
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:229)
at
org.jclouds.providers.ProviderPredicates.id(ProviderPredicates.java:105)
at org.jclouds.providers.Providers.withId(Providers.java:99)
at org.jclouds.ContextBuilder.newBuilder(ContextBuilder.java:167)
at
org.apache.stratos.cloud.controller.jcloud.ComputeServiceBuilderUtil.buildDefaultComputeService(ComputeServiceBuilderUtil.java:84)
at
org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas.buildComputeServiceAndTemplate(OpenstackNovaIaas.java:90)
at
org.apache.stratos.cloud.controller.util.CloudControllerUtil.setIaas(CloudControllerUtil.java:211)
at
org.apache.stratos.cloud.controller.util.CloudControllerUtil.getIaas(CloudControllerUtil.java:224)
at
org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl.deployCartridgeDefinition(CloudControllerServiceImpl.java:206)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
From: Martin Eppel (meppel)
Sent: Friday, October 03, 2014 4:08 PM
To: [email protected]
Cc: Isuru Haththotuwa ([email protected]); Reka Thirunavukkarasu ([email protected])
Subject: className in cartridge definition (branch 4.0.0-grouping)
Hi,
I just noticed that in the 4.0.0-grouping branch (after updating the branch
today morning ) we added a check for the className in the cartridge definition.
If it's not defined an exception is being thrown. In 4.0.0 branch we just
checked if it != null and set the Class but did not thorw an excecption. My
question is what needs to be set for the className property ?
I tried to set "className" : "OpenstackNovaIaas", but it failed with an
exception, I posted the IaaSProvider json below,
Any clues what needs to be done ?
Thanks
Martin
"iaasProvider": [
{
"type": "openstack-Core",
"imageId": "RegionOne/17e9f85b-a849-4c56-9756-6d0f8010e97a",
"maxInstanceLimit": "4",
"className" : "OpenstackNovaIaas",
"property": [
{
"name": "instanceType",
"value": "RegionOne/m1.medium"
},
{
"name": "keyPair",
"value": "phoenix"
},
{
"name": "autoAssignIp",
"value": "false"
},
{
"name": "securityGroups",
"value": "default"
}
],
"networkInterfaces": [
{
"networkUuid": "83a1711a-d99d-4a13-bebc-a7dad39c11a4"
}
]
}
],