Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 716918

Summary: Creation of iSCSI storage domain fails due to wrong formatting
Product: Red Hat Enterprise Linux 6 Reporter: Rami Vaknin <rvaknin>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED NOTABUG QA Contact: yeylon <yeylon>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.2CC: abaron, bazulay, iheim, mgoldboi, srevivo, yeylon, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-27 14:03:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
VDSM Logs none

Description Rami Vaknin 2011-06-27 12:39:17 UTC
Created attachment 510086 [details]
VDSM Logs

Environment:
RHEVM 3.0 on dev env, backend on RHEL6, last commit bfe62be32c7ff836ba7784c807fef91d59e3a2fc
vdsm-4.9-76.el6.x86_64
libvirt-0.9.2-1.el6.x86_64

Scenario: Create iSCSI storage domain version 2
Results: Creation fails

From VDSM log:

Thread-2239::INFO::2011-06-27 14:30:08,302::dispatcher::94::Storage.Dispatcher.Protect::(run) Run and protect: createStorageDomain, args: ( storageType=3 sdUUID=4f9a37ae-95ab-4e20-ae5c-af1561cc80ad domainName=rvaknin_iscsi typeSpecificArg=dvnnvg-ZHMa-sV37-jz58-ib7Y-OZCc-P3U144 domClass=1 domVersion=2)
Thread-2239::DEBUG::2011-06-27 14:30:08,302::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: moving from state init -> state preparing
Thread-2239::ERROR::2011-06-27 14:30:08,333::task::865::TaskManager.Task::(_setError) Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 873, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/storage/hsm.py", line 1210, in public_createStorageDomain
    sd.validateDomainVersion(domVersion)
  File "/usr/share/vdsm/storage/sd.py", line 135, in validateDomainVersion
    raise se.UnsupportedDomainVersion(version)
  File "/usr/share/vdsm/storage/storage_exception.py", line 675, in __init__
    self.message = "Domain version `%d` is unsupported by this version of VDSM" % version
TypeError: %d format: a number is required, not str
Thread-2239::DEBUG::2011-06-27 14:30:08,335::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: Task._run: eb27019e-f6e7-4707-a278-a1d60962ecda (3, '4f9a37ae-95ab-4e20-ae5c-af1561cc80ad', 'rvaknin_iscsi', 'dvnnvg-ZHMa-sV37-jz58-ib7Y-OZCc-P3U144', 1, '2') {} failed - stopping task
Thread-2239::DEBUG::2011-06-27 14:30:08,336::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: stopping in state preparing (force False)
Thread-2239::DEBUG::2011-06-27 14:30:08,336::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: ref 1 aborting True
Thread-2239::INFO::2011-06-27 14:30:08,336::task::1177::TaskManager.Task::(prepare) aborting: Task is aborted: '%d format: a number is required, not str' - code 100
Thread-2239::DEBUG::2011-06-27 14:30:08,337::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: Prepare: aborted: %d format: a number is required, not str
Thread-2239::DEBUG::2011-06-27 14:30:08,337::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: ref 0 aborting True
Thread-2239::DEBUG::2011-06-27 14:30:08,337::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: Task._doAbort: force False
Thread-2239::DEBUG::2011-06-27 14:30:08,338::resourceManager::821::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {}
Thread-2239::DEBUG::2011-06-27 14:30:08,338::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: moving from state preparing -> state aborting
Thread-2239::DEBUG::2011-06-27 14:30:08,338::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: _aborting: recover policy none
Thread-2239::DEBUG::2011-06-27 14:30:08,338::task::492::TaskManager.Task::(_debug) Task eb27019e-f6e7-4707-a278-a1d60962ecda: moving from state aborting -> state failed
Thread-2239::DEBUG::2011-06-27 14:30:08,339::resourceManager::786::ResourceManager.Owner::(releaseAll) Owner.releaseAll requests {} resources {}
Thread-2239::DEBUG::2011-06-27 14:30:08,339::resourceManager::821::ResourceManager.Owner::(cancelAll) Owner.cancelAll requests {}
Thread-2239::ERROR::2011-06-27 14:30:08,339::dispatcher::106::Storage.Dispatcher.Protect::(run) %d format: a number is required, not str
Thread-2239::ERROR::2011-06-27 14:30:08,340::dispatcher::107::Storage.Dispatcher.Protect::(run) Traceback (most recent call last):
  File "/usr/share/vdsm/storage/dispatcher.py", line 96, in run
    result = ctask.prepare(self.func, *args, **kwargs)
  File "/usr/share/vdsm/storage/task.py", line 1184, in prepare
    raise self.error
TypeError: %d format: a number is required, not str

Comment 1 Rami Vaknin 2011-06-27 14:03:08 UTC
Closing this bug, it works in VDSM 77.