cpupower suggests installation of non-existent linux-cloud-tools-generic package

Bug #1696375 reported by bugproxy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
Invalid
High
Canonical Kernel Team
linux (Ubuntu)
Invalid
High
Canonical Kernel Team

Bug Description

Problem Description
===========================
cpupower suggests installation of non-existent linux-cloud-tools-generic package

Problem occurs on an IBM POWER 16.04 LTS system. Unknown whether it occurs on other architectures or later releases.

When run _without package "linux-tools-$(uname -r)" installed_, cpupower will issue a complaint, suggesting to install (among others), some linux-cloud-tools-*-generic packages:

$ cpupower
WARNING: cpupower not found for kernel 4.4.0-75

  You may need to install the following packages for this specific kernel:
    linux-tools-4.4.0-75-generic
    linux-cloud-tools-4.4.0-75-generic

  You may also want to install one of the following packages to keep up to date:
    linux-tools-generic
    linux-cloud-tools-generic

However, those linux-cloud-tools-*-generic package appear not to exist--at least not in the default repos.

Package linux-cloud-tools-common exists, but none of the *-generic packages are available:

$ apt-cache policy "linux-cloud-*"
$ cat xxx
linux-cloud-tools-common:
  Installed: (none)
  Candidate: 4.4.0-78.99
  Version table:
     4.4.0-78.99 500
        500 http://ports.ubuntu.com/ubuntu-ports xenial-proposed/main ppc64el Packages
     4.4.0-77.98 500
        500 http://us.ports.ubuntu.com/ubuntu-ports xenial-updates/main ppc64el Packages
     4.4.0-75.96 500
        500 http://us.ports.ubuntu.com/ubuntu-ports xenial-updates/main ppc64el Packages
        500 http://ports.ubuntu.com/ubuntu-ports xenial-security/main ppc64el Packages
[...]
     4.4.0-21.37 500
        500 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el Packages

The cpupower command works (at least doesn't give this complaint) if the appropriate linux-tools-$(uname -r) (perhaps via linux-tools-generic) is installed, so the cloud package is maybe not needed (as least for some functionality).

I think the fix is to either:
a) supply the cloud packages for POWER, or
b) remove the non-existent packages from cpupower's complaint message.

---uname output---
Linux fs3 4.4.0-75-generic #96-Ubuntu SMP Thu Apr 20 09:55:30 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux

Machine Type = Firestone

---Steps to Reproduce---
 Install linux-tools-common but NOT linux-tools-*-generic on a POWER 16.04 LTS system, then run cpupower.

Userspace rpm: linux-tools-common

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-153982 severity-medium targetmilestone-inin16043
Changed in ubuntu:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
affects: ubuntu → linux (Ubuntu)
tags: added: kernel-da-key
Manoj Iyer (manjo)
Changed in ubuntu-power-systems:
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)
Changed in linux (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Frank Heimes (fheimes)
Changed in ubuntu-power-systems:
status: New → Triaged
importance: Undecided → Medium
Manoj Iyer (manjo)
Changed in linux (Ubuntu):
assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Canonical Kernel Team (canonical-kernel-team)
tags: added: triage-r
tags: added: kernel-key
removed: kernel-da-key
Changed in linux (Ubuntu):
importance: Medium → High
Revision history for this message
Manoj Iyer (manjo) wrote :

IBM, could you please validate this on 16.04.3 and report back here is this issue is fixed or still valid?

Manoj Iyer (manjo)
Changed in linux (Ubuntu):
status: Triaged → Incomplete
Changed in ubuntu-power-systems:
status: Triaged → Incomplete
importance: Medium → High
tags: added: triage-a
removed: triage-r
tags: added: kernel-da-key
removed: kernel-key
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2017-08-28 17:22 EDT-------
Problem still occurs on current 16.04, at least with the 4.4-series kernel: cpupower still suggests installation of "cloud" packages and they still don't exist (at least for for ppc64le):

$ dpkg -l | egrep 'linux-(tools|cloud-tools)'
ii linux-tools-common 4.4.0-93.116 all Linux kernel version specific tools for version 4.4.0

$ cpupower
WARNING: cpupower not found for kernel 4.4.0-92

You may need to install the following packages for this specific kernel:
linux-tools-4.4.0-92-generic
linux-cloud-tools-4.4.0-92-generic

You may also want to install one of the following packages to keep up to date:
linux-tools-generic
linux-cloud-tools-generic

$ apt-cache policy linux-cloud-tools-generic linux-cloud-tools-4.4.0-92-generic linux-cloud-tools-4.4.0-93-generic
N: Unable to locate package linux-cloud-tools-generic
N: Unable to locate package linux-cloud-tools-4.4.0-92-generic
N: Couldn't find any package by glob 'linux-cloud-tools-4.4.0-92-generic'
N: Couldn't find any package by regex 'linux-cloud-tools-4.4.0-92-generic'
N: Unable to locate package linux-cloud-tools-4.4.0-93-generic
N: Couldn't find any package by glob 'linux-cloud-tools-4.4.0-93-generic'
N: Couldn't find any package by regex 'linux-cloud-tools-4.4.0-93-generic'

Changed in ubuntu-power-systems:
status: Incomplete → Confirmed
Revision history for this message
Manoj Iyer (manjo) wrote :

I am unable to reproduce this with 16.04.3, please reopen if you still see this on you system with 16.04.3

$ sudo apt install linux-tools-4.10.0-33-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-tools-4.4.0-93 linux-tools-4.4.0-93-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libunwind8 linux-hwe-tools-4.10.0-33
The following NEW packages will be installed:
  libunwind8 linux-hwe-tools-4.10.0-33 linux-tools-4.10.0-33-generic
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 817 kB of archives.
After this operation, 3,748 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com/ubuntu-ports xenial/main ppc64el libunwind8 ppc64el 1.1-4.1 [43.1 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main ppc64el linux-hwe-tools-4.10.0-33 ppc64el 4.10.0-33.37~16.04.1 [772 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main ppc64el linux-tools-4.10.0-33-generic ppc64el 4.10.0-33.37~16.04.1 [1,822 B]
Fetched 817 kB in 0s (1,547 kB/s)
Selecting previously unselected package libunwind8.
(Reading database ... 74027 files and directories currently installed.)
Preparing to unpack .../libunwind8_1.1-4.1_ppc64el.deb ...
Unpacking libunwind8 (1.1-4.1) ...
Selecting previously unselected package linux-hwe-tools-4.10.0-33.
Preparing to unpack .../linux-hwe-tools-4.10.0-33_4.10.0-33.37~16.04.1_ppc64el.deb ...
Unpacking linux-hwe-tools-4.10.0-33 (4.10.0-33.37~16.04.1) ...
Selecting previously unselected package linux-tools-4.10.0-33-generic.
Preparing to unpack .../linux-tools-4.10.0-33-generic_4.10.0-33.37~16.04.1_ppc64el.deb ...
Unpacking linux-tools-4.10.0-33-generic (4.10.0-33.37~16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Setting up libunwind8 (1.1-4.1) ...
Setting up linux-hwe-tools-4.10.0-33 (4.10.0-33.37~16.04.1) ...
Setting up linux-tools-4.10.0-33-generic (4.10.0-33.37~16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...

ubuntu@cameron:~$ cpupower
Usage: cpupower [-d|--debug] [-c|--cpu cpulist ] <command> [<args>]
Supported commands are:
 frequency-info
 frequency-set
 idle-info
 idle-set
 set
 info
 monitor
 help

Not all commands can make use of the -c cpulist option.

Use 'cpupower help <command>' for getting help for above commands.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Changed in ubuntu-power-systems:
status: Confirmed → Invalid
Revision history for this message
Manoj Iyer (manjo) wrote :

$ sudo cpupower idle-info
CPUidle driver: powernv_idle
CPUidle governor: menu
analyzing CPU 0:

Number of idle states: 3
Available idle states: snooze Nap FastSleep
snooze:
Flags/Description: snooze
Latency: 0
Usage: 21032
Duration: 1668853
Nap:
Flags/Description: Nap
Latency: 4
Usage: 81006
Duration: 12023872838
FastSleep:
Flags/Description: FastSleep
Latency: 40
Usage: 21598
Duration: 43934870811

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-09-12 15:26 EDT-------
My understanding is that "16.04.3" doesn't imply the 4.10 kernel.

Rather, both the 4.4 kernel series and the HWE kernel series (which would correspond to 4.10 in 16.04.3) are valid for 16.04.x.

Maybe this is fixed in the 4.10 HWE series (which I can't switch to at the moment) but not in the 4.4 "base" series?

Revision history for this message
adrenochrome (adrenochrome) wrote :

i had the same problem with ubuntu 16.04.3, the packages suggested by cpupower wrapper are installing 4.4 tools (linux-tools-generic -> 4.4.0)
but the wrapper search for tools matching the kernel version

the cpupower wrapper make wrong suggestion, it should be :

  You may also want to install one of the following packages to keep up to date:
    linux-tools-generic-hwe-16.04
    linux-cloud-tools-generic-hwe-16.04

linux-tools-generic-hwe-16.04 is installing
linux-tools-4.10.0-35-generic and linux-hwe-tools-4.10.0-35
and i get the matching /usr/lib/linux-hwe-tools-4.10.0-35/cpupower for the /usr/bin/cpupower wrapper

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2017-11-23 03:28 EDT-------
Hi,
Is this issue fixed in the latest version ?

Thank you !

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.