Each exercise in this roadmap assumes that you have completed all previous exercises in the roadmap. The exercises have the following requirements:

  • An ACCESS User ID, which may be obtained from the ACCESS User Registration page.
  • An ACCESS allocation. ACCESS provides complete information about its allocations, while Jetstream2 provides an overview of the types of allocations that are available, with links to detailed information about allocations in the context of Jetstream2.
  • Curl or a REST API client installed on your computer.
Use the OpenStack REST API

In this exercise you will manage an existing Jetstream2 instance using OpenStack REST API commands.

  • Use the OpenStack REST API to authenticate with the Jetstream2.
  • Use the OpenStack REST API to find the ID of a shelved instance (server) from one of the preceding exercises.
  • Use the OpenStack REST API to unshelve the instance.
  • Use the Horizon web interface to determine when the instance has become active.
  • Use the REST API to shelve the instance.
Use the Python OpenStack SDK

Here you will use the OpenStack Python SDK to create an instance and then manage an instance.

  • Install the Python OpenStack SDK on your computer.
  • Write a Python program to connect to Jetstream2 and find a specific Ubuntu image.
  • Extend the Python program to create an instance from the Ubuntu image and other entities (network, security group, key pair, floating IP address) that were created in previous exercises.
  • Write a second Python program that connects to Jetstream2, finds the instance created in the previous step and then shelves it.
 
©  |   Cornell University    |   Center for Advanced Computing    |   Copyright Statement    |   Inclusivity Statement