This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ fab deploy | |
No hosts found. Please specify (single) host string for connection: my_server | |
[my_server] run: test -d /srv/django/myproject | |
Warning: run() encountered an error (return code 1) while executing 'test -d /srv/django/myproject' | |
[my_server] run: git clone user@vcshost:/path/to/repo/.git /srv/django/myproject | |
[my_server] out: Cloning into /srv/django/myproject... | |
[my_server] out: Password: <enter password> | |
[my_server] out: remote: Counting objects: 6698, done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import with_statement | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
env.hosts = ['my_server'] | |
def test(): | |
do_test_stuff() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> reservation = conn.run_instances(image_id='ami-ccf405a5', \ | |
key_name='gsg-keypair') | |
>>> reservation.instances | |
[Instance:i-6761850e] | |
>>> instance = reservation.instances[0] | |
>>> instance.state | |
u'pending' | |
>>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/local/noderabbit/dztasks/lib/python2.6/site-packages/celery/execute/trace.py", line 34, in trace | |
return cls(states.SUCCESS, retval=fun(*args, **kwargs)) | |
File "/usr/local/noderabbit/dztasks/lib/python2.6/site-packages/celery/task/base.py", line 227, in __call__ | |
return self.run(*args, **kwargs) | |
File "/usr/local/noderabbit/dztasks/lib/python2.6/site-packages/celery/app/__init__.py", line 141, in run | |
return fun(*args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2011-08-31 22:09:06 UTC LOG: incomplete startup packet | |
2011-08-31 22:09:07 UTC LOG: received fast shutdown request | |
2011-08-31 22:09:07 UTC LOG: aborting any active transactions | |
2011-08-31 22:09:07 UTC FATAL: terminating autovacuum process due to administrator command | |
2011-08-31 22:09:07 UTC FATAL: terminating autovacuum process due to administrator command | |
2011-08-31 22:09:07 UTC FATAL: terminating connection due to administrator command | |
2011-08-31 22:09:07 UTC FATAL: terminating connection due to administrator command | |
2011-08-31 22:09:07 UTC FATAL: terminating connection due to administrator command | |
2011-08-31 22:09:07 UTC LOG: autovacuum launcher shutting down | |
2011-08-31 22:09:07 UTC FATAL: terminating autovacuum process due to administrator command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/var/www/nrweb/nrweb/usercontrol/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response | |
response = callback(request, *callback_args, **callback_kwargs) | |
File "/var/www/nrweb/nrweb/usercontrol/lib/python2.6/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view | |
return view_func(request, *args, **kwargs) | |
File "/var/www/nrweb/nrweb/usercontrol/djangozoom/decorators.py", line 39, in wrapper | |
response = view_func(request, *args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ fab rootshell:db | |
Starting ssh for root on role/host: db... | |
SSHing to 184.73.225.102 ... | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ | |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! | |
Someone could be eavesdropping on you right now (man-in-the-middle attack)! | |
It is also possible that the RSA host key has just been changed. | |
The fingerprint for the RSA key sent by the remote host is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db-0002 | |
------- | |
$ cat /etc/fstab | |
proc /proc proc nodev,noexec,nosuid 0 0 | |
LABEL=uec-rootfs / ext4 defaults 0 0 | |
/dev/sda2 /mnt auto defaults,nobootwait,comment=cloudconfig 0 2 | |
/dev/sda3 none swap sw,comment=cloudconfig 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /etc/fstab | |
# /etc/fstab: static file system information. | |
# <file system> <mount point> <type> <options> <dump> <pass> | |
proc /proc proc nodev,noexec,nosuid 0 0 | |
LABEL=uec-rootfs / ext4 defaults 0 0 | |
/dev/sda2 /mnt auto defaults,nobootwait,comment=cloudconfig 0 2 | |
/dev/sda3 none swap sw,comment=cloudconfig 0 0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(dztasks)root@ip-10-245-197-173:/usr/local/noderabbit/dztasks/tasks# celeryctl status | |
Traceback (most recent call last): | |
File "/usr/local/noderabbit/dztasks/bin/celeryctl", line 9, in <module> | |
load_entry_point('celery==2.3.1', 'console_scripts', 'celeryctl')() | |
File "/usr/local/noderabbit/dztasks/lib/python2.6/site-packages/celery/bin/celeryctl.py", line 345, in main | |
celeryctl().execute_from_commandline() | |
File "/usr/local/noderabbit/dztasks/lib/python2.6/site-packages/celery/bin/base.py", line 72, in execute_from_commandline | |
return self.handle_argv(prog_name, argv[1:]) | |
File "/usr/local/noderabbit/dztasks/lib/python2.6/site-packages/celery/bin/celeryctl.py", line 340, in handle_argv | |
return self.execute(command, argv) |