Deploying new application on CloudIq Console

ashwini 
Joined: 01/30/2010
User offline. Last seen 1 week 1 day ago.

Myself Ashwini,doing project on cloud computing.Building the private cloud by using the 'Appistry' and 'cloudIq'.Need Help about how to deploy any application in cloudIq console so worker connected in network can access this application through their own computer.Please can anyone tell me the steps to deploying the application.Please reply me as possible as.
Thank You.

mark  Appistry employee
Joined: 12/21/2007
User offline. Last seen 22 weeks 2 days ago.

ashwini,

Here is a link to our documentation that shows you how to package and deploy a sample application to the fabric using fabric_ctl:
http://www.appistry.com/community/wiki/display/latest/Your+First+Applica...
http://www.appistry.com/community/wiki/display/latest/Package+and+Deploy...

You can also deploy the .fabric file with the CloudIQ Console by clicking new in the upper right of the application page. You would then point to the .fabric file and submit it.

Once deployed, you can submit transactions from other locations.

You can also deploy services and other 3rd party applications with CloudIQ Manager. If you want instructions on that, the following is a good place to start:
http://www.appistry.com/community/wiki/display/latest/Deploy+an+Application

I hope this helps.

Mark

ashwini 
Joined: 01/30/2010
User offline. Last seen 1 week 1 day ago.

Thank you,But i tried it.I took the sample tutorial from appistry and tried to run it but it's not working.can you please tell me the exact steps of how to deploy the any appication or pacakge.Waiting for reply.

Thank you.

mark  Appistry employee
Joined: 12/21/2007
User offline. Last seen 22 weeks 2 days ago.

When you say that it is not working, what do you mean exactly? Where in the process does the tutorial break down for you? I would be happy to give you steps, but you would probably see the same problem that you are getting with the tutorial because I would just be repeating a lot of the steps.

Is your fabric not running?
Were you able to package the application?
Are you able to deploy the application?
Is your application not running?
Are you getting any error messages?

Thanks,
Mark

ashwini 
Joined: 01/30/2010
User offline. Last seen 1 week 1 day ago.

Thank you for reply.
My problem is not able to deploy the any application.
can you tell me one example of it.
waiting for reply.

Thank you.

mark  Appistry employee
Joined: 12/21/2007
User offline. Last seen 22 weeks 2 days ago.

A sample fabric application is a packaged into a .fabric file. Did you get that far into the tutorial?

If so, you would type the following to deploy the application if you were using the defaults:

fabric_ctl -d239.255.0.1 -ufabric-admin/fabric-admin deploy hello_world_java_app.fabric

You would have to change that file name accordingly. If it says something like failed to locate fabric, then you need to find out if your fabric is running and getting heartbeats.

What messages are you getting?

Thanks,
Mark

pradnya 
Joined: 01/20/2010
User offline. Last seen 15 weeks 4 days ago.

I am trying to deploy apache on cloud iq platform- on windows.
I was able to deploy it using-'grab and go'; method.

but when i tried to follow the detailed steps,
i downloaded the apache setup.
But i am not getting the following steps- 3,4,6,7,8.
CAN YOU PLEASE HELP ME TO MAKE IT CLEAR?

1) Download Appistry's example Apache service files. Create a directory to contain the files you will be packaging: for example 'apachewin

2) Download the latest version of Apache (for example, 'apache_2.2.11-win32-x86-no_ssl.msi').

3) Review and update the Fabric Archive (FAR) Definition XML file ('apachewin.xml') that will direct the installation and operation of the
Apache service:

4) Update the Apache configuration file, 'httpd.conf':
Set the listening port, as appropriate:

6) Review and update the 'install.bat' (as appropriate). The example will install the service quietly, update the Apache configuration file
and copy the 'index.html':

7) Review the 'query.bat' (see Query Elements for more information), which will allow the Fabric to report on the state of the Apache
service:

8) Review and update the 'uninstall.bat', which will be invoked if the service is deleted or if a newer version is deployed:

9) Use the fabric_pkg command to package the FAR:

