Hi John,<br><br>I now have a futuregrid account and am added to a project. I am now trying to get our scripts working together. <br><br>I ran into a few problems at first when trying to run the futuregrid scripts. On the first system I tried I was getting a traceback. It is possible that the system I was using has older versions of some of the needed libraries. Then I tried it on a more system that is more frequently updated - my laptop running Ubuntu 10.10.  It needed a newer version of the Python crypto tools installed, so I installed that (and the python development libraries) and that part seems fine now.<br>
<br>I am now up to the point of the install script where it is trying to register keys, but it is failing. My guess is that I need to change FUTUREGRID_IAAS_ACCESS_KEY and FUTUREGRID_IAAS_SECRET_KEY in env.sh. I'm not sure what these should be exactly. Are these the contents of my ssh keys, an ssh key and a passphrase, or some other type of security? I've tried a few combinations of different things but haven't had much luck yet.<br>
<br>Thanks!<br><br>Regards,<br>David<br><br><br>Traceback from earlier:<br>Installing setuptools.......................done.<br>  Complete output from command /autonfs/home/davidk/swift-vm-...ython /autonfs/home/davidk/swift-vm-...stall pip:<br>
  Searching for pip<br>Reading <a href="http://pypi.python.org/simple/pip/">http://pypi.python.org/simple/pip/</a><br>Reading <a href="http://pip.openplans.org">http://pip.openplans.org</a><br>Reading <a href="http://www.pip-installer.org">http://www.pip-installer.org</a><br>
Best match: pip 1.0.1<br>Downloading <a href="http://pypi.python.org/packages/source/p/pip/pip-1.0.1.tar.gz#md5=28dcc70225e5bf925532abc5b087a94b">http://pypi.python.org/packages/source/p/pip/pip-1.0.1.tar.gz#md5=28dcc70225e5bf925532abc5b087a94b</a><br>
Processing pip-1.0.1.tar.gz<br>Running pip-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GHsjHX/pip-1.0.1/egg-dist-tmp-rXjQ7L<br>Traceback (most recent call last):<br>  File "/autonfs/home/davidk/swift-vm-boot/ve/bin/easy_install", line 8, in <module><br>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()<br>  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1712, in main<br>
  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage<br>  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1716, in <lambda><br>
  File "/soft/python-2.6.1-r1/lib/python2.6/distutils/core.py", line 152, in setup<br>    dist.run_commands()<br>  File "/soft/python-2.6.1-r1/lib/python2.6/distutils/dist.py", line 975, in run_commands<br>
    self.run_command(cmd)<br>  File "/soft/python-2.6.1-r1/lib/python2.6/distutils/dist.py", line 995, in run_command<br>    cmd_obj.run()<br>  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 211, in run<br>
  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 446, in easy_install<br>  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 476, in install_item<br>
  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 655, in install_eggs<br>  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 930, in build_and_install<br>
  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 919, in run_setup<br>  File "/autonfs/home/davidk/swift-vm-boot/ve/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/sandbox.py", line 52, in run_setup<br>
AttributeError: 'module' object has no attribute '__getstate__'<br>----------------------------------------<br>Traceback (most recent call last):<br>  File "bin/virtualenv.py", line 1647, in <module><br>
    main()<br>  File "bin/virtualenv.py", line 558, in main<br>    prompt=options.prompt)<br>  File "bin/virtualenv.py", line 656, in create_environment<br>    install_pip(py_executable)<br>  File "bin/virtualenv.py", line 415, in install_pip<br>
    filter_stdout=_filter_setup)<br>  File "bin/virtualenv.py", line 624, in call_subprocess<br>    % (cmd_desc, proc.returncode))<br>OSError: Command /autonfs/home/davidk/swift-vm-...ython /autonfs/home/davidk/swift-vm-...stall pip failed with error code 1<br>
Failed to created the needed python virtual environment<br><br><div class="gmail_quote">On Fri, May 20, 2011 at 7:20 PM, John Bresnahan <span dir="ltr"><<a href="mailto:bresnaha@mcs.anl.gov">bresnaha@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Our phone call today left me motiviated to show you guys how easy it is to get virtual machines for use with swift on FutureGrid.<br>

<br>
I made some small scripts around the Nimbus tool cloudinitd.  The scripts just make installing the software and running it trivial.  With a single command you can get N VMs from the FutureGrid Nimbus clouds (N can be on the order of hundreds).  When the tool is done it outputs a line separated list of hostnames.  All of these hostnames have root access available via your ~/.ssh/id_rsa keys.<br>

<br>
If/when you have FutureGrid credentials, untar the attachment and give it a try.  There are a few minor configurations needed:<br>
<br>
<br>
1) edit the file env.sh and set your FutureGrid security credentials:<br>
<br>
% cat env.sh<br>
export FUTUREGRID_IAAS_ACCESS_KEY=XXXXXXXXXXXXXXXXXX<br>
export FUTUREGRID_IAAS_SECRET_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
<br>
export FUTUREGRID_HOTEL_NODES=2<br>
export FUTUREGRID_SIERRA_NODES=2<br>
<br>
You can also change the value '2' to be whatever number of VMs you want.<br>
<br>
<br>
2) install it on your system.  (this single command downloads and installs everything you need under the cwd):<br>
<br>
% ./install.sh<br>
<br>
3) boot the VMs<br>
% ./bin/bootit.sh.<br>
<br>
You will see much status output, but the last several lines will be the hostnames acquired from the cloud.<br>
<br>
Let me know when you guys are ready to check this out!<br>
</blockquote></div><br>