Broken deb package dependencies for Ubuntu

Bug #1443923 reported by Alexander Ignatov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Critical
Alexei Sheplyakov

Bug Description

This issue is observed in staging mirror build

http://jenkins-product.srt.mirantis.net:8080/job/6.1.staging.ubuntu.bvt_2/217

Puppet log on node-2 says:

2015-04-14 08:37:35 +0000 Puppet (err): Could not prefetch keystone_endpoint provider 'keystone': File: /etc/keystone/keystone.conf does not contain a section DEFAULT with the admin_token specified. Keyst
one types will not work if keystone is not correctly configured
/etc/puppet/modules/keystone/lib/puppet/provider/keystone.rb:13:in `get_admin_token'
/etc/puppet/modules/keystone/lib/puppet/provider/keystone.rb:6:in `admin_token'
/etc/puppet/modules/keystone/lib/puppet/provider/keystone.rb:77:in `auth_keystone'
/etc/puppet/modules/keystone/lib/puppet/provider/keystone.rb:139:in `list_keystone_objects'
/etc/puppet/modules/keystone/lib/puppet/provider/keystone_endpoint/keystone.rb:35:in `instances'
/etc/puppet/modules/keystone/lib/puppet/provider/keystone_endpoint/keystone.rb:26:in `prefetch'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:277:in `prefetch'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:167:in `prefetch_if_necessary'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:67:in `block in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `call'
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `traverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:108:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in apply'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
/usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in `as_logging_destination'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:192:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:268:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:218:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:146:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:470:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:478:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:91:in `execute'
/usr/bin/puppet:4:in `<main>'

Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

Console output in http://jenkins-product.srt.mirantis.net:8080/view/6.1/job/6.1.ubuntu.bvt_2/306/console:

2015-04-14 12:12:14,209 - INFO regenerate_repo.py:307 -- Check puppet logs for packages with unmet dependences.
2015-04-14 12:12:14,449 - INFO regenerate_repo.py:315 -- Error: Package: keystone has unmet dependencies:
2015-04-14 12:12:14,449 - INFO regenerate_repo.py:317 -- Depends: python-keystone (= 1:2014.2.2-fuel6.1~mira6) but it is not going to be installed
2015-04-14 12:12:14,449 - INFO regenerate_repo.py:318 -- Check puppet logs completed.

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → MOS Keystone (mos-keystone)
Changed in mos:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → MOS Keystone (mos-keystone)
milestone: none → 6.1
no longer affects: fuel
summary: - Primary controller deploy failed with error during keystone provisining
+ Keystone package lacks dependencies - ubuntu deployment ultimate failure
Changed in mos:
assignee: MOS Keystone (mos-keystone) → MOS Deployment Team (mos-deployment)
Vasyl Saienko (vsaienko)
Changed in mos:
assignee: MOS Deployment Team (mos-deployment) → Vasyl Saienko (vsaienko)
status: Confirmed → In Progress
Revision history for this message
Vasyl Saienko (vsaienko) wrote : Re: Keystone package lacks dependencies - ubuntu deployment ultimate failure

root@node-2:~# apt-get install python-keystone
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:
 python-keystone : Depends: python-pycadf (>= 0.6.0) but 0.6.0-0~u14.04+mos1 is to be installed
E: Unable to correct problems, you have held broken packages.

root@node-2:~# dpkg --compare-versions 0.6.0-0~u14.04+mos1 ge 0.6.0 || echo false
false
root@node-2:~# dpkg --compare-versions 0.6.0-0ubuntu1~mos6.1 ge 0.6.0 || echo false
root@node-2:~#

We have to change revision on python-pycadf to 1 (0.6.0-1~u14.04+mos1)
or change dependency in all specs where pycadf is present from >=0.6.0 to 0.6.0-0~

Revision history for this message
Vasyl Saienko (vsaienko) wrote :

also it is possible to rename python-pycadf from 0.6.0-0~u14.04+mos1 to 0.6.0-0u~u14.04+mos1

Changed in mos:
assignee: Vasyl Saienko (vsaienko) → Alexei Sheplyakov (asheplyakov)
Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

> We have to change revision on python-pycadf to 1

Nope, altering packages' revisions in such a manner is a recipe of disaster (actually this very bug is a result of such a rewriting)

Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote : Re: Keystone: broken deb package dependencies
summary: - Keystone package lacks dependencies - ubuntu deployment ultimate failure
+ Keystone: broken deb package dependencies
Revision history for this message
Jay Pipes (jaypipes) wrote :

I've asked zigo to take a look at this and offer his guidance...

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Related fix proposed to packages/trusty/ceph (6.1)

Related fix proposed to branch: 6.1
Change author: Alexei Sheplyakov <email address hidden>
Review: https://review.fuel-infra.org/5761

Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

Another issue is here:

2015-04-15 14:40:03 +0000 Puppet (err): Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install glance-registry' returned 100: Reading package lists...

http://jenkins-product.srt.mirantis.net:8080/job/6.1.staging.ubuntu.bvt_2/

summary: - Keystone: broken deb package dependencies
+ Broken deb package dependencies for Ubuntu
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

The following packages have unmet dependencies:
 python-glance : Depends: python-pbr (>= 0.10.0) but 0.10.0-0~u14.04+mos1 is to be installed

Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

The current version of python-pbr (0.10.0-0u~u14.04+mos1) [1] makes glance installable again.

[1] http://mirror.fuel-infra.org/mos/ubuntu/pool/main/p/python-pbr/python-pbr_0.10.0-0u~u14.04%2bmos1_all.deb

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on packages/trusty/ceph (6.1)

Change abandoned by Alexei Sheplyakov <email address hidden> on branch: 6.1
Review: https://review.fuel-infra.org/5761
Reason: 0.80.9 version is going to be merged

Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

The updated packages [1] have been uploaded to the public MOS mirror.
Now python-oslo.config, python-glanceclient, and nova-common are installable:

$ cat pkgdep/apt-state/etc/apt/sources.list
deb http://ru.archive.ubuntu.com/ubuntu trusty main universe multiverse restricted
deb http://ru.archive.ubuntu.com/ubuntu trusty-updates main universe multiverse restricted
deb http://ru.archive.ubuntu.com/ubuntu trusty-security main universe multiverse restricted
deb http://mirror.fuel-infra.org/mos/ubuntu mos6.1 main
$ apt-get -c pkgdep/apt-state/etc/apt/apt.conf install --print-uris -y -qq glance-registry > downloads.list; echo $?
0

[1]
http://mirror.fuel-infra.org/mos/ubuntu/pool/main/s/stevedore/python-stevedore_1.1.0-0u~u14.04%2bmos1_all.deb
http://mirror.fuel-infra.org/mos/ubuntu/pool/main/p/python-pbr/python-pbr_0.10.0-0u~u14.04%2bmos1_all.deb
http://mirror.fuel-infra.org/mos/ubuntu/pool/main/p/python-cliff/python-cliff_1.7.0-0u~u14.04%2bmos1_all.deb
http://mirror.fuel-infra.org/mos/ubuntu/pool/main/p/python-pycadf/python-pycadf_0.6.0-0u~u14.04%2bmos1_all.deb

Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Sergii Golovatiuk (sgolovatiuk) wrote :

It doesn't affect 6.0 as it's related to upstream ubuntu and version we introduced in 6.1

no longer affects: mos/6.0.x
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Installed packages versions:
python-keystone 1:2014.2.2-1~u14
python-pycadf 0.6.0-0u~u14.04+
python-pbr 0.10.0-0u~u14.04

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  openstack_version: "2014.2.2-6.1"
  api: "1.0"
  build_number: "395"
  build_id: "2015-05-08_11-08-49"
  nailgun_sha: "46f55c293e4540d31bcaa6ca3fba77235fb27537"
  python-fuelclient_sha: "af6c9c3799b9ec107bcdc6dbf035cafc034526ce"
  astute_sha: "6a4dcd11c67af2917815f3678fb594c7412a4c97"
  fuel-library_sha: "f385d6a58298c702f8d4f14c452dcffdc0b1e2a3"
  fuel-ostf_sha: "740ded337bb2a8a9b3d505026652512257375c01"
  fuelmain_sha: "3eca5e8f7ca6a83faff5feeca92c21cff31c0af1"

Changed in mos:
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.