]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: use `apt-get` for package install/update 39106/head
authorMichael Fritch <mfritch@suse.com>
Wed, 27 Jan 2021 15:35:01 +0000 (08:35 -0700)
committerMichael Fritch <mfritch@suse.com>
Wed, 27 Jan 2021 15:35:01 +0000 (08:35 -0700)
avoids errors during prepare-host:
```
apt: stderr WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
```

Fixes: https://tracker.ceph.com/issues/49032
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm

index c46bee0fbd29416f2a72c8f4c0e11c8b2d953872..7919cec1891c452e9260bdb9328ebd1e2f31f005 100755 (executable)
@@ -5253,13 +5253,13 @@ class Apt(Packager):
 
     def install(self, ls):
         logger.info('Installing packages %s...' % ls)
-        call_throws(self.ctx, ['apt', 'install', '-y'] + ls)
+        call_throws(self.ctx, ['apt-get', 'install', '-y'] + ls)
 
     def install_podman(self):
         if self.distro == 'ubuntu':
             logger.info('Setting up repo for podman...')
             self.add_kubic_repo()
-            call_throws(self.ctx, ['apt', 'update'])
+            call_throws(self.ctx, ['apt-get', 'update'])
 
         logger.info('Attempting podman install...')
         try: