Skip to content

amirhoseinjafari1/OpenStack-ToolBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

OpenStack Toolbox

An interactive Bash CLI tool for day‑to‑day OpenStack operations.

This tool helps sysadmins and DevOps engineers handle common OpenStack tasks faster using menus—without typing long CLI commands.

It wraps familiar OpenStack utilities (openstack, nova, cinder) in a clean interactive workflow.


Overview

Managing OpenStack via raw CLI can be repetitive and error‑prone.
OpenStack Toolbox simplifies routine operations by guiding the user through prompts and executing the correct OpenStack commands.

It focuses on speed, clarity, and reducing mistakes in everyday tasks.


Features

  • Interactive menus for quick operations
  • List servers, volumes, images, networks, hypervisors
  • Create security groups and add ingress/egress rules
  • Attach interfaces to instances
  • Boot new instances with optional parameters
  • Reset instance/volume states
  • Set Windows password
  • Simple Bash implementation (no heavy dependencies)

Requirements

The following tools must be installed:

  • bash
  • openstack CLI
  • nova CLI
  • cinder CLI

Also ensure OpenStack environment variables are exported:

  • OS_AUTH_URL
  • OS_USERNAME
  • OS_PASSWORD
  • OS_PROJECT_NAME
  • OS_USER_DOMAIN_NAME (if needed)
  • OS_PROJECT_DOMAIN_NAME (if needed)

Check CLIs:

openstack --version
nova --version
cinder --version

Installation

Clone the repository:

git clone https://github.com/amirhoseinjafari1/OpenStack-ToolBox.git
cd openstack-toolbox

Make the script executable:

chmod +x openstack-cmd.sh

Usage

Run the tool:

./openstack-cmd.sh

The script will present a menu and guide you through operations like:

  • listing resources
  • creating security groups
  • adding firewall rules
  • booting instances
  • attaching interfaces
  • resetting states

Supported Operations

OpenStack Toolbox currently supports:

  • Server management

    • list servers
    • show details
    • reset state
    • set Windows password
  • Volume management

    • list volumes
    • reset volume state
  • Network operations

    • list networks
    • attach interface to instance
  • Security groups

    • create Security Groups
    • add ingress/egress rules
  • Compute resources

    • list images, flavors, hypervisors
    • boot new instances with options

Example Workflow

  1. Run the toolbox
  2. Choose operation from menu
  3. Provide required parameters
  4. Execute the task
  5. Verify results in OpenStack

How It Works

The script is a Bash wrapper that runs standard OpenStack commands such as:

openstack server list
openstack volume list
nova boot ...
cinder reset-state ...

This approach keeps everything compatible with your existing OpenStack CLI environment.


Project Structure

. ├── openstack-cmd.sh ├── README.md └── LICENSE


Use Cases

This tool is useful for:

  • Everyday OpenStack administration
  • Fast repetitive operations
  • Reducing CLI errors
  • Training new team members

License

MIT License


About

OpenStack Toolbox is an interactive Bash CLI for day‑to‑day OpenStack operations. It provides fast menus for managing instances, volumes, networks, and security groups— perfect for sysadmins who want speed and clarity without typing long CLI commands. 🚧 This project is actively maintained and new features will be added soon.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages