← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2114814] [NEW] Fix incorrect oslo_limit configuration in Glance 28.1.1 (Caracal) docs causing HTTP 500 error during image upload.

 

Public bug reported:

When users attempt to Install OpenStack services : OpenStack Minimal deployment for 2024.1 (Caracal),
Finish with Identity service – keystone installation for 2024.1 (Caracal) and then proceed to Image service – glance installation for 2024.1 (Caracal), 

When an attempt is made to verify the installation by executing:

glance image-create --name "cirros" \

--file cirros-0.4.0-x86_64-disk.img \

--disk-format qcow2 --container-format bare \

--visibility=public

An Erroneous Output is recieved, stating : "HTTP 500 Internal Server
Error: The server has either erred or is incapable of performing the
requested operation."

This is mainly due a missing installation instruction in Glance
Installation : glance 28.1.1 dev 15, under section "Install and
configure (Ubuntu)", specifically the subsection - "Install and
configure components".

In the step "2. Edit the /etc/glance/glance-api.conf file and complete the following actions:"
For the Bullet Point "In the [oslo_limit] section, configure access to keystone:" I.e

[oslo_limit]
auth_url = http://controller:5000
auth_type = password
user_domain_id = default
username = glance
system_scope = all
password = GLANCE_PASS
endpoint_id = 340be3625e9b4239a6415d034e98aace
region_name = RegionOne

is wrong, it should have actually been :

[oslo_limit]
auth_url = http://controller:5000
auth_type = password
user_domain_id = default
username = glance
system_scope = all
password = GLANCE_PASS
endpoint_id = ENDPOINT_ID
region_name = RegionOne

where ENDPOINT_ID refers to the public interface endpoint id, which is
generated using the command :

"openstack endpoint create --region RegionOne \
  image public http://controller:9292";

which is listed under step "4. Create the Image service API endpoints:" under the subsection - Prerequisites.
 
But, when I referred to the Installation manual for Install OpenStack services : OpenStack Minimal deployment for 2025.1 (Epoxy), subsection : Image service – glance installation for 2025.1 (Epoxy), I discovered that installation instruction in Glance Installation : glance 30.0.1 dev 5, under section "Install and configure (Ubuntu)", specifically the subsection - "Install and configure components".

In the step "2. Edit the /etc/glance/glance-api.conf file and complete the following actions:"
For the Bullet Point "In the [oslo_limit] section, configure access to keystone:" I.e

[oslo_limit]
auth_url = http://controller:5000
auth_type = password
user_domain_id = default
username = glance
system_scope = all
password = GLANCE_PASS
endpoint_id = ENDPOINT_ID
region_name = RegionOne

Replace GLANCE_PASS with the password you chose for the glance user in
the Identity service.

Replace ENDPOINT_ID with the ID of the image endpoint you created
earlier (in our case, this would be 340be3625e9b4239a6415d034e98aace),
and that you may find by running:

openstack endpoint list --service glance --region RegionOne

The Instructions are very clear and precise!

Kindly make the change in the documentation for glance 28.1.1 dev 15 as
the instruction in it's documentation is not only incomplete but also
misleading at some point during the installation.

Kindly do the needful and oblige.

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: 15 28.1.1 dev glance

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/2114814

Title:
  Fix incorrect oslo_limit configuration in Glance 28.1.1 (Caracal) docs
  causing HTTP 500 error during image upload.

Status in Glance:
  New

Bug description:
  When users attempt to Install OpenStack services : OpenStack Minimal deployment for 2024.1 (Caracal),
  Finish with Identity service – keystone installation for 2024.1 (Caracal) and then proceed to Image service – glance installation for 2024.1 (Caracal), 

  When an attempt is made to verify the installation by executing:

  glance image-create --name "cirros" \

  --file cirros-0.4.0-x86_64-disk.img \

  --disk-format qcow2 --container-format bare \

  --visibility=public

  An Erroneous Output is recieved, stating : "HTTP 500 Internal Server
  Error: The server has either erred or is incapable of performing the
  requested operation."

  This is mainly due a missing installation instruction in Glance
  Installation : glance 28.1.1 dev 15, under section "Install and
  configure (Ubuntu)", specifically the subsection - "Install and
  configure components".

  In the step "2. Edit the /etc/glance/glance-api.conf file and complete the following actions:"
  For the Bullet Point "In the [oslo_limit] section, configure access to keystone:" I.e

  [oslo_limit]
  auth_url = http://controller:5000
  auth_type = password
  user_domain_id = default
  username = glance
  system_scope = all
  password = GLANCE_PASS
  endpoint_id = 340be3625e9b4239a6415d034e98aace
  region_name = RegionOne

  is wrong, it should have actually been :

  [oslo_limit]
  auth_url = http://controller:5000
  auth_type = password
  user_domain_id = default
  username = glance
  system_scope = all
  password = GLANCE_PASS
  endpoint_id = ENDPOINT_ID
  region_name = RegionOne

  where ENDPOINT_ID refers to the public interface endpoint id, which is
  generated using the command :

  "openstack endpoint create --region RegionOne \
    image public http://controller:9292";

  which is listed under step "4. Create the Image service API endpoints:" under the subsection - Prerequisites.
   
  But, when I referred to the Installation manual for Install OpenStack services : OpenStack Minimal deployment for 2025.1 (Epoxy), subsection : Image service – glance installation for 2025.1 (Epoxy), I discovered that installation instruction in Glance Installation : glance 30.0.1 dev 5, under section "Install and configure (Ubuntu)", specifically the subsection - "Install and configure components".

  In the step "2. Edit the /etc/glance/glance-api.conf file and complete the following actions:"
  For the Bullet Point "In the [oslo_limit] section, configure access to keystone:" I.e

  [oslo_limit]
  auth_url = http://controller:5000
  auth_type = password
  user_domain_id = default
  username = glance
  system_scope = all
  password = GLANCE_PASS
  endpoint_id = ENDPOINT_ID
  region_name = RegionOne

  Replace GLANCE_PASS with the password you chose for the glance user in
  the Identity service.

  Replace ENDPOINT_ID with the ID of the image endpoint you created
  earlier (in our case, this would be 340be3625e9b4239a6415d034e98aace),
  and that you may find by running:

  openstack endpoint list --service glance --region RegionOne

  The Instructions are very clear and precise!

  Kindly make the change in the documentation for glance 28.1.1 dev 15
  as the instruction in it's documentation is not only incomplete but
  also misleading at some point during the installation.

  Kindly do the needful and oblige.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/2114814/+subscriptions