Project

General

Profile

Bug #18981

Don't try to install ceph-fs-common in kraken or later

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

Status:
New
Priority:
High
Assignee:
-
Target version:
-
Start date:
02/17/2017
Due date:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

ceph-ansible version: 2.2.1
ceph version: Kraken
Distro: Xenial

looks like broken packages causing the following error,

2017-02-16T11:34:52.654 INFO:teuthology.orchestra.run.vpm027.stdout:TASK [ceph.ceph-common : install ceph] *****************************************
2017-02-16T11:34:52.654 INFO:teuthology.orchestra.run.vpm027.stdout:task path: /home/ubuntu/ceph-ansible/roles/ceph-common/tasks/installs/install_on_debian.yml:18
2017-02-16T11:34:54.269 INFO:teuthology.orchestra.run.vpm027.stdout:failed: [vpm137.front.sepia.ceph.com] (item=[u'ceph', u'ceph-common', u'ceph-fs-common', u'ceph-fuse']) => {"cache_update_time": 1487244892, "cache_updated": false, "failed": true, "item": ["ceph", "ceph-common", "ceph-fs-common", "ceph-fuse"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'ceph' 'ceph-common' 'ceph-fs-common' 'ceph-fuse' -t 'xenial'' failed: E: Unable to correct problems, you have held broken packages.\n", "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n ceph-common : Breaks: ceph-fs-common (< 11.0) but 10.2.5-0ubuntu0.16.04.1 is to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " ceph-common : Breaks: ceph-fs-common (< 11.0) but 10.2.5-0ubuntu0.16.04.1 is to be installed"]}
2017-02-16T11:34:54.439 INFO:teuthology.orchestra.run.vpm027.stdout:failed: [vpm013.front.sepia.ceph.com] (item=[u'ceph', u'ceph-common', u'ceph-fs-common', u'ceph-fuse']) => {"cache_update_time": 1487244892, "cache_updated": false, "failed": true, "item": ["ceph", "ceph-common", "ceph-fs-common", "ceph-fuse"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'ceph' 'ceph-common' 'ceph-fs-common' 'ceph-fuse' -t 'xenial'' failed: E: Unable to correct problems, you have held broken packages.\n", "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n ceph-common : Breaks: ceph-fs-common (< 11.0) but 10.2.5-0ubuntu0.16.04.1 is to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " ceph-common : Breaks: ceph-fs-common (< 11.0) but 10.2.5-0ubuntu0.16.04.1 is to be installed"]}
2017-02-16T11:34:54.603 INFO:teuthology.orchestra.run.vpm027.stdout:failed: [vpm027.front.sepia.ceph.com] (item=[u'ceph', u'ceph-common', u'ceph-fs-common', u'ceph-fuse']) => {"cache_update_time": 1487244892, "cache_updated": false, "failed": true, "item": ["ceph", "ceph-common", "ceph-fs-common", "ceph-fuse"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'ceph' 'ceph-common' 'ceph-fs-common' 'ceph-fuse' -t 'xenial'' failed: E: Unable to correct problems, you have held broken packages.\n", "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n ceph-common : Breaks: ceph-fs-common (< 11.0) but 10.2.5-0ubuntu0.16.04.1 is to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " ceph-common : Breaks: ceph-fs-common (< 11.0) but 10.2.5-0ubuntu0.16.04.1 is to be installed"]}
2017-02-16T11:34:54.605 INFO:teuthology.orchestra.run.vpm027.stdout:    to retry, use: --limit @/home/ubuntu/ceph-ansible/site.retry
2017-02-16T11:34:54.605 INFO:teuthology.orchestra.run.vpm027.stdout:
2017-02-16T11:34:54.605 INFO:teuthology.orchestra.run.vpm027.stdout:PLAY RECAP *********************************************************************
2017-02-16T11:34:54.606 INFO:teuthology.orchestra.run.vpm027.stdout:vpm013.front.sepia.ceph.com : ok=17   changed=5    unreachable=0    failed=1
2017-02-16T11:34:54.606 INFO:teuthology.orchestra.run.vpm027.stdout:vpm027.front.sepia.ceph.com : ok=17   changed=5    unreachable=0    failed=1
2017-02-16T11:34:54.606 INFO:teuthology.orchestra.run.vpm027.stdout:vpm137.front.sepia.ceph.com : ok=17   changed=5    unreachable=0    failed=1
2017-02-16T11:34:54.606 INFO:teuthology.orchestra.run.vpm027.stdout:
2017-02-16T11:34:54.706 ERROR:teuthology.run_tasks:Saw exception from tasks.
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/run_tasks.py", line 89, in run_tasks
    manager.__enter__()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/__init__.py", line 121, in __enter__
    self.begin()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 196, in begin
    self.execute_playbook()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 149, in execute_playbook
    self.run_playbook()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 357, in run_playbook
    run.Raw(str_args)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/remote.py", line 192, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 403, in run
    r.wait()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 166, in wait
    label=self.label)
CommandFailedError: Command failed on vpm027 with status 2: "cd ~/ceph-ansible ; virtualenv venv ; source venv/bin/activate ; pip install --upgrade pip ; pip install 'setuptools>=11.3' ansible==2.2.1 ; ansible-playbook -vv -i inven.yml site.yml" 
2017-02-16T11:34:54.722 ERROR:teuthology.run_tasks: Sentry event: http://sentry.ceph.com/sepia/teuthology/?q=59e9d1f2b24f4fe08097519f9b8ad649
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/run_tasks.py", line 89, in run_tasks
    manager.__enter__()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/__init__.py", line 121, in __enter__
    self.begin()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 196, in begin
    self.execute_playbook()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 149, in execute_playbook
    self.run_playbook()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 357, in run_playbook
    run.Raw(str_args)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/remote.py", line 192, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 403, in run
    r.wait()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 166, in wait
    label=self.label)
CommandFailedError: Command failed on vpm027 with status 2: "cd ~/ceph-ansible ; virtualenv venv ; source venv/bin/activate ; pip install --upgrade pip ; pip install 'setuptools>=11.3' ansible==2.2.1 ; ansible-playbook -vv -i inven.yml site.yml" 
2017-02-16T11:34:54.723 DEBUG:teuthology.run_tasks:Unwinding manager ceph_ansible
2017-02-16T11:34:54.735 INFO:teuthology.task.ceph_ansible:Cleaning up temporary files
2017-02-16T11:34:54.735 DEBUG:teuthology.run_tasks:Unwinding manager ssh-keys
2017-02-16T11:34:54.748 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/contextutil.py", line 32, in nested
    yield vars
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ssh_keys.py", line 206, in task
    yield
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/run_tasks.py", line 89, in run_tasks
    manager.__enter__()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/__init__.py", line 121, in __enter__
    self.begin()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 196, in begin
    self.execute_playbook()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 149, in execute_playbook
    self.run_playbook()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/task/ceph_ansible.py", line 357, in run_playbook
    run.Raw(str_args)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/remote.py", line 192, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 403, in run
    r.wait()
  File "/home/teuthworker/src/git.ceph.com_git_teuthology_master/teuthology/orchestra/run.py", line 166, in wait
    label=self.label)
CommandFailedError: Command failed on vpm027 with status 2: "cd ~/ceph-ansible ; virtualenv venv ; source venv/bin/activate ; pip install --upgrade pip ; pip install 'setuptools>=11.3' ansible==2.2.1 ; ansible-playbook -vv -i inven.yml site.yml" 

History

#2 Updated by David Galloway over 2 years ago

From: http://qa-proxy.ceph.com/teuthology/teuthology-2017-02-16_11:15:02-ceph-ansible-kraken-distro-basic-vps/821536/teuthology.log

I'm not seeing how this is lab-related though. VPSes are as stock as you're going to get in the lab.

ceph-cm-ansible made sure no ceph packages were installed:

TASK [testnode : Ensure packages are not present.] *****************************

2017-02-16T11:24:42.659 INFO:teuthology.task.ansible.out:ok: [vpm027.front.sepia.ceph.com] => (item=[u'ceph', u'ceph-common', u'libcephfs1', u'radosgw', u'python-ceph', u'python-rados', u'python-cephfs', u'python-rbd', u'librbd1', u'librados2', u'ceph-fs-common-dbg', u'ceph-fs-common', u'openmpi-common']) => {"changed": false, "item": ["ceph", "ceph-common", "libcephfs1", "radosgw", "python-ceph", "python-rados", "python-cephfs", "python-rbd", "librbd1", "librados2", "ceph-fs-common-dbg", "ceph-fs-common", "openmpi-common"]}

My guess is either a problem in the repo used or ceph-ansible.

Here's the repo used

2017-02-16T11:34:37.218 INFO:teuthology.orchestra.run.vpm027.stdout:ok: [vpm027.front.sepia.ceph.com] => {"changed": false, "repo": "deb [trusted=yes] https://1.chacra.ceph.com/r/ceph/kraken/f65754e312f11823c5bb7e9fe24655f3fd68bcd2/ubuntu/xenial/flavors/default/ xenial main", "state": "present"}

#3 Updated by David Galloway over 2 years ago

Let's manually try to install.

root@vpm157:~# apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease       
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease         
Hit:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:5 https://1.chacra.ceph.com/r/ceph/kraken/f65754e312f11823c5bb7e9fe24655f3fd68bcd2/ubuntu/xenial/flavors/default xenial InRelease
Get:6 https://1.chacra.ceph.com/r/ceph/kraken/f65754e312f11823c5bb7e9fe24655f3fd68bcd2/ubuntu/xenial/flavors/default xenial Release [7,580 B]
Ign:7 https://1.chacra.ceph.com/r/ceph/kraken/f65754e312f11823c5bb7e9fe24655f3fd68bcd2/ubuntu/xenial/flavors/default xenial Release.gpg
Get:8 https://1.chacra.ceph.com/r/ceph/kraken/f65754e312f11823c5bb7e9fe24655f3fd68bcd2/ubuntu/xenial/flavors/default xenial/main amd64 Packages [11.5 kB]
Fetched 19.1 kB in 0s (34.6 kB/s)
Reading package lists... Done
root@vpm157:~# apt-get install ceph ceph-common ceph-fs-common ceph-fuse
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ceph-common : Breaks: ceph-fs-common (< 11.0) but 10.2.5-0ubuntu0.16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

#4 Updated by David Galloway over 2 years ago

  • Project changed from sepia to ceph-ansible
  • Subject changed from ceph-ansible suite on xenial fails due to broken packages to Don't try to install ceph-fs-common in kraken or later

The problem here is the 'ceph-fs-common' package. It's not in the chacra repo because it's not built anymore: http://tracker.ceph.com/issues/16808

apt sees ceph-fs-common is available in Canonical's repos so tries to install it but it's version 10.2.5-0ubuntu0.16.04.1 which conflicts with the version of the rest of the ceph packages to be installed (11.2.0-34-gf65754e-1xenial).

Moving this bug to ceph-ansible.

#5 Updated by Tamilarasi muthamizhan over 2 years ago

latest logs:http://qa-proxy.ceph.com/teuthology/teuthology-2017-03-25_05:15:02-ceph-ansible-kraken-distro-basic-vps/944708/teuthology.log

Also available in: Atom PDF