Bug 1269592 - [Docs] [Director] Wrong path to storage-environment.yaml in overcloud deploy command
Summary: [Docs] [Director] Wrong path to storage-environment.yaml in overcloud deploy ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 7.0 (Kilo)
Hardware: All
OS: All
medium
medium
Target Milestone: async
: 7.0 (Kilo)
Assignee: Dan Macpherson
QA Contact: Radek Bíba
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-07 16:12 UTC by Dan Yocum
Modified: 2016-01-17 23:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-17 23:23:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan Yocum 2015-10-07 16:12:49 UTC
The Director Install and Config guide states this in section 6.3.6:

"We also include environments/storage-environment.yaml in our deployment to initiate our storage requirements."

But in section 6.3.8 it uses this in the overcloud deploy command line [fix this part]:

openstack overcloud deploy --templates ~/templates/my-overcloud -e ~/templates/my-overcloud/environments/network-isolation.yaml -e ~/templates/network-environment.yaml -e ~/templates/storage-environment.yaml --control-scale 3 ...

Then 5 lines later this, again:

"-e ~/templates/my-overcloud/environments/storage-environment.yaml - The -e option adds an additional environment ..."

Comment 2 Dan Yocum 2015-10-07 16:23:11 UTC
Actually, all through section 6.3 the ~/templates/my-overcloud/ path is used inconsistently: sometimes the files are in ~/templates/my-overcloud/foo.yaml, and sometimes they're in ~/templates/bar.yaml.  

Considering that in section 6.3.5, there is this:

$ cp -r /usr/share/openstack-tripleo-heat-templates ~/templates/my-overcloud

All paths to templates should contain the 'my-overcloud' directory.

Comment 3 Dan Yocum 2015-10-07 16:45:07 UTC
(In reply to Dan Yocum from comment #2)
> Actually, all through section 6.3 the ~/templates/my-overcloud/ path is used
> inconsistently: sometimes the files are in
> ~/templates/my-overcloud/foo.yaml, and sometimes they're in
> ~/templates/bar.yaml.  
> 
> Considering that in section 6.3.5, there is this:
> 
> $ cp -r /usr/share/openstack-tripleo-heat-templates ~/templates/my-overcloud
> 
> All paths to templates should contain the 'my-overcloud' directory.

Errrr.  That should read 

"All paths to templates should contain the 'my-overcloud' directory in the rest of this section."

I need more coffee.... :/

Comment 4 Andrew Dahms 2015-10-08 00:01:56 UTC
Assigning to Dan for review.

Comment 6 Dan Yocum 2015-10-08 14:55:23 UTC
Per our IRC conversation, I'll work with dsneddon to create a network-environment.yaml file that should get shipped in the /usr/share/openstack-tripleo-heat-templates/environments/ dir with the rest of the environment files.

Comment 7 Dan Macpherson 2015-10-12 03:41:24 UTC
No prob. In the meantime, I've corrected the sotrage-environment.yaml location:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html/Director_Installation_and_Usage/sect-Advanced-Scenario_3_Using_the_CLI_to_Create_an_Advanced_Overcloud_with_Ceph_Nodes.html#sect-Advanced-Creating_the_Advanced_Overcloud

How does it look, Dan? Can you spot anything else in that section that requires a change?

Comment 8 Dan Yocum 2015-10-16 16:22:18 UTC
The my-overcloud fix looks good.

Personally, I think the network-environments.yaml file should go in ~/templates/my-overcloud/environments/ dir like the other environment files.  

What do you think?

Comment 9 Dan Macpherson 2015-10-19 00:22:36 UTC
This is part of a larger problem that I'll need to solve.

At some stage the user might need to remove the custom templates collection and replace it with an updated version from /usr/share/openstack-tripleo-heat-templates. I'm concerned that any additional files from the user might get deleted if they try to replace the custom templates collection.

Having said that, the end user still needs to diff between the customer template collection and the default version when performing updates, so there's still the difficulty with identifying template differences.

What I think is the probably best course of action is if in the future I document some form of version control (i.e. git) to manage the custom template collection. That way you can add new files, make changes, and sync with the default version when it gets updated.

Comment 10 Dan Yocum 2015-10-19 18:37:41 UTC
Yes, I agree there is a larger problem to solve, but let me open an RFE BZ and let's discuss it there - you can close this BZ.

Comment 11 Andrew Dahms 2015-11-12 02:19:10 UTC
Assigning Radek as the QA contact.

Radek - could you take a look at the changes for this bug?

Comment 12 Radek Bíba 2015-11-12 10:42:39 UTC
Looks good to me too.

Comment 13 Andrew Dahms 2016-01-17 23:23:20 UTC
This content is live on the Customer Portal.

Closing.


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