kitchen-dokken
kitchen-dokken copied to clipboard
volumes from one suite are added to all subsequent suites
Summary
Adding a volume in one suite's driver config adds it to all the suites that follow it in .kitchen.yml.
Versions
- test-kitchen: 1.20.0
- kitchen-dokken: 2.6.7
Reproducing
Create the following .kitchen.yml in an empty directory and run kitchen create:
driver:
name: dokken
provisioner:
name: dokken
transport:
name: dokken
platforms:
- name: alpine
driver:
image: alpine:latest
suites:
- name: suite1
- name: suite2
driver:
volumes:
- suite2_vol:/vol:rw
- name: suite3
- name: suite4
driver:
volumes:
- suite4_vol:/vol:rw
Expected Results
kitchen createexecutes successfully- the
suite1-alpinecontainer does not have any volumes mounted - the
suite2-alpinecontainer has the volumesuite2_volmounted at/vol - the
suite3-alpinecontainer does not have any volumes mounted - the
suite4-alpinecontainer has the volumesuite4_volmounted at/vol
Actual Results
- ❌
kitchen createfails with the error message:Failed to complete #create action: [Duplicate mount point: /vol] on suite4-alpine - ✔️ the
suite1-alpinecontainer does not have any volumes mounted - ✔️ the
suite2-alpinecontainer has the volumesuite2_volmounted at/vol - ❌ the
suite3-alpinecontainer has the volumesuite2_volmounted at/vol - ❌ the
suite4-alpinecontainer doees not exist
Additional note: If I run the suites one at a time, they work as expected.
seeing similar behavior, have two suites defined, each with it's own volumes
- name: es7-node0
driver:
hostname: es7-node0
ports:
- 9270:9200
volumes:
- /tmp/yum_cache_el7/0:/var/cache/yum
- name: es7-node1
driver:
hostname: es7-node1
ports:
- 9271:9200
volumes:
- /tmp/yum_cache_el7/1:/var/cache/yum
getting exception when running test / converge on both kitchen converge es7-node*
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #create action: [Duplicate mount point: /var/cache/yum
] on es7-node1-centos-76
>>>>>> ----------------------