Hi, Thanks for reply! My service name is PHP. I installed and configed puppet, create cartridge fllow by cwiki.
*) But in process install puppet and create cartridge, i have an errorr ntpdate[1258]: no server suitable for synchronization found So i edited file /etc/default/ntpdate *NTPSERVERS="10.61.11.36" // DNS Server of my network* *) And when create catridge, i have a warning. *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 <http://links.puppetlabs.com/env-settings-deprecations>* * (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1095:in `issue_deprecations')* *Info: Creating a new SSL key for 737913081442.default.php.puppet.test.org <http://737913081442.default.php.puppet.test.org>* **) *My configuration: Openstack server: 10.61.204.12 Stratos, puppet master: 10.61.204.78 I attached nodes.pp (in puppet master). Pls, check for me it's true or false?? Thanks, so much! On 14 August 2014 11:45, Udara Liyanage <[email protected]> wrote: > Hi, > > Could you describe how you create the cartridge. What is the service name > you provided in the 4th phase of "Step 2 - Configuring the cartridge" in > cartridge creation guide [1] > > Please provide stratos service-name: php > > [1] > https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Creating+a+Cartridge+on+OpenStack > > > On Thu, Aug 14, 2014 at 9:22 AM, Đinh Bá Dũng <[email protected]> > wrote: > >> It here, pls check for me! >> >> Thanks >> >> >> On 14 August 2014 10:36, Dinesh Bandara <[email protected]> wrote: >> >>> Hi, >>> >>> All the puppet logs related to cartridge can be found at >>> /tmp/puppet_log. Can you share that file? >>> >>> >>> On Thu, Aug 14, 2014 at 8:59 AM, Dungdb <[email protected]> wrote: >>> >>>> Dear devs, >>>> When i subcriber to cartridge. An instance on openstack started. But it >>>> can't get my app from github. >>>> >>>> In wso2carbon.log have no error. >>>> In /var/log/puppet have no file. Althought, puppet agent is running >>>> >>>> /var/log/apache-stratos# ps -ef | grep puppet >>>> root 1319 1 0 08:50 ? 00:00:00 /usr/bin/ruby >>>> /usr/bin/puppet agent >>>> root 1955 1790 0 08:56 pts/1 00:00:00 grep --color=auto >>>> puppet >>>> >>>> In /var/log/apache-stratos/cartridge-agent.log is empty??? >>>> >>>> How to check cartridge agent running? >>>> >>>> Sent from my iPhone >>>> >>>> On Aug 12, 2014, at 10:28 AM, Udara Liyanage <[email protected]> wrote: >>>> >>>> Hi, >>>> >>>> Did your instance get activated? >>>> Activated means instance is spawned, relative service server are >>>> started and then cartridge agent send instance activated event. >>>> >>>> If not ssh into the instance and check for puppet logs. >>>> If puppet logs are ok, then look for cartridge agent logs in >>>> /var/logs/apache-stratos. >>>> >>>> >>>> >>>> >>>> Touched, not typed. Erroneous words are a feature, not a typo. >>>> On Aug 11, 2014 11:13 PM, "Nguyen Anh Tu" <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> Please attach log file for more detail. >>>>> >>>>> Thanks, >>>>> >>>>> --Tuna >>>>> >>>>> >>>>> On Tue, Aug 12, 2014 at 12:30 AM, Dungdb <[email protected]> wrote: >>>>> >>>>>> Dear all, >>>>>> I have just study about Stratos. I installed Stratos 4.0. But when i >>>>>> subcriber to cartridge, my app from github can't clone to php cartridge >>>>>> (lauching on openstack). What is cause? Pls tell me why? >>>>>> >>>>>> Sent from my iPhone >>>>> >>>>> >>>>> >>> >>> >>> -- >>> *Dinesh Bandara* >>> >>> Software Engineer >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> >> >> >> -- >> *Đinh Bá Dũng* >> *Tel:* >> * 0984.155.004**YM/Skype:* >> * dinhbadunga2k32 **Gmail:** [email protected] <[email protected]>* >> > > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > -- *Đinh Bá Dũng* *Tel:* * 0984.155.004**YM/Skype:* * dinhbadunga2k32**Gmail:** [email protected] <[email protected]>*
This script will install and configure puppet agent, do you want to continue [y/n]y --2014-08-13 10:45:43-- http://169.254.169.254/latest/user-data Connecting to 10.61.11.38:3128... connected. Proxy request sent, awaiting response... 504 Gateway Time-out 2014-08-13 10:48:43 ERROR 504: Gateway Time-out. Please provide stratos service-name:php Please provide puppet master IP:10.61.204.78 Please provide puppet master hostname [puppet.stratos.org]:puppet.test.org Node Id 737913081442.default.php Domain puppet.test.org \nRunning puppet installation with arguments: -n737913081442.default.php -dpuppet.test.org -s10.61.204.78 Puppet Installer v1 2014-02-12 This script will install PuppetLab puppet v3. Thilina Piyasundara. <[email protected]> == [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.test.org Puppet Masters IP address : 10.61.204.78 Domain of the deployment : puppet.test.org FQDN of this node : 737913081442.default.php.puppet.test.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 0 not upgraded. After this operation, 9,430 kB disk space will be freed. (Reading database ... 47617 files and directories currently installed.) Removing ubuntu-minimal ... Removing locales ... Processing triggers for man-db ... 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 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 0 not upgraded. Need to get 3359 kB of archives. After this operation, 9372 kB of additional disk space will be used. Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise/main locales all 2.13+git20120306-3 [3359 kB] Fetched 3359 kB in 0s (8470 kB/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 ... 47055 files and directories currently installed.) Unpacking locales (from .../locales_2.13+git20120306-3_all.deb) ... Processing triggers for man-db ... 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 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: 'Asia/Ho_Chi_Minh' Local time is now: Wed Aug 13 17:49:32 ICT 2014. Universal Time is now: Wed Aug 13 10:49:32 UTC 2014. 13 Aug 17:49:40 ntpdate[4086]: adjust time server 10.61.11.36 offset -0.059265 sec Selecting previously unselected package puppetlabs-release. (Reading database ... 47614 files and directories currently installed.) Unpacking puppetlabs-release (from puppetlabs-release-precise.deb) ... Setting up puppetlabs-release (1.0-7) ... Selecting previously unselected package libreadline5. (Reading database ... 47620 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.4_amd64.deb) ... Selecting previously unselected package ruby1.8. Unpacking ruby1.8 (from .../ruby1.8_1.8.7.352-2ubuntu1.4_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.1.0-1puppetlabs1_amd64.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 ruby-rgen. Unpacking ruby-rgen (from .../ruby-rgen_0.6.5-1puppetlabs1_all.deb) ... Selecting previously unselected package puppet-common. Unpacking puppet-common (from .../puppet-common_3.6.2-1puppetlabs1_all.deb) ... Selecting previously unselected package puppet. Unpacking puppet (from .../puppet_3.6.2-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.4) ... Setting up ruby1.8 (1.8.7.352-2ubuntu1.4) ... 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.1.0-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 ruby-rgen (0.6.5-1puppetlabs1) ... Setting up puppet-common (3.6.2-1puppetlabs1) ... Setting up puppet (3.6.2-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:1095:in `issue_deprecations') Info: Creating a new SSL key for 737913081442.default.php.puppet.test.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 737913081442.default.php.puppet.test.org Info: Certificate Request fingerprint (SHA256): 2D:21:9E:71:77:64:34:E1:44:77:A5:8B:BE:39:60:13:06:6E:78:CA:B7:46:E6:6C:83:B7:D0:59:09:6D:6C:D7 Info: Caching certificate for 737913081442.default.php.puppet.test.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/facter]/ensure: created Notice: /File[/var/lib/puppet/lib/facter/stratos_facts.rb]/ensure: defined content as '{md5}58a2fc506397b18254c4972bb31abf41' Info: Loading facts in /var/lib/puppet/lib/facter/stratos_facts.rb Info: Caching catalog for 737913081442.default.php.puppet.test.org Info: Applying configuration version '1407922264' Notice: /Stage[main]/Java/File[/etc/profile.d/java_home.sh]/ensure: created Notice: /Stage[main]/Java/File[/opt/jdk-7u67-linux-x64.tar.gz]/ensure: defined content as '{md5}81e3e2df33e13781e5fac5756ed90e67' Notice: /Stage[main]/Java/Exec[Install java]/returns: executed successfully Notice: /Stage[main]/Java/File[/opt/java]/ensure: created Notice: /Stage[main]/Php/File[/etc/apt/apt.conf.d/90forceyes]/ensure: defined content as '{md5}a0984f2488154022d95ebeb68900ce71' Notice: /Stage[main]/Php/Exec[update-apt]/returns: executed successfully 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[git]/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 11:16:59.000000000 +0700 +++ /tmp/puppet-file20140813-5054-1qccva2-0 2014-08-13 18:04:09.424574245 +0700 @@ -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: /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}7072997b33f2a06d5ff1759d24513888' 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}bf4b86909b380e0bf92ee9193f4bb221' 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]/Php/Exec[apache2 restart]/returns: executed successfully Info: Class[Php]: Scheduling refresh of Class[Agent] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/subscription-domain-added.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/artifacts-updated.sh] Info: Class[Agent]: Scheduling refresh of Agent::Start[cartridge-agent] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/complete-tenant.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/member-suspended.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/subscription-domain-removed.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[conf/templates/jndi.properties.template] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/complete-topology.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/start-servers.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/clean.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[conf/log4j.properties] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/mount-volumes.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/instance-activated.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/instance-started.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[bin/stratos.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/artifacts-copy.sh] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/member-activated.sh] Info: Class[Agent]: Scheduling refresh of Agent::Initialize[cartridge-agent] Info: Class[Agent]: Scheduling refresh of Exec[copy launch-params to carbon_home] Info: Class[Agent]: Scheduling refresh of Agent::Push_templates[extensions/member-terminated.sh] Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[extracting_stratoscartridge-agent-4.0.0.zip_for_cartridge-agent] Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[setting_permission_for_cartridge-agent] Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[creating_local_package_repo_for_cartridge-agent] Info: Agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[creating_target_for_cartridge-agent]
ntpdate
Description: Binary data
nodes.pp
Description: Binary data
