XenAPI Glance Plugin logs incorrect message when retrying download
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Dan Emmons |
Bug Description
When the XenAPI Glance plugin encounters a retryable error, it logs a message stating that it is retrying the action. This was added when retries were only implemented on uploads, but the retry logic was later moved up a level to be usable for all glance plugin functions. I've noticed that the messages logged indicate they will retry vhd_upload regardless of the Glance plugin function actually being used, most obvious during a vhd_download:
Dec 30 19:22:42 DEBUG nova.virt.
Dec 30 19:22:42 DEBUG nova.virt.
Dec 30 19:22:42 WARNING nova.virt.
Dec 30 19:22:42 INFO nova.virt.
This example was in a Rackspace environment, so I have redacted a few things from the logs, but the issue is clear and easily reproducible. For this test I built a new instance, logged into the host that the build started on, and killed the glance process with a SIGTERM so it would retry and log the message. I've confirmed that the issue in the code is still present in the current trunk in GitHub.
This will be trivial to fix and I plan to assign this bug to myself and submit the code patch. Essentially, my proposed solution is to add an optional argument to _is_retryable_
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
Assigning to myself and a fix should be submitted shortly