Info: FileBucket got a duplicate file {md5}558e8e831a8a4073a8df6f2c3a3878de
Info: /Stage[main]/Esb/Esb::Push_templates[conf/user-mgt.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/user-mgt.xml]: Filebucketed /mnt/wso2esb-4.8.1/repository/conf/user-mgt.xml to puppet with sum 558e8e831a8a4073a8df6f2c3a3878de
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/user-mgt.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/user-mgt.xml]/content: content changed '{md5}558e8e831a8a4073a8df6f2c3a3878de' to '{md5}5b8ec6dfeda81c56c08b7d5017ac63dc'
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/security/authenticators.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/security/authenticators.xml]/content:
--- /mnt/wso2esb-4.8.1/repository/conf/security/authenticators.xml	2013-09-04 12:25:24.000000000 +0000
+++ /tmp/puppet-file20150429-2427-nsredw-0	2015-04-29 05:05:58.676824594 +0000
@@ -28,21 +28,21 @@
     </Authenticator>

     <!-- Authenticator Configurations for SAML2SSOAuthenticator -->
-    <Authenticator name="SAML2SSOAuthenticator" disabled="true">
+    <Authenticator name="SAML2SSOAuthenticator" disabled="SSO_DISABLED">
         <Priority>10</Priority>
         <Config>
             <Parameter name="LoginPage">/carbon/admin/login.jsp</Parameter>
-            <Parameter name="ServiceProviderID">carbonServer</Parameter>
-            <Parameter name="IdentityProviderSSOServiceURL">https://localhost:9443/samlsso</Parameter>
+            <Parameter name="ServiceProviderID">ESB</Parameter>
+            <Parameter name="IdentityProviderSSOServiceURL">https://IDP_URL:9445/samlsso</Parameter>
             <Parameter name="NameIDPolicyFormat">urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</Parameter>
-	</Config>
-
-	<!-- If this authenticator should skip any URI from authentication, specify it under "SkipAuthentication"
-	<SkipAuthentication>
+        </Config>
+
+        <!-- If this authenticator should skip any URI from authentication, specify it under "SkipAuthentication"
+        <SkipAuthentication>
             <UrlContains></UrlContains>
         </SkipAuthentication> -->
-
-	<!-- If this authenticator should skip any URI from session validation, specify it under "SkipAuthentication
+
+        <!-- If this authenticator should skip any URI from session validation, specify it under "SkipAuthentication
         <SkipSessionValidation>
             <UrlContains></UrlContains>
         </SkipSessionValidation> -->

Info: Computing checksum on file /mnt/wso2esb-4.8.1/repository/conf/security/authenticators.xml
Info: FileBucket got a duplicate file {md5}466c23837c9a296f09e1758340dda43f
Info: /Stage[main]/Esb/Esb::Push_templates[conf/security/authenticators.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/security/authenticators.xml]: Filebucketed /mnt/wso2esb-4.8.1/repository/conf/security/authenticators.xml to puppet with sum 466c23837c9a296f09e1758340dda43f
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/security/authenticators.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/security/authenticators.xml]/content: content changed '{md5}466c23837c9a296f09e1758340dda43f' to '{md5}9b0473dd500fa4d78735e2b340e73dc9'
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/tomcat/catalina-server.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/tomcat/catalina-server.xml]/content:
--- /mnt/wso2esb-4.8.1/repository/conf/tomcat/catalina-server.xml	2014-01-02 17:52:06.000000000 +0000
+++ /tmp/puppet-file20150429-2427-1h6ds8x-0	2015-04-29 05:05:58.792825133 +0000
@@ -24,9 +24,16 @@
 	optional attributes:

 	proxyPort="80"
+
+                proxyPort="8280"
+
+
+
     -->
     <Connector  protocol="org.apache.coyote.http11.Http11NioProtocol"
                 port="9763"
+                proxyPort="8280"
+
                 redirectPort="9443"
                 bindOnInit="false"
                 maxHttpHeaderSize="8192"
@@ -47,10 +54,17 @@
     <!--
 	optional attributes:

+
+
 	proxyPort="443"
+
+                proxyPort="8243"
+
     -->
     <Connector  protocol="org.apache.coyote.http11.Http11NioProtocol"
                 port="9443"
+                proxyPort="8243"
+
                 bindOnInit="false"
                 sslProtocol="TLS"
                 maxHttpHeaderSize="8192"
@@ -84,7 +98,7 @@
       <Host name="localhost" unpackWARs="true" deployOnStartup="false" autoDeploy="false" appBase="${carbon.home}/repository/deployment/server/webapps/">
           <Valve className="org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve"/>
           <Valve className="org.apache.catalina.valves.AccessLogValve" directory="${carbon.home}/repository/logs"
-               prefix="http_access_management_console_" suffix=".log"
+               prefix="http_access_" suffix=".log"
                pattern="combined" />
           <Valve className="org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve" threshold="600"/>
           <Valve className="org.wso2.carbon.tomcat.ext.valves.CompositeValve"/>

