on openvz fails with ioprio_set: Operation not permitted

Bug #331921 reported by Markus Heberling
2
Affects Status Importance Assigned to Milestone
update-motd (Ubuntu)
Fix Released
Undecided
Dustin Kirkland 

Bug Description

Binary package hint: update-motd

I have installed ubuntu on a openv container and it seem that on that particular configuration changing of ionice is not allowed. This leads to failure of the update-motd script.

Uncommenting the line "ionice -c2 -n7 -p $$ >/dev/null" in the update-motd script fixes the issue for me, but maybe there is a better way.

Related branches

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi Markus, thanks for the report.

One thing I'm unclear about...

The line "ionice -c2 -n7 -p $$ >/dev/null" is not commented in the source code.

How did yours become commented? Could you remove update-motd, and then add it back, and see if you can reproduce the problem?

:-Dustin

Changed in update-motd:
assignee: nobody → kirkland
status: New → Incomplete
Revision history for this message
Markus Heberling (markus-tisoft) wrote :

Sorry... I meant "commenting out the line solved the problem"

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 331921] Re: on openvz fails with ioprio_set: Operation not permitted

Okay, thanks for the clarification.

Can you try it with some different values of -n?

You can use 0-7, with 0 being the highest priority (not what we want),
and 7 being the lowest priority (what I was going for).

I really don't want to comment this out entirely, but would like to
find values that work for you.

:-Dustin

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Also, could you try removing the -n argument entirely?

:-Dustin

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Okay, I'll just change that one line to succeed unconditionally. It'll be a best effort io-renice :-)

Thanks for the bug report, cheers!
:-Dustin

Changed in update-motd:
status: Incomplete → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-motd - 1.11

---------------
update-motd (1.11) jaunty; urgency=low

  * update-motd: don't fail the entire script, if renice/ionice fail,
    LP: #331921; ionice to 'idle' rather than 'best-effort'

 -- Dustin Kirkland <email address hidden> Thu, 05 Mar 2009 10:51:26 -0600

Changed in update-motd:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.