Re: [Q] Cartridge for RHEL or Centos

2015-06-12 Thread David Hbase
Compatibility with RHEL 6.5 deployments: 1. Modify the Stratos_base/manifests/init.pp base-update-apt to yum update 2. Installation the setup tools: setuptools-7.0 3. verify the pip version as 7.0.x 4. Install the python-devel-2.6.6, GitPython, python-psutil, paho-mqtt, cryptography, pexpect and y

Re: [Q] Cartridge for RHEL or Centos

2015-05-26 Thread david hbase
Hi, Dev. I almost finished the code modification now, just found a bug and am trying fix it now, will have an update Tonight ( PDT) with the details. Thanks -D On Mon, May 25, 2015 at 5:41 PM, Mariangela Hills wrote: > Hi Raj, > > Sorry, for the later response! Currently, Stratos only ships i

Re: [Q] Cartridge for RHEL or Centos

2015-05-25 Thread Mariangela Hills
Hi Raj, Sorry, for the later response! Currently, Stratos only ships init.sh for Centos. config.sh for Cenos can be added to Stratos as an improvement in the future. Regards, Mariangela *Mariangela Hills* Senior Technical Writer - WSO2, Inc. http://wso2.com Committer and PMC member - Apache Str

Re: [Q] Cartridge for RHEL or Centos

2015-05-24 Thread Chamila De Alwis
Hi David, Sorry for the delayed reply, as I couldn't get online sooner. Great work in getting the Puppet modules to work on RHEL! I guess we'd have to include a conditional statement in the Puppet manifest to install different packages based on the OS. I've opened a JIRA [1] for this as we can inc

Re: [Q] Cartridge for RHEL or Centos

2015-05-24 Thread Gayan Gunarathne
Hi David, Great to hear that you have configure Stratos in RHEL 6.5. I guess you have use the same init.sh and you have done the changes "apt-get update" command of the stratos_base/manifests/init.pp. Thanks, Gayan On Sun, May 24, 2015 at 8:18 AM, david hbase wrote: > I have fixed it. The app

Re: [Q] Cartridge for RHEL or Centos

2015-05-23 Thread david hbase
Yes, I will summarize the updates. Thanks -D On Sat, May 23, 2015 at 8:21 PM, Udara Liyanage wrote: > Hi David, > > Great. We are greatful if you could donate them to Stratos. >

Re: [Q] Cartridge for RHEL or Centos

2015-05-23 Thread Udara Liyanage
Hi David, Great. We are greatful if you could donate them to Stratos.

Re: [Q] Cartridge for RHEL or Centos

2015-05-23 Thread david hbase
I have fixed it. The application can be deploy with RHEL 6.5 now. Thanks -D On Sat, May 23, 2015 at 7:33 PM, david hbase wrote: > After fixed multiple python modules, and got the following error, Any > suggestion? > Thanks > -D > > [root@locker002-472 tmp]# cat agent.screen.log > Traceback (mos

Re: [Q] Cartridge for RHEL or Centos

2015-05-23 Thread david hbase
After fixed multiple python modules, and got the following error, Any suggestion? Thanks -D [root@locker002-472 tmp]# cat agent.screen.log Traceback (most recent call last): File "agent.py", line 21, in from modules.subscriber.eventsubscriber import EventSubscriber File "/mnt/apache-strat

Re: [Q] Cartridge for RHEL or Centos

2015-05-23 Thread david hbase
Sorry, need correct the error message as following: [root@214823051543 ~]# puppet agent --test Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for 214823051543.default.locker.stratos41beta2a.test.com Info: Applying configuration version '1432429504' N

Re: [Q] Cartridge for RHEL or Centos

2015-05-23 Thread david hbase
Hi, Chamila Thanks for your update. I did the following updates: 1. changed the stratos_base/manifests/init.pp, 2. built from source, 3. copy the apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT.zip to /etc/puppet/modules/python_agent/files/ 4. rebuild the cartridge. 5. deploy new app But sti

Re: [Q] Cartridge for RHEL or Centos

2015-05-22 Thread Chamila De Alwis
Hi David, The Puppet modules are mostly Debian specific, using flavor specific commands such as "apt-get". This is a shortcoming as of now and we need to make the modules more generic. However, the modules can be modified by a DevOps as well, since we are only providing the basic flow of the Pupp

Re: [Q] Cartridge for RHEL or Centos

2015-05-22 Thread david hbase
Hi, Dev Yes, Exactly, When I execute the puppet agent and got this error. I am trying to deploy the Stratos 4.1 with production POC. But this is a blocker now. etc: without the Python Cartridge Agent, Stratosn 4.1 can not sync the cartridge status. Need help, Thanks -D On Fri, May 22, 2015 at

Re: [Q] Cartridge for RHEL or Centos

2015-05-22 Thread Udara Liyanage
Hi, I guess this error is encountered when you execute puppet agent. Does our puppet master supports CentOS?

Re: [Q] Cartridge for RHEL or Centos

2015-05-22 Thread david hbase
Hi, Dev The issue is not from init.sh and config.sh. It's from CA package. Please help, Thanks -D [root@abc-42 bin]# puppet agent --test Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Info: Caching catalog for abc002-42.cisco.com Info: Applying configuration version '14

Re: [Q] Cartridge for RHEL or Centos

2015-05-22 Thread Gayan Gunarathne
In the init.sh[1] there are condition for CentOS. AFAIU CentOS specific things handle through this.Why we are using separate init.sh for CentOS. What is the difference of those two init.sh? https://github.com/apache/stratos/blob/master/tools/init-scripts/init.sh Thanks, Gayan On Fri, May 22, 2

Re: [Q] Cartridge for RHEL or Centos

2015-05-22 Thread Udara Liyanage
I just wrote the last sentence in a different manner since we not necessarily need to mention who writes the scripts. Please pick the best one. On Fri, May 22, 2015 at 3:07 PM, Mariangela Hills wrote: > Hi Devs, > > For the purpose of greater clarity, I added the following as a separate > note, s

Re: [Q] Cartridge for RHEL or Centos

2015-05-22 Thread Rajkumar Rajaratnam
Hi Mari, ​Does Stratos ship config.sh for Centos? It ships init.sh for Centos. Thanks.​ On Fri, May 22, 2015 at 3:07 PM, Mariangela Hills wrote: > Hi Devs, > > For the purpose of greater clarity, I added the following as a separate > note, so that the user does not miss it. > > "The init.sh a

Re: [Q] Cartridge for RHEL or Centos

2015-05-22 Thread Mariangela Hills
Hi Devs, For the purpose of greater clarity, I added the following as a separate note, so that the user does not miss it. "The init.sh and config.sh files are OS specific. Stratos ships config.sh for Debian/Ubuntu and CentOS operating systems. While, Stratos ships init.sh for Debian/Ubuntu. These

Re: [Q] Cartridge for RHEL or Centos

2015-05-21 Thread Rajkumar Rajaratnam
Thanks Isuru for pointing this out! Stratos ships init.sh for Centos as well. It is there at https://github.com/apache/stratos/tree/master/tools/init-scripts/centos. Thanks. On Fri, May 22, 2015 at 10:10 AM, Isuru Haththotuwa wrote: > > > On Fri, May 22, 2015 at 10:08 AM, Rajkumar Rajaratnam

Re: [Q] Cartridge for RHEL or Centos

2015-05-21 Thread Isuru Haththotuwa
On Fri, May 22, 2015 at 10:08 AM, Rajkumar Rajaratnam wrote: > Hi David, > > Setup scripts (config.sh and init.sh) are OS specific. Stratos ships > config.sh for Debian/Ubuntu operating systems. DevOps will have to write > their own script for any other operating system. > > Please refer [1] for

Re: [Q] Cartridge for RHEL or Centos

2015-05-21 Thread Rajkumar Rajaratnam
Hi David, Setup scripts (config.sh and init.sh) are OS specific. Stratos ships config.sh for Debian/Ubuntu operating systems. DevOps will have to write their own script for any other operating system. Please refer [1] for more details. @Mari, [1] is from 4.0.0. Where do we have these information

[Q] Cartridge for RHEL or Centos

2015-05-21 Thread david hbase
Try deploy tomcat cartridge with RHEL 6.5, the init script from: https://github.com/apache/stratos/tree/master/tools/init-scripts Run ./config.sh andgot the following errors: Error: Could not find command 'apt-get' Error: /Stage[main]/Stratos_base/Exec[base-update-apt]/returns: change from notrun