btrfs-tools missing in eoan

Bug #1850181 reported by Andrew McLeod
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
Fix Released
High
Unassigned
Ceph OSD Charm
Fix Released
High
Unassigned
charms.ceph
Triaged
High
Unassigned

Bug Description

Attempting to deploy ceph-osd on eoan:

unit-ceph-osd-0: 12:21:16 DEBUG unit.ceph-osd/0.install E: Package 'btrfs-tools' has no installation candidate
unit-ceph-osd-0: 12:21:16 INFO unit.ceph-osd/0.juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install Reading package lists...
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install Building dependency tree...
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install Reading state information...
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install Package btrfs-tools is not available, but is referred to by another package.
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install This may mean that the package is missing, has been obsoleted, or
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install is only available from another source
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install E: Package 'btrfs-tools' has no installation candidate
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install Traceback (most recent call last):
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/install.real", line 874, in <module>
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install hooks.execute(sys.argv)
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/core/hookenv.py", line 914, in execute
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install self._hooks[hook_name]()
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 93, in _harden_inner2
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install return f(*args, **kwargs)
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/install.real", line 318, in install
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install apt_install(packages=ceph.determine_packages(), fatal=True)
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/fetch/ubuntu.py", line 268, in apt_install
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install _run_apt_command(cmd, fatal)
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/fetch/ubuntu.py", line 762, in _run_apt_command
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install retry_message="Couldn't acquire DPKG lock")
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/fetch/ubuntu.py", line 740, in _run_with_retries
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install result = subprocess.check_call(cmd, env=env)
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install File "/usr/lib/python3.7/subprocess.py", line 363, in check_call
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install raise CalledProcessError(retcode, cmd)
unit-ceph-osd-0: 12:21:26 DEBUG unit.ceph-osd/0.install subprocess.CalledProcessError: Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'ceph', 'gdisk', 'btrfs-tools', 'radosgw', 'xfsprogs', 'lvm2', 'parted', 'smartmontools']' returned non-zero exit status 100.

Revision history for this message
James Page (james-page) wrote :

btrfs-tools was last published in bionic - so any UCA pockets will work fine, but any distro related deploys will fail.

Changed in charm-ceph-mon:
status: New → Confirmed
Changed in charm-ceph-osd:
status: New → Confirmed
Changed in charm-ceph-mon:
importance: Undecided → High
Changed in charm-ceph-osd:
importance: Undecided → High
Changed in charms.ceph:
status: New → Confirmed
Changed in charm-ceph-osd:
status: Confirmed → Triaged
Changed in charm-ceph-mon:
status: Confirmed → Triaged
Changed in charms.ceph:
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
James Page (james-page) wrote :

btrfs-tools -> btrfs-progs (from bionic onwards) and we're all good again.

Revision history for this message
Andrew McLeod (admcleod) wrote :

in disco, this happens when attempting to install btrfs-tools:

ubuntu@juju-bf2aa4-admcleod-1:~$ sudo apt install btrfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'btrfs-progs' instead of 'btrfs-tools'
Suggested packages:
  duperemove
The following NEW packages will be installed:
  btrfs-progs
...
installs successfully

summary: - btrfs-tools missing (s390x)
+ btrfs-tools missing in eoan
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-osd (master)

Reviewed: https://review.opendev.org/692386
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-osd/commit/?id=67254e334f2263bee8441880550e7fdf4149fe2f
Submitter: Zuul
Branch: master

commit 67254e334f2263bee8441880550e7fdf4149fe2f
Author: Andrew McLeod <email address hidden>
Date: Thu Oct 31 15:43:56 2019 +0100

    Sync charms.ceph

    use btrfs-progs instead of btrfs-tools for eoan and later
    update bionic-train zaza test bundle to include placement

    Closes-Bug: #1850181
    Change-Id: I6c414cb7db45f5a1a2cf9b65f6fd93c40f631a46

Changed in charm-ceph-osd:
status: Triaged → Fix Committed
Changed in charm-ceph-mon:
status: Triaged → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-mon (master)

Reviewed: https://review.opendev.org/692385
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-mon/commit/?id=40e1ce044cee6f5eb2dcea4acb2b829ede82265a
Submitter: Zuul
Branch: master

commit 40e1ce044cee6f5eb2dcea4acb2b829ede82265a
Author: Andrew McLeod <email address hidden>
Date: Thu Oct 31 15:43:00 2019 +0100

    Sync charms.ceph

    use btrfs-progs instead of btrfs-tools for eoan and later
    update bionic-train zaza test bundle to include placement

    Closes-Bug: #1850181
    Change-Id: Ic8e46dda154c19edadf0e6810701233c3db88e04

James Page (james-page)
Changed in charm-ceph-osd:
milestone: none → 20.02
Changed in charm-ceph-mon:
milestone: none → 20.02
Liam Young (gnuoy)
Changed in charm-ceph-osd:
status: Fix Committed → Fix Released
Changed in charm-ceph-mon:
status: Fix Committed → 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.