Bug 1391062 - TripleO CLI shows misleading failure reason
Summary: TripleO CLI shows misleading failure reason
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-02 13:51 UTC by Marius Cornea
Modified: 2019-07-29 15:37 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-29 15:33:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Marius Cornea 2016-11-02 13:51:45 UTC
Description of problem:
TripleO CLI shows misleading failure reason:

Version-Release number of selected component (if applicable):
python-tripleoclient-5.3.0-3.el7ost.noarch
openstack-tripleo-common-5.3.0-3.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
source ~/stackrc
export THT=/usr/share/openstack-tripleo-heat-templates/

openstack overcloud deploy --debug --templates $THT \
-r ~/openstack_deployment/roles/roles_data.yaml \
-e $THT/environments/network-isolation.yaml \
-e $THT/environments/network-management.yaml \
-e $THT/environments/storage-environment.yaml \
-e ~/openstack_deployment/environments/nodes.yaml \
-e ~/openstack_deployment/environments/network-environment.yaml \
-e ~/openstack_deployment/environments/disk-layout.yaml \
-e ~/openstack_deployment/environments/wipe-disk-env.yaml \
-e ~/openstack_deployment/environments/neutron-settings.yaml \
-e ~/openstack_deployment/environments/custom_nova.yaml 

Fails with:
Removing the current plan files
Uploading new plan files
Started Mistral Workflow. Execution ID: dab7427d-c085-4896-96d5-734faa9e5754
Plan updated
Deploying templates in the directory /tmp/tripleoclient-DabX0N/tripleo-heat-templates
Specify --ntp-server as parameter or NtpServer in environments when using multiple controllers (with HA).

The DnsServers parameter does exist in the ~/openstack_deployment/environments/network-environment.yaml:
http://paste.openstack.org/show/587637/

Running the command with --debug we can see that the path for OS::TripleO::Keystone::Ports::StorageMgmtPort doesn't exist and it is the actual root cause of the issue:

Processing environment files /home/stack/openstack_deployment/environments/network-environment.yaml
Error Could not fetch contents for file:///usr/share/openstack-tripleo-heat-templates/network/ports/noop.yam processing environment file /home/stack/openstack_deployment/environments/network-environment.yaml

Actual results:
The deploy command fails with a misleading error message.

Expected results:
The deploy command shows the real cause of failure.


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