Info: Computing checksum on file /mnt/wso2esb-4.8.1/repository/conf/tomcat/catalina-server.xml
Info: FileBucket got a duplicate file {md5}62a91a2de5ebdb862cd7463bc970b59a
Info: /Stage[main]/Esb/Esb::Push_templates[conf/tomcat/catalina-server.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/tomcat/catalina-server.xml]: Filebucketed /mnt/wso2esb-4.8.1/repository/conf/tomcat/catalina-server.xml to puppet with sum 62a91a2de5ebdb862cd7463bc970b59a
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/tomcat/catalina-server.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/tomcat/catalina-server.xml]/content: content changed '{md5}62a91a2de5ebdb862cd7463bc970b59a' to '{md5}80151c24a36cd0b127983f9ec0958954'
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/datasources/master-datasources.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/datasources/master-datasources.xml]/content:
--- /mnt/wso2esb-4.8.1/repository/conf/datasources/master-datasources.xml	2013-09-04 12:25:24.000000000 +0000
+++ /tmp/puppet-file20150429-2427-k66q95-0	2015-04-29 05:05:58.960824979 +0000
@@ -14,7 +14,7 @@
             </jndiConfig>
             <definition type="RDBMS">
                 <configuration>
-                    <url>jdbc:h2:repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000</url>
+                    <url>jdbc:h2:/mnt//wso2esb-4.8.1/repository/database/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000</url>
                     <username>wso2carbon</username>
                     <password>wso2carbon</password>
                     <driverClassName>org.h2.Driver</driverClassName>
@@ -27,6 +27,76 @@
             </definition>
         </datasource>

+                <datasource>
+            <name>WSO2_GOVERNANCE_DB</name>
+            <description>The datasource used for governance MySQL database</description>
+            <jndiConfig>
+                <name>jdbc/REGISTRY_DB</name>
+            </jndiConfig>
+            <definition type="RDBMS">
+                <configuration>
+                    <url>jdbc:mysql://:/REGISTRY_DB?autoReconnect=true</url>
+                    <username>DB_USER</username>
+                    <password>DB_PASSWORD</password>
+                    <driverClassName>com.mysql.jdbc.Driver</driverClassName>
+                    <maxActive></maxActive>
+                    <maxWait></maxWait>
+                    <minIdle>5</minIdle>
+                    <testOnBorrow>true</testOnBorrow>
+                    <validationQuery>SELECT 1</validationQuery>
+                    <validationInterval>30000</validationInterval>
+                </configuration>
+            </definition>
+        </datasource>
+
+        <datasource>
+            <name>WSO2_USERSTORE_DB</name>
+            <description>The datasource used for userstore MySQL database</description>
+            <jndiConfig>
+                <name>jdbc/USERSTORE_DB</name>
+            </jndiConfig>
+            <definition type="RDBMS">
+                <configuration>
+                    <url>jdbc:mysql://:/USERSTORE_DB?autoReconnect=true</url>
+                    <username>DB_USER</username>
+                    <password>DB_PASSWORD</password>
+                    <driverClassName>com.mysql.jdbc.Driver</driverClassName>
+                    <maxActive></maxActive>
+                    <maxWait></maxWait>
+                    <minIdle>5</minIdle>
+                    <testOnBorrow>true</testOnBorrow>
+                    <validationQuery>SELECT 1</validationQuery>
+                    <validationInterval>30000</validationInterval>
+                </configuration>
+            </definition>
+        </datasource>
+
+<!-- CONFIG DBS -->
+
+        <datasource>
+            <name>WSO2_ESB_CONFIG_DB</name>
+            <description>The datasource used for ESB_CONFIG MySQL database</description>
+            <jndiConfig>
+              <name>jdbc/ESB_CONFIG_DB</name>
+            </jndiConfig>
+            <definition type="RDBMS">
+                <configuration>
+                  <url>jdbc:mysql://:/ESB_CONFIG_DB?autoReconnect=true</url>
+                    <username>DB_USER</username>
+                    <password>DB_PASSWORD</password>
+                    <driverClassName>com.mysql.jdbc.Driver</driverClassName>
+                    <maxActive></maxActive>
+                    <maxWait></maxWait>
+                    <minIdle>5</minIdle>
+                    <testOnBorrow>true</testOnBorrow>
+                    <validationQuery>SELECT 1</validationQuery>
+                    <validationInterval>30000</validationInterval>
+                </configuration>
+            </definition>
+        </datasource>
+
+
+
         <!-- For an explanation of the properties, see: http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html -->
         <!--datasource>
             <name>SAMPLE_DATA_SOURCE</name>

Info: Computing checksum on file /mnt/wso2esb-4.8.1/repository/conf/datasources/master-datasources.xml
Info: FileBucket got a duplicate file {md5}808c902e318f6a67bd159168721251e3
Info: /Stage[main]/Esb/Esb::Push_templates[conf/datasources/master-datasources.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/datasources/master-datasources.xml]: Filebucketed /mnt/wso2esb-4.8.1/repository/conf/datasources/master-datasources.xml to puppet with sum 808c902e318f6a67bd159168721251e3
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/datasources/master-datasources.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/datasources/master-datasources.xml]/content: content changed '{md5}808c902e318f6a67bd159168721251e3' to '{md5}3200be3520a079255162720dab61bef1'
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/carbon.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/carbon.xml]/content:
--- /mnt/wso2esb-4.8.1/repository/conf/carbon.xml	2014-01-31 19:28:58.000000000 +0000
+++ /tmp/puppet-file20150429-2427-drnh2p-0	2015-04-29 05:05:59.084824970 +0000
@@ -37,7 +37,7 @@
     <!--
        Product Version
     -->