10) Deploy the newly created 'apachewin.far' to the fabric using the fabric_ctl deploy command:

THANK YOU.

ashwini 
Joined: 01/30/2010
User offline. Last seen 1 week 1 day ago.

Tell me how to create a Fabric archive (FAR) definition XML file .
Which is given as step in 'Deploy An Application'.
What is the use of XML code given below that.
Thank you.

mark  Appistry employee
Joined: 12/21/2007
User offline. Last seen 22 weeks 2 days ago.

pradnya wrote:
I am trying to deploy apache on cloud iq platform- on windows.
I was able to deploy it using-'grab and go'; method.
but when i tried to follow the detailed steps,
i downloaded the apache setup.
But i am not getting the following steps- 3,4,6,7,8.
CAN YOU PLEASE HELP ME TO MAKE IT CLEAR?

Pradnya,

I will go through each of the steps mentioned. I hope that I can clear some things up for you.

Quote:

3) Review and update the Fabric Archive (FAR) Definition XML file ('apachewin.xml') that will direct the installation and operation of the
Apache service:

For this step, you need to change the xml for the correct file name of Apache that you have. In our example, we downloaded "apache_2.2.11-win32-x86-no_ssl.msi"; however, there is likely another version of apache released since this example was created. You would need to change the following line to reflect the different file name of the version of apache that you are installing:

Quote:

4) Update the Apache configuration file, 'httpd.conf':
Set the listening port, as appropriate:

If you are installing only one web service, this may not be necessary. This is an apache file that allows you to change the ports for which it is listening. If you have multiple web services running, you would want to change this so the port that you are using does not conflict with other web services.

Quote:

6) Review and update the 'install.bat' (as appropriate). The example will install the service quietly, update the Apache configuration file
and copy the 'index.html':

Similar to step 3, there is a file name that is included in the install.bat file. In our example, it executes "apache_2.2.11-win32-x86-no_ssl.msi" in quiet mode. You will want to change the name of the file to whatever apache file you have downloaded. If the path names are different, you may need to change that as well.

Quote:

7) Review the 'query.bat' (see Query Elements for more information), which will allow the Fabric to report on the state of the Apache
service:

You probably do not have to change anything for this step. This query.bat is what is run by the Cloud IQ to determine the state of the service. In this case, the apache service.

Quote:

8) Review and update the 'uninstall.bat', which will be invoked if the service is deleted or if a newer version is deployed:

Again, you probably just need to change the file name if it is different than the example.

Another thing to watch out for... If you have already deployed a version of apache to your fabric, you may need to update the version number in the apachewin.xml file and repeat step 9 and 10. Here is the line that includes the version number that you would change:
version="1.05"

I hope this helps. If you receive a specific error on one of these steps, feel free to post it and I would be happy to help.

Thanks,
Mark

mark  Appistry employee
Joined: 12/21/2007
User offline. Last seen 22 weeks 2 days ago.

ashwini wrote:
Tell me how to create a Fabric archive (FAR) definition XML file .
Which is given as step in 'Deploy An Application'.
What is the use of XML code given below that.
Thank you.

Ashwini,

The FAR xml has many purposes, but the main purpose is to provide enough information to the fabric_pkg utility so that it can package up the application for deployment.

Included in the FAR are sections. Each has a different purpose.

support-files: This section tells you what files are to be included in the package.
service-app: This tells you that this far is a service-app for another service. The example says "win-service". However, lets use tomcat as another example. You could deploy tomcat as a service and then also deploy other web apps as service-apps that run under tomcat.
install: This the command that will be run by the fabric to install your service. If this command needs administrative privelages, you will need to add elevated rights to it. Please refer to the Rights attribute section on that page if needed. Note that there are output files and error file options to help you diagnose problems that may occur during the execution of this command. Also, you can put in a timeout. If your installation command needs to have arguments, you can provide those using the arg value tag.
uninstall: This behaves the same as the install, but it is run when you delete the service.

If there is a specific section or step that you are having issues with, please note it and I will be glad to help.

Thanks,
Mark