Bug 858256
Summary: | volume attach fails with iscsiadm --login timeout | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Eoghan Glynn <eglynn> |
Component: | openstack-cinder | Assignee: | Pádraig Brady <p> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 18 | CC: | akscram, alexander.sakhnov, apevec, asalkeld, bfilippov, breu, eharney, Jan.van.Eldik, jonathansteffan, jose.castro.leon, markmc, matt_domsch, mlvov, p, rbryant, rkukura |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-12-20 15:07: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: |
Description
Eoghan Glynn
2012-09-18 13:11:55 UTC
The issue turns out to be that the iSCSI target was never actually getting created We need tgtd to include volumes configurations from /var/lib/nova/volumes as described here: http://lists.fedoraproject.org/pipermail/cloud/2012-July/001593.html Small correction, it should include /var/lib/cinder/volumes in the tgtd.conf, i.e.: sudo sed -i '1iinclude /var/lib/cinder/volumes/*' /etc/tgt/targets.conf openstack-cinder-2012.2-0.5.rc1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/openstack-cinder-2012.2-0.5.rc1.fc18 openstack-cinder-2012.2-0.5.rc1.fc18 has been pushed to the Fedora 18 testing repository. FYI - for this to work on F17, you need this scsi-target-utils update: https://admin.fedoraproject.org/updates/FEDORA-2012-14471/scsi-target-utils-1.0.24-4.fc17 Re-opening as the work-around: # 1. remove non-globbed conf fragments sudo rm /etc/tgt/conf.d/{nova,cinder}.conf # 2. ensure that target config in /etc/cinder/volume picked up # after tgtd restart sudo sed -i '1iinclude /etc/cinder/volumes/*' /etc/tgt/targets.conf is still required. #2 in particular required to ensure that a volume created before a tgtd restart is still usable afterwards. It seems nested includes as discussed in bug #643302 is supported, but nested globbing is not. Investigating. This recent patch - https://review.openstack.org/12542 - is actually a part of the confusion here We didn't have this patch during the first test day and volume attach was failing However, in the second test day, this patch was in and attach works fine without any inclusion targets.conf The problem is that if you restart tgtd without the targets.conf inclusion, the targets disappear - this is the issue that the persistent targets work in Folsom was intended to fix Possible solution detailed at bug 643302#c14 openstack-nova-2012.2-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/openstack-nova-2012.2-1.fc18 openstack-nova-2012.2-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/openstack-nova-2012.2-1.fc18 openstack-cinder-2012.2-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/openstack-cinder-2012.2-1.fc18 openstack-cinder-2012.2-1.fc18 has been pushed to the Fedora 18 testing repository. openstack-cinder-2012.2-0.5.rc1.fc18 has been pushed to the Fedora 18 obsolete repository. |