Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1516670

Summary: [RFE]: Allow the GUI user to control the precedence of environment files
Product: Red Hat OpenStack Reporter: Udi Kalifon <ukalifon>
Component: openstack-tripleo-uiAssignee: RHOS Maint <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Arik Chernetsky <achernet>
Severity: high Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: beth.white, jjoyce, jpichon, jrist, jschluet, sasha, slinaber, tvignaud
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: NeedsAllocation
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-06 14:21:44 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:

Description Udi Kalifon 2017-11-23 09:01:23 UTC
Description of problem:
When a GUI user uploads a custom network-environment.yaml file and chooses it along with the network-isolation.yaml in the plan configuration dialog, there is no way to tell the system what the correct order is to include the environment files and which file precedes which.

When deploying from the GUI the order always comes out backwards, so the customizations in network-environment.yaml get overwritten and reverted back to the defaults in network-isolation.yaml (the last file that's parsed is the one that counts).

For example, in my bare metal setup, I have to configure the tenant network to noop in order to create this network on the ctlplane (because our IT couldn't allocate me all the networks I asked from them on our corporate network). When I deploy from the GUI, the mapping to noop gets overwritten, and the deployments fail because they can't ping addresses on the tenant network (this network is not in my nic-configs because I map it to noop).

A similar problem will happen to GUI users who want to use the predictable IP feature... Any mapping of networks or ports to different classes in heat will get overwritten if the order of inclusion of the environment files is backwards.


How reproducible:
100%


Steps to Reproduce:
1. Deploy with network isolation. Map several resources to None and noop.
2. Check if the default mappings were used instead of you r customizations. If deployment failed - it's probably because of the network misconfigurations in the resources you mapped.


Additional info:
The ugly way to work around this is to concat your customizations to network-isolation.yaml, and put them in the end of the file so you know they'll take precedence. Then you don't include network-environment.yaml in the customization at all. But you pay a price: the validator of the network configuration parses the netowrk-environment.yaml file, and this workaround will also work around the validator.

Comment 3 Jason E. Rist 2018-08-06 14:21:44 UTC
Closing as duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1541721

*** This bug has been marked as a duplicate of bug 1541721 ***