[Bug 1852441] Re: In bionic, one of the ceph packages installed causes chrony to auto-install even on lxd

Ponnuvel Palaniyappan 1852441 at bugs.launchpad.net
Thu Feb 17 17:44:29 UTC 2022


I am not sure if there's anything to fix here for the ntp charm.

The ntp charm shouldn't really be installed in a container.
In general, It should be installed alongside a principal charm
that's on a bare-metal machine.

In situations like charm upgrade, The ntp charm could end up installing
the chrony package again even if it's a container where it was previously
removed. And ceph-mon charm could remove it again.

In the case of ntp being a sub-ordinate of ceph-mon container
and when ceph-mon removes chrony package, the ntp unit goes into
'blocked' state which seems reasonable to me given it
shouldn't be there in the container in the firt place.

So the only things I could think of are:
 - update ntp charm's doc that it shouldn't be installed in a container
 - provide a clear error message if ntp is deployed on a container
 
Thoughts?

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

Title:
  In bionic, one of the ceph packages installed causes chrony to auto-
  install even on lxd

Status in Ceph Monitor Charm:
  Fix Released
Status in NTP Charm:
  Confirmed
Status in ceph package in Ubuntu:
  Won't Fix

Bug description:
  When running ceph-mon in containers, best practice is to have
  chrony/ntp configured and installed on the bare metal and then have
  the container trust the system clock, as the container should not
  manage the system clock.

  It seems that in source=cloud:bionic-stein, ceph-base package ends up
  installing chrony automatically as a recommended package.

  chrony should not be installed in the LXD context of this charm.  If
  it's possible to remove chrony from the recommended package list or to
  have the charm remove chrony if ceph-base is installed in a lxd, that
  wouuld be preferable to having to adding the NTP charm to configure
  chrony in a lxd, or to have to disable the chrony service.

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-ceph-mon/+bug/1852441/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list