Project

General

Profile

Actions

Bug #6650

closed

ceph-deploy: should exit/error when apt fails

Added by Tamilarasi muthamizhan over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
ceph-deploy
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

ceph-deploy version: 1.2.7

ubuntu@vpm018:~/ceph-dep/ceph-deploy$ ./ceph-deploy install --stable=cuttlefish vpm018
[ceph_deploy.cli][INFO  ] Invoked (1.2.7): ./ceph-deploy install --stable=cuttlefish vpm018
[ceph_deploy.install][DEBUG ] Installing stable version cuttlefish on cluster ceph hosts vpm018
[ceph_deploy.install][DEBUG ] Detecting platform for host vpm018 ...
[vpm018][DEBUG ] connected to host: vpm018 
[vpm018][DEBUG ] detect platform information from remote host
[vpm018][DEBUG ] detect machine type
[ceph_deploy.install][INFO  ] Distro info: Ubuntu 13.04 raring
[vpm018][INFO  ] installing ceph on vpm018
[vpm018][INFO  ] Running command: sudo env DEBIAN_FRONTEND=noninteractive apt-get -q install --assume-yes ca-certificates
[vpm018][DEBUG ] Reading package lists...
[vpm018][DEBUG ] Building dependency tree...
[vpm018][DEBUG ] Reading state information...
[vpm018][DEBUG ] ca-certificates is already the newest version.
[vpm018][DEBUG ] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[vpm018][INFO  ] Running command: sudo wget -q -O- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add -
[vpm018][DEBUG ] add ceph deb repo to sources.list
[vpm018][INFO  ] Running command: sudo apt-get -q update
[vpm018][ERROR ] W: GPG error: http://ceph.com raring Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EBFDD5D17ED316D
[vpm018][DEBUG ] Get:1 http://ceph.com raring Release.gpg [836 B]
[vpm018][DEBUG ] Get:2 http://ceph.com raring Release [5996 B]
[vpm018][DEBUG ] Ign http://ceph.com raring Release
[vpm018][DEBUG ] Get:3 http://ceph.com raring/main amd64 Packages [6964 B]
[vpm018][DEBUG ] Ign http://ceph.com raring/main Translation-en
[vpm018][DEBUG ] Get:4 http://archive.ubuntu.com raring Release.gpg [933 B]
[vpm018][DEBUG ] Get:5 http://archive.ubuntu.com raring-updates Release.gpg [933 B]
[vpm018][DEBUG ] Get:6 http://security.ubuntu.com raring-security Release.gpg [933 B]
[vpm018][DEBUG ] Get:7 http://archive.ubuntu.com raring Release [40.8 kB]
[vpm018][DEBUG ] Get:8 http://security.ubuntu.com raring-security Release [40.8 kB]
[vpm018][DEBUG ] Get:9 http://archive.ubuntu.com raring-updates Release [40.8 kB]
[vpm018][DEBUG ] Get:10 http://security.ubuntu.com raring-security/main Sources [50.7 kB]
[vpm018][DEBUG ] Get:11 http://archive.ubuntu.com raring/main Sources [963 kB]
[vpm018][DEBUG ] Get:12 http://security.ubuntu.com raring-security/universe Sources [11.1 kB]
[vpm018][DEBUG ] Get:13 http://security.ubuntu.com raring-security/main amd64 Packages [129 kB]
[vpm018][DEBUG ] Get:14 http://security.ubuntu.com raring-security/universe amd64 Packages [41.6 kB]
[vpm018][DEBUG ] Get:15 http://security.ubuntu.com raring-security/main Translation-en [66.7 kB]
[vpm018][DEBUG ] Get:16 http://security.ubuntu.com raring-security/universe Translation-en [25.7 kB]
[vpm018][DEBUG ] Get:17 http://archive.ubuntu.com raring/universe Sources [5838 kB]
[vpm018][DEBUG ] Get:18 http://archive.ubuntu.com raring/main amd64 Packages [1170 kB]
[vpm018][DEBUG ] Get:19 http://archive.ubuntu.com raring/universe amd64 Packages [5396 kB]
[vpm018][DEBUG ] Hit http://archive.ubuntu.com raring/main Translation-en
[vpm018][DEBUG ] Get:20 http://archive.ubuntu.com raring/universe Translation-en [3736 kB]
[vpm018][DEBUG ] Get:21 http://archive.ubuntu.com raring-updates/main Sources [79.5 kB]
[vpm018][DEBUG ] Get:22 http://archive.ubuntu.com raring-updates/universe Sources [74.8 kB]
[vpm018][DEBUG ] Get:23 http://archive.ubuntu.com raring-updates/main amd64 Packages [201 kB]
[vpm018][DEBUG ] Get:24 http://archive.ubuntu.com raring-updates/universe amd64 Packages [153 kB]
[vpm018][DEBUG ] Get:25 http://archive.ubuntu.com raring-updates/main Translation-en [96.5 kB]
[vpm018][DEBUG ] Get:26 http://archive.ubuntu.com raring-updates/universe Translation-en [79.0 kB]
[vpm018][DEBUG ] Fetched 18.3 MB in 15s (1203 kB/s)
[vpm018][DEBUG ] Reading package lists...
[vpm018][INFO  ] Running command: sudo env DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -q -o Dpkg::Options::=--force-confnew --no-install-recommends --assume-yes install -- ceph ceph-mds ceph-common ceph-fs-common gdisk
[vpm018][ERROR ] E: There are problems and -y was used without --force-yes
[vpm018][DEBUG ] Reading package lists...
[vpm018][DEBUG ] Building dependency tree...
[vpm018][DEBUG ] Reading state information...
[vpm018][DEBUG ] gdisk is already the newest version.
[vpm018][DEBUG ] The following extra packages will be installed:
[vpm018][DEBUG ]   libaio1 libboost-thread1.49.0 libgoogle-perftools4 libleveldb1 libnspr4
[vpm018][DEBUG ]   libnss3 librados2 librbd1 libsnappy1 libtcmalloc-minimal4 libunwind8
[vpm018][DEBUG ]   python-lockfile xfsprogs
[vpm018][DEBUG ] Suggested packages:
[vpm018][DEBUG ]   xfsdump acl attr quota
[vpm018][DEBUG ] Recommended packages:
[vpm018][DEBUG ]   btrfs-tools ceph-fuse libcephfs1
[vpm018][DEBUG ] The following NEW packages will be installed:
[vpm018][DEBUG ]   ceph ceph-common ceph-fs-common ceph-mds libaio1 libboost-thread1.49.0
[vpm018][DEBUG ]   libgoogle-perftools4 libleveldb1 libnspr4 libnss3 librados2 librbd1
[vpm018][DEBUG ]   libsnappy1 libtcmalloc-minimal4 libunwind8 python-lockfile xfsprogs
[vpm018][DEBUG ] 0 upgraded, 17 newly installed, 0 to remove and 110 not upgraded.
[vpm018][DEBUG ] Need to get 21.1 MB of archives.
[vpm018][DEBUG ] After this operation, 63.8 MB of additional disk space will be used.
[vpm018][DEBUG ] WARNING: The following packages cannot be authenticated!
[vpm018][DEBUG ]   librados2 librbd1 ceph-common ceph ceph-fs-common ceph-mds
[vpm018][INFO  ] Running command: sudo ceph --version
[vpm018][ERROR ] Traceback (most recent call last):
[vpm018][ERROR ]   File "/home/ubuntu/ceph-dep/ceph-deploy/ceph_deploy/lib/remoto/process.py", line 59, in run
[vpm018][ERROR ]     reporting(conn, result, timeout)
[vpm018][ERROR ]   File "/home/ubuntu/ceph-dep/ceph-deploy/ceph_deploy/lib/remoto/log.py", line 8, in reporting
[vpm018][ERROR ]     received = result.receive(timeout)
[vpm018][ERROR ]   File "/home/ubuntu/ceph-dep/ceph-deploy/ceph_deploy/lib/remoto/lib/execnet/gateway_base.py", line 454, in receive
[vpm018][ERROR ]     raise self._getremoteerror() or EOFError()
[vpm018][ERROR ] RemoteError: Traceback (most recent call last):
[vpm018][ERROR ]   File "/home/ubuntu/ceph-dep/ceph-deploy/ceph_deploy/lib/remoto/lib/execnet/gateway_base.py", line 805, in executetask
[vpm018][ERROR ]     function(channel, **kwargs)
[vpm018][ERROR ]   File "", line 10, in _remote_run
[vpm018][ERROR ]   File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
[vpm018][ERROR ]     errread, errwrite)
[vpm018][ERROR ]   File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
[vpm018][ERROR ]     raise child_exception
[vpm018][ERROR ] OSError: [Errno 2] No such file or directory
[vpm018][ERROR ] 
[vpm018][ERROR ] 
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: ceph --version

Actions

Also available in: Atom PDF