Using NFS for cinder is failing with the below error

Solution Verified - Updated -

Environment

  • Red Hat OpenStack

Issue

  • The service is failing if you trying to use NFS for cinder
2014-02-27 22:51:57  WARNING [cinder.volume.drivers.nfs] Exception during mounting Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf stat /var/lib/cinder/mnt/04bb8a26bc4f9e420fc72ccdec296271
Exit code: 1
Stdout: ''
Stderr: "/usr/bin/stat: cannot stat `/var/lib/cinder/mnt/04bb8a26bc4f9e420fc72ccdec296271': Permission denied\n
  • It has right permission in /etc/exports
/cinder x.x.x.x(rw,sync,no_root_squash)

Resolution

  • To make it use nfs from OpenStack services, it requires to allow it in SELinux by running the below command
$ setsebool -P virt_use_nfs on

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments