Bug 1323356
| Summary: | tgt-admin/tgtd does not bring up glfs (gluster) backing stores | ||
|---|---|---|---|
| Product: | [Fedora] Fedora EPEL | Reporter: | Nathan Coulson <nathan> |
| Component: | scsi-target-utils | Assignee: | Maurizio Lombardi <mlombard> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | epel7 | CC: | terje.rosten |
| 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: | 2024-07-09 15:35:52 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: | |||
Fix posted upstream EPEL 7 entered end-of-life (EOL) status on 2024-06-30. EPEL 7 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. |
Description of problem: tgt-admin (and server tgtd) do not bring up backing stores when bs-type is glfs. Tested on Centos 7, using packages available in epel. Version-Release number of selected component (if applicable): scsi-target-utils-1.0.55-4.el7.x86_64 scsi-target-utils-gluster-1.0.55-4.el7.x86_64 How reproducible: Everytime Steps to Reproduce: With a coresponding gluster environment, use the following in targets.conf <target iqn.bravenet:gluster.staging> bs-type glfs backing-store vmdisk@glustermaster:staging </target> and restart tgtd, (or tgt-admin -c targets.conf --update tid=1) Actual results: Using tgt-admin -c targets.conf --update tid=1 -v # Skipping device: vmdisk@gluster:staging # vmdisk@gluster:staging does not exist - please check the configuration file tgtadm -C 0 --lld iscsi --op bind --mode target --tid 1 -I ALL Expected results: Using tgt-admin -c targets.conf --update tid=1 -v # Adding target: iqn.bravenet:gluster.staging tgtadm -C 0 --lld iscsi --op new --mode target --tid 1 -T iqn.bravenet:gluster.staging tgtadm -C 0 --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b vmdisk@gluster:staging --bstype glfs Additional info: I believe this is due to tgt-admin not being familiar with glfs and assuming it needs a block device. To test this, I made the following change and it now works as expected: (Line 491 of /usr/sbin/tgt-admin) if ($can_alloc == 1 && -($bstype =~ "rbd" || (-e $backing_store && ! -d $backing_store))) { +($bstype =~ "glfs" || $bstype =~ "rbd" || (-e $backing_store && ! -d $backing_store))) {