Hi Prashanth, I have created cartridges by using the [1] and I haven't faced any issue.
According to your error log I will explain where it can be failed. --2014-03-25 00:10:39-- http://169.254.169.254/latest/user-data Connecting to 169.254.169.254:80... failed: No route to host. Please provide stratos service-name:php Please provide puppet master IP:192.168.231.157 Please provide puppet master hostname [puppet.stratos.org]: puppet.puppetmaster.com Node Id 946925031432.default.php Domain puppet.puppetmaster.com \nRunning puppet installation with arguments: -n946925031432.default.php - dpuppet.puppetmaster.com -s192.168.231.157 [Error] Puppet exist on this system. /bin/rm: cannot remove `/mnt/apache-stratos-cartridge-agent-4.0.0-SNAPSHOT/wso2carbon.lck': No such file or directory This error saying that you have already installed puppet on your system. This can be happened when you are trying to execute config script for the second time on the system. Please follows the steps in [1] on instance which installed Debian/Ubuntu based Linux 12.04.1 LTS [1]https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Creating+a+Cartridge+on+OpenStack+or+EC2 On Tue, Apr 1, 2014 at 10:45 AM, Udara Liyanage <[email protected]> wrote: > Hi, > > I have created a php cartridge with the guidelines of [1]. Did you > fallowed this guidelines? > You have to setup puppet master before creating the cartridge as Isurup > mentioned. > > [1] > https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Creating+a+Cartridge+on+OpenStack+or+EC2 > > > On Tue, Mar 25, 2014 at 3:26 PM, Prashanth Jeevan Kumar < > [email protected]> wrote: > >> Hi Isuru, >> >> Thanks for the quick response. >> >> >> >> Hi All, >> >> Has anyone created and used *php and mysql cartridges* on *openstack*using >> *stratos >> 4.0*. I would really appreciate your help to quickly get my POC back on >> track. >> >> >> >> I have been able to get the stratos UI up and connect to openstack >> however since I have not been able to create an image for php and mysql I >> am not able to proceed with getting an instance up and running on openstack. >> >> >> >> Thanks & Regards >> >> Prashanth >> >> >> >> *From:* Isuru Perera [mailto:[email protected]] >> *Sent:* Tuesday, March 25, 2014 5:51 AM >> *To:* dev; Prashanth Jeevan Kumar >> *Cc:* Mariangela Hills >> *Subject:* Cartridge Creation Guide (was: "Creating a Cartridge" related >> scripts) >> >> >> >> Hi, >> >> Puppet [1] is used to automate cartridge configuration and we use it make >> our life easy! :) >> >> What we have done is that there is separate Puppet Master server is >> running and the cartridge will have an init script to configure itself by >> communicating with Puppet Master. >> >> We have already provided the steps to configure a Puppet Master [2]. >> >> We will work on improving the docs and will try to provide answers for >> all your questions. >> >> This is just a quick reply for you. >> >> Thanks! >> >> >> [1] http://puppetlabs.com/ >> [2] >> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Configuring+Puppet+Master >> >> >> >> ---------- Forwarded message ---------- >> From: *Prashanth Jeevan Kumar* <[email protected]> >> Date: Sat, Mar 22, 2014 at 3:33 AM >> Subject: FW: "Creating a Cartridge" related scripts >> To: [email protected] >> >> Seems like the my e-mail to the alias got rejected. >> >> >> >> *From:* Prashanth Jeevan Kumar [mailto:[email protected]] >> *Sent:* Friday, March 21, 2014 1:31 PM >> *To:* '[email protected]' >> *Subject:* RE: "Creating a Cartridge" related scripts >> >> >> >> Hi Isuru, >> >> I have not used Puppet earlier and have tried to get a >> quick understanding of it, I have tried following the guide multiple times >> but I guess I have not understood the process please see the output and >> questions below. >> >> - My understanding is that you already have script or image on >> a puppet master (php, mysql, tomcat) from which I would be able to generate >> an image which would need to be uploaded to my openstack image. >> >> - As per the scripts below I have created a puppet master on my >> VM, which would mean that I would need to create puppet script for each >> cartridge that I need to install? >> >> - Please see highlighted areas and let me know if these are >> correct and if you have a document on the process of creating a new >> cartridge that would help. For example I would like to create a postgres >> cartridge for openstack for stratos 4.0 what are the detailed steps that I >> need to follow. >> >> >> >> Do you have any hangouts or recording of the process to create a >> cartridge? If required please give me your contact number and the time you >> would be available so that we can discuss this. I can be reached @ +1 >> (408)876-7176. >> >> Thanks & Regards >> >> Prashanth >> > > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > -- *Dinesh Bandara* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware
