Bug 1611953

Summary: environment has wrong section "parameter_groups"/"heat_template_version"
Product: Red Hat OpenStack Reporter: Tony Breeds <tonyb>
Component: openstack-tripleo-heat-templatesAssignee: Emilien Macchi <emacchi>
Status: CLOSED NOTABUG QA Contact: Gurenko Alex <agurenko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 13.0 (Queens)CC: mburns, sbaker, therve
Target Milestone: ---Keywords: 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-08-06 04:15:14 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1496527    
Attachments:
Description Flags
First debug log
none
Second debug log
none
Overcloud container from swift
none
node-info.yaml
none
overcloud.yml
none
customization.yaml none

Description Tony Breeds 2018-08-03 07:14:59 UTC
Description of problem:  When attempting to deploy the overcloud the process halts with:

environment has wrong section "parameter_groups"

Version-Release number of selected component (if applicable): openstack-tripleo-heat-templates-8.0.4-8.el7ost.noarch (built from http://pkgs.devel.redhat.com/cgit/rpms/openstack-tripleo-heat-templates/commit/?h=private-abreeds-rhos-13.0-multiarch)

---
+ openstack overcloud deploy --templates /home/stack/templates -r /home/stack/templates/roles_data.yaml --disable-validations --libvirt-type kvm --ntp-server clock01.util.phx2.redhat.com -e /home/stack/templates/node-info.yaml -e /home/stack/templates/overcloud.yaml -e /home/stack/templates/customization.yaml
Removing the current plan files
Uploading new plan files
Started Mistral Workflow tripleo.plan_management.v1.update_deployment_plan. Execution ID: b26b8e73-ef54-407c-a26e-f86da62d80fd
Plan updated.
Processing templates in the directory /tmp/tripleoclient-2lynIo/tripleo-heat-templates
environment has wrong section "parameter_groups"
---

I'll attach debug-01.log.

By way of a quick work around I removed the deprecated options from roles_data.
---
[stack@director templates]$ diff -U0 roles_data.yaml~orig roles_data.yaml
--- roles_data.yaml~orig        2018-08-03 03:03:56.972000000 -0400
+++ roles_data.yaml     2018-08-03 03:11:01.585000000 -0400
@@ -28 +27,0 @@
-  deprecated_param_extraconfig: 'controllerExtraConfig'
@@ -193 +191,0 @@
-  deprecated_param_extraconfig: 'NovaComputeExtraConfig'
@@ -195 +192,0 @@
-  deprecated_param_scheduler_hints: 'NovaComputeSchedulerHints'
---

and re-ran the deploy command, this time it exited with: environment has wrong section "heat_template_version"

I'll attach debug-02.log

Comment 1 Tony Breeds 2018-08-03 07:15:36 UTC
Created attachment 1472889 [details]
First debug log

Comment 2 Tony Breeds 2018-08-03 07:16:02 UTC
Created attachment 1472890 [details]
Second debug log

Comment 3 Tony Breeds 2018-08-03 07:19:39 UTC
Created attachment 1472891 [details]
Overcloud container from swift

This is taken from the first run.

(undercloud) [stack@director ~]$ openstack overcloud deploy --templates /home/stack/templates -r /home/stack/templates/roles_data.yaml --disable-validations --libvirt-type kvm --ntp-server clock01.util.phx2.redhat.com -e /home/stack/templates/node-info.yaml -e /home/stack/templates/overcloud.yaml -e /home/stack/templates/customization.yaml
Removing the current plan files
Uploading new plan files
Started Mistral Workflow tripleo.plan_management.v1.update_deployment_plan. Execution ID: be4fadb0-70e7-4b65-802e-59df185c88ee
Plan updated.
Processing templates in the directory /tmp/tripleoclient-z1uZ7Q/tripleo-heat-templates
environment has wrong section "parameter_groups"

Comment 4 Thomas Hervé 2018-08-03 11:27:56 UTC
Can you attach  /home/stack/templates/node-info.yaml, /home/stack/templates/overcloud.yaml and /home/stack/templates/customization.yaml? Thanks.

Comment 5 Tony Breeds 2018-08-03 20:40:36 UTC
I can attach them but they're included in the 3rd attachment already.

Comment 6 Tony Breeds 2018-08-03 20:41:06 UTC
Created attachment 1473232 [details]
node-info.yaml

Comment 7 Tony Breeds 2018-08-03 20:41:30 UTC
Created attachment 1473233 [details]
overcloud.yml

Comment 8 Tony Breeds 2018-08-03 20:41:51 UTC
Created attachment 1473234 [details]
customization.yaml

Comment 9 Tony Breeds 2018-08-03 21:51:39 UTC
Also here's a link to the script I'm using to install under and overclouds:  http://git.engineering.redhat.com/git/users/abreeds/tripleo_shenanigans/tree/automate.sh

Comment 10 Steve Baker 2018-08-06 04:07:59 UTC
/home/stack/templates/overcloud.yaml is a template, not an environment file, so it should be the last positional argument, and not invoked with the -e flag.

Comment 11 Steve Baker 2018-08-06 04:14:30 UTC
Actually you shouldn't be specifying overcloud.yaml at all. If you're doing something weird like wanting your top-level template to be something other than the one that gets rendered from overcloud.j2.yaml then ping me on IRC.

Comment 12 Tony Breeds 2018-08-06 04:15:14 UTC
Thanks Steve 'overcloud.yaml' shoudl have been 'overcloud_images.yaml'

So using :

+ openstack overcloud deploy --templates /home/stack/templates -r /home/stack/templates/roles_data.yaml --disable-validations --libvirt-type kvm --ntp-server clock01.util.phx2.redhat.com -e /home/stack/templates/node-info.yaml -e /home/stack/templates/overcloud_images.yaml -e /home/stack/templates/customization.yaml
Removing the current plan files

Fixed my "problem"  #pebkac