Bug 1412187

Summary: microcode.service fails to load due to broken quoting in ExecStart line
Product: Red Hat Enterprise Linux 7 Reporter: Jaroslav Reznik <jreznik>
Component: microcode_ctlAssignee: Petr Oros <poros>
Status: CLOSED ERRATA QA Contact: Rachel Sibley <rasibley>
Severity: medium Docs Contact:
Priority: high    
Version: 7.3CC: agallego, antmak.pub, apmukher, aschorr, h.reindl, kueda, lmiksik, mschmidt, myllynen, ngalvin, pasteur, poros, rasibley, skozina, tomerbd1, tramer, vcojot, zpytela
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: microcode_ctl-2.1-16.3.el7_3 Doc Type: If docs needed, set a value
Doc Text:
Latest microcode_ctl introduced bug in systemd service. It is caused by broken quoting in ExecStart line. This fix removing doube quotes from ExecStart line.
Story Points: ---
Clone Of: 1411232 Environment:
Last Closed: 2017-03-02 17:10:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1411232    
Bug Blocks:    

Description Jaroslav Reznik 2017-01-11 13:34:51 UTC
This bug has been copied from bug #1411232 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 7 Rachel Sibley 2017-02-08 22:57:54 UTC
ALL TESTS PASSED

Verified as fixed in microcode_ctl-2.1-16.3.el7_3, the service now loads without errors

Before
===============================
~]# rpm -qa microcode_ctl
microcode_ctl-2.1-16.1.el7_3.x86_64

~]# systemctl status microcode -l
● microcode.service - Load CPU microcode update
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead) since Wed 2017-02-08 02:33:49 EST; 14h ago
 Main PID: 660 (code=exited, status=0/SUCCESS)

Feb 08 02:33:48 localhost.localdomain systemd[1]: Starting Load CPU microcode update...
Feb 08 02:33:49 localhost.localdomain systemd[1]: Started Load CPU microcode update.
Feb 08 17:12:03 hp-ms-01-c22.moonshot1.lab.eng.rdu.redhat.com systemd[1]: [/usr/lib/systemd/system/microcode.service:10] Trailing garbage, ignoring.
Feb 08 17:12:03 hp-ms-01-c22.moonshot1.lab.eng.rdu.redhat.com systemd[1]: microcode.service lacks both ExecStart= and ExecStop= setting. Refusing.


After
===============================
~]# yum update microcode_ctl-2.1-16.3.el7_3.x86_64.rpm

-reboot

~]# rpm -qa microcode_ctl
microcode_ctl-2.1-16.3.el7_3.x86_64

~]# systemctl status microcode -l
● microcode.service - Load CPU microcode update
   Loaded: loaded (/usr/lib/systemd/system/microcode.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2017-02-08 17:32:04 EST; 17min ago
  Process: 641 ExecStart=/usr/bin/bash -c grep -l GenuineIntel /proc/cpuinfo | xargs grep -l -E "model[[:space:]]*: 79$" > /dev/null || echo 1 > /sys/devices/system/cpu/microcode/reload (code=exited, status=0/SUCCESS)
 Main PID: 641 (code=exited, status=0/SUCCESS)

Feb 08 17:32:04 localhost.localdomain systemd[1]: Starting Load CPU microcode update...
Feb 08 17:32:04 localhost.localdomain systemd[1]: Started Load CPU microcode update.

Comment 8 Tomer Ben David 2017-02-14 16:50:37 UTC
Hi! is it possible to find microcode_ctl-2.1-16.3.el7_3 rpm, if not when is it expected to be released?

Comment 10 errata-xmlrpc 2017-03-02 17:10:49 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-0374.html