manila service will not start up if there are errors when allow access
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
High
|
Valeriy Ponomaryov |
Bug Description
error was thrown while driver try to invoke driver's "allow_access":
2014-07-31 21:25:50.080 9138 ERROR manila.service [-] Unhandled exception
2014-07-31 21:25:50.080 9138 TRACE manila.service Traceback (most recent call last):
2014-07-31 21:25:50.080 9138 TRACE manila.service File "/opt/stack/
2014-07-31 21:25:50.080 9138 TRACE manila.service self._child_
2014-07-31 21:25:50.080 9138 TRACE manila.service File "/opt/stack/
2014-07-31 21:25:50.080 9138 TRACE manila.service launcher.
2014-07-31 21:25:50.080 9138 TRACE manila.service File "/opt/stack/
2014-07-31 21:25:50.080 9138 TRACE manila.service server.start()
2014-07-31 21:25:50.080 9138 TRACE manila.service File "/opt/stack/
2014-07-31 21:25:50.080 9138 TRACE manila.service self.manager.
2014-07-31 21:25:50.080 9138 TRACE manila.service File "/opt/stack/
as shown in ShareManager.py:
for access_ref in rules:
else:
if a driver throw exception (not ShareAccessExists) in allow_access, then driver will refuse to start up
i am not sure if this is the expected behavior of share manager, but i think Manila should enhance the robust during startup
and even if a share down for any reason, we should be able to start up Manila Service so that admin has chance to remove/fix the problemic share in manila.
can we allow driver to throw exception for allow_access here so that share service could start up?
Thanks
Peter
Changed in manila: | |
importance: | Undecided → High |
Changed in manila: | |
assignee: | nobody → Vladimir Vechkanov (vvechkanov) |
Changed in manila: | |
assignee: | Vladimir Vechkanov (vvechkanov) → Valeriy Ponomaryov (vponomaryov) |
status: | New → In Progress |
Changed in manila: | |
status: | Fix Committed → Fix Released |
Changed in manila: | |
milestone: | none → juno-3 |
Hi Peter,
Thanks for the bug report.
This is incorrect behavior of manila, service must start whether there are errors on exporting shares or not.
I think we need to add except Exception section, and log caughted error. And driver should not fail in this case.