Bug 1917356
Summary: | [RHOSP 16.1] manila with cephfs using nfs doesn't honor Squash = None provided in the ganesha export template during share creation | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Punit Kundal <pkundal> |
Component: | openstack-tripleo-heat-templates | Assignee: | Goutham Pacha Ravi <gouthamr> |
Status: | CLOSED ERRATA | QA Contact: | lkuchlan <lkuchlan> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 16.1 (Train) | CC: | andeshmu, gfidente, gouthamr, jelynch, joflynn, mburns, vhariria, vimartin |
Target Milestone: | z9 | Keywords: | Triaged |
Target Release: | 16.1 (Train on RHEL 8.2) | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openstack-tripleo-heat-templates-11.3.2-1.20220412063950.29a02c1 | Doc Type: | Enhancement |
Doc Text: |
With this update, director supports specifying overrides for NVSv4 ID mapping when using a CephFS-NFS back end with the Shared File Systems service (manila). Ceph-NFS with the Shared File Systems service only allows client access through NFSv4.1+. With NFSv4.1, usernames and group names are sent over the wire and translated by both the server and the client. Deployers might want to customize their domain settings to better represent organization users who can access Shared File Systems service shares from multiple clients. Director supports customizing NFS ID mapping settings through these parameters:
** ManilaCephFSNFSIdmapOverrides: Allows specifying configuration objects for override with the default idmapd.conf file used by the NFS service
** ManilaCephFSNFSIdmapConf: Allows specifying a custom idmapd.conf file for the NFS service
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-12-07 20:29:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1925646 | ||
Bug Blocks: |
Description
Punit Kundal
2021-01-18 10:54:31 UTC
Tested using: openstack-tripleo-heat-templates-11.3.2-1.20220114223343.29a02c1.el8ost Verification steps: 1. Create a custom template file with the following content: parameter_defaults: ManilaCephFSNFSIdmapOverrides: General: Domain: "testing.openstack.com" 2. Add this template to overcloud_deploy.sh script and run it. 3. Create a manila share. (overcloud) [stack@undercloud-0 ~]$ manila list --all +--------------------------------------+-----------------------------------+------+-------------+-----------+-----------+-----------------+-------------------------+-------------------+----------------------------------+ | ID | Name | Size | Share Proto | Status | Is Public | Share Type Name | Host | Availability Zone | Project ID | +--------------------------------------+-----------------------------------+------+-------------+-----------+-----------+-----------------+-------------------------+-------------------+----------------------------------+ | bded0a1b-eaf3-466d-ba43-2eb1537119ab | tempest-manila-scenario-848109445 | 1 | NFS | available | False | default | hostgroup@cephfs#cephfs | nova | d7ebefb6a5c84b2e8fdab5363487a503 | +--------------------------------------+-----------------------------------+------+-------------+-----------+-----------+-----------------+-------------------------+-------------------+----------------------------------+ (overcloud) [stack@undercloud-0 ~]$ manila share-export-location-list bded0a1b-eaf3-466d-ba43-2eb1537119ab +--------------------------------------+---------------------------------------------------------------------+-----------+ | ID | Path | Preferred | +--------------------------------------+---------------------------------------------------------------------+-----------+ | 952d6ffe-4308-4e51-9b45-5ffd6fd96618 | 172.17.5.126:/volumes/_nogroup/ae23d763-9ea2-4f69-8910-b44e4d0d931b | False | +--------------------------------------+---------------------------------------------------------------------+-----------+ 4. Launch an instance. (overcloud) [stack@undercloud-0 ~]$ nova list --all +--------------------------------------+------------------------------------------------+----------------------------------+--------+------------+-------------+----------------------------------------------------------------------------------+ | ID | Name | Tenant ID | Status | Task State | Power State | Networks | +--------------------------------------+------------------------------------------------+----------------------------------+--------+------------+-------------+----------------------------------------------------------------------------------+ | aaab5d42-2be1-420c-abe1-69d4b6661d57 | tempest-TestShareBasicOpsNFS-server-1447234543 | d7ebefb6a5c84b2e8fdab5363487a503 | ACTIVE | - | Running | StorageNFS=172.17.5.156; tempest-manila-share-1287646977=10.100.0.26, 10.0.0.245 | +--------------------------------------+------------------------------------------------+----------------------------------+--------+------------+-------------+----------------------------------------------------------------------------------+ 5. Allow access to the share. (overcloud) [stack@undercloud-0 ~]$ manila access-list bded0a1b-eaf3-466d-ba43-2eb1537119ab +--------------------------------------+-------------+--------------+--------------+--------+------------+----------------------------+------------+ | id | access_type | access_to | access_level | state | access_key | created_at | updated_at | +--------------------------------------+-------------+--------------+--------------+--------+------------+----------------------------+------------+ | 182526b8-9e37-4e89-9eec-eb6c7a8f53c5 | ip | 172.17.5.156 | rw | active | None | 2022-02-15T10:04:34.000000 | None | +--------------------------------------+-------------+--------------+--------------+--------+------------+----------------------------+------------+ 6. Perform ssh to the instance. 7. Mount the share. [manila@tempest-testsharebasicopsnfs-server-1447234543 ~]$ mount | grep 172.17.5.126 172.17.5.126:/volumes/_nogroup/ae23d763-9ea2-4f69-8910-b44e4d0d931b on /mnt type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=172.17.5.156,local_lock=none,addr=172.17.5.126) 8. Set the hostname in the client VM to match the domain we set above: [manila@tempest-testsharebasicopsnfs-server-1447234543 ~]$ sudo hostnamectl set-hostname --transient myserver.testing.openstack.com 9. Verify the files are now owned by the user that created them: [manila@tempest-testsharebasicopsnfs-server-1447234543 ~]$ cd /mnt [manila@tempest-testsharebasicopsnfs-server-1447234543 mnt]$ sudo touch file1 [manila@tempest-testsharebasicopsnfs-server-1447234543 mnt]$ ll totale 0 -rw-r--r--. 1 nobody nobody 0 16 feb 09.27 file1 Tested using: openstack-tripleo-heat-templates-11.3.2-1.20221013153259.el8ost.noarch Verification results: [manila@myserver3 mnt]$ sudo hostnamectl set-hostname myserver.test.open.com [manila@myserver ~]$ cd /mnt/ [manila@myserver mnt]$ touch file1 [manila@myserver mnt]$ sudo touch file2 [manila@myserver mnt]$ ll totale 0 -rw-rw-r--. 1 manila manila 0 17 nov 05.30 file1 -rw-r--r--. 1 root root 0 17 nov 05.30 file2 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat OpenStack 16.1.9 (openstack-tripleo-heat-templates) security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8796 |