Upgrade from 6.0 to 6.1 Fails because of device-mapper version

Bug #1473698 reported by Fraser Morehouse
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Low
Matthew Mosesohn

Bug Description

When performing an upgrade from 6.0 to 6.1 the install failed because once docker was upgraded to 1.5, the dependency on an upgraded device-mapper was not met. There was no indication within the fuel_upgrade.log file explaining the issue.

2015-07-12 02:43:59 DEBUG 2264 (utils) time="2015-07-12T02:43:59Z" level="fatal" msg="Cannot connect to the Docker daemon. Is 'docker
 -d' running on this host?"

When you ran docker -d the follow output was received.

[root@fuel-enoc ~]# docker -d
INFO[0000] +job serveapi(unix:///var/run/docker.sock)
INFO[0000] WARNING: You are running linux kernel version 2.6.32-504.1.3.el6.x86_64, which might be unstable running docker. Please upgrade your kernel to 3.8.0.
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
docker: relocation error: docker: symbol dm_task_get_info_with_deferred_remove, version Base not defined in file libdevmapper.so.1.02 with link time reference

This the version in the yum repo provided, and a yum update had been run as well.

[root@fuel-enoc ~]# yum info device-mapper
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * epel: mirror.us.leaseweb.net
Installed Packages
Name : device-mapper
Arch : x86_64
Version : 1.02.79
Release : 8.el6
Size : 173 k
Repo : installed
From repo : anaconda-CentOS-201410241409.x86_64
Summary : Device mapper utility
URL : http://sources.redhat.com/dm
License : GPLv2
Description : This package contains the supporting userspace utility, dmsetup,
            : for the kernel device-mapper.

After following the commands listed here, docker would once again start up.

https://forums.docker.com/t/upgrading-docker-to-current-version-on-centos/340/18

Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Could you please elaborate the steps for a workaround?

Changed in fuel:
milestone: none → 6.1-updates
assignee: Fuel Library Team (fuel-library) → MOS Sustaining (mos-sustaining)
importance: Undecided → High
tags: added: feature-upgrade
Changed in fuel:
status: New → Confirmed
Revision history for this message
Fraser Morehouse (fraser-morehouse) wrote :

I added the correct device-mapper version through adding an additional repo.

device-mapper-1.02.90-2.el6_6.1.x86_64

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

It looks like you enabled EPEL on your Fuel Master and that broke the Fuel upgrade scripts. There are newer docker-io packages in EPEL, but device-mapper is located in base CentOS repositories.

For the best results, you should not enable any 3rd party repositories because we can't guarantee compatibility.

Changed in fuel:
assignee: MOS Sustaining (mos-sustaining) → Matthew Mosesohn (raytrac3r)
status: Confirmed → Invalid
importance: High → Low
Revision history for this message
Fraser Morehouse (fraser-morehouse) wrote :

If you actually read what i said, i ONLY did that so that docker would start again. The upgrade script would NOT move forward with the standard EPEL setup.

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.