I'm struggling to get the amulet tests to pass:
juju-test.conductor DEBUG : Tearing down devel juju environment juju-test.conductor DEBUG : Calling "juju destroy-environment -y devel" WARNING cannot delete security group "juju-devel-0". Used by another environment? WARNING cannot delete security group "juju-devel". Used by another environment? WARNING cannot delete security group "juju-devel-0". Used by another environment? juju-test.conductor DEBUG : Starting a bootstrap for devel, kill after 300 juju-test.conductor DEBUG : Running the following: juju bootstrap -e devel Bootstrapping environment "devel" Starting new instance for initial state server Launching instance - 0fcaf736-ca4d-4148-befe-a7fe4f564179 Installing Juju agent on bootstrap instance Waiting for address Attempting to connect to 10.5.15.115:22 Warning: Permanently added '10.5.15.115' (ECDSA) to the list of known hosts. Logging to /var/log/cloud-init-output.log on remote host Running apt-get update Running apt-get upgrade Installing package: curl Installing package: cpu-checker Installing package: bridge-utils Installing package: rsyslog-gnutls Installing package: cloud-utils Installing package: cloud-image-utils Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https://streams.canonical.com/juju/tools/devel/juju-1.23-beta4-trusty-amd64.tgz]> Bootstrapping Juju machine agent Starting Juju machine agent (jujud-machine-0) Bootstrap complete juju-test.conductor DEBUG : Waiting for bootstrap juju-test.conductor DEBUG : Still not bootstrapped juju-test.conductor DEBUG : Running the following: juju status -e devel juju-test.conductor DEBUG : State for 1.23.0: started juju-test.conductor.10-deploy_test.py DEBUG : Running 10-deploy_test.py (tests/10-deploy_test.py) 2015-04-13 08:46:45 Starting deployment of devel 2015-04-13 08:46:46 Deploying services... 2015-04-13 08:46:46 Deploying service hacluster using cs:trusty/hacluster-18 2015-04-13 08:46:50 Deploying service percona-cluster using local:trusty/percona-cluster 2015-04-13 08:47:05 Config specifies num units for subordinate: hacluster 2015-04-13 08:49:49 Adding relations... 2015-04-13 08:49:49 Adding relation percona-cluster:ha <-> hacluster:ha 2015-04-13 08:51:03 Deployment complete in 257.99 seconds Traceback (most recent call last): File "tests/10-deploy_test.py", line 29, in <module> t.run() File "tests/10-deploy_test.py", line 13, in run super(ThreeNode, self).run() File "/home/ubuntu/charms/trusty/percona-cluster/tests/basic_deployment.py", line 70, in run assert sorted(self.get_pcmkr_resources()) == sorted(resources) AssertionError juju-test.conductor.10-deploy_test.py DEBUG : percona-cluster/0 ERROR subprocess encountered error code 1 percona-cluster/2 inet 10.5.100.1/24 brd 10.5.100.255 scope global eth0 vip(10.5.100.1) running in percona-cluster/2
juju-test.conductor.10-deploy_test.py DEBUG : Got exit code: 1 juju-test.conductor.10-deploy_test.py RESULT : ✘ juju-test.conductor DEBUG : Tearing down devel juju environment juju-test.conductor DEBUG : Calling "juju destroy-environment -y devel" WARNING cannot delete security group "juju-devel-0". Used by another environment? juju-test.conductor DEBUG : Starting a bootstrap for devel, kill after 300 juju-test.conductor DEBUG : Running the following: juju bootstrap -e devel Bootstrapping environment "devel" Starting new instance for initial state server Launching instance - e2185589-a97f-4a19-9a42-eebf86d9b33a Installing Juju agent on bootstrap instance Waiting for address Attempting to connect to 10.5.15.119:22 Warning: Permanently added '10.5.15.119' (ECDSA) to the list of known hosts. Logging to /var/log/cloud-init-output.log on remote host Running apt-get update Running apt-get upgrade Installing package: curl Installing package: cpu-checker Installing package: bridge-utils Installing package: rsyslog-gnutls Installing package: cloud-utils Installing package: cloud-image-utils Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https://streams.canonical.com/juju/tools/devel/juju-1.23-beta4-trusty-amd64.tgz]> Bootstrapping Juju machine agent Starting Juju machine agent (jujud-machine-0) Bootstrap complete juju-test.conductor DEBUG : Waiting for bootstrap juju-test.conductor DEBUG : Still not bootstrapped juju-test.conductor DEBUG : Running the following: juju status -e devel juju-test.conductor DEBUG : State for 1.23.0: started juju-test.conductor.20-broken-mysqld.py DEBUG : Running 20-broken-mysqld.py (tests/20-broken-mysqld.py) 2015-04-13 08:54:02 Starting deployment of devel 2015-04-13 08:54:03 Deploying services... 2015-04-13 08:54:03 Deploying service hacluster using cs:trusty/hacluster-18 2015-04-13 08:54:07 Deploying service percona-cluster using local:trusty/percona-cluster 2015-04-13 08:54:21 Config specifies num units for subordinate: hacluster 2015-04-13 08:57:06 Adding relations... 2015-04-13 08:57:06 Adding relation percona-cluster:ha <-> hacluster:ha 2015-04-13 08:58:11 Deployment complete in 248.55 seconds Traceback (most recent call last): File "tests/20-broken-mysqld.py", line 38, in <module> t.run() File "tests/20-broken-mysqld.py", line 13, in run super(ThreeNode, self).run() File "/home/ubuntu/charms/trusty/percona-cluster/tests/basic_deployment.py", line 70, in run assert sorted(self.get_pcmkr_resources()) == sorted(resources) AssertionError juju-test.conductor.20-broken-mysqld.py DEBUG : percona-cluster/2 ERROR subprocess encountered error code 1 percona-cluster/1 ERROR subprocess encountered error code 1 percona-cluster/0 inet 10.5.100.1/24 brd 10.5.100.255 scope global eth0 vip(10.5.100.1) running in percona-cluster/0
juju-test.conductor.20-broken-mysqld.py DEBUG : Got exit code: 1 juju-test.conductor.20-broken-mysqld.py RESULT : ✘ juju-test.conductor DEBUG : Tearing down devel juju environment juju-test.conductor DEBUG : Calling "juju destroy-environment -y devel" WARNING cannot delete security group "juju-devel-0". Used by another environment? juju-test INFO : Results: 1 passed, 2 failed, 0 errored ERROR subprocess encountered error code 2 make: *** [test] Error 2
« Back to merge proposal
I'm struggling to get the amulet tests to pass:
juju-test.conductor DEBUG : Tearing down devel juju environment ca4d-4148- befe-a7fe4f5641 79 cloud-init- output. log on remote host /streams. canonical. com/juju/ tools/devel/ juju-1. 23-beta4- trusty- amd64.tgz]> conductor. 10-deploy_ test.py DEBUG : Running 10-deploy_test.py (tests/ 10-deploy_ test.py) hacluster- 18 percona- cluster 10-deploy_ test.py" , line 29, in <module> 10-deploy_ test.py" , line 13, in run ThreeNode, self).run() ubuntu/ charms/ trusty/ percona- cluster/ tests/basic_ deployment. py", line 70, in run self.get_ pcmkr_resources ()) == sorted(resources) conductor. 10-deploy_ test.py DEBUG : percona-cluster/0
juju-test.conductor DEBUG : Calling "juju destroy-environment -y devel"
WARNING cannot delete security group "juju-devel-0". Used by another environment?
WARNING cannot delete security group "juju-devel". Used by another environment?
WARNING cannot delete security group "juju-devel-0". Used by another environment?
juju-test.conductor DEBUG : Starting a bootstrap for devel, kill after 300
juju-test.conductor DEBUG : Running the following: juju bootstrap -e devel
Bootstrapping environment "devel"
Starting new instance for initial state server
Launching instance
- 0fcaf736-
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to 10.5.15.115:22
Warning: Permanently added '10.5.15.115' (ECDSA) to the list of known hosts.
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https:/
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap complete
juju-test.conductor DEBUG : Waiting for bootstrap
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e devel
juju-test.conductor DEBUG : State for 1.23.0: started
juju-test.
2015-04-13 08:46:45 Starting deployment of devel
2015-04-13 08:46:46 Deploying services...
2015-04-13 08:46:46 Deploying service hacluster using cs:trusty/
2015-04-13 08:46:50 Deploying service percona-cluster using local:trusty/
2015-04-13 08:47:05 Config specifies num units for subordinate: hacluster
2015-04-13 08:49:49 Adding relations...
2015-04-13 08:49:49 Adding relation percona-cluster:ha <-> hacluster:ha
2015-04-13 08:51:03 Deployment complete in 257.99 seconds
Traceback (most recent call last):
File "tests/
t.run()
File "tests/
super(
File "/home/
assert sorted(
AssertionError
juju-test.
ERROR subprocess encountered error code 1
percona-cluster/2
inet 10.5.100.1/24 brd 10.5.100.255 scope global eth0
vip(10.5.100.1) running in percona-cluster/2
juju-test. conductor. 10-deploy_ test.py DEBUG : Got exit code: 1 conductor. 10-deploy_ test.py RESULT : ✘ a97f-4a19- 9a42-eebf86d9b3 3a cloud-init- output. log on remote host /streams. canonical. com/juju/ tools/devel/ juju-1. 23-beta4- trusty- amd64.tgz]> conductor. 20-broken- mysqld. py DEBUG : Running 20-broken-mysqld.py (tests/ 20-broken- mysqld. py) hacluster- 18 percona- cluster 20-broken- mysqld. py", line 38, in <module> 20-broken- mysqld. py", line 13, in run ThreeNode, self).run() ubuntu/ charms/ trusty/ percona- cluster/ tests/basic_ deployment. py", line 70, in run self.get_ pcmkr_resources ()) == sorted(resources) conductor. 20-broken- mysqld. py DEBUG : percona-cluster/2
juju-test.
juju-test.conductor DEBUG : Tearing down devel juju environment
juju-test.conductor DEBUG : Calling "juju destroy-environment -y devel"
WARNING cannot delete security group "juju-devel-0". Used by another environment?
juju-test.conductor DEBUG : Starting a bootstrap for devel, kill after 300
juju-test.conductor DEBUG : Running the following: juju bootstrap -e devel
Bootstrapping environment "devel"
Starting new instance for initial state server
Launching instance
- e2185589-
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to 10.5.15.119:22
Warning: Permanently added '10.5.15.119' (ECDSA) to the list of known hosts.
Logging to /var/log/
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https:/
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap complete
juju-test.conductor DEBUG : Waiting for bootstrap
juju-test.conductor DEBUG : Still not bootstrapped
juju-test.conductor DEBUG : Running the following: juju status -e devel
juju-test.conductor DEBUG : State for 1.23.0: started
juju-test.
2015-04-13 08:54:02 Starting deployment of devel
2015-04-13 08:54:03 Deploying services...
2015-04-13 08:54:03 Deploying service hacluster using cs:trusty/
2015-04-13 08:54:07 Deploying service percona-cluster using local:trusty/
2015-04-13 08:54:21 Config specifies num units for subordinate: hacluster
2015-04-13 08:57:06 Adding relations...
2015-04-13 08:57:06 Adding relation percona-cluster:ha <-> hacluster:ha
2015-04-13 08:58:11 Deployment complete in 248.55 seconds
Traceback (most recent call last):
File "tests/
t.run()
File "tests/
super(
File "/home/
assert sorted(
AssertionError
juju-test.
ERROR subprocess encountered error code 1
percona-cluster/1
ERROR subprocess encountered error code 1
percona-cluster/0
inet 10.5.100.1/24 brd 10.5.100.255 scope global eth0
vip(10.5.100.1) running in percona-cluster/0
juju-test. conductor. 20-broken- mysqld. py DEBUG : Got exit code: 1 conductor. 20-broken- mysqld. py RESULT : ✘
juju-test.
juju-test.conductor DEBUG : Tearing down devel juju environment
juju-test.conductor DEBUG : Calling "juju destroy-environment -y devel"
WARNING cannot delete security group "juju-devel-0". Used by another environment?
juju-test INFO : Results: 1 passed, 2 failed, 0 errored
ERROR subprocess encountered error code 2
make: *** [test] Error 2