Bug 1609220 - qemu-img create shows some errors while image is created successfully
Summary: qemu-img create shows some errors while image is created successfully
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: libgfapi
Version: rhgs-3.4
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: ---
Assignee: Prasanna Kumar Kalever
QA Contact: Upasana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-27 10:08 UTC by Upasana
Modified: 2021-11-10 13:02 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-10 10:07:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Upasana 2018-07-27 10:08:22 UTC
Description of problem:
=======================
qemu-img is an implementation of libgfapi which is used to create VM's on the volume
While creating qemu-img on a replicated volume i observe some errors but we if check the mount point image is created successfully

Version-Release number of selected component (if applicable):
============================================================
3.12.2-14.el7rhgs.x86_64

How reproducible:
================
3/3

Steps to Reproduce:
==================
1.Create a replica volume
2. Create a qcow2 image on this volume using qemu gfapi method.
# qemu-img create -f qcow2 -o preallocation=metadata gluster://<RHGS_node>/<vol>/vm1.img 10G
3.See errors 
[root@dhcp35-41 test3]# qemu-img create -f qcow2 -o preallocation=metadata gluster://10.70.35.3/arbitrated/vm5.img 1G
Formatting 'gluster://10.70.35.3/arbitrated/vm5.img', fmt=qcow2 size=1073741824 cluster_size=65536 preallocation=metadata lazy_refcounts=off refcount_bits=16
[2018-07-27 09:32:06.709213] E [MSGID: 108006] [afr-common.c:4944:__afr_handle_child_down_event] 0-arbitrated-replicate-0: All subvolumes are down. Going offline until atleast one of them comes back up.
[2018-07-27 09:32:06.709670] E [MSGID: 108006] [afr-common.c:4944:__afr_handle_child_down_event] 0-arbitrated-replicate-1: All subvolumes are down. Going offline until atleast one of them comes back up.
[2018-07-27 09:32:06.711097] E [MSGID: 108006] [afr-common.c:4944:__afr_handle_child_down_event] 0-arbitrated-replicate-2: All subvolumes are down. Going offline until atleast one of them comes back up.

while on the mount point i can see the image
[root@dhcp35-41 test3]# ls -ll
total 1416
-rw-------. 1 root root 1074135040 Jul 27 15:00 vm3.img
-rw-------. 1 root root 1074135040 Jul 27 15:02 vm5.img

Actual results:
==============
shows errors on qemu-img create

Expected results:
================
should not show errors

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

Comment 7 Karthik U S 2018-11-19 10:46:28 UTC
I had a discussion with Prasanna Kalever on this issue. From the discussion it looks like the api logs are defaulting to stderr. He will be checking the code to see whether we can redirect these messages to some other file. Hence adding needinfo on him for the same.

Comment 8 Karthik U S 2019-08-30 10:29:11 UTC
Assigning this to Prasanna, since it needs to be handled in the libgfapi.

Comment 9 Mohit Agrawal 2019-11-22 04:51:49 UTC
@Prasanna,

 Do you have any updates on this? If we are not going to work on this please close the bug.

Thanks,
Mohit Agrawal


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