[libvirt] resize fails when using NFS shared storage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
High
|
Mark Doffman |
Bug Description
With two hosts installed using devstack with a multi-node configuration and the directory /opt/stack/
When performing a resize I get the following error (Complete traceback in http://
"qemu-img: Could not open '/opt/stack/
This problem was introduced with patch https:/
After doing some research on how NFS handles its shares on the client side, I realized that NFS client keeps a file cache with the file name and the inodes which, if no process asks for it before, will be refreshed on intervals of from 3 to 60 seconds (See nfs options ac[dir|
In the resize case, the origin compute node renamed the instance directory to "$INSTANCE_
From the destination host, even thought we were trying to access the new disk file from "$INSTANCE_
If the NFS share is mounted with the option "noac" which (from manpage) "forces application writes to become synchronous so that local changes to a file become visible on the server immediately". This prevents the files to be out of sync, but it comes with the drawback of issuing a network call for every file operation which may cause performance issues.
description: | updated |
Changed in nova: | |
assignee: | nobody → Xavier Queralt (xqueralt) |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
assignee: | Xavier Queralt (xqueralt) → nobody |
Changed in nova: | |
status: | In Progress → New |
Changed in nova: | |
status: | New → Triaged |
no longer affects: | nova/grizzly |
Changed in nova: | |
status: | Triaged → Confirmed |
Changed in nova: | |
assignee: | nobody → venkatesh (p-venkatesh551) |
assignee: | venkatesh (p-venkatesh551) → nobody |
Changed in nova: | |
assignee: | nobody → Mark Doffman (mjdoffma) |
Fix proposed to branch: master /review. openstack. org/44359
Review: https:/