I changed the script to invoke 'juju -v status' and got this:
/home/bac> ./status_fail.py
.............................................
Exception caught on iteration 46
Command '['juju', '-v', 'status']' returned non-zero exit status 1
2012-04-23 07:50:30,342 DEBUG Initializing juju status runtime
2012-04-23 07:50:30,354 WARNING ssl-hostname-verification is disabled for this environment
2012-04-23 07:50:30,354 WARNING EC2 API calls encrypted but not authenticated
2012-04-23 07:50:30,355 WARNING S3 API calls encrypted but not authenticated
2012-04-23 07:50:30,355 WARNING Ubuntu Cloud Image lookups encrypted but not authenticated
2012-04-23 07:50:30,355 INFO Connecting to environment...
2012-04-23 07:50:30,696 DEBUG Connecting to environment using ec2-107-22-125-141.compute-1.amazonaws.com...
2012-04-23 07:50:30,696 DEBUG Spawning SSH process with remote_user="ubuntu" remote_host="ec2-107-22-125-141.compute-1.amazonaws.com" remote_port="2181" local_port="32810".
2012-04-23 07:50:31,200:5623(0xb73e8b00):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.5
2012-04-23 07:50:31,200:5623(0xb73e8b00):ZOO_INFO@log_env@662: Client environment:host.name=sapa
2012-04-23 07:50:31,200:5623(0xb73e8b00):ZOO_INFO@log_env@669: Client environment:os.name=Linux
2012-04-23 07:50:31,200:5623(0xb73e8b00):ZOO_INFO@log_env@670: Client environment:os.arch=3.2.0-10-generic-pae
2012-04-23 07:50:31,200:5623(0xb73e8b00):ZOO_INFO@log_env@671: Client environment:os.version=#18-Ubuntu SMP Tue Jan 24 17:58:07 UTC 2012
2012-04-23 07:50:31,201:5623(0xb73e8b00):ZOO_INFO@log_env@679: Client environment:user.name=bac
2012-04-23 07:50:31,201:5623(0xb73e8b00):ZOO_INFO@log_env@687: Client environment:user.home=/home/bac
2012-04-23 07:50:31,201:5623(0xb73e8b00):ZOO_INFO@log_env@699: Client environment:user.dir=/home/bac
2012-04-23 07:50:31,201:5623(0xb73e8b00):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=localhost:32810 sessionTimeout=10000 watcher=0xb7821620 sessionId=0 sessionPasswd=<null> context=0x8fb4778 flags=0
2012-04-23 07:50:31,202:5623(0xb64ffb40):ZOO_INFO@check_events@1585: initiated connection to server [127.0.0.1:32810]
2012-04-23 07:50:32,097:5623(0xb64ffb40):ZOO_INFO@check_events@1632: session establishment complete on server [127.0.0.1:32810], sessionId=0x136df075bb80035, negotiated timeout=10000
2012-04-23 07:50:32,129 DEBUG Environment is initialized.
2012-04-23 07:50:32,130 INFO Connected to environment.
2012-04-23 07:50:32,369:5623(0xb64ffb40):ZOO_ERROR@handle_socket_error_msg@1603: Socket [127.0.0.1:32810] zk retcode=-4, errno=112(Host is down): failed while receiving a server response
2012-04-23 07:50:32,370:5623(0xb64ffb40):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:32810] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
self._startRunCallbacks(fail)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
self._runCallbacks()
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
_inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
result = g.send(result)
File "/usr/lib/python2.7/dist-packages/juju/control/status.py", line 93, in status
state = yield command(scope)
twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion: Connection lost.
2012-04-23 07:50:32,370 ERROR Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
self._startRunCallbacks(fail)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
self._runCallbacks()
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
_inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
result = g.send(result)
File "/usr/lib/python2.7/dist-packages/juju/control/status.py", line 93, in status
state = yield command(scope)
twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion: Connection lost.
Connection to the other side was lost in a non-clean fashion: Connection lost.
2012-04-23 07:50:32,371 ERROR Connection to the other side was lost in a non-clean fashion: Connection lost.
Traceback (most recent call last):
File "./status_fail.py", line 17, in <module>
juju_status()
File "/usr/lib/python2.7/dist-packages/shelltoolbox/__init__.py", line 133, in callable_command
return run(*all_args)
CalledProcessError: Command '['juju', '-v', 'status']' returned non-zero exit status 1
Hi Clint,
I changed the script to invoke 'juju -v status' and got this:
/home/bac> ./status_fail.py ....... ....... ....... ....... ....... ... verification is disabled for this environment 22-125- 141.compute- 1.amazonaws. com... user="ubuntu" remote_ host="ec2- 107-22- 125-141. compute- 1.amazonaws. com" remote_port="2181" local_port="32810". 200:5623( 0xb73e8b00) :ZOO_INFO@ log_env@ 658: Client environment: zookeeper. version= zookeeper C client 3.3.5 200:5623( 0xb73e8b00) :ZOO_INFO@ log_env@ 662: Client environment: host.name= sapa 200:5623( 0xb73e8b00) :ZOO_INFO@ log_env@ 669: Client environment: os.name= Linux 200:5623( 0xb73e8b00) :ZOO_INFO@ log_env@ 670: Client environment: os.arch= 3.2.0-10- generic- pae 200:5623( 0xb73e8b00) :ZOO_INFO@ log_env@ 671: Client environment: os.version= #18-Ubuntu SMP Tue Jan 24 17:58:07 UTC 2012 201:5623( 0xb73e8b00) :ZOO_INFO@ log_env@ 679: Client environment: user.name= bac 201:5623( 0xb73e8b00) :ZOO_INFO@ log_env@ 687: Client environment: user.home= /home/bac 201:5623( 0xb73e8b00) :ZOO_INFO@ log_env@ 699: Client environment: user.dir= /home/bac 201:5623( 0xb73e8b00) :ZOO_INFO@ zookeeper_ init@727: Initiating client connection, host=localhost: 32810 sessionTimeout= 10000 watcher=0xb7821620 sessionId=0 sessionPasswd= <null> context=0x8fb4778 flags=0 202:5623( 0xb64ffb40) :ZOO_INFO@ check_events@ 1585: initiated connection to server [127.0.0.1:32810] 097:5623( 0xb64ffb40) :ZOO_INFO@ check_events@ 1632: session establishment complete on server [127.0.0.1:32810], sessionId= 0x136df075bb800 35, negotiated timeout=10000 369:5623( 0xb64ffb40) :ZOO_ERROR@ handle_ socket_ error_msg@ 1603: Socket [127.0.0.1:32810] zk retcode=-4, errno=112(Host is down): failed while receiving a server response 370:5623( 0xb64ffb40) :ZOO_ERROR@ handle_ socket_ error_msg@ 1579: Socket [127.0.0.1:32810] zk retcode=-4, errno=111( Connection refused): server refused to accept the client python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 391, in errback _startRunCallba cks(fail) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 458, in _startRunCallbacks _runCallbacks( ) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 545, in _runCallbacks current. result, *args, **kw) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1095, in gotResult backs(r, g, deferred) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1039, in _inlineCallbacks python2. 7/dist- packages/ juju/control/ status. py", line 93, in status internet. error.Connectio nLost: Connection to the other side was lost in a non-clean fashion: Connection lost. python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 391, in errback _startRunCallba cks(fail) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 458, in _startRunCallbacks _runCallbacks( ) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 545, in _runCallbacks current. result, *args, **kw) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1095, in gotResult backs(r, g, deferred) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1039, in _inlineCallbacks python2. 7/dist- packages/ juju/control/ status. py", line 93, in status internet. error.Connectio nLost: Connection to the other side was lost in a non-clean fashion: Connection lost.
.......
Exception caught on iteration 46
Command '['juju', '-v', 'status']' returned non-zero exit status 1
2012-04-23 07:50:30,342 DEBUG Initializing juju status runtime
2012-04-23 07:50:30,354 WARNING ssl-hostname-
2012-04-23 07:50:30,354 WARNING EC2 API calls encrypted but not authenticated
2012-04-23 07:50:30,355 WARNING S3 API calls encrypted but not authenticated
2012-04-23 07:50:30,355 WARNING Ubuntu Cloud Image lookups encrypted but not authenticated
2012-04-23 07:50:30,355 INFO Connecting to environment...
2012-04-23 07:50:30,696 DEBUG Connecting to environment using ec2-107-
2012-04-23 07:50:30,696 DEBUG Spawning SSH process with remote_
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:31,
2012-04-23 07:50:32,
2012-04-23 07:50:32,129 DEBUG Environment is initialized.
2012-04-23 07:50:32,130 INFO Connected to environment.
2012-04-23 07:50:32,
2012-04-23 07:50:32,
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = g.send(result)
File "/usr/lib/
state = yield command(scope)
twisted.
2012-04-23 07:50:32,370 ERROR Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = g.send(result)
File "/usr/lib/
state = yield command(scope)
twisted.
Connection to the other side was lost in a non-clean fashion: Connection lost.
2012-04-23 07:50:32,371 ERROR Connection to the other side was lost in a non-clean fashion: Connection lost.
Traceback (most recent call last): python2. 7/dist- packages/ shelltoolbox/ __init_ _.py", line 133, in callable_command
File "./status_fail.py", line 17, in <module>
juju_status()
File "/usr/lib/
return run(*all_args)
CalledProcessError: Command '['juju', '-v', 'status']' returned non-zero exit status 1