Bug 1751340 - paunch apply fails if docker volume is used instead of filesystem folder
Summary: paunch apply fails if docker volume is used instead of filesystem folder
Keywords:
Status: CLOSED DUPLICATE of bug 1751338
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-paunch
Version: 13.0 (Queens)
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Steve Baker
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-11 18:24 UTC by Vinod Nair
Modified: 2019-09-11 20:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-11 20:18:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Vinod Nair 2019-09-11 18:24:53 UTC
Description of problem:
In Python-paunch 2.5.0-5, the below fix was introduced , This check fails when a docker volume is used and not a filesystem folder as the docker volume will only be created when the container is created. 

The below issue is not seen in Python-paunch 2.5.0-4



Changelog

https://access.redhat.com/downloads/content/python-paunch/2.5.0-5.el7ost/noarch/fd431d51/package-changelog

    Check if volume paths exist before executing Docker. (rhbz#1732564)

This check fails when a docker volume is used and not a filesystem folder as the docker volume will only be created when the container is created. This is clearly a bug.

Version-Release number of selected component (if applicable):


How reproducible:
All the time

Steps to Reproduce:
paunch apply --file hashed-docker-container-startup-config-step_3.json --config-id 1
Cannot rename "iscsid-mb9xqk1m" since "iscsid" still exists
Cannot rename "nova_libvirt-eh7ecn5p" since "nova_libvirt" still exists
Cannot rename "nova_statedir_owner-ch3is9zs" since "nova_statedir_owner" still exists
Cannot rename "nova_virtlogd-pb7cdc3y" since "nova_virtlogd" still exists
Error running ['docker', 'run', '--name', 'contrail_nova_plugin', '--label', 'config_id=1', '--label', 'container_name=contrail_nova_plugin', '--label', 'managed_by=paunch', '--label', 'config_data={"environment": ["KEYSTONE_AUTH_HOST=192.168.24.11", "KEYSTONE_AUTH_ADMIN_PORT=35357", "KEYSTONE_AUTH_PROTO=http"], "env_file": ["/etc/contrail/common_contrail.env", "/etc/contrail/common_vrouter.env"], "command": ["/bin/sh", "c", "while true; do sleep 10;done"], "image": "192.168.24.1:8787/contrail-openstack-compute-init:rhel-queens-1908-45", "volumes": ["nova_contrail_vif_egg:/opt/plugin/site-packages/nova_contrail_vif-0.1-py2.7.egg-info", "vif_plug_vrouter:/opt/plugin/site-packages/vif_plug_vrouter", "vif_plug_contrail_vrouter:/opt/plugin/site-packages/vif_plug_contrail_vrouter"]}', 'detach=true', 'env-file=/etc/contrail/common_contrail.env', 'env-file=/etc/contrail/common_vrouter.env', 'env=KEYSTONE_AUTH_HOST=192.168.24.11', 'env=KEYSTONE_AUTH_ADMIN_PORT=35357', 'env=KEYSTONE_AUTH_PROTO=http', 'volume=nova_contrail_vif_egg:/opt/plugin/site-packages/nova_contrail_vif-0.1-py2.7.egg-info', 'volume=vif_plug_vrouter:/opt/plugin/site-packages/vif_plug_vrouter', '-volume=vif_plug_contrail_vrouter:/opt/plugin/site-packages/vif_plug_contrail_vrouter', '192.168.24.1:8787/contrail-openstack-compute-init:rhel-queens-1908-45', '/bin/sh', '-c', 'while true; do sleep 10;done'].

stderr: Error: error checking path "nova_contrail_vif_egg": stat nova_contrail_vif_egg: no such file or directory

Actual results:


Expected results:


Additional info:

Comment 1 Alex Schultz 2019-09-11 20:18:04 UTC

*** This bug has been marked as a duplicate of bug 1751338 ***


Note You need to log in before you can comment on or make changes to this bug.