-    <Version>4.8.1</Version>
+    <Version>4.8.0</Version>

     <!--
        Host name or IP address of the machine hosting this server
@@ -45,12 +45,11 @@
        This is will become part of the End Point Reference of the
        services deployed on this server instance.
     -->
-    <!--HostName>www.wso2.org</HostName-->
-
+        <HostName>mgt.esb.wso2.com</HostName>
     <!--
     Host name to be used for the Carbon management console
     -->
-    <!--MgtHostName>mgt.wso2.org</MgtHostName-->
+    <MgtHostName>mgt.esb.wso2.com</MgtHostName>

     <!--
         The URL of the back end server. This is where the admin services are hosted and
@@ -196,7 +195,7 @@
         This property should only be used to determine deployment specific details that are
         applicable only in a cloud deployment, i.e when the server deployed *-as-a-service.
     -->
-    <IsCloudDeployment>false</IsCloudDeployment>
+    <IsCloudDeployment>true</IsCloudDeployment>

     <!--
 	Property to determine whether usage data should be collected for metering purposes
@@ -317,10 +316,7 @@
             <!-- Private Key password-->
             <KeyPassword>wso2carbon</KeyPassword>
         </KeyStore>
-
-		 <!--
-			Encrypt Decrypt Store will be used for encrypting and decrypting
-		-->
+
         <RegistryKeyStore>
             <!-- Keystore file location-->
             <Location>${carbon.home}/repository/resources/security/wso2carbon.jks</Location>
@@ -512,14 +508,7 @@
 	and in  worker nodes set only AutoCheckout to true.
     -->
     <DeploymentSynchronizer>
-        <Enabled>false</Enabled>
-        <AutoCommit>false</AutoCommit>
-        <AutoCheckout>true</AutoCheckout>
-        <RepositoryType>svn</RepositoryType>
-        <SvnUrl>http://svnrepo.example.com/repos/</SvnUrl>
-        <SvnUser>username</SvnUser>
-        <SvnPassword>password</SvnPassword>
-        <SvnUrlAppendTenantId>true</SvnUrlAppendTenantId>
+      <Enabled>false</Enabled>
     </DeploymentSynchronizer>

     <!-- Deployment Synchronizer Configuration. Uncomment the following section when running with "registry based" dep sync.
@@ -597,7 +586,7 @@
     -->
     <FeatureRepository>
 	<RepositoryName>default repository</RepositoryName>
-	<RepositoryURL>${p2.repo.url}</RepositoryURL>
+	<RepositoryURL>http://dist.wso2.org/p2/carbon/releases/4.2.0</RepositoryURL>
     </FeatureRepository>

     <!--

