Hi David, I think InstanceType/hardwareId should be specified as "<Region>/<HardwareId>", as an example "RegionOne/1".
You could go to OpenStack dashboard or use nova client to list them: http://docs.openstack.org/openstack-ops/content/flavors.html Thanks On Mon, Jan 26, 2015 at 8:55 AM, david hbase <davidhb...@gmail.com> wrote: > Got the error with hardwareId, Do you know what's the hardwareId standard > format? I have tried several combinations but still not work ( with > openstack single-cartridge sample ). > > [2015-01-26 00:59:18,450] ERROR > {org.apache.stratos.cloud.controller.iaases.JcloudsIaasUtil} - Could not > build iaas of type: openstack > java.util.NoSuchElementException: > hardwareId(my-Openstack-Region1/Micro-Small) not found > > > Thanks > -D > > On Sat, Jan 24, 2015 at 9:10 PM, Dakshika Jayathilaka <daksh...@wso2.com> > wrote: > >> Great.. Keep update devs.. >> >> Thanks >> >> *Dakshika Jayathilaka* >> Software Engineer >> WSO2, Inc. >> lean.enterprise.middleware >> 0771100911 >> >> On Sun, Jan 25, 2015 at 10:38 AM, david hbase <davidhb...@gmail.com> >> wrote: >> >>> Working now!!! >>> >>> I am working with Kubernetes integration now. >>> >>> Thanks Again! >>> -D >>> >>> >>> On Sat, Jan 24, 2015 at 7:42 PM, Dakshika Jayathilaka <daksh...@wso2.com >>> > wrote: >>> >>>> Hi, >>>> >>>> You need to have client-truststore.jks. so place it on right place and >>>> try with below default >>>> credentials. >>>> >>>> Try with "*wso2carbon*" >>>> >>>> Regards, >>>> Dakshika >>>> >>>> *Dakshika Jayathilaka* >>>> Software Engineer >>>> WSO2, Inc. >>>> lean.enterprise.middleware >>>> 0771100911 >>>> >>>> On Sun, Jan 25, 2015 at 8:02 AM, david hbase <davidhb...@gmail.com> >>>> wrote: >>>> >>>>> Thanks for your quick response, >>>>> >>>>> Could you let me know the password for the $STRTOS_HOME/repository/ >>>>> resources/security/client-truststore.jks? >>>>> >>>>> When I import the cert, keytool ask me the passwords, if I delete file >>>>> (client- >>>>> truststore.jks) and create a new one, then got further error, as >>>>> ERROR {org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject} - >>>>> java.security.NoSuchAlgorithmException: Error constructing implementation >>>>> >>>>> So I think have to get the password for the client- >>>>> truststore.jks and add my server cert. >>>>> >>>>> I stuck here, could you help me? >>>>> >>>>> Thanks >>>>> -D >>>>> >>>>> On Sat, Jan 24, 2015 at 5:25 PM, Dakshika Jayathilaka < >>>>> daksh...@wso2.com> wrote: >>>>> >>>>>> Hi David, >>>>>> >>>>>> Seems issue arise due to the certificate of the backend that you is >>>>>> not trusted and the certificate of that backend server should be added to >>>>>> the Stratos product servers client-truststore.jks >>>>>> >>>>>> Steps: >>>>>> >>>>>> 1. Go to your server ( https://myserver.com >>>>>> <https://myserver.com:5000/v2.0/tokens>) and click on the lock icon >>>>>> at the address bar, click on the 'Connection' tab, then click on the link >>>>>> 'Certificate Information'. From the 'Certificate Viewer', select the tab >>>>>> 'Details' and click on the 'Export' button and download the certificate ( >>>>>> myserver.com) to a preferred location. >>>>>> >>>>>> 2. Use keytool and run below command >>>>>> >>>>>> $ keytool -importcert -file $somepath/myserver.com -keystore >>>>>> $STRTOS_HOME/repository/resources/security/client-truststore.jks -alias >>>>>> "myserver" >>>>>> >>>>>> 3. Restart the Stratos server and invoke the API again. >>>>>> >>>>>> Thank you, >>>>>> >>>>>> Bst Regards, >>>>>> >>>>>> *Dakshika Jayathilaka* >>>>>> Software Engineer >>>>>> WSO2, Inc. >>>>>> lean.enterprise.middleware >>>>>> 0771100911 >>>>>> >>>>>> On Sun, Jan 25, 2015 at 6:43 AM, david hbase <davidhb...@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Got the following error: >>>>>>> >>>>>>> [2015-01-25 01:08:18,032] ERROR >>>>>>> {org.apache.stratos.cloud.controller.iaases.JcloudsIaasUtil} - Could >>>>>>> not >>>>>>> build iaas of type: openstack >>>>>>> com.google.common.util.concurrent.UncheckedExecutionException: >>>>>>> org.jclouds.http.HttpResponseException: >>>>>>> sun.security.validator.ValidatorException: PKIX path building failed: >>>>>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to >>>>>>> find >>>>>>> valid certification path to requested target connecting to POST >>>>>>> https://myserver.com:5000/v2.0/tokens HTTP/1.1 >>>>>>> >>>>>>> Tried with keytool import the cert, but still now work. >>>>>>> I can login the horizon as normal, but nor work with our code. >>>>>>> >>>>>>> Any idea? Thanks in advance. >>>>>>> -D >>>>>>> >>>>>>> On Mon, Jan 19, 2015 at 7:50 PM, Imesh Gunaratne <im...@apache.org> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi David, >>>>>>>> >>>>>>>> It's a pleasure! Thanks Dakshika for the quick response. Please >>>>>>>> note that OpenStack IaaS class name has changed to following in >>>>>>>> 4.1.0-alpha: >>>>>>>> >>>>>>>> org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> On Tue, Jan 20, 2015 at 7:15 AM, Dakshika Jayathilaka < >>>>>>>> daksh...@wso2.com> wrote: >>>>>>>> >>>>>>>>> Hi David, >>>>>>>>> >>>>>>>>> Iaas credentials can be set via cloud-controller.xml. >>>>>>>>> (repository/conf/cloud-conroller.xml)please check below documentation >>>>>>>>> link: >>>>>>>>> >>>>>>>>> >>>>>>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Configuring+cloud-controller.xml >>>>>>>>> >>>>>>>>> >>>>>>>>> <iaasProvider type="openstack" name="openstack specific details"> >>>>>>>>> >>>>>>>>> <className>org.apache.stratos.cloud.controller.iaases.OpenstackNovaIaas</className> >>>>>>>>> <provider>openstack-nova</provider> >>>>>>>>> <identity svns:secretAlias= >>>>>>>>> "cloud.controller.openstack.identity" >>>>>>>>> >OPENSTACK_IDENTITY</identity> >>>>>>>>> <credential svns:secretAlias= >>>>>>>>> "cloud.controller.openstack.credential" >>>>>>>>> >OPENSTACK_CREDENTIAL</credential> >>>>>>>>> <property name="jclouds.endpoint" value= >>>>>>>>> "OPENSTACK_ENDPOINT" /> >>>>>>>>> <property name= >>>>>>>>> "jclouds.openstack-nova.auto-create-floating-ips" value="false"/> >>>>>>>>> <property name="jclouds.api-version" >>>>>>>>> value="2.0/" /> >>>>>>>>> <property name="X" value="x" /> >>>>>>>>> <property name="Y" value="y" /> >>>>>>>>> </iaasProvider> >>>>>>>>> >>>>>>>>> Thank you, >>>>>>>>> >>>>>>>>> *Dakshika Jayathilaka* >>>>>>>>> Software Engineer >>>>>>>>> WSO2, Inc. >>>>>>>>> lean.enterprise.middleware >>>>>>>>> 0771100911 >>>>>>>>> >>>>>>>>> On Tue, Jan 20, 2015 at 6:33 AM, david hbase <davidhb...@gmail.com >>>>>>>>> > wrote: >>>>>>>>> >>>>>>>>>> Hi,Imesh >>>>>>>>>> >>>>>>>>>> Thanks for your clear instruction, much clear then 4.0 now. >>>>>>>>>> >>>>>>>>>> One more question? how can I change the openstack >>>>>>>>>> project:username and password credential? >>>>>>>>>> >>>>>>>>>> Only one error as: >>>>>>>>>> [2015-01-20 00:59:02,584] INFO >>>>>>>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} - >>>>>>>>>> Trying to >>>>>>>>>> spawn an instance via cloud controller: [cluster] >>>>>>>>>> mytomcat.tomcat.domain >>>>>>>>>> [partition] P1 [network-partition-id] openstack_R1 >>>>>>>>>> [2015-01-20 00:59:02,747] ERROR >>>>>>>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} >>>>>>>>>> - Could not start instance, IaaS provider not found in cartridge >>>>>>>>>> tomcat >>>>>>>>>> for partition P1, partitions found: [] >>>>>>>>>> [2015-01-20 00:59:02,748] ERROR >>>>>>>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} >>>>>>>>>> - Failed to start instance: >>>>>>>>>> org.apache.stratos.cloud.controller.domain.InstanceContext@2b12c7ef >>>>>>>>>> >>>>>>>>>> I believe that cause the openstack credential issue. >>>>>>>>>> >>>>>>>>>> Waiting for your update now, Thanks >>>>>>>>>> -D >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Mon, Jan 19, 2015 at 1:06 AM, Imesh Gunaratne < >>>>>>>>>> im...@apache.org> wrote: >>>>>>>>>> >>>>>>>>>>> Hi David, >>>>>>>>>>> >>>>>>>>>>> It's really nice to see your interest on Apache Stratos and >>>>>>>>>>> appreciate you efforts on testing 4.1.0-alpha developer preview. >>>>>>>>>>> >>>>>>>>>>> *Stratos Distribution:* >>>>>>>>>>> You could find the binary distribution from the nightly build >>>>>>>>>>> here: >>>>>>>>>>> >>>>>>>>>>> https://builds.apache.org/job/Stratos-Master-Nightly-Build/385/org.apache.stratos$apache-stratos/ >>>>>>>>>>> >>>>>>>>>>> Or you could build code from master branch and find the latest >>>>>>>>>>> binary distribution under >>>>>>>>>>> products/stratos/modules/distribution/target >>>>>>>>>>> folder. >>>>>>>>>>> >>>>>>>>>>> *Instructions for Testing:* >>>>>>>>>>> >>>>>>>>>>> https://docs.google.com/a/wso2.com/document/d/1tWECZWfGrt8M-pD_I6GEwS9Sf_gdOTqlOnTzgkvJLsY/edit >>>>>>>>>>> >>>>>>>>>>> Thanks >>>>>>>>>>> >>>>>>>>>>> On Mon, Jan 19, 2015 at 4:38 AM, david hbase < >>>>>>>>>>> davidhb...@gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi Imesh and Vishanth >>>>>>>>>>>> >>>>>>>>>>>> I just have my private openstack (30 VCPUs / 60GB) is ready for >>>>>>>>>>>> our 4.1 alpha testing now. Please send me the updated package and >>>>>>>>>>>> instruction, I can perform UAT now and will feedback the testing >>>>>>>>>>>> result. >>>>>>>>>>>> >>>>>>>>>>>> Thanks >>>>>>>>>>>> David >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On Sun, Jan 18, 2015 at 12:55 PM, Vishanth Balasubramaniam < >>>>>>>>>>>> vishan...@wso2.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hi Imesh, >>>>>>>>>>>>> >>>>>>>>>>>>> I have created everything except for the kubernetes samples. I >>>>>>>>>>>>> am facing problems in pushing it to my git repo. Once I overcome >>>>>>>>>>>>> that, I >>>>>>>>>>>>> will send the pull request. >>>>>>>>>>>>> >>>>>>>>>>>>> Thank you >>>>>>>>>>>>> >>>>>>>>>>>>> On Fri, Jan 16, 2015 at 9:19 PM, Imesh Gunaratne < >>>>>>>>>>>>> im...@apache.org> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks for initiating this Vishanth, please update this >>>>>>>>>>>>>> thread once you are done. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Fri, Jan 16, 2015 at 5:51 PM, Vishanth Balasubramaniam < >>>>>>>>>>>>>> vishan...@wso2.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hi devs, >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Since some of the samples are not created for Openstack, >>>>>>>>>>>>>>> MockIaaS and Kubernetes. I will work on creating sample >>>>>>>>>>>>>>> applications for >>>>>>>>>>>>>>> those. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Thank you >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> Vishanth Balasubramaniam >>>>>>>>>>>>>>> Software Engineer >>>>>>>>>>>>>>> WSO2 Inc.; http://wso2.com >>>>>>>>>>>>>>> lean.enterprise.middleware >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> mobile: *+94771737718* >>>>>>>>>>>>>>> about me: *http://about.me/vishanth >>>>>>>>>>>>>>> <http://about.me/vishanth>* >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> Imesh Gunaratne >>>>>>>>>>>>>> >>>>>>>>>>>>>> Technical Lead, WSO2 >>>>>>>>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> *Vishanth Balasubramaniam* >>>>>>>>>>>>> Software Engineer >>>>>>>>>>>>> WSO2 Inc.; http://wso2.com >>>>>>>>>>>>> lean.enterprise.middleware >>>>>>>>>>>>> >>>>>>>>>>>>> mobile: *+94771737718* >>>>>>>>>>>>> about me: *http://about.me/vishanth >>>>>>>>>>>>> <http://about.me/vishanth>* >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Imesh Gunaratne >>>>>>>>>>> >>>>>>>>>>> Technical Lead, WSO2 >>>>>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Imesh Gunaratne >>>>>>>> >>>>>>>> Technical Lead, WSO2 >>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos