Coder Social home page Coder Social logo

chameleon-client's Introduction

chameleon-client

This client script provides an automated way to create a lease and start an instance in Chameleon. New users may want to use the Chameleon website instead for this. For documentation on how to use Chameleon, please take a look at the Getting Started documentation.

To be added to the SAGE project in Chameleon, please send an email with your Chameleon username to (email address not decided yet) .

OpenStack RC File

Once you created Chameleon user account and have been added to the SAGE project in Chameleon, download the OpenStack RC File. Go to https://chi.uc.chameleoncloud.org/project/. Click on your username in the top right corner of the web site and select "OpenStack RC File v3". Save that file somewhere on your machines, for example in your home directory like this: ${HOME}/SAGE_project-openrc.sh

ssh key

Upload an existing public key or create a new ssh key pair: Goto https://chi.uc.chameleoncloud.org/project/key_pairs and click on either "Import Public Key" or "Create Key Pair". You will need the private key to be able to ssh into an instance you created. They default place for a private key is ~/.ssh/id_rsa. If have more than one ssh key you can also use a more descriptive names such as ~/.ssh/chameleon.pem and ~/.ssh/chameleon.pub.

Build container

docker build -t chameleon-client .

Start container

docker run -ti --rm -v ${HOME}/SAGE_project-openrc.sh:/openrc.sh:ro chameleon-client /bin/bash

On start of the container your openrc.sh will be automatically sourced. Be sure to specify the correct path to that file in the docker run command. Note that the openrc.sh will ask you for your chameleon password every time you start the container.

Start chameleon bare-metal instance

./create_instance.sh

By default the leasing lasts within a day. If longer leasing day is needed,

./create_instance.sh -help
 Lease a Chameleon node
 USAGE: create_instance.sh [OPTIONS]
    [OPTIONS]
    -help         Print help
    -days         Number of days to lease
./create_instance.sh -days 7

You can change some defaults by setting environment variables, e.g.:

export IMAGE='CC-Ubuntu18.04-CUDA10'
export KEY_NAME='my_favorite_ssh_key'  # e.g. if you have more than one key in Chameleon

chameleon-client's People

Contributors

wgerlach avatar gemblerz avatar

Watchers

James Cloos avatar Joseph Swantek avatar

chameleon-client's Issues

create_instance.sh exited with an error

When running create_instance.sh an error occurred,
NOTE: The full logs can be provided upon request

+ openstack server create --image CC-Ubuntu18.04-CUDA10 --flavor baremetal --key-name themas theone --nic net-id=1a03cf65-8fd6-4fce-94fd-bbaabe68a8e1 --hint reservation=364f1ec1-2583-4dd3-a233-22a4170d32e6 yhkim_1
usage: openstack server create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--noindent] [--prefix PREFIX] [--max-width <integer>] [--fit-width] [--print-empty]
                               (--image <image> | --image-property <key=value> | --volume <volume>) --flavor <flavor> [--security-group <security-group>]
                               [--key-name <key-name>] [--property <key=value>] [--file <dest-filename=source-filename>] [--user-data <user-data>]
                               [--description <description>] [--availability-zone <zone-name>] [--host <host>] [--hypervisor-hostname <hypervisor-hostname>]
                               [--boot-from-volume <volume-size>] [--block-device-mapping <dev-name=mapping>]
                               [--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid,auto,none>] [--network <network>] [--port <port>]
                               [--hint <key=value>] [--config-drive <config-drive-volume>|True] [--min <count>] [--max <count>] [--wait]
                               <server-name>
openstack server create: error: unrecognized arguments: yhkim_1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.