← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1742821] [NEW] Setting glance workers to higher value in uwsgi.ini results in 500 for any command

 

Public bug reported:

Reported by Abhishek.

Environment:
Devstack all in one setup
No of cores: 4

Steps to reproduce:
1. Ensure image-list command is working
   $ glance image-list
   Output:
   List available glance images
2. Edit /etc/glance/glance-uwsgi.ini and set processes = 40
3. Restart glance-api service
   $ sudo systemctl restart devstack@g-api.service
4. Ensure 21 processes/workers are running for glance-api
   $ ps auxf  | awk '{print $6/1024 " MB\t\t" $11 "  " $12}'  | sort -n | grep -o glance-api | wc -l
   Output:
   $ 21
5. Try running list command again
   $ glance image-list
   Output:
   InternalServerError: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-90629274-b863-4384-a5dd-1a79344faf09)
6. Try another command
   $ nova list
   Output:
   ERROR (InternalServerError): An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-c29869ac-930a-4cf3-aad5-45c4a3584a91)
7. Reset processes value in /etc/glance/glance-uwsgi.ini to 2
8. Restart glance-api service
   $ sudo systemctl restart devstack@g-api.service
9. Ensure 3 processes/workers are running for glance-api
   $ ps auxf  | awk '{print $6/1024 " MB\t\t" $11 "  " $12}'  | sort -n | grep -o glance-api | wc -l
   Output:
   $ 3
10. Try running list command again
   $ glance image-list
   Output:
   InternalServerError: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-90629274-b863-4384-a5dd-1a79344faf09)

** Affects: glance
     Importance: Undecided
         Status: Triaged


** Tags: uwsgi

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

Title:
  Setting glance workers to higher value in uwsgi.ini results in 500 for
  any command

Status in Glance:
  Triaged

Bug description:
  Reported by Abhishek.

  Environment:
  Devstack all in one setup
  No of cores: 4

  Steps to reproduce:
  1. Ensure image-list command is working
     $ glance image-list
     Output:
     List available glance images
  2. Edit /etc/glance/glance-uwsgi.ini and set processes = 40
  3. Restart glance-api service
     $ sudo systemctl restart devstack@g-api.service
  4. Ensure 21 processes/workers are running for glance-api
     $ ps auxf  | awk '{print $6/1024 " MB\t\t" $11 "  " $12}'  | sort -n | grep -o glance-api | wc -l
     Output:
     $ 21
  5. Try running list command again
     $ glance image-list
     Output:
     InternalServerError: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-90629274-b863-4384-a5dd-1a79344faf09)
  6. Try another command
     $ nova list
     Output:
     ERROR (InternalServerError): An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-c29869ac-930a-4cf3-aad5-45c4a3584a91)
  7. Reset processes value in /etc/glance/glance-uwsgi.ini to 2
  8. Restart glance-api service
     $ sudo systemctl restart devstack@g-api.service
  9. Ensure 3 processes/workers are running for glance-api
     $ ps auxf  | awk '{print $6/1024 " MB\t\t" $11 "  " $12}'  | sort -n | grep -o glance-api | wc -l
     Output:
     $ 3
  10. Try running list command again
     $ glance image-list
     Output:
     InternalServerError: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-90629274-b863-4384-a5dd-1a79344faf09)

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