summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Bryant <corey.bryant@canonical.com>2018-05-04 14:57:54 +0000
committerCorey Bryant <corey.bryant@canonical.com>2018-05-04 15:15:12 +0000
commitd545eb292eee98abaeebb5d13aeb72d2635b1c0c (patch)
treebc73b0a4a6a11559192fe3f32c0386aa92d29b24
parentc17459aeea7924635eed8ef3cb5379142900a9dc (diff)
downloadcharm-nova-lxd-d545eb292eee98abaeebb5d13aeb72d2635b1c0c.zip
charm-nova-lxd-d545eb292eee98abaeebb5d13aeb72d2635b1c0c.tar.gz
charm-nova-lxd-d545eb292eee98abaeebb5d13aeb72d2635b1c0c.tar.bz2
Don't install criu for arm64/s390x prior to artful
The criu package doesn't exist for arm64/s390x prior to artful, causing an install hook failure. Let's not attempt to install it when that is the case. Change-Id: If0cc517d9e607604e427aab385fabd8a9a193fdf Closes-Bug: #1748235
-rw-r--r--hooks/lxd_utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/lxd_utils.py b/hooks/lxd_utils.py
index f7c7416..3d8b1b2 100644
--- a/hooks/lxd_utils.py
+++ b/hooks/lxd_utils.py
@@ -17,6 +17,7 @@ import io
import json
import pwd
import os
+import platform
import shutil
from subprocess import call, check_call, check_output, CalledProcessError
import subprocess
@@ -402,6 +403,13 @@ def create_and_import_busybox_image():
def determine_packages():
packages = [] + BASE_PACKAGES
packages = list(set(packages))
+
+ # criu package doesn't exist for arm64/s390x prior to artful
+ machine = platform.machine()
+ if (CompareHostReleases(lsb_release()['DISTRIB_CODENAME']) < 'artful' and
+ (machine == 'arm64' or machine == 's390x')):
+ packages.remove('criu')
+
if config('use-source'):
packages.extend(LXD_SOURCE_PACKAGES)
else:

This mirror site include all the OpenStack related repositories under: openstack, openstack-dev and openstack-infra.

NOTE: All repositories are updated every one hour.

Usage

For Git Clone
 git clone http://git.trystack.cn/openstack/nova.git 
For DevStack

Add GIT_BASE, NOVNC_REPO and SPICE_REPO variables to local.conf file.

[[local|localrc]]

# use TryStack git mirror
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git