overcloud container image prepare --env-file overwrites unconditionally

Bug #1723071 reported by plieb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
David Peacock

Bug Description

overcloud container image prepare --env-file overwrites the target file unconditionally.

This is a problems because the env-file is required to reproduce a containerized deployment.

It might also contain extra parameter_defaults such as:

DockerInsecureRegistryAddress: 172.16.0.1:8787

If you overwrite the environment file but do not include some of the required Heat environments, or include wrong versions, you could break you deployment various ways.

This bug could be addressed by automatically backing up the prior environment file and/or prompting before overwriting the exiting environment file.

It may also be a bug that --images-file also overwrites unconditionally.

OpenStack Pike

Tags: containers ux
Changed in tripleo:
importance: Undecided → Medium
status: New → Triaged
milestone: none → queens-2
Changed in tripleo:
milestone: queens-2 → queens-3
Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
tags: added: ux
Changed in tripleo:
assignee: nobody → David Peacock (davidjpeacock)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/609694

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/609694
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=4b43155648d7bb4c0fefff259303eff3b03eaa4a
Submitter: Zuul
Branch: master

commit 4b43155648d7bb4c0fefff259303eff3b03eaa4a
Author: David J Peacock <email address hidden>
Date: Thu Oct 11 08:56:41 2018 -0400

    check for existence of output env file for container image prepare

    Currently, `overcloud container image prepare --env-file` will clobber
    any existing file, which can present a problem.

    This patch catches this scenario, moves the existing --env-file to a
    backup, and then continues with the creation.

    Change-Id: I3d88ab7a948a1e14940542964824a3bbc1a94fa6
    Closes-Bug: 1723071

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 11.2.0

This issue was fixed in the openstack/python-tripleoclient 11.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.