Glance-api logs are full of warnings "Unknown version. Returning version choices"

Bug #1479408 reported by Ilya Shakhat
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Medium
Denis Egorenko

Bug Description

Logs for glance-api service a filled with warnings: "Unknown version. Returning version choices.". Messages occur every 2-4 seconds. The full pattern is following:
2015-07-29 15:16:57.116 30156 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:60
2015-07-29 15:16:57.120 30156 WARNING glance.api.middleware.version_negotiation [-] Unknown version. Returning version choices.
2015-07-29 15:16:57.122 30156 INFO eventlet.wsgi.server [-] 240.0.0.2 - - [29/Jul/2015 15:16:57] "OPTIONS / HTTP/1.0" 300 805 0.007725
2015-07-29 15:17:03.582 30156 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: OPTIONS / Accept: process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:47

Tags: glance
Revision history for this message
Ilya Shakhat (shakhat) wrote :

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "705"
  build_id: "2015-07-29_10-43-57"
  nailgun_sha: "b3972d61b525bff8f5ffb26ff98422ab6530d265"
  python-fuelclient_sha: "f04e6c46783ecd6000df31b61b6749da66d4d828"
  fuel-agent_sha: "355c08a04917f047b88f66242767049d2b1d0ff0"
  fuel-nailgun-agent_sha: "1512b9af6b41cc95c4d891c593aeebe0faca5a63"
  astute_sha: "34e0493afa22999c4a07d3198ceb945116ab7932"
  fuel-library_sha: "b27705422dafd8453ed2b8406dabe565af1604eb"
  fuel-ostf_sha: "888baa3eab00242bf98eccdda36144deb7683bb3"
  fuelmain_sha: "de5b333815f8541224c6726dc8446ffc7fb18b5b"

tags: added: glance
Changed in mos:
milestone: none → 7.0
assignee: nobody → MOS Glance (mos-glance)
ruhe (ruhe)
Changed in mos:
importance: Undecided → Medium
Changed in mos:
status: New → Confirmed
ruhe (ruhe)
Changed in mos:
assignee: MOS Glance (mos-glance) → Alexander Tivelkov (ativelkov)
ruhe (ruhe)
Changed in mos:
assignee: Alexander Tivelkov (ativelkov) → Kairat Kushaev (kkushaev)
Revision history for this message
Kairat Kushaev (kkushaev) wrote :

This bug is valid for upstream also: I see the same messages in Liberty.

Revision history for this message
Kairat Kushaev (kkushaev) wrote :

Sorry, please ignore my message above, messages in kilo is quite different.

Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Kairat Kushaev (kkushaev) wrote :

It turns out that HAProxy generates a request where api_version is not present.
That's why we have these messages in logs.
Moving this ticket to HA guys.

Alexey Galkin (agalkin)
Changed in mos:
assignee: Kairat Kushaev (kkushaev) → Fuel Library Team (fuel-library)
Revision history for this message
Alexey Galkin (agalkin) wrote :

We need to change request type from "OPTIONS / HTTP/1.0" to "GET / HTTP/1.0".

Revision history for this message
Denis Egorenko (degorenko) wrote :

It seems like we need set to 'option httpchck GET /'

Revision history for this message
Alexey Galkin (agalkin) wrote :

Change url to /versions

Revision history for this message
Denis Egorenko (degorenko) wrote :

It will works 'option httpchck /versions'

Changed in mos:
assignee: Fuel Library Team (fuel-library) → Denis Egorenko (degorenko)
Revision history for this message
Denis Egorenko (degorenko) wrote :
Revision history for this message
Denis Egorenko (degorenko) wrote :

Fix merged. Moving to 'Fix committed'

Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Alexey Galkin (agalkin) wrote :

Verified on MOS 7.0 in ISO #228.

root@node-1:~# tailf /var/log/glance/glance-api.log
2015-08-25 14:48:55.155 3530 INFO eventlet.wsgi.server [req-7be60be2-9719-4536-bff6-722fe37a37a7 37952dde1e384e458b4e614317e598f6 470dbd0fb0f94009a846536c637fd92e - - -] 192.168.0.6 - - [25/Aug/2015 14:48:55] "OPTIONS /versions HTTP/1.0" 300 805 0.001344
2015-08-25 14:48:55.262 3530 INFO eventlet.wsgi.server [req-7be60be2-9719-4536-bff6-722fe37a37a7 37952dde1e384e458b4e614317e598f6 470dbd0fb0f94009a846536c637fd92e - - -] 192.168.0.2 - - [25/Aug/2015 14:48:55] "OPTIONS /versions HTTP/1.0" 300 805 0.001012

Changed in mos:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.