Bug 1119708
Summary: | unable to modify owner for backup volume with nfs_7mode | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | bkopilov <bkopilov> | ||||
Component: | openstack-cinder | Assignee: | Eric Harney <eharney> | ||||
Status: | CLOSED NOTABUG | QA Contact: | nlevinki <nlevinki> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 5.0 (RHEL 7) | CC: | bkopilov, eharney, nlevinki, scohen, yeylon | ||||
Target Milestone: | --- | Keywords: | AutomationBlocker, Unconfirmed, ZStream | ||||
Target Release: | 5.0 (RHEL 7) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-07-30 15:01:46 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: | |||||||
Attachments: |
|
Description
bkopilov
2014-07-15 10:29:09 UTC
This command looks ok: sudo cinder-rootwrap /etc/cinder/rootwrap.conf chown 165 /var/lib/cinder/mnt/d80058dce1a9f0bd61fe7f15b093af65/volume-71e32945-6d61-45f2-9c8e-05f207f4ee6f Can you try just running "chown 165 <file>" for some file on that mount point by hand? I think this may be an NFS configuration error related to id mapping. Note the second of these three messages that occurs when the chown is performed: Jul 15 04:02:41 test9283 cinder-backup: 2014-07-15 04:02:41.303 18424 DEBUG cinder.openstack.common.processutils [req-b94d9a60-38d8-4667-af62-932a74b35d6a 54919d66f28a47d19e19a45c45e271d1 314c9de5d5a44833995e37ef2fd87c20 - - -] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf chown 165 /var/lib/cinder/mnt/d80058dce1a9f0bd61fe7f15b093af65/volume-71e32945-6d61-45f2-9c8e-05f207f4ee6f execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:142 Jul 15 04:02:41 test9283 kernel: NFS: v4 server netapp.qa.lab.tlv.redhat.com does not accept raw uid/gids. Reenabling the idmapper. Jul 15 04:02:41 test9283 cinder-backup: 2014-07-15 04:02:41.677 18424 DEBUG cinder.openstack.common.processutils [req-b94d9a60-38d8-4667-af62-932a74b35d6a 54919d66f28a47d19e19a45c45e271d1 314c9de5d5a44833995e37ef2fd87c20 - - -] Result was 1 execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:167 If this happens when trying by hand we will need to look at the NFS server configuration, it isn't clear that this is an issue in Cinder itself. Hi , I installed baremetal machine configured with this backend . machine ip : 10.35.3.109 user : root pass: qum5net I am checking this issue now , you can access to the machine if you like . Thanks , Benny (In reply to bkopilov from comment #4) > Hi , > I installed baremetal machine configured with this backend . > machine ip : 10.35.3.109 > user : root pass: qum5net > > I run the command manually and got this error: [root@test632 d80058dce1a9f0bd61fe7f15b093af65]# chown 165 volume-4ddc2c23-47c9-402c-a386-1d03baedbd29 chown: changing ownership of ‘volume-4ddc2c23-47c9-402c-a386-1d03baedbd29’: Invalid argument > > Thanks , > Benny (In reply to bkopilov from comment #5) > (In reply to bkopilov from comment #4) > > Hi , > > I installed baremetal machine configured with this backend . > > machine ip : 10.35.3.109 > > user : root pass: qum5net > > > > I run the command manually and got this error: > > [root@test632 d80058dce1a9f0bd61fe7f15b093af65]# chown 165 > volume-4ddc2c23-47c9-402c-a386-1d03baedbd29 > chown: changing ownership of ‘volume-4ddc2c23-47c9-402c-a386-1d03baedbd29’: > Invalid argument > mount : [root@test632 d80058dce1a9f0bd61fe7f15b093af65]# mount | grep cinder netapp.qa.lab.tlv.redhat.com:/vol/vol_rhos_auto_nfs on /var/lib/cinder/mnt/d80058dce1a9f0bd61fe7f15b093af65 type nfs4 (rw,relatime,vers=4.0,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.35.3.109,local_lock=none,addr=10.35.64.11) [r > > > > Thanks , > > Benny This is caused by the NetApp server's configuration. It appears to have uid squashing enabled for NFSv4. It squashes ownership of files to "nobody" instead of "cinder" or "root". If you change cinder.conf to include nfs_mount_options=nfsvers=3 it will use NFSv3 and work as expected. You need to configure the NetApp machine correctly for NFSv4. (I am not sure on the details of how to do this.) Hi , I add to cinder conf nfs_mount_options=nfsvers=3 , it works ! Thanks Benny With NFSv4, you have to configure user mapping or you end up with the nobody/nogroup situation. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-nfs.html Closing the bug Sean |