hi All,

I am currently working on upgrading Stratos in AF to version 4.1.0.
I have modified puppet deployment by applying Stratso 4.1.0 changes. Now
the deployment happens successfully.

When the puppet tries to deploy multitenant application with WSO2AS
cartridge, auot-scaling policy doesn't get deployed but kubernetes-cluster,
network partition , deployment partition, cartridges and application
policies get deployed successfully.
Please note that by the time that the script (shown below) gets executed,
Stratos is fully up and running with Autoscaler service component activated.

    sleep 10
    echo "Adding kubernetes cluster..."
    curl -X POST -H "Content-Type: application/json" -d
@"kubernetes-cluster.json" -k -u admin:password
https://localhost:9463/api/kubernetesClusters

    sleep 5
    echo "Adding autoscale policy..."
    curl -X POST -H "Content-Type: application/json" -d
@"autoscaling-policy.json" -k -v -u admin:password
https://localhost:9463/api/autoscalingPolicies

    echo "Adding network partitions..."
    curl -X POST -H "Content-Type: application/json" -d
@"network-partition.json" -k -v -u admin:password
https://localhost:9463/api/networkPartitions

    echo "Adding deployment policy..."
    curl -X POST -H "Content-Type: application/json" -d
@"deployment-policy.json" -k -v -u  admin:password
https://localhost:9463/api/deploymentPolicies

    echo "Adding wso2as cartridge..."
    curl -X POST -H "Content-Type: application/json" -d @"wso2as_dev.json"
-k -v -u admin:password https://localhost:9463/api/cartridges
    curl -X POST -H "Content-Type: application/json" -d @"wso2as_test.json"
-k -v -u admin:password https://localhost:9463/api/cartridges
    curl -X POST -H "Content-Type: application/json" -d @"wso2as_prod.json"
-k -v -u admin:password https://localhost:9463/api/cartridges

    sleep 1
    echo "Adding application policy..."
    curl -X POST -H "Content-Type: application/json" -d
@"application-policy_dev.json" -k -v -u admin:password
https://localhost:9463/api/applicationPolicies
    curl -X POST -H "Content-Type: application/json" -d
@"application-policy_test.json" -k -v -u admin:password
https://localhost:9463/api/applicationPolicies
    curl -X POST -H "Content-Type: application/json" -d
@"application-policy_prod.json" -k -v -u admin:password
https://localhost:9463/api/applicationPolicies

    sleep 1
    echo "Adding application..."
    curl -X POST -H "Content-Type: application/json" -d
@"application_dev.json" -k -v -u admin:password
https://localhost:9463/api/applications
    curl -X POST -H "Content-Type: application/json" -d
@"application_test.json" -k -v -u admin:password
https://localhost:9463/api/applications
    curl -X POST -H "Content-Type: application/json" -d
@"application_prod.json" -k -v -u admin:password
https://localhost:9463/api/applications

    sleep 1
    echo "Deploying application..."
    curl -X POST -H "Content-Type: application/json" -k -v -u
admin:password
https://localhost:9463/api/applications/asdevelopment/deploy/application-policy_dev
    curl -X POST -H "Content-Type: application/json" -k -v -u
admin:password
https://localhost:9463/api/applications/astesting/deploy/application-policy_test
    curl -X POST -H "Content-Type: application/json" -k -v -u
admin:password
https://localhost:9463/api/applications/asproduction/deploy/application-policy_prod



Is stratos log, I have noticed a WARN .

TID: [0] [SCC] [2015-07-09 12:11:24,491]  INFO
{org.apache.stratos.manager.messaging.receiver.StratosManagerTopologyEventReceiver}
-  Stratos manager topology event receiver thread started
TID: [0] [SCC] [2015-07-09 12:11:24,507]  INFO
{org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator}
-  Topology event message delegator started
TID: [0] [SCC] [2015-07-09 12:11:24,559]  INFO
{org.apache.stratos.manager.messaging.receiver.StratosManagerApplicationEventReceiver}
-  Stratos manager application event receiver thread started
TID: [0] [SCC] [2015-07-09 12:11:24,568]  INFO
{org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} -
StratosManager activated
TID: [0] [SCC] [2015-07-09 12:11:24,568]  INFO
{org.apache.stratos.manager.internal.StratosManagerServiceComponent} -
Stratos manager component is activated
TID: [0] [SCC] [2015-07-09 12:11:24,582]  INFO
{org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator}
-  Application status event message delegator started
TID: [0] [SCC] [2015-07-09 12:11:25,142]  INFO
{org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
: https://172.17.8.1:9463/carbon/
TID: [0] [SCC] [2015-07-09 12:11:35,245]  INFO
{org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver}
-  Autoscaler health stat event receiver thread started
TID: [0] [SCC] [2015-07-09 12:11:35,245]  INFO
{org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
-  Health stat event message delegator started
TID: [0] [SCC] [2015-07-09 12:11:35,282]  INFO
{org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} -
Scheduling tasks to publish applications
TID: [0] [SCC] [2015-07-09 12:11:35,283]  INFO
{org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} -
Autoscaler activated
TID: [0] [SCC] [2015-07-09 12:11:35,283]  INFO
{org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} -
Autoscaler service component activated
TID: [0] [SCC] [2015-07-09 12:11:44,911] ERROR
{org.wso2.carbon.databridge.agent.thrift.lb.ReceiverGroup} -  No receiver
is reachable at reconnection, can't publish the events
TID: [0] [SCC] [2015-07-09 12:11:44,914] ERROR
{org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher} -
Reconnection failed for for tcp://bam.appfactory.private.wso2.com:7614
TID: [0] [SCC] [2015-07-09 12:11:46,839]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  Adding kubernetes cluster: [kubernetes-cluster-id] kubernetes-cluster
TID: [0] [SCC] [2015-07-09 12:11:46,984]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  Kubernetes cluster added successfully: [kubernetes-cluster-id]
kubernetes-cluster
TID: [0] [SCC] [2015-07-09 12:11:52,168]  WARN
{org.apache.cxf.jaxrs.provider.AbstractJAXBProvider} -  *Message body is
empty*
TID: [0] [SCC] [2015-07-09 12:11:52,273]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  Adding network partition: [network-partition-id] network-partition
TID: [0] [SCC] [2015-07-09 12:11:52,274]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  Validating partition: [network-partition-id] network-partition
[partition-id] partition
TID: [0] [SCC] [2015-07-09 12:11:52,279]  INFO
{org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas} -
Pod activation timeout was set: 60000
TID: [0] [SCC] [2015-07-09 12:11:52,279]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  Partition validated successfully: [network-partition-id]
network-partition [partition-id] partition
TID: [0] [SCC] [2015-07-09 12:11:52,370]  INFO
{org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
-  Network partition added successfully: [network-partition-id]
network-partition
TID: [0] [SCC] [2015-07-09 12:11:52,458]  WARN
{org.apache.cxf.jaxrs.provider.AbstractJAXBProvider} -  Message body is
empty
TID: [0] [SCC] [2015-07-09 12:11:52,507]  WARN
{org.apache.cxf.jaxrs.provider.AbstractJAXBProvider} -  Message body is
empty


Any thoughts?


-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com <http://wso2>
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



 <http://lalajisureshika.blogspot.com/>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to