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 681877

Summary: VDSM - Storage: No rollback from "MkfsError: Cannot create filesystem on device"
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Paikov <dpaikov>
Component: vdsmAssignee: Erez Shinan <erez>
Status: CLOSED NOTABUG QA Contact: yeylon <yeylon>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: abaron, bazulay, danken, hateya, iheim, srevivo, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-22 08:10:31 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.log none

Description Daniel Paikov 2011-03-03 13:57:27 UTC
Created attachment 482085 [details]
vdsm.log

* Domain creation failed for "MkfsError: Cannot create filesystem on device".
* Devices were left dirty, even though they are not used.
* Devices should be cleaned, so they could be re-used for future domains.

Comment 2 Ayal Baron 2011-03-08 11:07:03 UTC
Paikov, what's the difference between this bug and "682513 - VDSM - Storage: VDSM should work with new mke2fs default of discard=enabled" ???

Comment 4 Erez Shinan 2011-03-29 14:49:20 UTC
How do I reproduce this bug?

Comment 5 Daniel Paikov 2011-03-29 14:54:32 UTC
(In reply to comment #4)
> How do I reproduce this bug?

It happens every time when using the storage at Westford: http://10.16.45.61

Comment 6 Erez Shinan 2011-03-29 15:08:44 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > How do I reproduce this bug?
> 
> It happens every time when using the storage at Westford: http://10.16.45.61

Can you specify which actions produced this error?

Comment 7 Erez Shinan 2011-05-22 08:10:31 UTC
While some errors are susceptible to rollback, reliably rollbacking from any error that might arise in blockSD.create is unfortunately impossible. Hence, I claim it's a futile task in the first place.

There is, however, a mechanism for handling errors exactly such as this: VDSM uses the domain tags to communicate whether the domain is ready or not (RHAT_storage_domain_UNREADY). While that tag is set the VG should not be used, and should be considered as marked for deletion.

This tagging mechanism seems to work reliably for failures in mkfs, therefor this doesn't appear to be a bug.

Comment 8 Yaniv Kaul 2011-05-22 08:53:57 UTC
Is a normal, usable error propagated back to the user about that VG? With some identifier of it?

Comment 9 Erez Shinan 2011-05-22 09:04:50 UTC
Yes, the function raises a VolumeGroupUninitialized exception with the name of the VG.