Info: Computing checksum on file /mnt/wso2esb-4.8.1/repository/conf/carbon.xml
Info: FileBucket got a duplicate file {md5}7aa3cf386fd31410b1fa13f5323751b5
Info: /Stage[main]/Esb/Esb::Push_templates[conf/carbon.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/carbon.xml]: Filebucketed /mnt/wso2esb-4.8.1/repository/conf/carbon.xml to puppet with sum 7aa3cf386fd31410b1fa13f5323751b5
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/carbon.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/carbon.xml]/content: content changed '{md5}7aa3cf386fd31410b1fa13f5323751b5' to '{md5}c6f2603f745b7b7910875649d823b95b'
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/registry.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/registry.xml]/content:
--- /mnt/wso2esb-4.8.1/repository/conf/registry.xml	2013-09-04 12:25:24.000000000 +0000
+++ /tmp/puppet-file20150429-2427-fdxar5-0	2015-04-29 05:05:59.260824940 +0000
@@ -1,100 +1,138 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<!--
-  ~ Copyright 2005-2011 WSO2, Inc. (http://wso2.com)
-  ~
-  ~ Licensed 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.
-  -->
-<wso2registry>
-
-    <!--
-    For details on configuring different config & governance registries see;
-    http://wso2.org/library/tutorials/2010/04/sharing-registry-space-across-multiple-product-instances
-    -->
-
-    <currentDBConfig>wso2registry</currentDBConfig>
-    <readOnly>false</readOnly>
-    <enableCache>true</enableCache>
-    <registryRoot>/</registryRoot>
-
-    <dbConfig name="wso2registry">
-        <dataSource>jdbc/WSO2CarbonDB</dataSource>
-    </dbConfig>
-
-   <!--<handler class="org.wso2.carbon.registry.extensions.handlers.SynapseRepositoryHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/vnd.apache.synapse</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.SynapseRepositoryHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/vnd.apache.esb</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.Axis2RepositoryHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/vnd.apache.axis2</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.Axis2RepositoryHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/vnd.apache.wsas</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.WSDLMediaTypeHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/wsdl+xml</property>
-        </filter>
-    </handler>
-
-    <handler class="org.wso2.carbon.registry.extensions.handlers.XSDMediaTypeHandler">
-        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
-            <property name="mediaType">application/x-xsd+xml</property>
-        </filter>
-    </handler> -->
-
-    <!--remoteInstance url="https://localhost:9443/registry">
-        <id>instanceid</id>
-        <username>username</username>
-        <password>password</password>
-    </remoteInstance-->
-
-    <!--remoteInstance url="https://localhost:9443/registry">
-        <id>instanceid</id>
-        <dbConfig>wso2registry</dbConfig>
-        <readOnly>false</readOnly>
-        <enableCache>true</enableCache>
-        <registryRoot>/</registryRoot>
-    </remoteInstance-->
-
-    <!--mount path="/_system/config" overwrite="true|false|virtual">
-        <instanceId>instanceid</instanceId>
-        <targetPath>/_system/nodes</targetPath>
-    </mount-->
-
-
-    <versionResourcesOnChange>true</versionResourcesOnChange>
-
-    <!-- NOTE: You can edit the options under "StaticConfiguration" only before the
-     startup. -->
-    <staticConfiguration>
-        <versioningProperties>true</versioningProperties>
-        <versioningComments>true</versioningComments>
-        <versioningTags>true</versioningTags>
-        <versioningRatings>true</versioningRatings>
-    </staticConfiguration>
-</wso2registry>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+  ~ Copyright 2005-2011 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ Licensed 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.
+  -->
+<wso2registry>
+
+    <!--
+    For details on configuring different config & governance registries see;
+    http://wso2.org/library/tutorials/2010/04/sharing-registry-space-across-multiple-product-instances
+    -->
+
+    <currentDBConfig>wso2registry</currentDBConfig>
+    <readOnly>false</readOnly>
+    <enableCache>true</enableCache>
+    <registryRoot>/</registryRoot>
+
+    <dbConfig name="wso2registry">
+        <dataSource>jdbc/WSO2CarbonDB</dataSource>
+    </dbConfig>
+
+        <dbConfig name="governance">
+        <dataSource>jdbc/REGISTRY_DB</dataSource>
+    </dbConfig>
+
+    <remoteInstance url="">
+        <id>governance</id>
+        <dbConfig>governance</dbConfig>
+        <readOnly>false</readOnly>
+        <registryRoot>/</registryRoot>
+        <enableCache>true</enableCache>
+        <cacheId>DB_USER@jdbc:mysql://:/REGISTRY_DB</cacheId>
+    </remoteInstance>
+
+    <mount path="/_system/governance" overwrite="true">
+        <instanceId>governance</instanceId>
+        <targetPath>/_system/governance</targetPath>
+    </mount>
+
+    <dbConfig name="config">
+        <dataSource>jdbc/ESB_CONFIG_DB</dataSource>
+    </dbConfig>
+
+    <remoteInstance url="">
+        <id>config</id>
+        <dbConfig>config</dbConfig>
+        <readOnly>false</readOnly>
+        <registryRoot>/</registryRoot>
+        <enableCache>true</enableCache>
+        <cacheId>DB_USER@jdbc:mysql://:/ESB_CONFIG_DB</cacheId>
+    </remoteInstance>
+
+    <mount path="/_system/config" overwrite="true">
+        <instanceId>config</instanceId>
+        <targetPath>/_system/ESB_CONFIG_PATH</targetPath>
+    </mount>
+
+
+   <!--<handler class="org.wso2.carbon.registry.extensions.handlers.SynapseRepositoryHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/vnd.apache.synapse</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.SynapseRepositoryHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/vnd.apache.esb</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.Axis2RepositoryHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/vnd.apache.axis2</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.Axis2RepositoryHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/vnd.apache.wsas</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.WSDLMediaTypeHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/wsdl+xml</property>
+        </filter>
+    </handler>
+
+    <handler class="org.wso2.carbon.registry.extensions.handlers.XSDMediaTypeHandler">
+        <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
+            <property name="mediaType">application/x-xsd+xml</property>
+        </filter>
+    </handler> -->
+
+    <!--remoteInstance url="https://localhost:9443/registry">
+        <id>instanceid</id>
+        <username>username</username>
+        <password>password</password>
+    </remoteInstance-->
+
+    <!--remoteInstance url="https://localhost:9443/registry">
+        <id>instanceid</id>
+        <dbConfig>wso2registry</dbConfig>
+        <readOnly>false</readOnly>
+        <enableCache>true</enableCache>
+        <registryRoot>/</registryRoot>
+    </remoteInstance-->
+
+    <!--mount path="/_system/config" overwrite="true|false|virtual">
+        <instanceId>instanceid</instanceId>
+        <targetPath>/_system/nodes</targetPath>
+    </mount-->
+
+
+    <versionResourcesOnChange>true</versionResourcesOnChange>
+
+    <!-- NOTE: You can edit the options under "StaticConfiguration" only before the
+     startup. -->
+    <staticConfiguration>
+        <versioningProperties>true</versioningProperties>
+        <versioningComments>true</versioningComments>
+        <versioningTags>true</versioningTags>
+        <versioningRatings>true</versioningRatings>
+    </staticConfiguration>
+</wso2registry>
+

Info: Computing checksum on file /mnt/wso2esb-4.8.1/repository/conf/registry.xml
Info: FileBucket got a duplicate file {md5}92367b0307c3dc1e8b18d99790b67056
Info: /Stage[main]/Esb/Esb::Push_templates[conf/registry.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/registry.xml]: Filebucketed /mnt/wso2esb-4.8.1/repository/conf/registry.xml to puppet with sum 92367b0307c3dc1e8b18d99790b67056
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/registry.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/registry.xml]/content: content changed '{md5}92367b0307c3dc1e8b18d99790b67056' to '{md5}82b05eb2cf2d38cb69198fb173d1c937'
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/axis2/axis2.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/axis2/axis2.xml]/content:
--- /mnt/wso2esb-4.8.1/repository/conf/axis2/axis2.xml	2014-01-31 14:06:42.000000000 +0000
+++ /tmp/puppet-file20150429-2427-1330e8k-0	2015-04-29 05:05:59.476824436 +0000
@@ -256,18 +256,19 @@
         <parameter name="port" locked="false">8280</parameter>
         <parameter name="non-blocking" locked="false">true</parameter>
         <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
