[SRU] manilaclient.common.apiclient.exceptions.Forbidden: Access was denied to this resource. (HTTP 403)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Manila Charm |
Fix Released
|
Undecided
|
Unassigned | ||
OpenStack Manila NetApp Charm |
New
|
Undecided
|
Unassigned | ||
OpenStack Manila-Ganesha Charm |
Fix Released
|
High
|
Unassigned | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Xena |
Fix Released
|
High
|
Unassigned | ||
Yoga |
Fix Released
|
High
|
Unassigned | ||
manila (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Impish |
Won't Fix
|
High
|
Unassigned |
Bug Description
[Description]
2021-11-29 19:26:53.581540 | focal-medium | File "/home/
2021-11-29 19:26:53.581579 | focal-medium | manila_
results in:
manilaclient.
This occurs on wallaby and above as seen here:
https:/
2021-11-29 19:26:53.195961 | focal-medium | 2021-11-29 19:26:53 [ERROR] {'default_alias': 'zaza-6aadc5ce9
2021-11-29 19:26:53.196094 | focal-medium | 2021-11-29 19:26:53 [ERROR] Model default_alias (zaza-6aadc5ce9f9b)
2021-11-29 19:26:53.581038 | focal-medium | Traceback (most recent call last):
2021-11-29 19:26:53.581121 | focal-medium | File "/home/
2021-11-29 19:26:53.581157 | focal-medium | sys.exit(main())
2021-11-29 19:26:53.581206 | focal-medium | File "/home/
2021-11-29 19:26:53.581248 | focal-medium | func_test_runner(
2021-11-29 19:26:53.581276 | focal-medium | File "/home/
2021-11-29 19:26:53.581312 | focal-medium | run_env_
2021-11-29 19:26:53.581332 | focal-medium | File "/home/
2021-11-29 19:26:53.581347 | focal-medium | configure.
2021-11-29 19:26:53.581385 | focal-medium | File "/home/
2021-11-29 19:26:53.581426 | focal-medium | run_configure_
2021-11-29 19:26:53.581446 | focal-medium | File "/usr/lib/
2021-11-29 19:26:53.581460 | focal-medium | return func(*args, **kwds)
2021-11-29 19:26:53.581486 | focal-medium | File "/home/
2021-11-29 19:26:53.581521 | focal-medium | utils.get_
2021-11-29 19:26:53.581540 | focal-medium | File "/home/
2021-11-29 19:26:53.581579 | focal-medium | manila_
2021-11-29 19:26:53.581597 | focal-medium | File "/home/
2021-11-29 19:26:53.581623 | focal-medium | return method.func(obj, *args, **kwargs)
2021-11-29 19:26:53.581639 | focal-medium | File "/home/
2021-11-29 19:26:53.581653 | focal-medium | return self._do_create(
2021-11-29 19:26:53.581667 | focal-medium | File "/home/
2021-11-29 19:26:53.581681 | focal-medium | return self._create(
2021-11-29 19:26:53.581695 | focal-medium | File "/home/
2021-11-29 19:26:53.581709 | focal-medium | resp, body = self.api.
2021-11-29 19:26:53.581722 | focal-medium | File "/home/
2021-11-29 19:26:53.581736 | focal-medium | return self._cs_
2021-11-29 19:26:53.581772 | focal-medium | File "/home/
2021-11-29 19:26:53.581795 | focal-medium | return self._cs_
2021-11-29 19:26:53.581833 | focal-medium | File "/home/
2021-11-29 19:26:53.581865 | focal-medium | resp, body = self.request(url, method, **kwargs)
2021-11-29 19:26:53.581890 | focal-medium | File "/home/
2021-11-29 19:26:53.581922 | focal-medium | raise exceptions.
2021-11-29 19:26:53.581942 | focal-medium | manilaclient.
For the manila package, we are still installing an old policy.json file.
Manila moved away from using a policy.json file for RBAC in favor of using a policy.yaml file in the wallaby release [1]. In fact, this policy.yaml file
is only used to override the default policy, which is in the manila code base itself. Therefore the package doesn't need to install any policy files.
[1] https:/
[Test Case]
The manila-ganesha charm tests will be run as they are currently hitting this failure. The charm tests create a manila share, create 2 openstack instances, mount the share to those instances and tests writing/reading the share.
https:/
https:/
https:/
[Regression Potential]
The default package install is broken with the policy.json that we are installing. Worth noting, the policy.json file was deprecated in the wallaby release and the changes in this SRU are limited to the wallaby+1 release and up (ie. xena+).
The regression potential here is that an upgrade to this new package version will move the deprecated /etc/manila/
[Discussion]
The manila-ganesha charm also requires a change to add ceph mgr capabilities for the manila cephfs driver to allow it to run rados commands.
Changed in charm-manila-ganesha: | |
status: | New → In Progress |
Changed in manila (Ubuntu Impish): | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
summary: |
- manilaclient.common.apiclient.exceptions.Forbidden: Access was denied to - this resource. (HTTP 403) + [SRU] manilaclient.common.apiclient.exceptions.Forbidden: Access was + denied to this resource. (HTTP 403) |
description: | updated |
description: | updated |
description: | updated |
Changed in cloud-archive: | |
status: | Fix Released → Fix Committed |
Changed in charm-manila-ganesha: | |
milestone: | none → 22.04 |
Changed in charm-manila: | |
milestone: | none → 22.04 |
Changed in charm-manila-ganesha: | |
status: | Fix Committed → Fix Released |
Changed in charm-manila: | |
status: | Fix Committed → Fix Released |
Changed in cloud-archive: | |
status: | Fix Committed → Fix Released |
charm-manila-netapp seems to be hitting the same issue: /review. opendev. org/c/openstack /charm- manila- netapp/ +/828161 /openstack- ci-reports. ubuntu. com/artifacts/ 6a9/828161/ 9/check/ focal-xena/ 6a9d0b9/ job-output. txt
https:/
https:/