The following snippets show:
- some debug logs being added to Manila code
- the log output of these on my setup
- some queries from the Manila cli to serve as contrast
The following snippets show:
diff --git a/manila/share/manager.py b/manila/share/manager.py | |
index 4cf53d7..de98ea2 100644 | |
--- a/manila/share/manager.py | |
+++ b/manila/share/manager.py | |
@@ -189,7 +189,13 @@ def init_host(self): | |
rules = self.db.share_access_get_all_for_share( | |
ctxt, share_instance['id']) | |
+ LOG.warn('INITHOSTDBG %s %s rules %s' % (share_instance['name'], | |
+ share_instance['id'], `rules`)) | |
for access_ref in rules: | |
+ LOG.warn('INITHOSTDBG %s access %s %s %s' % (share_instance['name'], | |
+ access_ref['access_to'], | |
+ access_ref['state'], | |
+ access_ref['id'])) | |
if access_ref['state'] != access_ref.STATE_ACTIVE: | |
continue | |
2015-08-27 07:03:16.26 ... INITHOSTDBG share-713be5d8-3dfc-487e-8747-3c3ba874028e ebbde4d4-72ec-491c-b7f7-dcdc7a0359f4 rules [] | |
2015-08-27 07:03:16.52 ... INITHOSTDBG share-122860c1-cfe9-42b1-b285-d1498facbcfb 122860c1-cfe9-42b1-b285-d1498facbcfb rules [<manila.db.sqlalchemy.models.ShareAccessMapping object at 0x7f0433be0450>] | |
2015-08-27 07:03:16.54 ... INITHOSTDBG share-122860c1-cfe9-42b1-b285-d1498facbcfb access yee active d11b063a-be77-4fc6-9827-e40b78ebb59d | |
2015-08-27 07:03:16.145 ... INITHOSTDBG share-9a5ac673-74f7-445f-8bdb-372768a82fc7 9a5ac673-74f7-445f-8bdb-372768a82fc7 rules [] | |
2015-08-27 07:03:16.336 ... INITHOSTDBG share-754b0b2a-3434-4e58-bdc4-d9ec305640e2 e1869449-a3ec-45fb-86fb-1850d23324c3 rules [] | |
2015-08-27 07:03:21.5 ... INITHOSTDBG share-65a59418-5266-4315-8b50-5f0b3c92f2eb 0741c287-5a85-42a1-8d6a-6953478d837d rules [] |
[fedora@chenk-f22-devstack00 devstack]$ while read share; do echo "##$share"; manila access-list $share; done << EOF | |
713be5d8-3dfc-487e-8747-3c3ba874028e | |
122860c1-cfe9-42b1-b285-d1498facbcfb | |
9a5ac673-74f7-445f-8bdb-372768a82fc7 | |
754b0b2a-3434-4e58-bdc4-d9ec305640e2 | |
65a59418-5266-4315-8b50-5f0b3c92f2eb | |
EOF | |
##713be5d8-3dfc-487e-8747-3c3ba874028e | |
+----+-------------+-----------+--------------+-------+ | |
| id | access type | access to | access level | state | | |
+----+-------------+-----------+--------------+-------+ | |
+----+-------------+-----------+--------------+-------+ | |
##122860c1-cfe9-42b1-b285-d1498facbcfb | |
+--------------------------------------+-------------+-----------+--------------+--------+ | |
| id | access type | access to | access level | state | | |
+--------------------------------------+-------------+-----------+--------------+--------+ | |
| d11b063a-be77-4fc6-9827-e40b78ebb59d | cert | yee | rw | active | | |
+--------------------------------------+-------------+-----------+--------------+--------+ | |
##9a5ac673-74f7-445f-8bdb-372768a82fc7 | |
+----+-------------+-----------+--------------+-------+ | |
| id | access type | access to | access level | state | | |
+----+-------------+-----------+--------------+-------+ | |
+----+-------------+-----------+--------------+-------+ | |
##754b0b2a-3434-4e58-bdc4-d9ec305640e2 | |
+----+-------------+-----------+--------------+-------+ | |
| id | access type | access to | access level | state | | |
+----+-------------+-----------+--------------+-------+ | |
+----+-------------+-----------+--------------+-------+ | |
##65a59418-5266-4315-8b50-5f0b3c92f2eb | |
+--------------------------------------+-------------+-----------+--------------+--------+ | |
| id | access type | access to | access level | state | | |
+--------------------------------------+-------------+-----------+--------------+--------+ | |
| a9a9f5b8-7800-443e-981f-dd3796019e3b | ip | 0.0.0.0/0 | rw | active | | |
+--------------------------------------+-------------+-----------+--------------+--------+ |