When running "openstack image list" command the api limit restricted to maximum of 25 in OS_IMAGE_API_VERSION 2.

Solution Verified - Updated -

Issue

  • The source file which used in overcloud environment.

    [stack@instack ~]$ cat overcloudrc
    # Clear any old environment that may conflict.
    for key in $( set | awk '{FS="="}  /^OS_/ {print $1}' ); do unset $key ; done
    export OS_NO_CACHE=True
    export OS_CLOUDNAME=overcloud
    export OS_AUTH_URL=http://10.11.48.187:5000/v2.0
    export NOVA_VERSION=1.1
    export COMPUTE_API_VERSION=1.1
    export OS_USERNAME=admin
    export OS_PASSWORD=4kn8HFebuG2DU2cEztCjUwBXU
    export no_proxy=,10.11.48.187,192.0.2.12,10.11.48.187,192.0.2.12
    export OS_PROJECT_NAME=admin
    export OS_PROJECT_ID=d7b09ceaae8c45c58100e14932ed7b92
    export PYTHONWARNINGS="ignore:Certificate has no, ignore:A true SSLContext object is not available"
    [stack@instack ~]$ 
    
    [stack@instack ~]$ cat imagerc 
    # Clear any old environment that may conflict.
    for key in $( set | awk '{FS="="}  /^OS_/ {print $1}' ); do unset $key ; done
    export OS_NO_CACHE=True
    export OS_CLOUDNAME=overcloud
    export OS_AUTH_URL=http://10.11.48.187:5000/v2.0
    export NOVA_VERSION=1.1
    export COMPUTE_API_VERSION=1.1
    export OS_IMAGE_API_VERSION=1                ----------------------------> `IMAGE API version is added`
    export OS_USERNAME=admin
    export OS_PASSWORD=4kn8HFebuG2DU2cEztCjUwBXU
    export no_proxy=,10.11.48.187,192.0.2.12,10.11.48.187,192.0.2.12
    export OS_PROJECT_NAME=admin
    export OS_PROJECT_ID=d7b09ceaae8c45c58100e14932ed7b92
    export PYTHONWARNINGS="ignore:Certificate has no, ignore:A true SSLContext object is not available"
    [stack@instack ~]$ 
    
  • The output from overcloud node:

    [stack@instack ~]$ source imagerc
    [stack@instack ~]$ openstack image list  | grep active |wc -l
    28
    [stack@instack ~]$ 
    [stack@instack ~]$ openstack image list --private | grep active |wc -l
    23
    [stack@instack ~]$ openstack image list --public | grep active |wc -l
    5
    [stack@instack ~]$ 
    
    [stack@instack ~]$ source overcloudrc
    [stack@instack ~]$ openstack image list  | grep active |wc -l
    25                 -------------------------------------------------------> Here it is limiting to 25
    [stack@instack ~]$ 
    [stack@instack ~]$ 
    [stack@instack ~]$ openstack image list --private | grep active |wc -l
    23
    [stack@instack ~]$ 
    [stack@instack ~]$ openstack image list --public | grep active |wc -l
    5
    [stack@instack ~]$ 
    

Environment

  • Red Hat OpenStack Platform Version 10
  • Red Hat OpenStack Platform Version 11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content