kibana, nova-libvirt: handle it properly for non-x86

Upstream kibana package contains NodeJS x86-64 binaries so can not be
used directly on non-x86 architectures. I took upstream packages,
removed NodeJS binary from it and added 'nodejs' dependency.

Package is present in my Linaro OBS repository where I keep other
packages needed for aarch64 kolla run. Via APT pinning I mark them as
not wanted so they are not used on any architecture with two exceptions:

1. libvirt - we need fixed version to be able to use ThunderX servers
2. kibana - to be able to run it at all

For x86-64 upstream kibana package is used.

Closes-bug: #1867365

Change-Id: I456402849022100bde1fffdfbf6292b35690f0f2
This commit is contained in:
Marcin Juszkiewicz 2020-03-13 16:30:08 +01:00 committed by Radosław Piliszek
parent 79c0dd49cb
commit 245992d37c
6 changed files with 38 additions and 10 deletions

View File

@ -450,7 +450,8 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
'https://packages.grafana.com/gpg.key',
'http://buster-train.debian.net/debian/dists/pubkey.gpg',
'https://packages.treasuredata.com/GPG-KEY-td-agent',
'https://repos.influxdata.com/influxdb.key'
'https://repos.influxdata.com/influxdb.key',
'https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster/Release.key',
] %}
{% set base_apt_packages = base_apt_packages +
['sudo',]

View File

@ -7,3 +7,23 @@ Pin-Priority: 1000
Package: smartmontools
Pin: version 7.*
Pin-Priority: 1000
# We do not want packages from this repo
Package: *
Pin: release o=obs://private/home:marcin.juszkiewicz/debian-buster
Pin-Priority: 100
# Unless it is libvirt (on aarch64)
Package: *libvirt*
Pin: release o=obs://private/home:marcin.juszkiewicz/debian-buster,b=arm64
Pin-Priority: 600
# Unless it is kibana (on aarch64)
Package: kibana
Pin: release o=obs://private/home:marcin.juszkiewicz/debian-buster
Pin-Priority: 600
# on x86-64 use upstream package for kibana
Package: kibana
Pin: release o=elastic,b=amd64
Pin-Priority: 700

View File

@ -11,14 +11,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.configure_user(name='kibana') }}
{% if base_arch != 'x86_64' and base_distro in ['debian', 'ubuntu'] %}
{% set kibana_packages = [
'nodejs',
'http://obs.linaro.org/home:/marcin.juszkiewicz/debian-buster/all/kibana_5.6.16-0linaro1_all.deb'
] %}
{% else %}
{% set kibana_packages = ['kibana'] %}
{% endif %}
{% set kibana_packages = ['kibana'] %}
{{ macros.install_packages(kibana_packages | customizable("packages")) }}
COPY extend_start.sh /usr/local/bin/kolla_extend_start

View File

@ -9,7 +9,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.configure_user(name='nova', groups='qemu') }}
{{ macros.enable_extra_repos(['ceph']) }}
{{ macros.enable_extra_repos(['ceph', 'libvirt']) }}
{% if base_package_type == 'rpm' %}

View File

@ -58,6 +58,13 @@ debian:
kibana: "deb [arch=amd64] https://artifacts.elastic.co/packages/5.x/apt stable main"
td-agent: "deb http://packages.treasuredata.com/3/debian/buster buster contrib"
debian-aarch64:
elasticsearch: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./"
grafana: "deb https://packages.grafana.com/oss/deb stable main"
influxdb: "deb https://repos.influxdata.com/debian buster stable"
kibana: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./"
libvirt: "deb https://obs.linaro.org/repos/home:/marcin.juszkiewicz/debian-buster ./"
ubuntu:
elasticsearch: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"
grafana: "deb https://packages.grafana.com/oss/deb stable main"

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes nova-libvirt networking failures on AArch64 (ARM64) servers running
on ThunderX CPUs.
`LP#1867365 <https://launchpad.net/bugs/1867365>`__