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 1201846 - remove unnecessary warning when connect to ovirt URI
Summary: remove unnecessary warning when connect to ovirt URI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libgovirt
Version: 6.7
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Christophe Fergeau
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On: 1201599
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-13 15:51 UTC by Christophe Fergeau
Modified: 2017-03-21 09:15 UTC (History)
14 users (show)

Fixed In Version: libgovirt-0.3.2-2.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1201599
Environment:
Last Closed: 2017-03-21 09:15:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0587 0 normal SHIPPED_LIVE libgovirt, rest, spice-gtk, and virt-viewer bug fix and enhancement update 2017-03-21 12:24:45 UTC

Comment 8 Christophe Fergeau 2016-03-17 09:20:42 UTC
Ah this removed the
(remote-viewer:27104): libgovirt-WARNING **: could not find node storage_domain_state
warnings.

Removing these warnings:
(remote-viewer:27104): libgovirt-WARNING **: Passing a full http:// or https:// URI to ovirt_proxy_new() is deprecated

(remote-viewer:27104): libgovirt-WARNING **: Passing an URI ending in /api to ovirt_proxy_new() is deprecated

is a different thing and would be done in remote-viewer.

Comment 9 David Jaša 2016-03-17 11:20:33 UTC
(In reply to Christophe Fergeau from comment #8)
> Ah this removed the
> (remote-viewer:27104): libgovirt-WARNING **: could not find node
> storage_domain_state
> warnings.
> 
> Removing these warnings:
> (remote-viewer:27104): libgovirt-WARNING **: Passing a full http:// or
> https:// URI to ovirt_proxy_new() is deprecated
> 
> (remote-viewer:27104): libgovirt-WARNING **: Passing an URI ending in /api
> to ovirt_proxy_new() is deprecated
> 
> is a different thing and would be done in remote-viewer.

$ remote-viewer --spice-ca-file .pki/tls/certs/rhevm35.pem ovirt://user.com/vm_name
(...)
(remote-viewer:6207): GSpice-WARNING **: Invalid port value 0
(remote-viewer:6207): libgovirt-DEBUG: could not find XML node 'storage_domain_state'
(remote-viewer:6207): libgovirt-DEBUG: Could not find node storage_domain_state
(remote-viewer:6207): libgovirt-DEBUG: could not find XML node 'available'
(remote-viewer:6207): libgovirt-DEBUG: Could not find node available
(remote-viewer:6207): libgovirt-DEBUG: could not find XML node 'used'
(remote-viewer:6207): libgovirt-DEBUG: Could not find node used
(remote-viewer:6207): libgovirt-DEBUG: could not find XML node 'storage_domain_state'
(remote-viewer:6207): libgovirt-DEBUG: Could not find node storage_domain_state
(remote-viewer:6207): libgovirt-DEBUG: could not find XML node 'available'
(remote-viewer:6207): libgovirt-DEBUG: Could not find node available
(remote-viewer:6207): libgovirt-DEBUG: could not find XML node 'used'
(remote-viewer:6207): libgovirt-DEBUG: Could not find node used
(remote-viewer:6207): libgovirt-DEBUG: could not find XML node 'storage_domain_state'
(remote-viewer:6207): libgovirt-DEBUG: Could not find node storage_domain_state
(remote-viewer:6207): libgovirt-DEBUG: could not find XML node 'storage_domain_state'
(remote-viewer:6207): libgovirt-DEBUG: Could not find node storage_domain_state
(remote-viewer:6207): libgovirt-DEBUG: Setting fake 'name' for cdrom resource

so there are even those "Could not find node storage_domain_state" messages printed, among others...

Comment 10 Christophe Fergeau 2016-03-17 13:41:30 UTC
Ah, I've taken this bug very literally

Actual results:
At step 4,
libgovirt-WARNING log, seems unnecessary

Expected results:
Remove the unnecessary log

I've changed it to g_debug() which effectively silences it on recent glib versions. I forgot that RHEL6 glib shows g_debug by default, which indeed makes the g_warning->g_debug change not that useful on RHEL6 :(
The "Could not find XML node xx" and "could not find node xx" are also redundant, I've fixed this upstream
https://git.gnome.org/browse/libgovirt/commit/?id=6ed718ec0103b302ff6c38f22ee4256d2a656c9f

I suggest that we open a bug against virt-viewer to get rid of the first 2 warnings, and that we live with these DEBUG messages.

Comment 13 Christophe Fergeau 2016-07-26 13:16:38 UTC
Moving this to POST to add https://git.gnome.org/browse/libgovirt/commit/?id=6ed718ec0103b302ff6c38f22ee4256d2a656c9f to the build.
The other warnings will need to be fixed on virt-viewer side.
The fact that g_debug() messages appear on stdout by default is imo a glib issue, and not something I want to workaround in libgovirt.

With the patch mentioned above, this bug against libgovirt can imo be closed.

Comment 16 Radek Duda 2016-12-08 13:58:33 UTC
verified on rhel6.9 client and rhel 7.3 guests:

1. reproduced old behaviour (with libgovirt 0.3.2-1.el6):
$ remote-viewer ovirt://$username%40$domain@${rhv-server}/$vmname --ovirt--ca-file $cafile -spice-ca-file $scafile


libgovirt-WARNING log messages were displayed


2. upgraded to libgovirt 0.3.2-1.el6:
no libgovirt-WARNING messages were displayed

Comment 18 errata-xmlrpc 2017-03-21 09:15:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://rhn.redhat.com/errata/RHBA-2017-0587.html


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