[ 
https://issues.apache.org/jira/browse/HDDS-1667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elek, Marton updated HDDS-1667:
-------------------------------
    Description: 
In fault injection test, the docker compose file is templated using:

${user.name}/ozone:${project.version}

If user pass in parameter -Ddocker.image to cause docker build to generate a 
different name. This can cause fault injection test to fail/stuck because it 
could not find the required docker image. The fix is simply use docker.image 
token to filter docker compose *file.*

*Reproduce the problem:***
{code:java}
mvn clean install -f pom.ozone.xml -Ddocker.image=repo/myimage:mytag
{code}
*Expected result:*
{code:java}
cat hadoop-ozone/fault-injection-test/network-tests/target/docker-compose.yaml
{code}
This file should contain repo/myimage:mytag

*Current result:*

The image tag in the docker-compose.yaml is always ${username}/ozone

 

  was:
In fault injection test, the docker compose file is templated using:

${user.name}/ozone:${project.version}

If user pass in parameter -Ddocker.image to cause docker build to generate a 
different name.  This can cause fault injection test to fail/stuck because it 
could not find the required docker image.  The fix is simply use docker.image 
token to filter docker compose file.


> Docker compose file may referring to incorrect docker image name
> ----------------------------------------------------------------
>
>                 Key: HDDS-1667
>                 URL: https://issues.apache.org/jira/browse/HDDS-1667
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Eric Yang
>            Assignee: Eric Yang
>            Priority: Trivial
>             Fix For: 0.4.1
>
>         Attachments: HDDS-1667.001.patch, HDDS-1667.002.patch, 
> HDDS-1667.003.patch, HDDS-1667.004.patch, HDDS-1667.005.patch, 
> HDDS-1667.006.patch, HDDS-1667.007.patch, HDDS-1667.008.patch
>
>
> In fault injection test, the docker compose file is templated using:
> ${user.name}/ozone:${project.version}
> If user pass in parameter -Ddocker.image to cause docker build to generate a 
> different name. This can cause fault injection test to fail/stuck because it 
> could not find the required docker image. The fix is simply use docker.image 
> token to filter docker compose *file.*
> *Reproduce the problem:***
> {code:java}
> mvn clean install -f pom.ozone.xml -Ddocker.image=repo/myimage:mytag
> {code}
> *Expected result:*
> {code:java}
> cat hadoop-ozone/fault-injection-test/network-tests/target/docker-compose.yaml
> {code}
> This file should contain repo/myimage:mytag
> *Current result:*
> The image tag in the docker-compose.yaml is always ${username}/ozone
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to