[2.1-Build 28] fab install_contrail is failed on ubuntu14.04 after apt-get upgrade

Bug #1421199 reported by Daisuke Nakajima
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.1
Won't Fix
High
Nagendra Prasath
Trunk
Invalid
High
Nagendra Prasath
precise (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

fab install_contrail is failed on ubuntu14.04 after apt-get upgrade due to package dependencies, tzdata and libelf1.
1) tzdata must be installed 2014i-0ubuntu0.14.04 but installed version is 2015a-0ubuntu0.14.04
2) libelf1 must be installed 0.158-0ubuntu5.1 but installed version is 0.158-0ubuntu5.2
after resolving the dependencies, fab install_contrail is working well.

2015-02-12 21:51:35:256923: [root@10.0.0.116] out: contrail-openstack-database : Depends: zookeeper but it is not going to be installed
2015-02-12 21:51:35:260721: [root@10.0.0.116] out: Depends: cassandra (>= 1.2.11) but it is not going to be installed
2015-02-12 21:51:35:261055: [root@10.0.0.116] out: E: Unable to correct problems, you have held broken packages.
2015-02-12 21:51:35:292926: [root@10.0.0.116] out:
2015-02-12 21:51:35:293149:

2015-02-12 21:51:35:294769: Fatal error: sudo() received nonzero return code 100 while executing!
2015-02-12 21:51:35:294769:
2015-02-12 21:51:35:294769: Requested: DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes --allow-unauthenticated install contrail-openstack-database
2015-02-12 21:51:35:294769: Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes --allow-unauthenticated install contrail-openstack-database"

root@tor6:/opt/contrail/utils# apt-get install zookeeper cassandra openjdk-6-jre-headless tzdata-java tzdata
Reading package lists... Done
Building dependency tree
Reading state information... Done
tzdata is already the newest version.
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:
 tzdata-java : Depends: tzdata (= 2014i-0ubuntu0.14.04) but 2015a-0ubuntu0.14.04 is to be installed
E: Unable to correct problems, you have held broken packages.
root@tor6:/opt/contrail/utils#
root@tor6:/opt/contrail/utils# dpkg -l | grep tzdata
ii tzdata 2015a-0ubuntu0.14.04 all time zone and daylight-saving time data

root@tor6:/opt/contrail/utils# dpkg -l | grep tzdata
apt-get install zookeeper cassandra openjdk-6-jre-headless tzdata-java tzdata=2014i-0ubuntu0.14.04

2015-02-12 22:01:47:454335: [root@10.0.0.116] out: Some packages could not be installed. This may mean that you have
2015-02-12 22:01:47:670375: [root@10.0.0.116] out: requested an impossible situation or if you are using the unstable
2015-02-12 22:01:47:670534: [root@10.0.0.116] out: distribution that some required packages have not yet been created
2015-02-12 22:01:47:670617: [root@10.0.0.116] out: or been moved out of Incoming.
2015-02-12 22:01:47:670699: [root@10.0.0.116] out: The following information may help to resolve the situation:
2015-02-12 22:01:47:670778: [root@10.0.0.116] out:
2015-02-12 22:01:47:670857: [root@10.0.0.116] out: The following packages have unmet dependencies:
2015-02-12 22:01:47:670936: [root@10.0.0.116] out: linux-crashdump : Depends: kdump-tools but it is not going to be installed
2015-02-12 22:01:47:671015: [root@10.0.0.116] out: E: Unable to correct problems, you have held broken packages.
2015-02-12 22:01:47:703054: [root@10.0.0.116] out:
2015-02-12 22:01:47:703281:

2015-02-12 22:01:47:730430: Fatal error: sudo() received nonzero return code 100 while executing!
2015-02-12 22:01:47:730430:
2015-02-12 22:01:47:730430: Requested: DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes --allow-unauthenticated install linux-crashdump
2015-02-12 22:01:47:730430: Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes --allow-unauthenticated install linux-crashdump"

root@tor6:/opt/contrail/utils# apt-get install kdump-tools makedumpfile libdw1 libelf1
Reading package lists... Done
Building dependency tree
Reading state information... Done
libelf1 is already the newest version.
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:
 libdw1 : Depends: libelf1 (= 0.158-0ubuntu5.1) but 0.158-0ubuntu5.2 is to be installed
E: Unable to correct problems, you have held broken packages.
root@tor6:/opt/contrail/utils# dpkg -l | grep libelf1
ii libelf1:amd64 0.158-0ubuntu5.2 amd64 library to read and write ELF files

Tags: packaging
information type: Proprietary → Public
tags: added: packaging
Changed in juniperopenstack:
importance: Undecided → High
Revision history for this message
Daisuke Nakajima (dnakajima) wrote :

libelf1 is also installed 0.158-0ubuntu5.2 after apt-get upgrade, however contrail requires 0.158-0ubuntu5.1

Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :

All these packages(tzdata and libelf1) are not immediate dependencies of contrail packages. These packages are required by other third party packages even they are not marked as specific version dependency in contrail-packages.

What is the reason/need behind apt-get upgrade after installing ubuntu trusty?

Revision history for this message
Daisuke Nakajima (dnakajima) wrote :

The End-user wants to upgrade pre-installed packages to latest ones for security reasons or so.

Revision history for this message
Nagendra Prasath (npchandran) wrote :

This bug cant be fixed in current context. We'll soon move to contrail mirrors for fetching dependent packages which should resolve these issues.

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote :

Can you please mark the packages as "Ubuntu Precise" only? The package bundle 400+ deb packages, all part of Ubuntu Precise.

summary: - [2.1-Build 28] fab install_cantrail is failed on ubuntu14.04 after apt-
+ [2.1-Build 28] fab install_contrail is failed on ubuntu14.04 after apt-
get upgrade
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in precise (Ubuntu):
status: New → Confirmed
Revision history for this message
agabsi (agabsi) wrote :

Hello:

I am having so many issues installing contrail, and now I am having this same dependency issue. I am just wondering what is the work around to bypass this stage? I appreciate if you could advise.

----------------------------------------------------

6-04-26 12:16:42:062182: [root@192.168.233.133] out:
2016-04-26 12:16:42:062361: [root@192.168.233.133] out: The following packages have unmet dependencies:
2016-04-26 12:16:42:062424: [root@192.168.233.133] out: contrail-openstack-database : Depends: contrail-nodemgr (>= 2.22-117) but it is not going to be installed
2016-04-26 12:16:42:062594: [root@192.168.233.133] out: Depends: contrail-utils (>= 2.22-117) but it is not installable
2016-04-26 12:16:42:062763: [root@192.168.233.133] out: Depends: cassandra (>= 1.2.11) but it is not going to be installed
2016-04-26 12:16:42:062842: [root@192.168.233.133] out: Depends: kafka (>= 2.9.2) but it is not installable
2016-04-26 12:16:42:063195: [root@192.168.233.133] out: E: Unable to correct problems, you have held broken packages.
2016-04-26 12:16:42:084212: [root@192.168.233.133] out:
2016-04-26 12:16:42:086288:

Revision history for this message
agabsi (agabsi) wrote :

by the way here the version I am currently using

root@ubuntu:/etc#
root@ubuntu:/etc# more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
root@ubuntu:/etc#

Revision history for this message
Nagendra Prasath (npchandran) wrote :

No longer affects Trunk as Contrail distributes docker container. Also its not possible to fix in R2.1 as the distribution involves bundling contrail dependencies.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.