Bug 1395587

Summary: [RFE] Improve Robustness of File Tree of Yamls as Configuration Repository
Product: Red Hat OpenStack Reporter: Tomas Dosek <tdosek>
Component: rhosp-directorAssignee: Angus Thomas <athomas>
Status: CLOSED CURRENTRELEASE QA Contact: Omri Hochman <ohochman>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: aschultz, bradnichols, dbecker, jcoufal, jthomas, mburns, morazi, rbrady, rhel-osp-director-maint
Target Milestone: ---Keywords: FutureFeature, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-02 13:30:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomas Dosek 2016-11-16 09:31:41 UTC
The configuration input to director for overcloud operations is a variable list of yaml files and file trees of yamls. This makes for a challenging support and operational environment. There is no consistent practice of where to keep these files and trees. Because they do not have to be located in a specific location tooling such as updates will not necessarily find them. 
Support and customers spend much time looking for, reconstructing and diff’ing to  understanding exactly which files were used in a previous or the next director operation. 
Because there is no integrated history or change control of the files it can commonly occur that the past configuration simply can not be known or reconstructed
Upgrade is often unknowingly broken, The field and customers often copy the entire default tree to a new location which takes it out of the path of any upgrade utilities and is undetected 


a. Add a version ID and included it in each configuration yaml file
This will allow a yaml file from a previous OSP version can be identified regardless of where the user is referencing them from
b. Add a Checksum for every configuration yaml file
This will allow tooling to detect modification of the contents regardless of where the user is referencing them from
c. Automatically tar up and save for a successful director operation
The saved tarballs could be placed in the filesystem or stuffed in the undercloud or overcloud db?

Comment 5 Jaromir Coufal 2017-10-26 12:28:56 UTC
I believe so.

Can we consider GIT usage to be a default option in our docs for operators? We should review with operators, but it would make sense given my experience with customers.

Comment 9 Ryan Brady 2018-10-02 13:30:24 UTC
This RFE was actually committed upstream in a previous cycle as a feature to create a plan from a git repo.