-        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
         <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter>
         <!--<parameter name="priorityConfigFile" locked="false">location of priority configuration file</parameter>-->
+          <parameter name="WSDLEPRPrefix" locked="false">http://mgt.esb.wso2.com:8280</parameter>
+        <!--parameter name="proxyPort">8280</parameter-->
     </transportReceiver>

      <transportReceiver name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLListener">
         <parameter name="port" locked="false">8243</parameter>
         <parameter name="non-blocking" locked="false">true</parameter>
         <!--parameter name="bind-address" locked="false">hostname or IP address</parameter-->
-        <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter-->
- 	 <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter>
-        <parameter name="keystore" locked="false">
+         <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter>
+          <parameter name="WSDLEPRPrefix" locked="false">https://mgt.esb.wso2.com:8243</parameter>
+	 <parameter name="keystore" locked="false">
             <KeyStore>
                 <Location>repository/resources/security/wso2carbon.jks</Location>
                 <Type>JKS</Type>
@@ -459,7 +460,7 @@
      getting this node to join the cluster.
      -->
     <clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
-                enable="false">
+                enable="CLUSTERING">

         <!--
            This parameter indicates whether the cluster has to be automatically initalized
@@ -489,7 +490,7 @@
          The clustering domain/group. Nodes in the same group will belong to the same multicast
          domain. There will not be interference between nodes in different groups.
         -->
-        <parameter name="domain">wso2.carbon.domain</parameter>
+	 <parameter name="domain">wso2.esb.domain</parameter>

         <!-- The multicast address to be used -->
         <!--<parameter name="mcastAddress">228.0.0.4</parameter>-->
@@ -509,8 +510,7 @@
             <parameter name="mcastBindAddress">127.0.0.1</parameter>
         -->
         <!-- The host name or IP address of this member -->
-
-        <parameter name="localMemberHost">127.0.0.1</parameter>
+	<parameter name="localMemberHost">192.168.30.176</parameter>

         <!--
             The bind adress of this member. The difference between localMemberHost & localMemberBindAddress
@@ -525,7 +525,7 @@
         The TCP port used by this member. This is the port through which other nodes will
         contact this member
          -->
-        <parameter name="localMemberPort">4100</parameter>
+	<parameter name="localMemberPort">4000</parameter>

         <!--
             The bind port of this member. The difference between localMemberPort & localMemberBindPort
@@ -542,25 +542,20 @@
         <parameter name="properties">
             <property name="backendServerURL" value="https://${hostName}:${httpsPort}/services/"/>
             <property name="mgtConsoleURL" value="https://${hostName}:${httpsPort}/"/>
- 	    <!-- Manger Setup with Port Mapping-->
-	    <!--property name="port.mapping.8280" value="9764"/>
-            <property name="port.mapping.8243" value="9444"/>
-            <property name="subDomain" value="mgt"/-->
-
-	    <!-- Worker Setup-->
-	    <!--property name="subDomain" value="worker"/-->
+            <property name="port.mapping.8243" value="9443"/>
+            <property name="port.mapping.80" value="8280"/>
+            <property name="port.mapping.443" value="8243"/>
+            <property name="port.mapping.8280" value="9763"/>
+            <property name="subDomain" value="test" />
         </parameter>

         <!--
            The list of static or well-known members. These entries will only be valid if the
            "membershipScheme" above is set to "wka"
         -->
-        <members>
-            <member>
-                <hostName>127.0.0.1</hostName>
-                <port>4000</port>
-            </member>
-        </members>
+
+	<members>
+	</members>

         <!--
         Enable the groupManagement entry if you need to run this node as a cluster manager.

