Bug 1717056

Summary: warning on update of rhv-openvswitch
Product: Red Hat Enterprise Virtualization Manager Reporter: Dominik Holler <dholler>
Component: rhv-openvswitchAssignee: Miguel Duarte Barroso <mduarted>
Status: CLOSED ERRATA QA Contact: Michael Burman <mburman>
Severity: medium Docs Contact:
Priority: high    
Version: 2.1.0CC: danken, dfediuck, dholler, jortialc, mduarted, mzamazal
Target Milestone: ovirt-4.4.0Keywords: Rebase, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhv-openvswitch-2.11-5.el7ev Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1734346 (view as bug list) Environment:
Last Closed: 2020-08-04 13:23:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1734346    
Attachments:
Description Flags
terminal log none

Description Dominik Holler 2019-06-04 15:46:51 UTC
Created attachment 1577180 [details]
terminal log

Description of problem:
yum reports
Failed to get unit file state for ovn-northd.service: No such file or directory
/var/tmp/rpm-tmp.5P3a0a: line 5: [: =: unary operator expected
Failed to get unit file state for ovirt-provider-ovn.service: No such file or directory
/var/tmp/rpm-tmp.5P3a0a: line 5: [: =: unary operator expected


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. update rhv-openvswitch on host
2.
3.

Actual results:
warning is shown

Expected results:
no warning is shown

Additional info:
rhv-openvswitch              noarch 1:2.10-6.el7ev

Comment 1 Dominik Holler 2019-06-04 16:02:46 UTC
error message on clean install on rhvm:
Failed to get unit file state for openvswitch.service: No such file or directory
/var/tmp/rpm-tmp.ap2vYM: line 5: [: =: unary operator expected
Failed to get unit file state for ovn-northd.service: No such file or directory
/var/tmp/rpm-tmp.ap2vYM: line 5: [: =: unary operator expected
Failed to get unit file state for ovirt-provider-ovn.service: No such file or directory
/var/tmp/rpm-tmp.ap2vYM: line 5: [: =: unary operator expected
Failed to get unit file state for ovn-controller.service: No such file or directory
/var/tmp/rpm-tmp.ap2vYM: line 5: [: =: unary operator expected

Comment 2 Dominik Holler 2019-06-11 13:10:38 UTC
Let us just remove the "/var/tmp/rpm-tmp.ap2vYM: line 5: [: =: unary operator expected" and keep the "Failed to get unit file state for openvswitch.service: No such file or directory"

Comment 3 Milan Zamazal 2019-06-20 07:15:21 UTC
FWIW, I get the same messages when installing rhv-openvswitch-1:2.11-4.el8ev.

Comment 6 Dominik Holler 2019-06-21 13:07:13 UTC
(In reply to Miguel Duarte Barroso from comment #4)
> Created attachment 1582600 [details]
> double quote all the variables
> 
> Dominik, do you mind checking if this patch addresses this issue ?

Yes, looks good, thanks for the fix!
Can you push this to rhv-openvswitch/refs/rhevm-4.4-* ?

Comment 7 Dan Kenigsberg 2019-06-24 05:57:18 UTC
Ouch, a bash-bigginer's bug of mine.

Comment 8 Dominik Holler 2019-06-28 18:48:42 UTC
*** Bug 1725018 has been marked as a duplicate of this bug. ***

Comment 14 Michael Burman 2019-10-23 06:23:08 UTC
Verified with rhv-4.4.0
rhv-openvswitch-2.11-6.el8ev.noarch

Comment 17 errata-xmlrpc 2020-08-04 13:23:38 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 (RHV Engine and Host Common Packages 4.4), 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://access.redhat.com/errata/RHEA-2020:3309