stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mariangela Hills (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (STRATOS-1206) Kubernetes client live tests fail
Date Fri, 27 Feb 2015 13:30:04 GMT

     [ https://issues.apache.org/jira/browse/STRATOS-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mariangela Hills reassigned STRATOS-1206:
-----------------------------------------

    Assignee: Mariangela Hills

> Kubernetes client live tests fail
> ---------------------------------
>
>                 Key: STRATOS-1206
>                 URL: https://issues.apache.org/jira/browse/STRATOS-1206
>             Project: Stratos
>          Issue Type: Bug
>    Affects Versions: 4.1.0 Alpha
>            Reporter: Mariangela Hills
>            Assignee: Mariangela Hills
>
> Based on the mail thread [1], I was able to list the minions in Kubernetes and pull the beta Docker image. However, the Kubernetes client live tests failed [3]. 
> [1] [Discuss] Kubernetes VirtualBox Vagrant Setup Fixed - http://mail-archives.apache.org/mod_mbox/stratos-dev/201502.mbox/%3CCAGhM-MZCbs%3Dk%3DrtfdE5Vyr8jBRe2UBDPDS87-zu-xkziWat%3D1A%40mail.gmail.com%3E
> [2] https://cwiki.apache.org/confluence/display/STRATOS/4.1.0-Alpha+Install+Stratos+with+Kubernetes
> [3]
> Admin16s-MacBook-Air:stratos-kub-test Admin16$ git clone https://github.com/imesh/kubernetes-vagrant-setup.git
> fatal: destination path 'kubernetes-vagrant-setup' already exists and is not an empty directory.
> Admin16s-MacBook-Air:stratos-kub-test Admin16$ cd ..
> Admin16s-MacBook-Air:Stratos_4.1.0 Admin16$ git clone https://github.com/imesh/kubernetes-vagrant-setup.git
> Cloning into 'kubernetes-vagrant-setup'...
> remote: Counting objects: 60, done.
> remote: Compressing objects: 100% (47/47), done.
> remote: Total 60 (delta 34), reused 39 (delta 13)
> Unpacking objects: 100% (60/60), done.
> Checking connectivity... done
> Admin16s-MacBook-Air:Stratos_4.1.0 Admin16$ cd kubernetes-vagrant-setup/
> Admin16s-MacBook-Air:kubernetes-vagrant-setup Admin16$ vagrant up
> /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /usr/local in PATH, mode 040777
> /Applications/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777
> Bringing machine 'discovery' up with 'virtualbox' provider...
> Bringing machine 'master' up with 'virtualbox' provider...
> ==> discovery: Box 'coreos-alpha' could not be found. Attempting to find and install...
>     discovery: Box Provider: virtualbox
>     discovery: Box Version: = 536.0.0
> ==> discovery: Loading metadata for box 'coreos_production_vagrant.json'
>     discovery: URL: file:///Users/Admin16/Documents/Stratos_4.1.0/kubernetes-vagrant-setup/coreos_production_vagrant.json
> ==> discovery: Adding box 'coreos-alpha' (v536.0.0) for provider: virtualbox
>     discovery: Downloading: http://alpha.release.core-os.net/amd64-usr/536.0.0/coreos_production_vagrant.box
>     discovery: Calculating and comparing box checksum...
> ==> discovery: Successfully added box 'coreos-alpha' (v536.0.0) for 'virtualbox'!
> ==> discovery: Importing base box 'coreos-alpha'...
> ==> discovery: Matching MAC address for NAT networking...
> ==> discovery: Checking if box 'coreos-alpha' is up to date...
> ==> discovery: Setting the name of the VM: kubernetes-vagrant-setup_discovery_1424686994035_16430
> ==> discovery: Clearing any previously set network interfaces...
> ==> discovery: Preparing network interfaces based on configuration...
>     discovery: Adapter 1: nat
>     discovery: Adapter 2: hostonly
> ==> discovery: Forwarding ports...
>     discovery: 22 => 2222 (adapter 1)
> ==> discovery: Running 'pre-boot' VM customizations...
> ==> discovery: Booting VM...
> ==> discovery: Waiting for machine to boot. This may take a few minutes...
>     discovery: SSH address: 127.0.0.1:2222
>     discovery: SSH username: core
>     discovery: SSH auth method: private key
>     discovery: Warning: Connection timeout. Retrying...
> ==> discovery: Machine booted and ready!
> ==> discovery: Setting hostname...
> ==> discovery: Configuring and enabling network interfaces...
> ==> discovery: Running provisioner: file...
> ==> discovery: Running provisioner: shell...
>     discovery: Running: inline script
> ==> master: Box 'coreos-alpha' could not be found. Attempting to find and install...
>     master: Box Provider: virtualbox
>     master: Box Version: = 536.0.0
> ==> master: Loading metadata for box 'coreos_production_vagrant.json'
>     master: URL: file:///Users/Admin16/Documents/Stratos_4.1.0/kubernetes-vagrant-setup/coreos_production_vagrant.json
> ==> master: Adding box 'coreos-alpha' (v536.0.0) for provider: virtualbox
> ==> master: Importing base box 'coreos-alpha'...
> ==> master: Matching MAC address for NAT networking...
> ==> master: Checking if box 'coreos-alpha' is up to date...
> ==> master: Setting the name of the VM: kubernetes-vagrant-setup_master_1424687019796_54115
> ==> master: Fixed port collision for 22 => 2222. Now on port 2200.
> ==> master: Clearing any previously set network interfaces...
> ==> master: Preparing network interfaces based on configuration...
>     master: Adapter 1: nat
>     master: Adapter 2: hostonly
> ==> master: Forwarding ports...
>     master: 4001 => 4001 (adapter 1)
>     master: 22 => 2200 (adapter 1)
> ==> master: Running 'pre-boot' VM customizations...
> ==> master: Booting VM...
> ==> master: Waiting for machine to boot. This may take a few minutes...
>     master: SSH address: 127.0.0.1:2200
>     master: SSH username: core
>     master: SSH auth method: private key
>     master: Warning: Connection timeout. Retrying...
> ==> master: Machine booted and ready!
> ==> master: Setting hostname...
> ==> master: Configuring and enabling network interfaces...
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> ==> master: Running provisioner: file...
> ==> master: Running provisioner: shell...
>     master: Running: inline script
> Admin16s-MacBook-Air:kubernetes-vagrant-setup Admin16$ vagrant ssh master
> /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /usr/local in PATH, mode 040777
> /Applications/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777
> CoreOS (alpha)
> core@master ~ $ sudo systemctl restart controller-manager
> core@master ~ $ kubecfg list minions
> Minion identifier
> ----------
> 172.17.8.100
> core@master ~ $ ifconfig
> docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
>         inet 10.100.28.1  netmask 255.255.255.0  broadcast 0.0.0.0
>         ether 56:84:7a:fe:97:99  txqueuelen 0  (Ethernet)
>         RX packets 0  bytes 0 (0.0 B)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 0  bytes 0 (0.0 B)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
>         inet6 fe80::a00:27ff:fef3:5f1b  prefixlen 64  scopeid 0x20<link>
>         ether 08:00:27:f3:5f:1b  txqueuelen 1000  (Ethernet)
>         RX packets 148750  bytes 209071910 (199.3 MiB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 65441  bytes 3658875 (3.4 MiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 192.168.56.102  netmask 255.255.255.0  broadcast 192.168.56.255
>         inet6 fe80::a00:27ff:fe98:ed0c  prefixlen 64  scopeid 0x20<link>
>         ether 08:00:27:98:ed:0c  txqueuelen 1000  (Ethernet)
>         RX packets 35  bytes 4846 (4.7 KiB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 50  bytes 4482 (4.3 KiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> flannel0: flags=81<UP,POINTOPOINT,RUNNING>  mtu 1472
>         inet 10.100.28.0  netmask 255.255.0.0  destination 10.100.28.0
>         unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
>         RX packets 15  bytes 840 (840.0 B)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 15  bytes 4560 (4.4 KiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
>         inet 127.0.0.1  netmask 255.0.0.0
>         inet6 ::1  prefixlen 128  scopeid 0x10<host>
>         loop  txqueuelen 0  (Local Loopback)
>         RX packets 17283  bytes 2470206 (2.3 MiB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 17283  bytes 2470206 (2.3 MiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> core@master ~ $ ping www.google.com
> PING www.google.com (222.165.163.24) 56(84) bytes of data.
> 64 bytes from 222.165.163.24: icmp_seq=1 ttl=63 time=29.1 ms
> 64 bytes from 222.165.163.24: icmp_seq=2 ttl=63 time=13.0 ms
> 64 bytes from 222.165.163.24: icmp_seq=3 ttl=63 time=4.86 ms
> 64 bytes from 222.165.163.24: icmp_seq=4 ttl=63 time=4.76 ms
> 64 bytes from 222.165.163.24: icmp_seq=5 ttl=63 time=4.32 ms
> 64 bytes from 222.165.163.24: icmp_seq=6 ttl=63 time=9.74 ms
> 64 bytes from 222.165.163.24: icmp_seq=7 ttl=63 time=24.5 ms
> 64 bytes from 222.165.163.24: icmp_seq=8 ttl=63 time=7.99 ms
> 64 bytes from 222.165.163.24: icmp_seq=9 ttl=63 time=80.7 ms
> ^C
> --- www.google.com ping statistics ---
> 10 packets transmitted, 9 received, 10% packet loss, time 9024ms
> rtt min/avg/max/mdev = 4.324/19.916/80.794/23.107 ms
> core@master ~ $ docker pull stratos/php:4.1.0-beta 
> Pulling repository stratos/php
> 72f5d603724b: Download complete 
> 511136ea3c5a: Download complete 
> 1aeada447715: Download complete 
> 479215127fa7: Download complete 
> d21b876cc6bb: Download complete 
> 57329142e033: Download complete 
> 639757a9167e: Download complete 
> 5e5022e47ab5: Download complete 
> eb0f92a09f1d: Download complete 
> 19ff6ffd2388: Download complete 
> 5a885c13b23c: Download complete 
> 975ba62378c0: Download complete 
> ec719e22c782: Download complete 
> 508f6d155d09: Download complete 
> 8725a95fa8b6: Download complete 
> 263411f5c11f: Download complete 
> 2b7025354f2c: Download complete 
> 7d0f0587afba: Download complete 
> 117db9b97ab8: Download complete 
> 5182a124de8c: Download complete 
> 6cb478ae5c0d: Download complete 
> 64ccb3e6765f: Download complete 
> fd99a642d3c2: Download complete 
> 6aa54310d6f8: Download complete 
> dcf7cd1d8b8d: Download complete 
> e710f36a00ac: Download complete 
> dabf5c68d802: Download complete 
> 6f88a368759d: Download complete 
> 680c749ce0d2: Download complete 
> dd7bcc899f79: Download complete 
> fc304e74cd64: Download complete 
> b6702d3a5084: Download complete 
> 7c3aa8f5a3e4: Download complete 
> 5c843539870e: Download complete 
> Status: Downloaded newer image for stratos/php:4.1.0-beta
> core@master ~ $ logout
> Connection to 127.0.0.1 closed.
> Admin16s-MacBook-Air:kubernetes-vagrant-setup Admin16$ cd
> Admin16s-MacBook-Air:~ Admin16$ cd /Users/Admin16/Documents/Stratos_4.1.0/Master-branch/stratos 
> Admin16s-MacBook-Air:stratos Admin16$ git pull
> remote: Counting objects: 1244, done.
> remote: Compressing objects: 100% (527/527), done.
> remote: Total 816 (delta 341), reused 204 (delta 63)
> Receiving objects: 100% (816/816), 111.96 KiB | 84.00 KiB/s, done.
> Resolving deltas: 100% (341/341), completed with 127 local objects.
> From https://git-wip-us.apache.org/repos/asf/stratos
>    33e09f2..abc5442  master     -> origin/master
>    85547a6..0e7e604  4.1.0-beta-deployment-policy-fix -> origin/4.1.0-beta-deployment-policy-fix
> Updating 33e09f2..abc5442
> Fast-forward
>  .../src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyBuilder.java                    |   35 +-
>  .../main/java/org/apache/stratos/autoscaler/applications/dependency/context/ApplicationChildContextFactory.java   |   53 +-
>  .../src/main/java/org/apache/stratos/autoscaler/applications/dependency/context/GroupChildContext.java            |    1 +
>  .../src/main/java/org/apache/stratos/autoscaler/applications/parser/DefaultApplicationParser.java                 |   68 +-
>  .../src/main/java/org/apache/stratos/autoscaler/applications/parser/ParserUtils.java                              |   19 +-
>  .../src/main/java/org/apache/stratos/autoscaler/applications/payload/BasicPayloadData.java                        |    4 +-
>  .../org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/AutoscalerContext.java      |   24 +-
>  .../org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java |    5 +-
>  .../src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java               |   32 +-
>  .../src/main/java/org/apache/stratos/autoscaler/event/receiver/topology/AutoscalerTopologyEventReceiver.java      |    5 +-
>  components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/Monitor.java         |    9 +
>  components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/MonitorFactory.java  |   71 +-
>  .../org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/ClusterMonitor.java |  212 +++---
>  .../src/main/java/org/apache/stratos/autoscaler/monitor/component/ApplicationMonitor.java                         |   54 +-
>  .../org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/component/GroupMonitor.java |    5 +
>  .../src/main/java/org/apache/stratos/autoscaler/monitor/component/ParentComponentMonitor.java                     |  176 ++---
>  components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/rule/RuleTasksDelegator.java |   11 +-
>  .../src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java                          |    3 +-
>  .../src/main/java/org/apache/stratos/autoscaler/status/processor/cluster/ClusterStatusActiveProcessor.java        |    2 +-
>  components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/util/AutoscalerUtil.java     |  124 ++--
>  components/org.apache.stratos.cartridge.agent/pom.xml                                                             |   39 +-
>  .../org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/ArtifactCopyTask.java     |   39 --
>  .../org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/CartridgeAgent.java       |  165 ++---
>  .../src/main/java/org/apache/stratos/cartridge/agent/CartridgeAgentEventListeners.java                            |   28 +-
>  .../src/main/java/org/apache/stratos/cartridge/agent/RepositoryFileListener.java                                  |   41 --
>  .../src/main/java/org/apache/stratos/cartridge/agent/config/CartridgeAgentConfiguration.java                      |    2 +-
>  .../src/main/java/org/apache/stratos/cartridge/agent/event/publisher/CartridgeAgentEventPublisher.java            |   81 ++-
>  .../src/main/java/org/apache/stratos/cartridge/agent/extensions/DefaultExtensionHandler.java                      |  621 +-----------------
>  .../src/main/java/org/apache/stratos/cartridge/agent/util/CartridgeAgentConstants.java                            |   11 +-
>  .../src/main/java/org/apache/stratos/cartridge/agent/util/CartridgeAgentUtils.java                                |   13 +-
>  .../org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/util/ExtensionUtils.java  |  109 ++-
>  .../src/test/java/org/apache/stratos/cartridge/agent/test/JavaCartridgeAgentTest.java                             |  510 +++++++++++++++
>  components/org.apache.stratos.cartridge.agent/src/test/resources/bin/stratos.sh                                   |   80 +++
>  components/org.apache.stratos.cartridge.agent/src/test/resources/conf/jndi.properties                             |   22 +
>  components/org.apache.stratos.cartridge.agent/src/test/resources/conf/log4j.properties                            |   41 ++
>  components/org.apache.stratos.cartridge.agent/src/test/resources/conf/mqtttopic.properties                        |   21 +
>  components/org.apache.stratos.cartridge.agent/src/test/resources/jndi.properties                                  |   22 +
>  components/org.apache.stratos.cartridge.agent/src/test/resources/log4j.properties                                 |   41 ++
>  components/org.apache.stratos.cartridge.agent/src/test/resources/payload/launch-params                            |    1 +
>  .../src/main/java/org/apache/stratos/cloud/controller/domain/MemberContext.java                                   |   30 +-
>  .../src/main/java/org/apache/stratos/cloud/controller/iaases/kubernetes/KubernetesIaas.java                       |  245 ++++---
>  .../src/main/java/org/apache/stratos/cloud/controller/iaases/kubernetes/KubernetesIaasUtil.java                   |   21 +-
>  .../src/main/java/org/apache/stratos/cloud/controller/iaases/mock/MockIaas.java                                   |    5 +
>  .../src/main/java/org/apache/stratos/cloud/controller/messaging/topology/TopologyBuilder.java                     |    3 +-
>  .../src/main/java/org/apache/stratos/cloud/controller/util/CloudControllerUtil.java                               |    7 -
>  .../src/main/java/org/apache/stratos/kubernetes/client/KubernetesApiClient.java                                   |  158 +++--
>  .../src/main/java/org/apache/stratos/kubernetes/client/interfaces/KubernetesAPIClientInterface.java               |    6 +-
>  .../src/test/java/org/apache/stratos/kubernetes/client/live/KubernetesApiClientLiveTest.java                      |   62 +-
>  .../src/main/java/org/apache/stratos/messaging/domain/application/ParentComponent.java                            |   15 +-
>  components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/Member.java    |    4 +-
>  .../src/main/java/org/apache/stratos/metadata/service/registry/CarbonRegistry.java                                |  104 ++-
>  .../src/main/java/org/apache/stratos/metadata/service/services/MetaDataAdmin.java                                 |    4 +
>  components/org.apache.stratos.mock.iaas/src/test/resources/mock-iaas.xml                                          |   20 +
>  .../src/test/java/org/apache/stratos/python.cartridge.agent/test/PythonCartridgeAgentTest.java                    |  259 +++++---
>  products/cartridge-agent/modules/distribution/src/main/assembly/bin.xml                                           |    8 +
>  products/cartridge-agent/modules/distribution/src/main/bin/stratos.sh                                             |    3 +-
>  products/cartridge-agent/modules/distribution/src/main/conf/thrift-client-config.xml                              |   23 +
>  products/cartridge-agent/modules/distribution/src/main/extensions/payload/launch-params                           |    2 +
>  products/load-balancer/modules/distribution/pom.xml                                                               |    2 +-
>  products/stratos/modules/distribution/pom.xml                                                                     |    2 +-
>  products/stratos/modules/distribution/src/main/conf/mock-iaas.xml                                                 |   20 +
>  products/stratos/modules/integration/src/test/resources/mock-iaas.xml                                             |   20 +
>  samples/applications/{wordpress-extended => tomcat}/README.md                                                     |   10 +-
>  samples/applications/tomcat/artifacts/application.json                                                            |   24 +
>  samples/applications/tomcat/artifacts/autoscaling-policy.json                                                     |   14 +
>  samples/applications/tomcat/artifacts/ec2/deployment-policy.json                                                  |   39 ++
>  samples/applications/tomcat/artifacts/kubernetes/deployment-policy.json                                           |   41 ++
>  samples/applications/{wordpress-extended => tomcat}/artifacts/kubernetes/kubernetes-cluster.json                  |    0
>  samples/applications/tomcat/artifacts/mock/deployment-policy.json                                                 |   40 ++
>  samples/applications/tomcat/artifacts/openstack/deployment-policy.json                                            |   40 ++
>  samples/applications/tomcat/scripts/common/deploy.sh                                                              |   37 ++
>  samples/applications/tomcat/scripts/common/undeploy.sh                                                            |   20 +
>  samples/applications/{wordpress-extended => tomcat}/scripts/ec2/deploy.sh                                         |    0
>  samples/applications/{wordpress-extended => tomcat}/scripts/ec2/undeploy.sh                                       |    0
>  samples/applications/{wordpress-extended => tomcat}/scripts/kubernetes/deploy.sh                                  |    0
>  samples/applications/{wordpress-extended => tomcat}/scripts/kubernetes/undeploy.sh                                |    0
>  samples/applications/{wordpress-extended => tomcat}/scripts/mock/deploy.sh                                        |    0
>  samples/applications/{wordpress-extended => tomcat}/scripts/mock/undeploy.sh                                      |    0
>  samples/applications/{wordpress-extended => tomcat}/scripts/openstack/deploy.sh                                   |    0
>  samples/applications/{wordpress-extended => tomcat}/scripts/openstack/undeploy.sh                                 |    0
>  samples/applications/wordpress-extended-v1/README.md                                                              |   22 +
>  samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/application.json                     |   22 +-
>  samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/autoscaling-policy.json              |    0
>  samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/ec2/deployment-policy.json           |    0
>  samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/kubernetes/deployment-policy.json    |    0
>  samples/applications/wordpress-extended-v1/artifacts/kubernetes/kubernetes-cluster.json                           |   56 ++
>  samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/mock/deployment-policy.json          |    4 +-
>  samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/openstack/deployment-policy.json     |    0
>  samples/applications/{wordpress-extended => wordpress-extended-v1}/scripts/common/deploy.sh                       |    0
>  samples/applications/{wordpress-extended => wordpress-extended-v1}/scripts/common/undeploy.sh                     |    0
>  samples/applications/wordpress-extended-v1/scripts/ec2/deploy.sh                                                  |    9 +
>  samples/applications/wordpress-extended-v1/scripts/ec2/undeploy.sh                                                |    7 +
>  samples/applications/wordpress-extended-v1/scripts/kubernetes/deploy.sh                                           |   15 +
>  samples/applications/wordpress-extended-v1/scripts/kubernetes/undeploy.sh                                         |   13 +
>  samples/applications/wordpress-extended-v1/scripts/mock/deploy.sh                                                 |    9 +
>  samples/applications/wordpress-extended-v1/scripts/mock/undeploy.sh                                               |    7 +
>  samples/applications/wordpress-extended-v1/scripts/openstack/deploy.sh                                            |    9 +
>  samples/applications/wordpress-extended-v1/scripts/openstack/undeploy.sh                                          |    7 +
>  samples/applications/wordpress-extended-v2/README.md                                                              |   23 +
>  samples/applications/wordpress-extended-v2/artifacts/application.json                                             |   60 ++
>  samples/applications/wordpress-extended-v2/artifacts/autoscaling-policy.json                                      |   14 +
>  samples/applications/wordpress-extended-v2/artifacts/ec2/deployment-policy.json                                   |   55 ++
>  samples/applications/wordpress-extended-v2/artifacts/kubernetes/deployment-policy.json                            |   55 ++
>  samples/applications/wordpress-extended-v2/artifacts/kubernetes/kubernetes-cluster.json                           |   56 ++
>  samples/applications/wordpress-extended-v2/artifacts/mock/deployment-policy.json                                  |   55 ++
>  samples/applications/wordpress-extended-v2/artifacts/openstack/deployment-policy.json                             |   55 ++
>  samples/applications/wordpress-extended-v2/scripts/common/deploy.sh                                               |   47 ++
>  samples/applications/wordpress-extended-v2/scripts/common/undeploy.sh                                             |   25 +
>  samples/applications/wordpress-extended-v2/scripts/ec2/deploy.sh                                                  |    9 +
>  samples/applications/wordpress-extended-v2/scripts/ec2/undeploy.sh                                                |    7 +
>  samples/applications/wordpress-extended-v2/scripts/kubernetes/deploy.sh                                           |   15 +
>  samples/applications/wordpress-extended-v2/scripts/kubernetes/undeploy.sh                                         |   13 +
>  samples/applications/wordpress-extended-v2/scripts/mock/deploy.sh                                                 |    9 +
>  samples/applications/wordpress-extended-v2/scripts/mock/undeploy.sh                                               |    7 +
>  samples/applications/wordpress-extended-v2/scripts/openstack/deploy.sh                                            |    9 +
>  samples/applications/wordpress-extended-v2/scripts/openstack/undeploy.sh                                          |    7 +
>  samples/applications/wordpress/README.md                                                                          |    5 +-
>  samples/applications/wordpress/artifacts/application.json                                                         |   16 +-
>  samples/applications/wordpress/artifacts/mock/deployment-policy.json                                              |    4 +-
>  samples/cartridges-groups/group6c.json                                                                            |    2 +-
>  samples/cartridges-groups/mysql-php-group.json                                                                    |    2 +-
>  samples/cartridges/kubernetes/php.json                                                                            |    4 -
>  samples/cartridges/kubernetes/tomcat.json                                                                         |   14 +-
>  service-stubs/org.apache.stratos.autoscaler.service.stub/src/main/resources/AutoscalerService.wsdl                |  148 ++---
>  service-stubs/org.apache.stratos.cloud.controller.service.stub/pom.xml                                            |    2 +-
>  service-stubs/org.apache.stratos.cloud.controller.service.stub/src/main/resources/CloudControllerService.wsdl     | 2035 +++++++++++++++++++++++++++++----------------------------
>  service-stubs/org.apache.stratos.manager.service.stub/src/main/resources/StratosManagerService.wsdl               |  136 ++--
>  tools/docker-images/cartridge-docker-images/build.sh                                                              |   16 +-
>  tools/docker-images/cartridge-docker-images/service-images/php/Dockerfile                                         |    8 +-
>  tools/docker-images/cartridge-docker-images/service-images/tomcat/Dockerfile                                      |   37 ++
>  tools/docker-images/cartridge-docker-images/service-images/tomcat/files/create-admin-user.sh                      |   21 +
>  tools/docker-images/cartridge-docker-images/service-images/tomcat/files/run.sh                                    |    3 +
>  132 files changed, 4246 insertions(+), 2996 deletions(-)
>  delete mode 100644 components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/ArtifactCopyTask.java
>  delete mode 100644 components/org.apache.stratos.cartridge.agent/src/main/java/org/apache/stratos/cartridge/agent/RepositoryFileListener.java
>  create mode 100644 components/org.apache.stratos.cartridge.agent/src/test/java/org/apache/stratos/cartridge/agent/test/JavaCartridgeAgentTest.java
>  create mode 100644 components/org.apache.stratos.cartridge.agent/src/test/resources/bin/stratos.sh
>  create mode 100644 components/org.apache.stratos.cartridge.agent/src/test/resources/conf/jndi.properties
>  create mode 100644 components/org.apache.stratos.cartridge.agent/src/test/resources/conf/log4j.properties
>  create mode 100644 components/org.apache.stratos.cartridge.agent/src/test/resources/conf/mqtttopic.properties
>  create mode 100644 components/org.apache.stratos.cartridge.agent/src/test/resources/jndi.properties
>  create mode 100644 components/org.apache.stratos.cartridge.agent/src/test/resources/log4j.properties
>  create mode 100644 components/org.apache.stratos.cartridge.agent/src/test/resources/payload/launch-params
>  create mode 100644 products/cartridge-agent/modules/distribution/src/main/conf/thrift-client-config.xml
>  create mode 100644 products/cartridge-agent/modules/distribution/src/main/extensions/payload/launch-params
>  rename samples/applications/{wordpress-extended => tomcat}/README.md (53%)
>  create mode 100644 samples/applications/tomcat/artifacts/application.json
>  create mode 100644 samples/applications/tomcat/artifacts/autoscaling-policy.json
>  create mode 100644 samples/applications/tomcat/artifacts/ec2/deployment-policy.json
>  create mode 100644 samples/applications/tomcat/artifacts/kubernetes/deployment-policy.json
>  rename samples/applications/{wordpress-extended => tomcat}/artifacts/kubernetes/kubernetes-cluster.json (100%)
>  create mode 100644 samples/applications/tomcat/artifacts/mock/deployment-policy.json
>  create mode 100644 samples/applications/tomcat/artifacts/openstack/deployment-policy.json
>  create mode 100755 samples/applications/tomcat/scripts/common/deploy.sh
>  create mode 100644 samples/applications/tomcat/scripts/common/undeploy.sh
>  rename samples/applications/{wordpress-extended => tomcat}/scripts/ec2/deploy.sh (100%)
>  rename samples/applications/{wordpress-extended => tomcat}/scripts/ec2/undeploy.sh (100%)
>  rename samples/applications/{wordpress-extended => tomcat}/scripts/kubernetes/deploy.sh (100%)
>  rename samples/applications/{wordpress-extended => tomcat}/scripts/kubernetes/undeploy.sh (100%)
>  mode change 100644 => 100755
>  rename samples/applications/{wordpress-extended => tomcat}/scripts/mock/deploy.sh (100%)
>  rename samples/applications/{wordpress-extended => tomcat}/scripts/mock/undeploy.sh (100%)
>  rename samples/applications/{wordpress-extended => tomcat}/scripts/openstack/deploy.sh (100%)
>  rename samples/applications/{wordpress-extended => tomcat}/scripts/openstack/undeploy.sh (100%)
>  create mode 100644 samples/applications/wordpress-extended-v1/README.md
>  rename samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/application.json (76%)
>  rename samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/autoscaling-policy.json (100%)
>  rename samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/ec2/deployment-policy.json (100%)
>  rename samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/kubernetes/deployment-policy.json (100%)
>  create mode 100644 samples/applications/wordpress-extended-v1/artifacts/kubernetes/kubernetes-cluster.json
>  rename samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/mock/deployment-policy.json (95%)
>  rename samples/applications/{wordpress-extended => wordpress-extended-v1}/artifacts/openstack/deployment-policy.json (100%)
>  rename samples/applications/{wordpress-extended => wordpress-extended-v1}/scripts/common/deploy.sh (100%)
>  rename samples/applications/{wordpress-extended => wordpress-extended-v1}/scripts/common/undeploy.sh (100%)
>  create mode 100755 samples/applications/wordpress-extended-v1/scripts/ec2/deploy.sh
>  create mode 100644 samples/applications/wordpress-extended-v1/scripts/ec2/undeploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v1/scripts/kubernetes/deploy.sh
>  create mode 100644 samples/applications/wordpress-extended-v1/scripts/kubernetes/undeploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v1/scripts/mock/deploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v1/scripts/mock/undeploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v1/scripts/openstack/deploy.sh
>  create mode 100644 samples/applications/wordpress-extended-v1/scripts/openstack/undeploy.sh
>  create mode 100644 samples/applications/wordpress-extended-v2/README.md
>  create mode 100644 samples/applications/wordpress-extended-v2/artifacts/application.json
>  create mode 100755 samples/applications/wordpress-extended-v2/artifacts/autoscaling-policy.json
>  create mode 100644 samples/applications/wordpress-extended-v2/artifacts/ec2/deployment-policy.json
>  create mode 100644 samples/applications/wordpress-extended-v2/artifacts/kubernetes/deployment-policy.json
>  create mode 100644 samples/applications/wordpress-extended-v2/artifacts/kubernetes/kubernetes-cluster.json
>  create mode 100644 samples/applications/wordpress-extended-v2/artifacts/mock/deployment-policy.json
>  create mode 100644 samples/applications/wordpress-extended-v2/artifacts/openstack/deployment-policy.json
>  create mode 100755 samples/applications/wordpress-extended-v2/scripts/common/deploy.sh
>  create mode 100644 samples/applications/wordpress-extended-v2/scripts/common/undeploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v2/scripts/ec2/deploy.sh
>  create mode 100644 samples/applications/wordpress-extended-v2/scripts/ec2/undeploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v2/scripts/kubernetes/deploy.sh
>  create mode 100644 samples/applications/wordpress-extended-v2/scripts/kubernetes/undeploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v2/scripts/mock/deploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v2/scripts/mock/undeploy.sh
>  create mode 100755 samples/applications/wordpress-extended-v2/scripts/openstack/deploy.sh
>  create mode 100644 samples/applications/wordpress-extended-v2/scripts/openstack/undeploy.sh
>  create mode 100644 tools/docker-images/cartridge-docker-images/service-images/tomcat/Dockerfile
>  create mode 100755 tools/docker-images/cartridge-docker-images/service-images/tomcat/files/create-admin-user.sh
>  create mode 100644 tools/docker-images/cartridge-docker-images/service-images/tomcat/files/run.sh
> Admin16s-MacBook-Air:stratos Admin16$ cd components/org.apache.stratos.kubernetes.client/
> Admin16s-MacBook-Air:org.apache.stratos.kubernetes.client Admin16$ cd
> Admin16s-MacBook-Air:~ Admin16$ cd /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos 
> Admin16s-MacBook-Air:stratos Admin16$ cd components/org.apache.stratos.kubernetes.client/
> Admin16s-MacBook-Air:org.apache.stratos.kubernetes.client Admin16$ mvn clean install -Plive -Dkubernetes.api.endpoint=http://172.17.8.100:8080/api/v1beta1
> [INFO] Scanning for projects...
> [INFO] 
> [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
> [INFO]                                                                         
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Stratos - Kubernetes API Java Client 4.1.0-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.apache.stratos.kubernetes.client ---
> [INFO] Deleting /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos/components/org.apache.stratos.kubernetes.client/target
> [INFO] 
> [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce) @ org.apache.stratos.kubernetes.client ---
> [INFO] 
> [INFO] --- incremental-build-plugin:1.3:incremental-build (default) @ org.apache.stratos.kubernetes.client ---
> [INFO] Verifying module descriptor ...
> [INFO] Pom descriptor modification detected.
> [INFO] Deleting /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos/components/org.apache.stratos.kubernetes.client/target
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.4:process (default) @ org.apache.stratos.kubernetes.client ---
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ org.apache.stratos.kubernetes.client ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos/components/org.apache.stratos.kubernetes.client/src/main/resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ org.apache.stratos.kubernetes.client ---
> [INFO] Compiling 24 source files to /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos/components/org.apache.stratos.kubernetes.client/target/classes
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ org.apache.stratos.kubernetes.client ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos/components/org.apache.stratos.kubernetes.client/src/test/resources
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ org.apache.stratos.kubernetes.client ---
> [INFO] Compiling 4 source files to /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos/components/org.apache.stratos.kubernetes.client/target/test-classes
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ org.apache.stratos.kubernetes.client ---
> [INFO] Surefire report directory: /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos/components/org.apache.stratos.kubernetes.client/target/surefire-reports
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
> Running org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest
> Feb 23, 2015 5:19:19 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Setting up live test...
> Feb 23, 2015 5:19:19 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Kubernetes endpoint: http://172.17.8.100:8080/api/v1beta1
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Docker image: gurpartap/redis
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Live test setup completed
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest testServiceCreation
> INFO: Testing service creation...
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest testServiceCreation
> INFO: Creating pod...
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.KubernetesApiClient createPod
> SEVERE: Could not create kubernetes pod: [pod-id] stratos-test-pod-1
> java.lang.NullPointerException
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:187)
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:100)
> 	at org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest.testServiceCreation(KubernetesApiClientLiveTest.java:178)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at junit.framework.TestCase.runBare(TestCase.java:141)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> 	at org.junit.runners.Suite.runChild(Suite.java:127)
> 	at org.junit.runners.Suite.runChild(Suite.java:26)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest tearDown
> INFO: Cleaning kubernetes resources...
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Setting up live test...
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Kubernetes endpoint: http://172.17.8.100:8080/api/v1beta1
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Docker image: gurpartap/redis
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Live test setup completed
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.KubernetesApiClient deletePod
> WARNING: Kubernetes pod not found: [pod-id] -1234
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest tearDown
> INFO: Cleaning kubernetes resources...
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Setting up live test...
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Kubernetes endpoint: http://172.17.8.100:8080/api/v1beta1
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Docker image: gurpartap/redis
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest setUp
> INFO: Live test setup completed
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest testPodCreation
> INFO: Testing pod creation...
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest testPodCreation
> INFO: Creating pod: [pod-id] stratos-test-pod-1
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.KubernetesApiClient createPod
> SEVERE: Could not create kubernetes pod: [pod-id] stratos-test-pod-1
> java.lang.NullPointerException
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:187)
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:100)
> 	at org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest.testPodCreation(KubernetesApiClientLiveTest.java:123)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at junit.framework.TestCase.runBare(TestCase.java:141)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> 	at org.junit.runners.Suite.runChild(Suite.java:127)
> 	at org.junit.runners.Suite.runChild(Suite.java:26)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Feb 23, 2015 5:19:20 PM org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest tearDown
> INFO: Cleaning kubernetes resources...
> Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.955 sec <<< FAILURE!
> testServiceCreation(org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest)  Time elapsed: 0.01 sec  <<< ERROR!
> org.apache.stratos.kubernetes.client.exceptions.KubernetesClientException: Could not create kubernetes pod: [pod-id] stratos-test-pod-1
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:197)
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:100)
> 	at org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest.testServiceCreation(KubernetesApiClientLiveTest.java:178)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at junit.framework.TestCase.runBare(TestCase.java:141)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> 	at org.junit.runners.Suite.runChild(Suite.java:127)
> 	at org.junit.runners.Suite.runChild(Suite.java:26)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Caused by: java.lang.NullPointerException
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:187)
> 	... 36 more
> testDeletingAnNonExistingPod(org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest)  Time elapsed: 0 sec  <<< ERROR!
> java.lang.NullPointerException
> 	at org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest.deleteReplicationControllers(KubernetesApiClientLiveTest.java:219)
> 	at org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest.tearDown(KubernetesApiClientLiveTest.java:107)
> 	at junit.framework.TestCase.runBare(TestCase.java:146)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> 	at org.junit.runners.Suite.runChild(Suite.java:127)
> 	at org.junit.runners.Suite.runChild(Suite.java:26)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> testPodCreation(org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest)  Time elapsed: 0.001 sec  <<< ERROR!
> org.apache.stratos.kubernetes.client.exceptions.KubernetesClientException: Could not create kubernetes pod: [pod-id] stratos-test-pod-1
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:197)
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:100)
> 	at org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest.testPodCreation(KubernetesApiClientLiveTest.java:123)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at junit.framework.TestCase.runBare(TestCase.java:141)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> 	at org.junit.runners.Suite.runChild(Suite.java:127)
> 	at org.junit.runners.Suite.runChild(Suite.java:26)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Caused by: java.lang.NullPointerException
> 	at org.apache.stratos.kubernetes.client.KubernetesApiClient.createPod(KubernetesApiClient.java:187)
> 	... 36 more
> Results :
> Tests in error: 
>   testServiceCreation(org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest): Could not create kubernetes pod: [pod-id] stratos-test-pod-1
>   testDeletingAnNonExistingPod(org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest)
>   testPodCreation(org.apache.stratos.kubernetes.client.live.KubernetesApiClientLiveTest): Could not create kubernetes pod: [pod-id] stratos-test-pod-1
> Tests run: 3, Failures: 0, Errors: 3, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 7.280 s
> [INFO] Finished at: 2015-02-23T17:19:20+05:30
> [INFO] Final Memory: 16M/2102M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project org.apache.stratos.kubernetes.client: There are test failures.
> [ERROR] 
> [ERROR] Please refer to /Users/Admin16/Documents/Stratos_4.1.0/Master-branch-kube/stratos/components/org.apache.stratos.kubernetes.client/target/surefire-reports for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message