Bug 1597113

Summary: Run VM fails on 'Bad volume specification' when NFS data storage domain path specified using ipv6 address
Product: [oVirt] vdsm Reporter: eraviv
Component: GeneralAssignee: Dan Kenigsberg <danken>
Status: CLOSED CURRENTRELEASE QA Contact: Avihai <aefrat>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.30.0CC: bugs, danken, ebenahar, ishaby, tnisan
Target Milestone: ovirt-4.2.5Flags: rule-engine: ovirt-4.2+
rule-engine: ovirt-4.3+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-31 15:29:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1080725, 1403675    
Attachments:
Description Flags
vdsm.log none

Description eraviv 2018-07-02 05:36:43 UTC
Created attachment 1455859 [details]
vdsm.log

Description of problem:
Run VM fails on 'Bad volume specification' when NFS data storage domain path specified using ipv6 address.
Storage domain format is V4.

In /lib/python2.7/site-packages/vdsm/storage/fileSD.py+300 the variable volMetaPattern is assigned a glob pattern of the form:
/rhev/data-center/mnt/[2001:db8:ca3:2::1]:_path_to_nfs_dir/<domain_uuid>/images/*/*.meta

and this value is passed to self.oop.glob.glob() on the next line. But the glob function fails to expand the pattern because of the square brackets surrounding the ipv6 address.


Version-Release number of selected component (if applicable):
vdsm-4.30.0-432.git9b70439.el7.x86_64
ovirt-engine 4.3 master git 400aa24

How reproducible:
100%

Steps to Reproduce:
1. connect host to engine using ipv6 address
2. create NFS connectivity from storage to host using ipv6
3. create storage domain on engine specified with ipv6 address path. e.g.
[2001:db8:ca3:2::1]:/path/to/nfs/dir
Note: square brackets are required by engine to specify the ipv6 address
4. create vm on above domain
5. run the VM

Actual results:
VM run is immediately stopped with error message in vdsm+engine logs 'Bad volume specification'

Expected results:
VM should start and reach UP status without errors

Additional info:

Comment 5 Avihai 2018-07-16 10:53:53 UTC
Verified on 4.2.5.2_SNAPSHOT-76.g2d45cde.0.scratch.master.el7ev.

Comment 6 Sandro Bonazzola 2018-07-31 15:29:31 UTC
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.5 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.