Info: Computing checksum on file /mnt/wso2esb-4.8.1/repository/conf/axis2/axis2.xml
Info: FileBucket got a duplicate file {md5}1ec72dce00b7c5ac7fff1ad2fa6205bd
Info: /Stage[main]/Esb/Esb::Push_templates[conf/axis2/axis2.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/axis2/axis2.xml]: Filebucketed /mnt/wso2esb-4.8.1/repository/conf/axis2/axis2.xml to puppet with sum 1ec72dce00b7c5ac7fff1ad2fa6205bd
Notice: /Stage[main]/Esb/Esb::Push_templates[conf/axis2/axis2.xml]/File[/mnt//wso2esb-4.8.1/repository/conf/axis2/axis2.xml]/content: content changed '{md5}1ec72dce00b7c5ac7fff1ad2fa6205bd' to '{md5}e6dff5475b74d2d0d1b53b48a977218d'
Notice: /Stage[main]/Esb/Esb::Start[esb]/Exec[strating_esb]/returns: executed successfully
Info: Class[Esb]: Scheduling refresh of Class[Python_agent]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/complete-topology.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/clean.sh]
Info: Class[Python_agent]: Scheduling refresh of Exec[make extension log file]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Initialize[cartridge-agent]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/member-activated.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/artifacts-copy.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/complete-tenant.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/domain-mapping-removed.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/start-servers.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/member-suspended.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Start[cartridge-agent]
Info: Class[Python_agent]: Scheduling refresh of Exec[make extension log folder]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/instance-activated.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/member-terminated.sh]
Info: Class[Python_agent]: Scheduling refresh of Exec[copy launch-params to agent_home]
Info: Class[Python_agent]: Scheduling refresh of Exec[make extension folder]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/instance-started.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/domain-mapping-added.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/mount-volumes.sh]
Info: Class[Python_agent]: Scheduling refresh of Python_agent::Push_templates[extensions/artifacts-updated.sh]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[pip installs-psutil]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[pip installs-GitPython==0.3.1-beta2]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[extracting_apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT.zip_for_cartridge-agent]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[pip installs-paho]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[setting_permission_for_python_cartridge-agent]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[pip installs-pexpect]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[creating_target_for_python_cartridge-agent]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[pip installs-yapsy]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[pip installs-gittle]
Info: Python_agent::Initialize[cartridge-agent]: Scheduling refresh of Exec[creating_local_package_repo_for_python_cartridge-agent]
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-paho]: Triggered 'refresh' from 1 events
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-GitPython==0.3.1-beta2]: Triggered 'refresh' from 1 events
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-psutil]: Triggered 'refresh' from 1 events
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-gittle]: Triggered 'refresh' from 1 events
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[pip installs-pexpect]: Triggered 'refresh' from 1 events
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_target_for_python_cartridge-agent]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[creating_local_package_repo_for_python_cartridge-agent]: Triggered 'refresh' from 1 events
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[extracting_apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT.zip_for_cartridge-agent]: Triggered 'refresh' from 1 events
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[setting_permission_for_python_cartridge-agent]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-yapsy]/returns: executed successfully
Notice: /Stage[main]/Python_agent/Python_agent::Initialize[cartridge-agent]/Exec[pip installs-yapsy]: Triggered 'refresh' from 1 events
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-04-02 11:20:26.000000000 +0000
+++ /tmp/puppet-file20150429-2427-a7jxfw-0	2015-04-29 05:06:13.076824937 +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                                 =192.168.30.136
+mb.port                               =1883
+listen.address                        =localhost
+thrift.receiver.ip                    =192.168.30.136
+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                  =192.168.30.136
+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                      =/mnt//wso2esb-4.8.1
+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: FileBucket got a duplicate file {md5}d5d7d249311324138722c241208a739f
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}0c222155a900900b7ebc00136bb3d413'
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-03-20 13:37:46.000000000 +0000
+++ /tmp/puppet-file20150429-2427-dqryyj-0	2015-04-29 05:06:13.320824937 +0000
@@ -1,26 +1,8 @@
-# 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.
-
-
 [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 +15,7 @@

 [handler_log_file]
 class=logging.FileHandler
-level=DEBUG
+level=INFO
 formatter=default
 args=("agent.log", "w")

@@ -49,4 +31,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: FileBucket got a duplicate file {md5}77bbdcfa263a93d4ceadfd9b66c3f425
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}08579fa47b92f04fb3d5b81231ebb385'
Notice: /Stage[main]/Python_agent/Exec[make extension folder]/returns: executed successfully
Notice: /Stage[main]/Python_agent/Exec[make extension folder]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Python_agent/Exec[make extension log folder]/returns: executed successfully
Notice: /Stage[main]/Python_agent/Exec[make extension log folder]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Python_agent/Exec[make extension log file]/returns: executed successfully
Notice: /Stage[main]/Python_agent/Exec[make extension log file]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Python_agent/Exec[copy launch-params to agent_home]/returns: executed successfully
Notice: /Stage[main]/Python_agent/Exec[copy launch-params to agent_home]: Triggered 'refresh' from 1 events
Info: Python_agent::Start[cartridge-agent]: Scheduling refresh of Exec[starting_cartridge-agent]
Notice: /Stage[main]/Python_agent/Python_agent::Start[cartridge-agent]/Exec[starting_cartridge-agent]/returns: executed successfully
Notice: /Stage[main]/Python_agent/Python_agent::Start[cartridge-agent]/Exec[starting_cartridge-agent]: Triggered 'refresh' from 1 events
Notice: Finished catalog run in 40.23 seconds
root@044429041554:/tmp# ls
agent.screen.log  hsperfdata_root  payload  puppet-init.log  puppet_log
root@044429041554:/tmp# tail -f agent.screen.log
  File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscriber/eventsubscriber.py", line 46, in run
    self.__mb_client = mqtt.Client()
  File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 410, in __init__
    self._sockpairR, self._sockpairW = _socketpair_compat()
  File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 255, in _socketpair_compat
    listensock.bind(("localhost", 0))
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
gaierror: [Errno -2] Name or service not known

^C
root@044429041554:/tmp# vi agent.screen.log
root@044429041554:/tmp# date
Wed Apr 29 05:08:10 UTC 2015
root@044429041554:/tmp# vi agent.screen.log
root@044429041554:/tmp# cd /mnt/
root@044429041554:/mnt# ls
apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT  packs  wso2esb-4.8.1
root@044429041554:/mnt# cd apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# ls
__init__.py  agent.log  config.py   constants.py   error.log     exception.pyc  logging.ini   modules  plugins
agent.conf   agent.py   config.pyc  constants.pyc  exception.py  extensions     mdsclient.py  payload
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# vi agent.conf
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# cd /tmp/
root@044429041554:/tmp# ls
agent.screen.log  hsperfdata_root  payload  puppet-init.log  puppet_log
root@044429041554:/tmp# vi agent.screen.log
root@044429041554:/tmp# telnet 192.168.30.136 1883
Trying 192.168.30.136...
Connected to 192.168.30.136.
Escape character is '^]'.

^]

telnet> q
Connection closed.
root@044429041554:/tmp# cd /mnt/
root@044429041554:/mnt# ls
apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT  packs  wso2esb-4.8.1
root@044429041554:/mnt# cd apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# ls
__init__.py  agent.log  config.py   constants.py   error.log     exception.pyc  logging.ini   modules  plugins
agent.conf   agent.py   config.pyc  constants.pyc  exception.py  extensions     mdsclient.py  payload
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# nano agent.py
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# nano agent.conf
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# clear
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# python agent.py
2015-04-29 06:12:58,244:DEBUG:Config file path : '/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf'
2015-04-29 06:12:58,245:DEBUG:Reading property: param.file.path = /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params
2015-04-29 06:12:58,245:DEBUG:Param file path : '/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params'
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: APPLICATION_ID = single-cartridge-app
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: SERVICE_NAME = esb
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: CLUSTER_ID = single-cartridge-app.esb.esb.domain
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: CLUSTER_INSTANCE_ID = single-cartridge-app-1
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: MEMBER_ID = single-cartridge-app.esb.esb.domaindef849e3-e961-4bfe-9f15-856ad6992a74
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: NETWORK_PARTITION_ID = network-partition-1
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: PARTITION_ID = partition-1
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: CARTRIDGE_KEY = lkuCOmo5DZn1JRql
2015-04-29 06:12:58,245:DEBUG:Reading property: APPLICATION_PATH = /mnt//wso2esb-4.8.1
2015-04-29 06:12:58,245:DEBUG:Reading payload parameter: REPO_URL = https://github.com/imesh/stratos-php-applications.git
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: PORTS = 22
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: DEPENDENCY_CLUSTER_IDS = None
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: EXPORT_METADATA_KEYS = None
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: IMPORT_METADATA_KEYS = None
2015-04-29 06:12:58,246:DEBUG:Cannot read log file path : "Cannot find the value of required parameter: 'LOG_FILE_PATHS'"
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: MULTITENANT = false
2015-04-29 06:12:58,246:DEBUG:Cannot read persistence mapping : "Cannot find the value of required parameter: 'PERSISTENCE_MAPPING'"
2015-04-29 06:12:58,246:DEBUG:Reading property: auto.commit = false
2015-04-29 06:12:58,246:DEBUG:Reading property: auto.checkout = true
2015-04-29 06:12:58,246:DEBUG:Reading property: listen.address = localhost
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: INTERNAL = false
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: TENANT_ID = -1234
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: LB_CLUSTER_ID = None
2015-04-29 06:12:58,246:DEBUG:Reading payload parameter: MIN_COUNT = 1
2015-04-29 06:12:58,246:DEBUG:Reading property: lb.private.ip =
2015-04-29 06:12:58,247:DEBUG:Reading property: lb.public.ip =
2015-04-29 06:12:58,247:DEBUG:Reading property: tenant.repository.path = /repository/tenants/
2015-04-29 06:12:58,247:DEBUG:Reading property: super.tenant.repository.path = /repository/deployment/server/
2015-04-29 06:12:58,247:DEBUG:Reading payload parameter: DEPLOYMENT = default
2015-04-29 06:12:58,247:DEBUG:Reading payload parameter: PRIMARY = false
2015-04-29 06:12:58,247:DEBUG:Reading property: artifact.update.interval = 15
2015-04-29 06:12:58,247:INFO:Cartridge agent configuration initialized
2015-04-29 06:12:58,247:DEBUG:service-name: 'esb'
2015-04-29 06:12:58,247:DEBUG:cluster-id: 'single-cartridge-app.esb.esb.domain'
2015-04-29 06:12:58,247:DEBUG:cluster-instance-id: 'single-cartridge-app-1'
2015-04-29 06:12:58,247:DEBUG:member-id: 'single-cartridge-app.esb.esb.domaindef849e3-e961-4bfe-9f15-856ad6992a74'
2015-04-29 06:12:58,247:DEBUG:network-partition-id: 'network-partition-1'
2015-04-29 06:12:58,247:DEBUG:partition-id: 'partition-1'
2015-04-29 06:12:58,247:DEBUG:cartridge-key: 'lkuCOmo5DZn1JRql'
2015-04-29 06:12:58,247:DEBUG:app-path: '/mnt//wso2esb-4.8.1'
2015-04-29 06:12:58,247:DEBUG:repo-url: 'https://github.com/imesh/stratos-php-applications.git'
2015-04-29 06:12:58,248:DEBUG:ports: "['22']"
2015-04-29 06:12:58,248:DEBUG:lb-private-ip: None
2015-04-29 06:12:58,248:DEBUG:lb-public-ip: None
2015-04-29 06:12:58,248:DEBUG:dependant_cluster_id: None
2015-04-29 06:12:58,248:DEBUG:export_metadata_keys: None
2015-04-29 06:12:58,248:DEBUG:import_metadata_keys: None
2015-04-29 06:12:58,248:DEBUG:artifact.update.interval: '15'
2015-04-29 06:12:58,248:DEBUG:Reading property: mb.ip = 192.168.30.136
2015-04-29 06:12:58,248:DEBUG:Reading property: mb.port = 1883
2015-04-29 06:12:58,249:INFO:Collecting and loading plugins
2015-04-29 06:12:58,249:DEBUG:Reading property: plugins.dir = /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/plugins
2015-04-29 06:12:58,249:DEBUG:PluginFileLocator walks (recursively) into directory: /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/plugins
2015-04-29 06:12:58,249:DEBUG:__init__.py is not a valid plugin for strategy info_ext
2015-04-29 06:12:58,249:DEBUG:__init__.pyc is not a valid plugin for strategy info_ext
2015-04-29 06:12:58,249:DEBUG:contracts.py is not a valid plugin for strategy info_ext
2015-04-29 06:12:58,249:DEBUG:README.md is not a valid plugin for strategy info_ext
2015-04-29 06:12:58,249:DEBUG:contracts.pyc is not a valid plugin for strategy info_ext
2015-04-29 06:12:58,249:INFO:Collecting and loading extensions
2015-04-29 06:12:58,249:DEBUG:Reading property: extensions.dir = /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/py
2015-04-29 06:12:58,249:DEBUG:PluginFileLocator walks (recursively) into directory: /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/py
2015-04-29 06:12:58,249:DEBUG:__init__.py is not a valid plugin for strategy info_ext
2015-04-29 06:12:58,250:DEBUG:PluginFileLocator found a candidate:
    /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/py/ExtensionExecutor.yapsy-plugin
