** Description changed:

+ [SRU Justification]
+ As a hardware diagnostic service, it's important that opal-prd be kept 
running even in the face of hardware unreliability.  The most effective way to 
do this is with a systemd unit policy of Restart=always, to ensure the service 
is not allowed to accidentally die.
+ 
+ [Test case]
+ 1. Install the opal-prd package on a system that has /dev/mtd0.
+ 2. Verify that the service is running with 'systemctl status opal-prd'.
+ 3. Get the pid of the opal-prd process from systemctl and kill it with 'sudo 
kill -9 $pid'.
+ 4. Verify via 'systemctl status opal-prd' that the service is no longer 
running.
+ 5. Install opal-prd from -proposed.
+ 6. Verify via 'systemctl status opal-prd' that the service is running again.
+ 7. Kill the new process with 'sudo kill -9 $pid'.
+ 8. Verify via 'systemctl status opal-prd' that the service has been restarted.
+ 9. Install the opal-prd package from -proposed on a system that does not have 
/dev/mtd0.
+ 10. Verify that 'systemctl status opal-prd' shows the service is inactive, 
and has not been allowed to restart indefinitely after failure, driving up the 
system load.
+ 
+ [Regression potential]
+ Since the package may be installed on systems where opal-prd is useless and 
will not run, it's important to verify for each release that Restart=always 
doesn't cause systemd to go into a busy loop trying to restart the service 
under these conditions.  The uploaded change should guard against this by 
checking for the correct path before starting the job, and the test case should 
further confirm this.
+ 
+ 
  == Comment: #0 - VASANT HEGDE <[email protected]> - 2017-03-08 03:12:33 
==
  ---Problem Description---
- opal-prd package contains prd daemon (Processor Runtime Diagnostics). 
+ opal-prd package contains prd daemon (Processor Runtime Diagnostics).
  
  One of the requirements from a field service perspective is to be able
  to restart opal-prd when it fails for whatever reason.
  
  Direct systemd to restart the opal-prd service on any kind of failure.
  
- Ubuntu contains opal-prd package.  This bug is to restart daemon after failure
-  
- Contact Information = [email protected] 
-  
+ Ubuntu contains opal-prd package.  This bug is to restart daemon after
+ failure
+ 
+ Contact Information = [email protected]
+ 
  Machine Type = All Open Power Systems
-  
-  
+ 
  Userspace tool common name: opal-prd
  
  Userspace rpm: opal-prd
-  
+ 
  The userspace tool has the following bit modes: 64bit
  
  == Comment: #3 - Ananth Narayan M G <[email protected]> - 2017-03-08 
03:37:46 ==
  Posted patch upstream for this -- 
https://lists.ozlabs.org/pipermail/skiboot/2017-March/006612.html

** Changed in: skiboot (Ubuntu Yakkety)
       Status: New => In Progress

** Changed in: skiboot (Ubuntu Xenial)
       Status: New => In Progress

** Changed in: skiboot (Ubuntu Yakkety)
     Assignee: (unassigned) => Steve Langasek (vorlon)

** Changed in: skiboot (Ubuntu Yakkety)
    Milestone: None => yakkety-updates

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1671019

Title:
  PowerNV: Restart opal-prd daemon on any kind of failure

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1671019/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to