Upgrade from R2.0 to R2.1 failed for 14.04

Bug #1423790 reported by wenqing liang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Critical
Shweta Naik
R2.1
Fix Committed
Critical
Ignatious Johnson Christopher

Bug Description

Upgrade from R2.0#24 to R2.1-#34 for 14.04 failed:

2015-02-19 19:25:21:194359: [root@10.87.129.174] out: Some packages could not be installed. This may mean that you have^M
2015-02-19 19:25:21:210037: [root@10.87.129.174] out: requested an impossible situation or if you are using the unstable^M
2015-02-19 19:25:21:210161: [root@10.87.129.174] out: distribution that some required packages have not yet been created^M
2015-02-19 19:25:21:210253: [root@10.87.129.174] out: or been moved out of Incoming.^M
2015-02-19 19:25:21:210348: [root@10.87.129.174] out: The following information may help to resolve the situation:^M
2015-02-19 19:25:21:210437: [root@10.87.129.174] out: ^M
2015-02-19 19:25:21:210525: [root@10.87.129.174] out: The following packages have unmet dependencies:^M
2015-02-19 19:25:21:210611: [root@10.87.129.174] out: contrail-openstack-vrouter : Depends: contrail-vrouter-common (>= 2.10-34) but it is not going to be installed^M
2015-02-19 19:25:21:210700: [root@10.87.129.174] out: E: Unable to correct problems, you have held broken packages.^M
2015-02-19 19:25:21:214513: [root@10.87.129.174] out: ^M
2015-02-19 19:25:21:214845: ^M
^M
2015-02-19 19:25:21:224193: Fatal error: sudo() received nonzero return code 100 while executing!^M
2015-02-19 19:25:21:224193: ^M
2015-02-19 19:25:21:224193: Requested: DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes -o Dpkg::Options::="--force-overwrite" -o Dpkg::Options::="--force-confnew" install contrail-openstack-vrouter^M
2015-02-19 19:25:21:224193: Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes -o Dpkg::Options::=\"--force-overwrite\" -o Dpkg::Options::=\"--force-confnew\" install contrail-openstack-vrouter"^M
2015-02-19 19:25:21:224193: ^M
2015-02-19 19:25:21:224330: Aborting.^M
2015-02-19 19:25:21:224330: 2015-02-19 19:25:21:224003: Disconnecting from 10.87.129.174... done.^M
2015-02-19 19:25:21:315052: Disconnecting from 10.87.129.175... done.^M
2015-02-19 19:25:21:318176: Disconnecting from 10.87.129.173... done.^M
2015-02-19 19:25:21:321295: ^[]0;root@cmbu-vse2100-1:
Thu Feb 19 19:25:21 2015
ERROR: fab upgrade_contrail command failed

Changed in juniperopenstack:
milestone: r2.1-fcs → none
tags: removed: storage
tags: added: provisioning
information type: Proprietary → Public
Revision history for this message
Shweta Naik (stnaik) wrote :

Upgrade tested with R2.0 Build 22 (fcs image) to R2.10 build 34 for 14.04 and it works fine.

I have not verified upgrade with R2.0 build 24.

Revision history for this message
Vinod Nair (vinodnair) wrote :

Hi Ignatious

The issues is vrouter is not getting installed in the compute does because of missing dependencies . the packages are there in the repo

apt-get -y --force-yes -o Dpkg::Options::="--force-overwrite" -o Dpkg::Options::="--force-confnew" install contrail-openstack-vrouter
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:
 contrail-openstack-vrouter : Depends: contrail-vrouter-common (>= 2.10-34) but it is not going to be installed

Revision history for this message
Shweta Naik (stnaik) wrote :

From: Ignatious Johnson <email address hidden>
Date: Saturday, February 21, 2015 at 7:05 PM
To: Vinod Nair <email address hidden>, Shweta Naik <email address hidden>, Ashish Ranjan <email address hidden>
Cc: Wenqing Liang <email address hidden>, Jeba Paulaiyan <email address hidden>
Subject: Re: reg: https://bugs.launchpad.net/juniperopenstack/+bug/1423790

Hi All,

Looked at it, this setup is using 3.13.0-35-generic and contrail-vrouter-3.13.0-35-generic_2.0-22_all.deb is installed.
In 2.10 release the recommended kernel version is 3.13.0-40-generic and so only contrail-vrouter-3.13.0-40-generic_2.10-34_all.deb is packaged in R2.10.

So when trying to upgrade contrail-openstack-vrouter we are hitting the following issue, Solution is the upgrade the kernel to 3.13.0-40-generic before upgrade contrail
Or
If customers prefer to use 3.13.0-35-generic, we should package contrail-vrouter-3.13.0-40-generic_2.10-34_all.deb as well in R2.10

root@cmbu-vse2100-11:~#
root@cmbu-vse2100-11:~#
root@cmbu-vse2100-11:~# aptitude install contrail-openstack-vrouter
The following NEW packages will be installed:
  contrail-vrouter-common{a}
The following packages will be upgraded:
  contrail-lib contrail-nodemgr contrail-nova-vif contrail-openstack-vrouter contrail-utils contrail-vrouter-agent contrail-vrouter-init
  contrail-vrouter-utils python-contrail python-opencontrail-vrouter-netns
10 packages upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/7,134 kB of archives. After unpacking 13.9 MB will be used.
The following packages have unmet dependencies:
 contrail-vrouter-3.13.0-35-generic : Depends: contrail-vrouter-utils (= 2.0-22) but 2.10-34 is to be installed.
                                      Depends: python-opencontrail-vrouter-netns (= 2.0-22) but 2.10-34 is to be installed.
The following actions will resolve these dependencies:

     Remove the following packages:
1) contrail-nova-vif
2) contrail-openstack-vrouter
3) contrail-vrouter-3.13.0-35-generic
4) contrail-vrouter-agent
5) contrail-vrouter-init
6) python-contrail-vrouter-api
7) python-opencontrail-vrouter-netns

     Keep the following packages at their current version:
8) contrail-vrouter-common [Not Installed]

Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.
root@cmbu-vse2100-11:~#

Thanks,
Ignatious

Revision history for this message
Shweta Naik (stnaik) wrote :

Workaround is to execute steps(1,2,3) before fab upgrade_contrail for 14.04 upgrade from 2.0 to 2.10

  1. fab install_pkg_all:/tmp/contrail-install-packages-x.xx-xxx~havana_all.deb;

  2. fab create_install_repo;

  3. fab -R compute -- "apt-get -o Dpkg::Options::="--force-overwrite" -y install contrail-vrouter-3.13.0-40-generic";

  4. fab upgrade_contrail:<from>,/tmp/contrail-install-packages-x.xx-xxx~havana_all.deb;

​ where <from> is the currently installed release number, such as 2.0.

tags: added: releasenote
Revision history for this message
Shweta Naik (stnaik) wrote :

Updated Workaround:

* Ubuntu 14.04 Upgrade Procedure For System With contrail-vrouter-3.13.0-35-generic:
        Use the following upgrade procedure for Contrail R1.20 systems based on Ubuntu 14.04 with the
        contrail-vrouter-3.13.0-35-generic installed. The command sequence upgrades the kernel version and also reboots the compute nodes when finished.

   fab install_pkg_all:/tmp/contrail-install-packages-x.xx-xxx~havana_all.deb;

   fab migrate_compute_kernel;

   fab upgrade_contrail:<from>,/tmp/contrail-install-packages-x.xx-xxx~havana_all.deb;

   fab upgrade_kernel_all;

   fab restart_openstack_compute;

* Ubuntu 14.04 Upgrade Procedure For System With contrail-vrouter-dkms:
        Use the following upgrade procedure for Contrail R1.20 systems based on Ubuntu 14.04 with the
        contrail-vrouter-dkms installed. The command sequence upgrades the kernel version and also reboots the compute nodes when finished.

   fab upgrade_contrail:<from>,/tmp/contrail-install-packages-x.xx-xxx~havana_all.deb;

All nodes in the cluster can be upgraded to kernel version 3.13.0-40 by using the following fabric-utils command​:

             fab upgrade_kernel_all

Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
Shweta Naik (stnaik) wrote :
Changed in juniperopenstack:
assignee: nobody → Shweta Naik (stnaik)
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.