2015-04-29 06:12:58,250:DEBUG:ExtensionExecutor.py is not a valid plugin for strategy info_ext
2015-04-29 06:12:58,250:DEBUG:ExtensionExecutor.pyc is not a valid plugin for strategy info_ext
2015-04-29 06:12:58,250:DEBUG:Found extension executor [ExtensionExecutor] at [/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions/py/ExtensionExecutor]
2015-04-29 06:12:58,250:INFO:Activated extension executor [ExtensionExecutor]
2015-04-29 06:12:58,250:DEBUG:Starting cartridge agent
2015-04-29 06:12:58,251:INFO:Starting Cartridge Agent...
2015-04-29 06:12:58,251:DEBUG:Starting topology event message receiver thread
2015-04-29 06:12:58,251:DEBUG:Registered handler for event 'MemberActivatedEvent'
2015-04-29 06:12:58,251:DEBUG:Registered handler for event 'MemberTerminatedEvent'
2015-04-29 06:12:58,251:DEBUG:Registered handler for event 'MemberSuspendedEvent'
2015-04-29 06:12:58,251:DEBUG:Registered handler for event 'CompleteTopologyEvent'
2015-04-29 06:12:58,251:DEBUG:Registered handler for event 'MemberStartedEvent'
2015-04-29 06:12:58,251:DEBUG:Registered handler for event 'MemberCreatedEvent'
2015-04-29 06:12:58,251:DEBUG:Registered handler for event 'MemberInitializedEvent'
2015-04-29 06:12:58,251:INFO:Cartridge agent topology receiver thread started
Exception in thread Thread-8:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscriber/eventsubscriber.py", line 46, in run
    self.__mb_client = mqtt.Client()
  File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 410, in __init__
    self._sockpairR, self._sockpairW = _socketpair_compat()
  File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 255, in _socketpair_compat
    listensock.bind(("localhost", 0))
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
gaierror: [Errno -2] Name or service not known

^C
^C^C^C



^CTerminated
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# clear
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# clear
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# ls
__init__.py  agent.log  config.py   constants.py   error.log     exception.pyc  logging.ini   modules  plugins
agent.conf   agent.py   config.pyc  constants.pyc  exception.py  extensions     mdsclient.py  payload
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# nano  error.log
root@044429041554:/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT# cd ..
root@044429041554:/mnt# ls
apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT  packs  wso2esb-4.8.1
root@044429041554:/mnt# ls
apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT  packs  wso2esb-4.8.1
root@044429041554:/mnt# cd /opt/
root@044429041554:/opt# ls
java  jdk-7u4-linux-x64.tar.gz  jdk-7u72-linux-x64.gz  jdk-7u72-linux-x64.tar.gz  jdk1.7.0_04  jdk1.7.0_72
root@044429041554:/opt# cd /tmp/
root@044429041554:/tmp# ls
agent.screen.log  hsperfdata_root  payload  puppet-init.log  puppet_log
root@044429041554:/tmp# clear
# 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.

[agent]
mb.ip                                 =192.168.30.136
mb.port                               =1883
listen.address                        =localhost
thrift.receiver.ip                    =192.168.30.136
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                  =192.168.30.136
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                      =/mnt//wso2esb-4.8.1
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                                                                                                                         