Bug 1087030
| Summary: | can't attach a read only volume to an instance | |||
|---|---|---|---|---|
| Product: | [Community] RDO | Reporter: | Yogev Rabl <yrabl> | |
| Component: | openstack-nova | Assignee: | RHOS Maint <rhos-maint> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dafna Ron <dron> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | unspecified | CC: | dron, kchamart, ndipanov, pasik, rbryant, yeylon | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | storage | |||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1100358 (view as bug list) | Environment: | ||
| Last Closed: | 2015-02-18 11:13:56 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: | ||||
| Bug Blocks: | 985500, 1100358 | |||
|
Description
Yogev Rabl
2014-04-13 08:40:43 UTC
This was fixed by the below commit. Upstream fix here[1], and its corresponding backport to IceHouse branch here[2]. Related, fixed, upstream bug[3].
commit de05c2994212e83eba3cedf2544cdc549d9f8184
Author: Thang Pham <thang.g.pham>
Date: Tue Apr 22 15:00:06 2014 -0400
Set the volume access mode during volume attach
cinderclient supports an optional keyword argument named 'mode'
for volumes.attach(), which allows you to set the access mode of
a volume at attach time. The keyword argument is not passed in
by nova when it attaches a read-only volume, making the volume
access mode default to 'rw' instead of the desired 'ro'. This
patch finds the access mode of the volume and passes it to
cinderclient, so the correct access mode is used at attach
time.
Change-Id: Ib62f454292e60114f96debbad96c4a356dc32a21
Closes-Bug: #1307088
Fixed in IceHouse (2014.1.3) and above. Closing this bug.
[1] https://review.openstack.org/#/c/89684/
[2] https://review.openstack.org/#/c/98253/
[3] https://bugs.launchpad.net/nova/+bug/1307088
|