Sfoglia il codice sorgente

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 7 anni fa
parent
commit
6a87206410
6 ha cambiato i file con 11 aggiunte e 2 eliminazioni
  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 Vedi File

@@ -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 Vedi File

@@ -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 Vedi File

@@ -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 Vedi File

@@ -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 Vedi File

@@ -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 Vedi File

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

Loading…
Annulla
Salva