Skip to main content

No project description provided

Project description

Author:

Shintaro Katayama

python-shka-gadgets-openstackclient

This is a plugin of OpenStackClient (a.k.a. OSC) to make a single and simple virtual machine handy. In a typical use-case, the virtual machine (names “vanilla” here) given a floating IP address is created and used interactively. Sometimes the vanilla would be shelved; the floating IP address and the security rules are taken away when it is shelved, and these are given again when it is unshelved. After the interactive tasks, the given resources and the images would be cleaned out. The “vanilla” plugin simplifies such resource management in the project work.

Getting Started

This plugin can be installed from PyPI using pip. It will install also a minimal OSC (=python-openstackclient) for the “vanilla” server management.

Example

python3 -m venv venv3
. ./venv3/bin/activate
pip3 install python-shka-gadgets-openstackclient
. ./openrc.sh

The openrc.sh here is a script for OSC environment, which you can download from the OpenStack dashboard of your project. The script will ask a password of the project.

openstack vanilla create --flavor standard.tiny --key-name mykey --image Ubuntu-18.04 test

It creates a vanilla server named test on standard.tiny flavor from the Ubuntu 18.04 image. The specified key pair must be registered already. It gives a floating IP address to the vanilla and prepares a security group to login via ssh.

openstack server ssh --login ubuntu test

You can login to test as avobe if the login name is ubuntu.

mkdir -p ~/mnt/ubuntu
sshfs ubuntu@`openstack vanilla show ip test`: ~/mnt/ubuntu
ls -l ~/mnt/ubuntu
umount ~/mnt/ubuntu

You can mount ubuntu’s home directory of test by sshfs, if you prefer.

openstack vanilla shelve test

It shelves test - It’s good when you will leave the project temporarily. The floating IP address and the security group is taken away. The old image used for the previous unshelve is removed.

openstack vanilla unshelve test

You can unshelve test when you restart the project. The floating IP address and the security group are configured again.

openstack vanilla resize --flavor standard.xxlarge test

You can resize test when you need more power, if the project supports it.

openstack vanilla delete test

After the project you can remove test completely.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file python-shka-gadgets-openstackclient-0.2.1.tar.gz.

File metadata

  • Download URL: python-shka-gadgets-openstackclient-0.2.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for python-shka-gadgets-openstackclient-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5aba579f5da97841d1979ba3e5092a51f5a954a02a277be518deb979bb25fa44
MD5 5cc6c2d48d51b065c6607399d52a4e36
BLAKE2b-256 5752dcc5ef7ba97a89ea2c66510c712522ae9468e39ed17ccd23123069817cb0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page