openstack Verified current stable Not installed? Cloud Infrastructure

Openstack / List Available Images

List Available Images

List available OpenStack images for deployment.

$
Terminal
openstack image list --private

When To Use

During the provisioning or scaling of instances in OpenStack.

Pro Tip

Using the '--private' flag may incur listing costs based on image visibility settings; ensure necessary permissions are configured.

Anatomy of Output

Understanding the result

+--------------------------------------+---------------------+--------+--------+--------------------------------------+ Image List Header

Shows column structure of the image listing.

| f1aa3dad-0d61-4e15-8da0-28558ebac077 | Ubuntu 20.04 | active | 2023-10-10T01:00:00Z | 3c911eac-5253-4e3e-a89b-8b931a944b00 | Sample Image Entry

Provides details on each image including ID, name, and status.

Power User Variants

Optimized versions

openstack image list --private

Lists only images that are private to your project.

openstack image list --shared

Lists only images that are shared across projects.

Troubleshooting

Common pitfalls

No images found.

Solution: Check your tenant/visibility settings, or ensure images exist in your project.

Invalid scope specified.

Solution: Make sure the image scope is one of the allowed options: 'private', 'shared', or 'all'.

Access denied for the resource.

Solution: Verify user permissions and roles for image visibility.

Command Breakdown

What each part is doing

openstack
Base Command
The executable that performs this operation. Here it runs Openstack before the shell applies any redirect operators.
--private
private| shared| all
The value supplied for private| shared| all.
--private
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.