Created
February 14, 2019 16:06
-
-
Save paurkedal/dfd240e3fa07e46f5fbbfeade8371999 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on | |
# https://launchpad.net/ubuntu/+source/ganeti/2.16.0-1ubuntu1 | |
FROM ubuntu:16.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update -y \ | |
&& apt-get install -y debhelper build-essential fakeroot devscripts | |
RUN apt-get install -y m4 pandoc python-all python3-all ghc ghc-ghci cabal-install libghc-case-insensitive-dev libghc-curl-dev libghc-json-dev libghc-snap-server-dev libghc-network-dev libghc-parallel-dev libghc-utf8-string-dev libghc-deepseq-dev libghc-hslogger-dev libghc-crypto-dev libghc-text-dev libghc-hinotify-dev libghc-base64-bytestring-dev libghc-zlib-dev libghc-regex-pcre-dev libghc-attoparsec-dev libghc-vector-dev libghc-lifted-base-dev libghc-lens-dev libghc-psqueue-dev libghc-test-framework-quickcheck2-dev libghc-test-framework-hunit-dev libghc-temporary-dev libghc-old-time-dev libpcre3-dev libcurl4-openssl-dev python-simplejson python-pyparsing python-openssl python-bitarray python-pyinotify python-pycurl python-paramiko python-ipaddr python-sphinx graphviz qemu-utils socat bash-completion po-debconf | |
RUN apt-get install -y git iproute2 dh-autoreconf | |
RUN cabal update | |
WORKDIR /workdir | |
ADD https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/ganeti/2.16.0-1ubuntu1/ganeti_2.16.0.orig.tar.gz ./ | |
RUN tar -xzf ganeti_2.16.0.orig.tar.gz | |
WORKDIR ganeti-2.16.0 | |
ADD https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/ganeti/2.16.0-1ubuntu1/ganeti_2.16.0-1ubuntu1.debian.tar.xz ./ | |
RUN tar -xJf ganeti_2.16.0-1ubuntu1.debian.tar.xz | |
RUN sed -i -e '/debhelper/ s/(>= 11~)//' debian/control \ | |
&& echo 10 >debian/compat \ | |
&& sed -i -e '/^\s*dh\s/ s/python2,python3,sphinxdoc,bash_completion$/\0,autoreconf/' debian/rules \ | |
&& sed -i -e '/^\(001[89]-\|THH-\|cabal-\)/d' debian/patches/series | |
RUN debuild -b -uc -us |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test Upgrade
The following scheme for upgrading from Ganeti 2.15 on Ubuntu 16.04 to Ganeti 2.16 on Ubuntu 18.04 was tested on two aged but KVM capable workstations running two trivial VMs with had disks attached but did not access them. The procedure described here is not exactly what I did, but what I believe to work. The overall test procedure was:
Upgrading Ganeti 2.15 to 2.16
Upgrading Ubuntu 16.04 to 18.04
Issues
gnt-cluster verify
from master upgraded to Ubuntu 18.04about node not upgraded to Ubuntu 16.04:
gnt-instance activate-disks vm1
failed with the following exception, but after that DRBD was running normally for both VMs. Maybe it just took time to recover.