Bug 1222614 - Misleading error message during snapshot creation
Summary: Misleading error message during snapshot creation
Keywords:
Status: CLOSED EOL
Alias: None
Product: GlusterFS
Classification: Community
Component: snapshot
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard: gluster
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-18 15:44 UTC by Stanislav Graf
Modified: 2017-03-08 10:49 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-08 10:49:39 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1212923 0 unspecified CLOSED [SELinux]: [Snapshot]: SELinux policy updates required in RHEL-7.1 for gluster-snapshot 2021-02-22 00:41:40 UTC

Internal Links: 1212923

Description Stanislav Graf 2015-05-18 15:44:12 UTC
Description of problem:
=======================

When one hits Selinux Bug 1212923, oVirt reports:
~~~
Operation Canceled
Error while executing action Create Gluster Volume Snapshot: Snapshot create failed
error: Snapshot is supported only for thin provisioned LV_ Ensure that all bricks of volume1 are thinly provisioned LV_
return code: -1
~~~

engine.log says:
~~~
2015-05-18 17:28:19,624 WARN  [org.ovirt.engine.core.dal.job.ExecutionMessageDirector] (ajp--127.0.0.1-8702-9) [7b611353] The message key 'CreateGlusterVolumeSnapshot' is missing from 'bundles/ExecutionMessages'
2015-05-18 17:28:19,813 ERROR [org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeSnapshotCommand] (ajp--127.0.0.1-8702-9) [7b611353] Transaction rolled-back for command 'org.ovirt.engine.core.bll.gluster.CreateGlusterVolumeSnapshotCommand'.
2015-05-18 17:28:19,817 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp--127.0.0.1-8702-9) [7b611353] Correlation ID: 7b611353, Job ID: 8f68a971-0f23-4d48-95ee-aaf0914c27c5, Call Stack: null, Custom Event ID: -1, Message: Could not create snapshot for volume volume1 on cluster Default.
~~~

The message from oVirt is misleading.

Version-Release number of selected component (if applicable):
=============================================================
ovirt-engine-3.6.0-0.0.master.20150517172245.git089e126.el6.noarch

How reproducible:
=================
100%

Steps to Reproduce:
===================
1. Create a volume using at least one RHEL7 node
2. Selinux in enforcing mode on RHEL7 node
3. In oVirt -> Volume -> Snapshot -> New

Actual results:
===============
Misleading error message.

Expected results:
=================
More accurate error message.

Additional info:
================
-

Comment 1 Stanislav Graf 2015-05-18 20:23:01 UTC
Oh, this is a bug in gluster and not oVirt, see:
~~~
# gluster snapshot create test1 volume1
snapshot create: failed: Snapshot is supported only for thin provisioned LV. Ensure that all bricks of volume1 are thinly provisioned LV.
Snapshot command failed
(exitcode=1)
# setenforce 0
# gluster snapshot create test1 volume1
snapshot create: success: Snap test1_GMT-2015.05.18-20.19.13 created successfully
~~~

# rpm -q glusterfs
glusterfs-3.7.0beta1-0.131.gitf54b232.el7.centos.x86_64

Comment 2 Kaushal 2017-03-08 10:49:39 UTC
This bug is getting closed because GlusteFS-3.7 has reached its end-of-life.

Note: This bug is being closed using a script. No verification has been performed to check if it still exists on newer releases of GlusterFS.
If this bug still exists in newer GlusterFS releases, please reopen this bug against the newer release.


Note You need to log in before you can comment on or make changes to this bug.