Bug 1589270 - ovirt-engine-setup-plugin-ovirt-engine %pre fails on Fedora 28
Summary: ovirt-engine-setup-plugin-ovirt-engine %pre fails on Fedora 28
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Packaging.rpm
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.3.0
: 4.3.0
Assignee: Gal Zaidman
QA Contact: Lukas Svaty
URL:
Whiteboard:
: 1590302 (view as bug list)
Depends On:
Blocks: oVirt_on_Fedora
TreeView+ depends on / blocked
 
Reported: 2018-06-08 14:58 UTC by Sandro Bonazzola
Modified: 2018-11-26 16:08 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.3.0_alpha
Clone Of:
Environment:
Last Closed: 2018-08-16 08:05:46 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.3+
rule-engine: blocker+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 92129 0 master MERGED spec: force lazy expansion of %global:ovirt_create_user_vdsm/engine 2018-06-12 14:21:09 UTC

Description Sandro Bonazzola 2018-06-08 14:58:26 UTC
In ovirt-engine spec file we have:

   %pre setup-plugin-ovirt-engine
   %ovirt_create_user_vdsm

this works fine on EL7 bug on Fedora 28 the generated script looks like:

  set -x
  getent group kvm >/dev/null || groupadd -r -g 36 kvm;
  getent passwd vdsm >/dev/null || useradd -r -u 36 -g kvm -c "Node -s /sbin/nologin -d Virtualization vdsm

This seems like 
  "%{vdsm_description}"
is resolved in 
  Node Virtualization Manager
instead of
  "Node Virtualization Manager"

causing the command to fail

Comment 1 Sandro Bonazzola 2018-06-08 15:06:53 UTC
Note that the failure is due to the unmatched " but the root cause is the wrong macro expansion.

Comment 2 Sandro Bonazzola 2018-06-08 15:09:55 UTC
Workaround to be able to continue while this bug is fixed:
# dnf download ovirt-engine-setup-plugin-ovirt-engine
# rpm -ivh --noscripts ovirt-engine-setup-plugin-ovirt-engine-4.3.0-0.0.master.20180608115732.gita4bbacb7277.fc28.noarch.rpm

Comment 3 Sandro Bonazzola 2018-06-12 14:14:06 UTC
*** Bug 1590302 has been marked as a duplicate of this bug. ***


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