Misleading asynchronous user message when share services are down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Triaged
|
Low
|
Unassigned |
Bug Description
Description
===========
When all of the share manager services are down, or are still initializing, the scheduler has no information to make an informed decision for placement. When this happens, the user message one receives is quite confusing, and should be enhanced.
Steps to reproduce
==================
A chronological list of steps which will help reproduce the issue you hit:
* Configure manila with a share driver that fails to initialize. You can do this by misconfiguring your share backend such that the driver cannot connect to the storage system, and keeps retrying.
* Create a share, the share status will transition from "creating" to "error".
* Check user messages ('manila message-list')
Expected result
===============
The user message should suggest that there is a problem with the environment and isn't ready for provisioning yet
Actual result
=============
The user message is as follows:
$ manila message-list --resource-id b0283ea1-
+------
| ID | Resource Type | Resource ID | Action ID | User Message | Detail ID | Created At |
+------
| ca92cb0f-
+------
$ manila message-show ca92cb0f-
+------
| Property | Value |
+------
| id | ca92cb0f-
| resource_type | SHARE |
| resource_id | b0283ea1-
| action_id | 001 |
| user_message | allocate host: No storage could be allocated for this share request, AvailabilityZone filter didn't succeed. |
| message_level | ERROR |
| detail_id | 007 |
| created_at | 2020-07-
| expires_at | 2020-08-
| request_id | req-81c4d5f9-
+------
The scheduler log file has this logging:
ubuntu-
Environment
===========
1. Exact version of OpenStack Manila you are running. See the following
list for all releases: trunk
2. Which storage backend did you use?
Dummy driver, the situation is backend agnostic
3. Which networking type did you use?
Neutron with OpenVSwitch, the problem occurs agnostic to the DHSS mode
Changed in manila: | |
assignee: | nobody → Victoria Martinez de la Cruz (vkmc) |
status: | New → Triaged |
Changed in manila: | |
assignee: | Victoria Martinez de la Cruz (vkmc) → nobody |
The user message should suggest something along the lines of "No storage could be allocated for this share request. Share back end services are not ready yet, trying again after a while may succeed. Contact your administrator in case retrying does not help."