Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hannes-mbpr:~ hannes$ export CGCLOUD_PLUGINS=cgcloud.toil
- hannes-mbpr:~ hannes$ export CGCLOUD_ZONE=us-west-2a
- hannes-mbpr:~ hannes$ export CGCLOUD_KEYPAIRS="__me__ almussel@ucsc.edu fnothaft@berkeley.edu hannes@ucsc.edu heuermh@gmail.com jtvivian@gmail.com"
- hannes-mbpr:~ hannes$ virtualenv cgcloud
- New python executable in cgcloud/bin/python
- Installing setuptools, pip, wheel...done.
- hannes-mbpr:~ hannes$ . cgcloud/bin/activate
- (cgcloud)hannes-mbpr:~ hannes$ pip list
- pip (7.1.2)
- setuptools (18.2)
- wheel (0.24.0)
- (cgcloud)hannes-mbpr:~ hannes$ pip install cgcloud-toil
- Collecting cgcloud-toil
- Collecting Fabric==1.10.2 (from cgcloud-toil)
- Using cached Fabric-1.10.2-py2-none-any.whl
- Collecting bd2k-python-lib==1.11.dev6 (from cgcloud-toil)
- Collecting cgcloud-lib==1.3 (from cgcloud-toil)
- Collecting cgcloud-core==1.3 (from cgcloud-toil)
- Collecting cgcloud-mesos==1.3 (from cgcloud-toil)
- Collecting paramiko>=1.10 (from Fabric==1.10.2->cgcloud-toil)
- Using cached paramiko-1.16.0-py2.py3-none-any.whl
- Collecting boto==2.38.0 (from cgcloud-lib==1.3->cgcloud-toil)
- Using cached boto-2.38.0-py2.py3-none-any.whl
- Collecting PyYAML==3.11 (from cgcloud-core==1.3->cgcloud-toil)
- Collecting ecdsa>=0.11 (from paramiko>=1.10->Fabric==1.10.2->cgcloud-toil)
- Using cached ecdsa-0.13-py2.py3-none-any.whl
- Collecting pycrypto!=2.4,>=2.1 (from paramiko>=1.10->Fabric==1.10.2->cgcloud-toil)
- Installing collected packages: ecdsa, pycrypto, paramiko, Fabric, bd2k-python-lib, boto, cgcloud-lib, PyYAML, cgcloud-core, cgcloud-mesos, cgcloud-toil
- Successfully installed Fabric-1.10.2 PyYAML-3.11 bd2k-python-lib-1.11.dev6 boto-2.38.0 cgcloud-core-1.3 cgcloud-lib-1.3 cgcloud-mesos-1.3 cgcloud-toil-1.3 ecdsa-0.13 paramiko-1.16.0 pycrypto-2.6.1
- (cgcloud)hannes-mbpr:~ hannes$ pip list
- bd2k-python-lib (1.11.dev6)
- boto (2.38.0)
- cgcloud-core (1.3)
- cgcloud-lib (1.3)
- cgcloud-mesos (1.3)
- cgcloud-toil (1.3)
- ecdsa (0.13)
- Fabric (1.10.2)
- paramiko (1.16.0)
- pip (7.1.2)
- pycrypto (2.6.1)
- PyYAML (3.11)
- setuptools (18.2)
- wheel (0.24.0)
- (cgcloud)hannes-mbpr:~ hannes$ cat ~/.boto
- [Credentials]
- aws_access_key_id = AKIAJLXBKGOUYVOHV4VQ
- aws_secret_access_key =xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- [Boto]
- num_retries = 20
- [preview]
- sdb = true
- (cgcloud)hannes-mbpr:~ hannes$ pip install argcomplete
- Collecting argcomplete
- Using cached argcomplete-1.0.0-py2.py3-none-any.whl
- Installing collected packages: argcomplete
- Successfully installed argcomplete-1.0.0
- (cgcloud)hannes-mbpr:~ hannes$ eval "$(~/cgcloud/bin/register-python-argcomplete cgcloud)"
- (cgcloud)hannes-mbpr:~ hannes$ cgcloud register-key ~/.ssh/hannes@ucsc.edu.pub
- INFO: Using zone 'us-west-2a' and namespace '/hannes/'
- (cgcloud)hannes-mbpr:~ hannes$ cgcloud create -IT toil-box
- INFO: Using zone 'us-west-2a' and namespace '/hannes/'
- INFO: Looking up default image for role toil-box and virtualization type hvm, ...
- INFO: ... found ami-c94856a8.
- INFO: Creating t2.micro instance(s) ...
- INFO: ... got InvalidParameterValue, trying again in 5s ...
- INFO: ... got InvalidParameterValue, trying again in 5s ...
- INFO: ... created i-f7e0e733.
- INFO: Tagging instance ...
- INFO: ... instance tagged {'cluster_name': u'i-f7e0e733', 'ebs_volume_size': '0', 'cluster_ordinal': '0', 'Name': u'hannes_toil-box', 'enable_agent': 'True', 'generation': '0'}.
- INFO: ... waiting for instance i-f7e0e733 ...
- INFO: ... running, waiting for assignment of public IP ...
- INFO: ... assigned, waiting for SSH port ...
- .
- .
- .
- [54.201.137.171] out: Installing /opt/mesosbox/tools/lib/python2.7/site-packages/bd2k_python_lib-1.11.dev6-py2.7-nspkg.pth
- [54.201.137.171] out: Successfully installed cgcloud-lib cgcloud-mesos-tools bd2k-python-lib boto
- [54.201.137.171] out: Cleaning up...
- [54.201.137.171] out:
- [54.201.137.171] sudo: chown -R root:root /opt/mesosbox/tools
- [54.201.137.171] put: <file obj> -> /etc/init/mesosbox.conf
- [54.201.137.171] sudo: chown root:root '/etc/init/mesosbox.conf'
- INFO: Stopping instance ...
- INFO: ... instance stopped.
- INFO: Creating image ...
- INFO: ... created ami-b50618d4 (hannes_toil-box__2015-12-21__12-15-48).
- INFO: Checking if image ami-b50618d4 is discoverable ...
- INFO: ... image now discoverable.
- INFO: Terminating instance ...
- INFO: ... instance terminated.
- cgcloud)hannes-mbpr:~ hannes$ cgcloud create-cluster -t m3.large --ebs-volume-size 30 -s 2 toil
- INFO: Using zone 'us-west-2a' and namespace '/hannes/'
- INFO: === Launching leader ===
- INFO: Creating m3.large instance(s) ...
- INFO: ... got InvalidParameterValue, trying again in 5s ...
- INFO: ... created i-dbe9ee1f.
- INFO: Tagging instance ...
- INFO: ... instance tagged {'cluster_name': u'i-dbe9ee1f', 'ebs_volume_size': '30', 'leader_instance_id': u'i-dbe9ee1f', 'Name': u'hannes_toil-leader', 'enable_agent': 'True', 'generation': '1', 'cluster_ordinal': '0'}.
- INFO: ... waiting for instance i-dbe9ee1f ...
- INFO: ... running, waiting for assignment of public IP ...
- INFO: ... assigned, waiting for SSH port ...
- INFO: ... open ...
- INFO: ... testing SSH ...
- INFO: ... SSH working ...,
- INFO: ... instance ready.
- INFO: Waiting for cloud-init to finish ....
- INFO: .
- INFO: .
- INFO: .
- INFO: ... cloud-init done.
- INFO: === Launching workers ===
- INFO: Creating m3.large instance(s) ...
- INFO: ... got InvalidParameterValue, trying again in 5s ...
- Thread-5 INFO: ... created i-90e9ee54.
- Thread-6 INFO: ... created i-91e9ee55.
- Thread-5 INFO: Tagging instance ...
- Thread-6 INFO: Tagging instance ...
- Thread-5 INFO: ... instance tagged {'cluster_name': u'i-dbe9ee1f', 'ebs_volume_size': '30', 'leader_instance_id': u'i-dbe9ee1f', 'Name': u'hannes_toil-worker', 'enable_agent': 'True', 'generation': '1', 'cluster_ordinal': '1'}.
- Thread-5 INFO: ... waiting for instance i-90e9ee54 ...
- Thread-6 INFO: ... instance tagged {'cluster_name': u'i-dbe9ee1f', 'ebs_volume_size': '30', 'leader_instance_id': u'i-dbe9ee1f', 'Name': u'hannes_toil-worker', 'enable_agent': 'True', 'generation': '1', 'cluster_ordinal': '2'}.
- Thread-6 INFO: ... waiting for instance i-91e9ee55 ...
- Thread-6 INFO: ... running, waiting for assignment of public IP ...
- Thread-6 INFO: ... assigned, waiting for SSH port ...
- Thread-5 INFO: ... running, waiting for assignment of public IP ...
- Thread-5 INFO: ... assigned, waiting for SSH port ...
- Thread-5 INFO: ... open ...
- Thread-5 INFO: ... testing SSH ...
- Thread-5 INFO: ... SSH working ...,
- Thread-5 INFO: ... instance ready.
- Thread-5 INFO: Waiting for cloud-init to finish ....
- Thread-5 INFO: .
- Thread-5 INFO: .
- Thread-5 INFO: .
- Thread-5 INFO: ... cloud-init done.
- Thread-6 INFO: ... open ...
- Thread-6 INFO: ... testing SSH ...
- Thread-6 INFO: ... SSH working ...,
- Thread-6 INFO: ... instance ready.
- Thread-6 INFO: Waiting for cloud-init to finish ....
- Thread-6 INFO: .
- Thread-6 INFO: .
- Thread-6 INFO: .
- Thread-6 INFO: .
- Thread-6 INFO: .
- Thread-6 INFO: ... cloud-init done.
- INFO: Run 'cgcloud ssh toil-leader' to start using this cluster.
- (cgcloud)hannes-mbpr:~ hannes$ cgcloud ssh toil-leader
- INFO: Using zone 'us-west-2a' and namespace '/hannes/'
- INFO: Binding to instance ...
- INFO: ... waiting for instance i-dbe9ee1f ...
- INFO: ... running, waiting for assignment of public IP ...
- INFO: ... assigned, waiting for SSH port ...
- INFO: ... open ...
- INFO: ... instance ready.
- The authenticity of host 'ec2-54-201-122-169.us-west-2.compute.amazonaws.com (54.201.122.169)' can't be established.
- ECDSA key fingerprint is SHA256:lrYxP6RLiPT/K/cXZBDiu0XEQ0r8aUsBWC7PkWVSDw0.
- Are you sure you want to continue connecting (yes/no)? yes
- Warning: Permanently added 'ec2-54-201-122-169.us-west-2.compute.amazonaws.com,54.201.122.169' (ECDSA) to the list of known hosts.
- Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-74-generic x86_64)
- * Documentation: https://help.ubuntu.com/
- System information as of Mon Dec 21 20:29:40 UTC 2015
- System load: 0.38 Processes: 122
- Usage of /: 17.3% of 9.71GB Users logged in: 0
- Memory usage: 2% IP address for eth0: 172.31.24.146
- Swap usage: 0% IP address for docker0: 172.17.0.1
- Graph this data and manage this system at:
- https://landscape.canonical.com/
- Get cloud support with Ubuntu Advantage Cloud Guest:
- http://www.ubuntu.com/business/services/cloud
- 1 package can be updated.
- 0 updates are security updates.
- Last login: Mon Dec 21 20:14:08 2015 from c-67-180-92-62.hsd1.ca.comcast.net
- mesosbox@ip-172-31-24-146:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement