Explorar el Código

Fix kitchen tests

- Disable sudo for kitchen tests
 - No update grub on docker/lxc
 - Avoid changing hostname in docker based tests

Change-Id: Ic93ecc4680fb9a44388f494259de28ea9e8a0fc0
pull/108/head
Jakub Josef hace 7 años
padre
commit
6a87206410
Se han modificado 6 ficheros con 11 adiciones y 2 borrados
  1. +1
    -1
      .kitchen.yml
  2. +2
    -0
      linux/system/grub.sls
  3. +3
    -0
      linux/system/hugepages.sls
  4. +2
    -0
      linux/system/kernel.sls
  5. +2
    -0
      linux/system/sriov.sls
  6. +1
    -1
      tests/pillar/network.sls

+ 1
- 1
.kitchen.yml Ver fichero

@@ -2,7 +2,7 @@
driver:
name: docker
hostname: linux.ci.local
use_sudo: sudo
use_sudo: false

provisioner:
name: salt_solo

+ 2
- 0
linux/system/grub.sls Ver fichero

@@ -6,6 +6,8 @@ grub_d_directory:
- mode: 755
- makedirs: True

{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
grub_update:
cmd.wait:
- name: update-grub
{%- endif %}

+ 3
- 0
linux/system/hugepages.sls Ver fichero

@@ -11,9 +11,12 @@ include:
- template: jinja
- require:
- file: grub_d_directory
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
- watch_in:
- cmd: grub_update

{%- endif %}

{%- for hugepages_type, hugepages in system.kernel.hugepages.iteritems() %}

{%- if hugepages.get('mount', False) or hugepages.get('default', False) %}

+ 2
- 0
linux/system/kernel.sls Ver fichero

@@ -13,10 +13,12 @@ include:
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT isolcpus={{ system.kernel.isolcpu }}"'
- require:
- file: grub_d_directory
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
- watch_in:
- cmd: grub_update

{%- endif %}
{%- endif %}

{%- if system.kernel.version is defined %}


+ 2
- 0
linux/system/sriov.sls Ver fichero

@@ -8,8 +8,10 @@ include:
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT intel_iommu=on iommu=pt"'
- require:
- file: grub_d_directory
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %}
- watch_in:
- cmd: grub_update
{%- endif %}

/etc/modprobe.d/sriov.conf:
file.managed:

+ 1
- 1
tests/pillar/network.sls Ver fichero

@@ -2,7 +2,7 @@ linux:
system:
enabled: true
domain: ci.local
name: linux
name: linux.ci.local
network:
enabled: true
hostname: linux

Cargando…
Cancelar
Guardar