Skip to main content
NetApp Knowledge Base

OpenStack Cinder Volumes Become Read-Only After cinder-volume Container Restart

Views:
6
Visibility:
Public
Votes:
0
Category:
openstack
Specialty:
openstack
Last Updated:

Applies to

  • OpenStack environments using Cinder with NetApp ONTAP NFS backend
  • ONTAP 9
  • Cinder volumes hosted on NFS
  • Cinder backends with nas_secure_file_operations and nas_secure_file_permissions parameters

Issue

After restarting the cinder-volume container, multiple Cinder volumes unexpectedly switched to read-only mode, causing service outages for virtual machines (VMs) and The following errors were observed in logs:

ERROR:__main__:Failed to change ownership of /var/lib/cinder/mnt/<volume>/.snapshot/<snapshot> to 42407:42407
Traceback (most recent call last):
  File "/usr/local/bin/kolla_set_configs", line 352, in set_perms
    os.chown(path, uid, gid)
OSError: [Errno 30] Read-only filesystem: '/var/lib/cinder/mnt/<volume>/.snapshot/<snapshot>'

Symptoms included:

  • cinder-volume container repeatedly crashing and restarting
  • Cinder volumes mounted read-only on VMs, resulting in loss of write access and service outages
  • The issue was triggered after a hostname change and subsequent service restarts

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.