Hi Imesh, Pubudu, I configured puppet master again and restarted it. Then I created a new cartridge with puppet agent pointing to this master. In fact I did it one by one and tested at each step to find out what was the reason.
After deploying application with this new image I still did not find screen.agent.log on spawned instance. While configuring cartridge there was 404 Not Found error for http://169.254.169.254/latest/user-data. Rest of the configuration ran without errors. Please find attached config.sh.log. I found only 3 logs launch-params, puppet-init.log, puppet_log. I have attached these. Also I have attached puppet.conf of spawned instance. Few observations- 1. In launch-params, PUPPET_IP is set as 127.0.0.1 and PUPPET_HOSTNAME is set as puppet-hostname. I am not sure if this is correct of these should be of master. 2. In puppet.conf, server is set as puppet-hostname and not the hostname of master. Thanks and Regards, Swapnil On Sat, Jun 27, 2015 at 3:57 PM, Swapnil Patil <swapnil.r...@gmail.com> wrote: > Hi Imesh, Pubudu, > > I did not find screen.agent.log under /tmp in ec2 cartridge instance > created. Seems I did something wrong while configuring either puppet master > or creating cartridge. > > Currently I am verifying the steps for puppet configuration. > > Thanks and Regards, > Swapnil > > > > On Sat, Jun 27, 2015 at 12:39 PM, Imesh Gunaratne <im...@apache.org> > wrote: > >> Hi Swapnil, >> >> Can you please verify the CEP IP and MB IP values passed into the EC2 >> instance created? You could find these values in the cartridge agent log >> file (/tmp/screen.agent.log). >> >> Thanks >> >> On Sat, Jun 27, 2015 at 12:56 PM, Swapnil Patil <swapnil.r...@gmail.com> >> wrote: >> >>> Thanks Pubudu for the detailed information. >>> >>> I have not disabled mock iaas neither deleted the war file on my own. I >>> will check again if the war file is present. >>> >>> I have configured puppet master. I will verify all the steps again. >>> >>> Thanks and Regards, >>> Swapnil >>> On Jun 27, 2015 12:33 PM, "Pubudu Gunatilaka" <pubu...@wso2.com> wrote: >>> >>>> Hi Swapnil, >>>> >>>> You may have already disable the mock iaas when seting up the ec2 >>>> environment [1]. So this could be a reason for that as well. Above >>>> mentioned steps are correct for deploying app in mock iaas. >>>> >>>> You can find the cartridge agent log in the spawned ec2 instance. >>>> Please follow the below steps. >>>> >>>> 1. SSH to spawned ec2 instance. >>>> 2. Go to the /tmp directory. >>>> Here you should be able to find puppet logs as well as the agent log. >>>> Check both for any errors. You won't find the agent log if the puppet has >>>> not worked well. Check the puppet.conf file in /etc/puppet/ directory in >>>> ec2 spawned instance. Hostname and other configurations should be set up >>>> accordingly. >>>> >>>> Hope you have already setup your puppet master as well [2]. >>>> >>>> [1] - >>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Install+Stratos+with+EC2+in+a+Testing+Environment >>>> [2] - >>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Configuring+Puppet+Master >>>> >>>> Thank you! >>>> >>>> On Sat, Jun 27, 2015 at 12:10 PM, Swapnil Patil <swapnil.r...@gmail.com >>>> > wrote: >>>> >>>>> Hi Pubudu, >>>>> >>>>> I used different partitions. Because I just ran deploy.sh >>>>> in samples/applications/simple/single-cartridge-app/scripts/mock. So this >>>>> script will use network partition defined >>>>> in samples/network-partitions/mock. (Before I ran this I had removed >>>>> earlier network partition with undeploy.sh of ec2). Please correct me if I >>>>> am wrong here. >>>>> >>>>> Sorry, I am not aware of this log. Could you please tell me the name >>>>> of this log and where can I find it? >>>>> >>>>> Thanks and Regards, >>>>> Swapnil >>>>> >>>>> On Sat, Jun 27, 2015 at 6:05 AM, Pubudu Gunatilaka <pubu...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi Swapnil, >>>>>> >>>>>> Can you attach the cartridge agent log? You cannot deploy the same >>>>>> network partition in mock which you used in ec2. Configurations are >>>>>> different. >>>>>> >>>>>> Thank you! >>>>>> >>>>>> On Sat, Jun 27, 2015 at 9:47 AM, Swapnil Patil < >>>>>> swapnil.r...@gmail.com> wrote: >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> I have setup Stratos on one ec2 instance and MB on another ec2 >>>>>>> instance. When I try to deploy ec2 application using sample script, >>>>>>> application does get deployed and I can see ec2 instance being created >>>>>>> for >>>>>>> cartridge. >>>>>>> >>>>>>> But in wso2carbon.log I can only see messages till Member >>>>>>> initialized. Member started and rest messages do not appear. Same >>>>>>> happens >>>>>>> with the load balancer extension log. >>>>>>> >>>>>>> I tried deploy application on mock iaas to see if I get all messages >>>>>>> for that. But I got error invalid partition while running deploy script. >>>>>>> >>>>>>> Please find attached logs. I would appreciate any help to find out >>>>>>> the reason behind this and sort this out. >>>>>>> >>>>>>> Thanks and Regards, >>>>>>> Swapnil >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> *Pubudu Gunatilaka* >>>>>> Software Engineer >>>>>> WSO2, Inc.: http://wso2.com >>>>>> lean.enterprise.middleware >>>>>> mobile: +94 77 4078049 >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> *Pubudu Gunatilaka* >>>> Software Engineer >>>> WSO2, Inc.: http://wso2.com >>>> lean.enterprise.middleware >>>> mobile: +94 77 4078049 >>>> >>> >> >> >> -- >> Imesh Gunaratne >> >> Senior Technical Lead, WSO2 >> Committer & PMC Member, Apache Stratos >> > >
root@ip-172-31-12-161:~/bin# ./config.sh This script will install and configure puppet agent, do you want to continue [y/n]y --2015-06-28 09:11:49-- http://169.254.169.254/latest/user-data Connecting to 169.254.169.254:80... connected. HTTP request sent, awaiting response... 404 Not Found 2015-06-28 09:11:49 ERROR 404: Not Found. Please provide stratos service-name:php Please provide puppet master IP:54.169.7.249 Please provide puppet master hostname [puppet.stratos.org]:puppet.swapnil-ec2.org Node Id 181628061546.default.php Domain puppet.swapnil-ec2.org \nRunning puppet installation with arguments: -n181628061546.default.php -dpuppet.swapnil-ec2.org -s54.169.7.249 Puppet Installer v1 2014-02-12 This script will install PuppetLab puppet v3. Thilina Piyasundara. <m...@thilina.org> == [Caution] =========================================================== This script will replace existing '/etc/hosts' and '/etc/hostname' files and will update hostname of the system with following parameter. Installing puppet : Agent Puppet Master FQDN name : puppet.swapnil-ec2.org Puppet Masters IP address : 54.169.7.249 Domain of the deployment : puppet.swapnil-ec2.org FQDN of this node : 181628061546.default.php.puppet.swapnil-ec2.org Operating system : Debian Please check your input and confirm by pressing [Enter] to continue. Or press [Ctrl] + [c] to stop the installationan exit. ======================================================================== Installation started. Please wait ... Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: locales ubuntu-minimal 0 upgraded, 0 newly installed, 2 to remove and 75 not upgraded. After this operation, 9,430 kB disk space will be freed. (Reading database ... 47651 files and directories currently installed.) Removing ubuntu-minimal ... Removing locales ... Processing triggers for man-db ... Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: locales 0 upgraded, 1 newly installed, 0 to remove and 75 not upgraded. Need to get 3359 kB of archives. After this operation, 9372 kB of additional disk space will be used. Get:1 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu/ precise/main locales all 2.13+git20120306-3 [3359 kB] Fetched 3359 kB in 0s (18.4 MB/s) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US.UTF-8", LC_ALL = "en_US.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Selecting previously unselected package locales. (Reading database ... 47089 files and directories currently installed.) Unpacking locales (from .../locales_2.13+git20120306-3_all.deb) ... Processing triggers for man-db ... Setting up locales (2.13+git20120306-3) ... /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) Generating locales... en_US.UTF-8... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) done Generation complete. Generating locales... en_US.UTF-8... up-to-date Generation complete. Current default time zone: 'Etc/UTC' Local time is now: Sun Jun 28 09:12:49 UTC 2015. Universal Time is now: Sun Jun 28 09:12:49 UTC 2015. 28 Jun 09:12:58 ntpdate[3949]: adjust time server 91.189.89.199 offset 0.109333 sec Selecting previously unselected package puppetlabs-release. (Reading database ... 47648 files and directories currently installed.) Unpacking puppetlabs-release (from puppetlabs-release-precise.deb) ... Setting up puppetlabs-release (1.0-11) ... Selecting previously unselected package libreadline5. (Reading database ... 47655 files and directories currently installed.) Unpacking libreadline5 (from .../libreadline5_5.2-11_amd64.deb) ... Selecting previously unselected package augeas-lenses. Unpacking augeas-lenses (from .../augeas-lenses_0.10.0-0ubuntu4_all.deb) ... Selecting previously unselected package debconf-utils. Unpacking debconf-utils (from .../debconf-utils_1.5.42ubuntu1_all.deb) ... Selecting previously unselected package libruby1.8. Unpacking libruby1.8 (from .../libruby1.8_1.8.7.352-2ubuntu1.6_amd64.deb) ... Selecting previously unselected package ruby1.8. Unpacking ruby1.8 (from .../ruby1.8_1.8.7.352-2ubuntu1.6_amd64.deb) ... Selecting previously unselected package ruby. Unpacking ruby (from .../apt/archives/ruby_4.8_all.deb) ... Selecting previously unselected package virt-what. Unpacking virt-what (from .../virt-what_1.11-1_amd64.deb) ... Selecting previously unselected package facter. Unpacking facter (from .../facter_2.4.4-1puppetlabs1_all.deb) ... Selecting previously unselected package libaugeas0. Unpacking libaugeas0 (from .../libaugeas0_0.10.0-0ubuntu4_amd64.deb) ... Selecting previously unselected package libaugeas-ruby1.8. Unpacking libaugeas-ruby1.8 (from .../libaugeas-ruby1.8_0.3.0-1.1ubuntu4_amd64.deb) ... Selecting previously unselected package libaugeas-ruby. Unpacking libaugeas-ruby (from .../libaugeas-ruby_0.3.0-1.1ubuntu4_all.deb) ... Selecting previously unselected package ruby-json. Unpacking ruby-json (from .../ruby-json_1.6.3-1_amd64.deb) ... Selecting previously unselected package libjson-ruby. Unpacking libjson-ruby (from .../libjson-ruby_1.6.3-1_all.deb) ... Selecting previously unselected package libruby. Unpacking libruby (from .../archives/libruby_4.8_all.deb) ... Selecting previously unselected package libshadow-ruby1.8. Unpacking libshadow-ruby1.8 (from .../libshadow-ruby1.8_1.4.1-8build1_amd64.deb) ... Selecting previously unselected package hiera. Unpacking hiera (from .../hiera_1.3.4-1puppetlabs1_all.deb) ... Selecting previously unselected package puppet-common. Unpacking puppet-common (from .../puppet-common_3.8.1-1puppetlabs1_all.deb) ... Selecting previously unselected package puppet. Unpacking puppet (from .../puppet_3.8.1-1puppetlabs1_all.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... Setting up libreadline5 (5.2-11) ... Setting up augeas-lenses (0.10.0-0ubuntu4) ... Setting up debconf-utils (1.5.42ubuntu1) ... Setting up libruby1.8 (1.8.7.352-2ubuntu1.6) ... Setting up ruby1.8 (1.8.7.352-2ubuntu1.6) ... update-alternatives: using /usr/bin/ruby1.8 to provide /usr/bin/ruby (ruby) in auto mode. Setting up ruby (4.8) ... Setting up virt-what (1.11-1) ... Setting up facter (2.4.4-1puppetlabs1) ... Setting up libaugeas0 (0.10.0-0ubuntu4) ... Setting up libaugeas-ruby1.8 (0.3.0-1.1ubuntu4) ... Setting up libaugeas-ruby (0.3.0-1.1ubuntu4) ... Setting up ruby-json (1.6.3-1) ... Setting up libjson-ruby (1.6.3-1) ... Setting up libruby (4.8) ... Setting up libshadow-ruby1.8 (1.4.1-8build1) ... Setting up hiera (1.3.4-1puppetlabs1) ... Setting up puppet-common (3.8.1-1puppetlabs1) ... Setting up puppet (3.8.1-1puppetlabs1) ... * Starting puppet agent puppet not configured to start, please edit /etc/default/puppet to enable [ OK ] Processing triggers for libc-bin ... ldconfig deferred processing now taking place Copying Stratos facter file to /usr/lib/ruby/1.8 * Stopping puppet agent [ OK ] Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning') Info: Creating a new SSL key for 181628061546.default.php.puppet.swapnil-ec2.org Info: Caching certificate for ca Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml Info: Creating a new SSL certificate request for 181628061546.default.php.puppet.swapnil-ec2.org Info: Certificate Request fingerprint (SHA256): 8C:DC:8C:E4:5D:7B:6E:5B:35:C8:2E:D1:BB:B8:59:92:B1:4F:62:FD:3C:3C:A7:AF:97:94:D2:56:6F:41:1A:07 Info: Caching certificate for 181628061546.default.php.puppet.swapnil-ec2.org Info: Caching certificate_revocation_list for ca Info: Caching certificate for ca Info: Retrieving pluginfacts Info: Retrieving plugin Notice: /File[/var/lib/puppet/lib/puppet]/ensure: created Notice: /File[/var/lib/puppet/lib/puppet/parser]/ensure: created Notice: /File[/var/lib/puppet/lib/puppet/parser/functions]/ensure: created Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/difference.rb]/ensure: defined content as '{md5}61417bde5df523840a602c3a3bb0b23a' Notice: /File[/var/lib/puppet/lib/facter]/ensure: created Notice: /File[/var/lib/puppet/lib/facter/stratos_facts.rb]/ensure: defined content as '{md5}58a2fc506397b18254c4972bb31abf41' Notice: /File[/var/lib/puppet/lib/facter/java_home.rb]/ensure: defined content as '{md5}f02ef19a4f5644c66f60782fc1ed2d31' Info: Loading facts Info: Caching catalog for 181628061546.default.php.puppet.swapnil-ec2.org Info: Applying configuration version '1435482829' Notice: Installed package: unzip Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[unzip]/Notify[unzip]/message: defined 'message' as 'Installed package: unzip' Notice: Installed package: nano Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[nano]/Notify[nano]/message: defined 'message' as 'Installed package: nano' Notice: Installed package: git Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[git]/Notify[git]/message: defined 'message' as 'Installed package: git' Notice: Installed package: wget Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[wget]/Notify[wget]/message: defined 'message' as 'Installed package: wget' Notice: Installed package: curl Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[curl]/Notify[curl]/message: defined 'message' as 'Installed package: curl' Notice: /Stage[main]/Stratos_base/Exec[base-update-apt]/returns: executed successfully Notice: /Stage[main]/Stratos_base/Package[git]/ensure: ensure changed 'purged' to 'latest' Notice: /Stage[main]/Stratos_base/Package[curl]/ensure: ensure changed '7.22.0-3ubuntu4.12' to '7.22.0-3ubuntu4.14' Notice: Installed package: zip Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[zip]/Notify[zip]/message: defined 'message' as 'Installed package: zip' Notice: Installed package: tar Notice: /Stage[main]/Stratos_base/Stratos_base::Printpackages[tar]/Notify[tar]/message: defined 'message' as 'Installed package: tar' Notice: /Stage[main]/Php/File[/etc/apt/apt.conf.d/90forceyes]/ensure: defined content as '{md5}a0984f2488154022d95ebeb68900ce71' Notice: /Stage[main]/Php/Package[php5-mysql]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[build-essential]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-xmlrpc]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-gd]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[ldap-utils]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-mcrypt]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[mcrypt]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-xsl]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[libboost-all-dev]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-sqlite]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php-pear]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[mysql-client]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-ldap]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-curl]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[fail2ban]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[libapache2-mod-php5]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-imap]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php-db]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[php5-adodb]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[mailutils]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Package[apache2]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Php/Exec[clean sites]/returns: executed successfully Notice: /Stage[main]/Php/File[/etc/apache2/apache2.conf]/content: --- /etc/apache2/apache2.conf 2012-02-07 04:16:59.000000000 +0000 +++ /tmp/puppet-file20150628-4875-1wzlzad-0 2015-06-28 09:17:14.009543999 +0000 @@ -1,3 +1,23 @@ +## -------------------------------------------------------------- +## +## Licensed to the Apache Software Foundation (ASF) under one +## or more contributor license agreements. See the NOTICE file +## distributed with this work for additional information +## regarding copyright ownership. The ASF licenses this file +## to you under the Apache License, Version 2.0 (the +## "License"); you may not use this file except in compliance +## with the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, +## software distributed under the License is distributed on an +## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +## KIND, either express or implied. See the License for the +## specific language governing permissions and limitations +## under the License. +## +## -------------------------------------------------------------- # # Based upon the NCSA server configuration files originally by Rob McCool. # @@ -27,7 +47,6 @@ # with "/", the value of ServerRoot is prepended -- so "foo.log" # with ServerRoot set to "/etc/apache2" will be interpreted by the # server as "/etc/apache2/foo.log". -# ### Section 1: Global Environment # @@ -197,7 +216,7 @@ # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # -ErrorLog ${APACHE_LOG_DIR}/error.log +ErrorLog /var/log/apache2/error.log # # LogLevel: Control the number of messages logged to the error_log. Info: Computing checksum on file /etc/apache2/apache2.conf Info: /Stage[main]/Php/File[/etc/apache2/apache2.conf]: Filebucketed /etc/apache2/apache2.conf to puppet with sum 8f5c4e0629a7c10aead1bf839cc57c72 Notice: /Stage[main]/Php/File[/etc/apache2/apache2.conf]/content: content changed '{md5}8f5c4e0629a7c10aead1bf839cc57c72' to '{md5}a599b17305bed7c089577967efe22f11' Notice: /Stage[main]/Php/File[/etc/apache2/apache2.conf]/mode: mode changed '0644' to '0775' Notice: /Stage[main]/Php/File[/etc/apache2/sites-available/default-ssl]/ensure: defined content as '{md5}bd7cf8ff22e0bb7f12e6917a00373867' Notice: /Stage[main]/Php/File[/etc/apache2/sites-enabled/default-ssl]/ensure: created Notice: /Stage[main]/Php/File[/etc/apache2/sites-available/default]/ensure: defined content as '{md5}0fbbaddacab794e595b505116ed92a43' Notice: /Stage[main]/Php/File[/etc/apache2/sites-enabled/default]/ensure: created Notice: /Stage[main]/Php/Exec[enable ssl module]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Package[python-pip]/ensure: ensure changed 'purged' to 'present' Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-paho]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-GitPython==0.3.1-beta2]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-psutil]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-gittle]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-pexpect]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[creating_target_for_python_cartridge-agent]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[creating_local_package_repo_for_python_cartridge-agent]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/File[//mnt/packs/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT.zip]/ensure: defined content as '{md5}c91cd95bbffaa79ca4aa970412b5cb34' Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[extracting_apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT.zip_for_cartridge-agent]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[setting_permission_for_python_cartridge-agent]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-yapsy]/returns: executed successfully Notice: /Stage[main]/Python_agent/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf]/content: --- /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf 2015-06-16 07:12:44.000000000 +0000 +++ /tmp/puppet-file20150628-4875-1m941i5-0 2015-06-28 09:19:02.346019003 +0000 @@ -16,29 +16,46 @@ # under the License. [agent] -mb.ip =MB-IP -mb.port =MB-PORT -listen.address =LISTEN_ADDR -thrift.receiver.ip =CEP-IP -thrift.receiver.port =CEP-PORT -thrift.server.admin.username =CEP-ADMIN-USERNAME -thrift.server.admin.password =CEP-ADMIN-PASSWORD -cep.stats.publisher.enabled =ENABLE_HEALTH_PUBLISHER -lb.private.ip =LB_PRIVATE_IP -lb.public.ip =LB_PUBLIC_IP -enable.artifact.update =ENABLE_ARTFCT_UPDATE -auto.commit =COMMIT_ENABLED -auto.checkout =CHECKOUT_ENABLED -artifact.update.interval =ARTFCT_UPDATE_INT -port.check.timeout =PORT_CHECK_TIMEOUT -enable.data.publisher =ENABLE-DATA-PUBLISHER -monitoring.server.ip =MONITORING-SERVER-IP -monitoring.server.port =MONITORING-SERVER-PORT -monitoring.server.secure.port =MONITORING-SERVER-SECURE-PORT -monitoring.server.admin.username =MONITORING-SERVER-ADMIN-USERNAME -monitoring.server.admin.password =MONITORING-SERVER-ADMIN-PASSWORD +mb.ip =52.74.245.148 +mb.port =1883 +listen.address =localhost +thrift.receiver.ip =127.0.0.1 +thrift.receiver.port =7711 +thrift.server.admin.username =admin +thrift.server.admin.password =admin +cep.stats.publisher.enabled =true +lb.private.ip = +lb.public.ip = +enable.artifact.update =true +auto.commit =false +auto.checkout =true +artifact.update.interval =15 +port.check.timeout =600000 +enable.data.publisher =false +monitoring.server.ip =127.0.0.1 +monitoring.server.port =7611 +monitoring.server.secure.port =7711 +monitoring.server.admin.username =admin +monitoring.server.admin.password =admin log.file.paths =LOG_FILE_PATHS -APPLICATION_PATH =APPLICATION-PATH -metadata.service.url =METADATA-SERVICE-URL +APPLICATION_PATH =/var/www/www +metadata.service.url =https://127.0.0.1:9443 super.tenant.repository.path =/repository/deployment/server/ tenant.repository.path =/repository/tenants/ +extension.instance.started =instance-started.sh +extension.start.servers =start-servers.sh +extension.instance.activated =instance-activated.sh +extension.artifacts.updated =artifacts-updated.sh +extension.clean =clean.sh +extension.mount.volumes =mount_volumes.sh +extension.member.started =member-started.sh +extension.member.activated =member-activated.sh +extension.member.suspended =member-suspended.sh +extension.member.terminated =member-terminated.sh +extension.complete.topology =complete-topology.sh +extension.complete.tenant =complete-tenant.sh +extension.domain.mapping.added =domain-mapping-added.sh +extension.domain.mapping.removed =domain-mapping-removed.sh +extension.artifacts.copy =artifacts-copy.sh +extension.tenant.subscribed =tenant-subscribed.sh +extension.tenant.unsubscribed =tenant-unsubscribed.sh \ No newline at end of file Info: Computing checksum on file /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf Info: /Stage[main]/Python_agent/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf]: Filebucketed /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf to puppet with sum d5d7d249311324138722c241208a739f Notice: /Stage[main]/Python_agent/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf]/content: content changed '{md5}d5d7d249311324138722c241208a739f' to '{md5}1d8ad8212d5cda6a825352fc98bf4b85' Notice: /Stage[main]/Python_agent/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/logging.ini]/content: --- /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/logging.ini 2015-06-16 07:12:44.000000000 +0000 +++ /tmp/puppet-file20150628-4875-2f99p9-0 2015-06-28 09:19:02.438019003 +0000 @@ -15,12 +15,11 @@ # specific language governing permissions and limitations # under the License. - [formatters] keys=default [formatter_default] -format=[%(asctime)s] %(levelname)s {%(filename)s:%(funcName)s} - %(message)s +format=%(asctime)s:%(levelname)s:%(message)s class=logging.Formatter [handlers] @@ -33,7 +32,7 @@ [handler_log_file] class=logging.FileHandler -level=DEBUG +level=INFO formatter=default args=("agent.log", "w") @@ -49,4 +48,4 @@ [logger_root] level=DEBUG formatter=default -handlers=console,error_file,log_file \ No newline at end of file +handlers=console,error_file \ No newline at end of file Info: Computing checksum on file /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/logging.ini Info: /Stage[main]/Python_agent/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/logging.ini]: Filebucketed /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/logging.ini to puppet with sum 77bbdcfa263a93d4ceadfd9b66c3f425 Notice: /Stage[main]/Python_agent/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/logging.ini]/content: content changed '{md5}77bbdcfa263a93d4ceadfd9b66c3f425' to '{md5}9dcc924f03e57212af9a897e3feacd9c' Notice: /Stage[main]/Python_agent/Python_agent::Copy_plugins[plugins/PhpServerStarterPlugin.yapsy-plugin]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/plugins/PhpServerStarterPlugin.yapsy-plugin]/ensure: defined content as '{md5}e7947e5f82413752492b18e0a0c0b884' Notice: /Stage[main]/Python_agent/Python_agent::Copy_plugins[plugins/PhpServerStarterPlugin.py]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/plugins/PhpServerStarterPlugin.py]/ensure: defined content as '{md5}f02dabd6e9cd0f3de5ef533d915b6b15' Notice: /Stage[main]/Python_agent/Exec[make extension folder]/returns: executed successfully Notice: /Stage[main]/Python_agent/Exec[make extension log folder]/returns: executed successfully Notice: /Stage[main]/Python_agent/Exec[make extension log file]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/domain-mapping-removed.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/domain-mapping-removed.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/clean.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/clean.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/member-suspended.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/member-suspended.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/mount-volumes.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/mount-volumes.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/domain-mapping-added.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/domain-mapping-added.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/start-servers.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/start-servers.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/member-terminated.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/member-terminated.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/complete-topology.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/complete-topology.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/instance-started.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/instance-started.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/instance-activated.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/instance-activated.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/artifacts-updated.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/artifacts-updated.sh]/ensure: created Notice: /Stage[main]/Python_agent/Exec[copy launch-params to agent_home]/returns: executed successfully Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/member-activated.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/member-activated.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/artifacts-copy.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/artifacts-copy.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Push_templates[extensions/complete-tenant.sh]/File[/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/complete-tenant.sh]/ensure: created Notice: /Stage[main]/Python_agent/Python_agent::Start[cartridge-agent]/Exec[starting_cartridge-agent]/returns: executed successfully Info: Creating state file /var/lib/puppet/state/state.yaml Notice: Finished catalog run in 317.71 seconds root@ip-172-31-12-161:~/bin# Ami ID - ami-aae8eef8
launch-params
Description: Binary data
public-ipv4 file is available. Read value value is **[54.169.42.52]** public ip is assigned. value is [54.169.42.52]. Remove file Public ip have assigned. Continue..
puppet_log
Description: Binary data
puppet.conf
Description: Binary data