Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openstack-{help, image, server, volume}: add page #15843

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pages/common/openstack-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# openstack help

> Display help information about the openstackclient cli.
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/man/openstack.html>.

- Display list of available commands:

`openstack --help`

- Description of a particular command:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Description of a particular command:
- Display description of a particular command:


`openstack help {{command_name}}`

- Get help for Identity v3:

`openstack --os-identity-api-version 3 --help`
24 changes: 24 additions & 0 deletions pages/common/openstack-image.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# openstack image

> OpenStack Image service, aka OpenStack Glance, allows users to upload and discover data assets meant to be used with other services.
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/image-v2.html>.

- List available images:

`openstack image list [--public | --private | --community | --shared | --all] [--long]`
Copy link
Collaborator

@Managor Managor Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refer to the style guide on how to format placeholders in tldr pages

https://github.com/tldr-pages/tldr/blob/main/contributing-guides/style-guide.md#placeholder-syntax

Here for example I would disregard all the options and just put openstack image list. If you want to provide an example with the other options, you can create another example. Be explicit. Full documentation is for the man pages.


- Display image details:

`openstack image show --human-readable {{image_id}}`

- Create/upload an image:

`openstack image create [--file <file> | --volume <volume>] [--public | --private | --community | --shared] {{image_name}}`

- Delete image(s):

`openstack image delete {{image_id}} [{{image_id}} ...]`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`openstack image delete {{image_id}} [{{image_id}} ...]`
`openstack image delete {{image_id1 image_id2 ...}}`


- Save an image locally:

`openstack image save --file {{filename}} {{image_id}}`
33 changes: 33 additions & 0 deletions pages/common/openstack-server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# openstack server

> Manage OpenStack virtual machines.
> OpenStack Compute service, aka OpenStack Nova, mainly hosts and manages cloud computing systems.
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/server.html>.

- List servers:

`openstack server list`

- Start server(s):

`openstack server start {{instance_id}} [{{instance_id}} ...]`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`openstack server start {{instance_id}} [{{instance_id}} ...]`
`openstack server start {{instance_id1 instance_id2 ...}}`

See https://github.com/tldr-pages/tldr/blob/main/contributing-guides/style-guide.md#grouping-placeholders


- Stop server:

`openstack server stop {{instance_id}} [{{instance_id}} ...]`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`openstack server stop {{instance_id}} [{{instance_id}} ...]`
`openstack server stop {{instance_id1 instance_id2 ...}}`


- Create new server:

`openstack server create --image {{image_id}} --flavor {{flavor_id}} --network {{network_id}} --wait {{server_name}}`

- Delete server(s):

`openstack server delete {{instance_id}} [{{instance_id}} ...]`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`openstack server delete {{instance_id}} [{{instance_id}} ...]`
`openstack server delete {{instance_id1 instance_id2 ...}}`


- Migrate server to different host:

`openstack server migrate [--live {{host_hostname}}] [--shared-migration | --block-migration] --wait {{instance_id}}`

- Perform a soft or hard reset to the server:

`openstack server reboot [--hard | --soft] [--wait] {{instance_id}}`
29 changes: 29 additions & 0 deletions pages/common/openstack-volume.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# openstack volume

> Manage OpenStack volumes.
> OpenStack Block Storage service, aka OpenStack Cinder, provides volumes to Nova vm's, Ironic bare-metal hosts, containers, and others.
> More information: <https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/volume.html>.

- List volumes:

`openstack volume list [--all-projects] [--long]`

- Show volume details:

`openstack volume show {{volume_id}}`

- Create new volume:

`openstack volume create --size {{size_in_GB}} [--image {{image_id}} --snapshot {{snapshot_id}}] [--bootable | --non-bootable] {{volume_name}}`

- Delete volumes(s):

`openstack volume delete {{volume_id}} [{{volume_id}} ...]`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`openstack volume delete {{volume_id}} [{{volume_id}} ...]`
`openstack volume delete {{volume_id1 volume_id2 ...}}`


- Migrate volume to a new host:

`openstack volume migrate --host {{host_hostname}} {{instance_id}}`

- Set volume properties:

`openstack volume set [--name {{volume_new_name}}] [--size {{volume_new_size}}] [--attached | --detached] [--bootable | --non-bootable] {{volume_id}}`