Bug 1576627

Summary: yaml-nic-config-2-script.py requires interactive user input and doesn't provide a way to bypass it
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Marius Cornea <mcornea>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: high Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: bfournie, dbecker, joflynn, jschluet, mburns, mcornea, morazi, sasha
Target Milestone: z2Keywords: Rebase, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-8.0.4-3.el7ost Doc Type: Bug Fix
Doc Text:
yaml-nic-config-2-script.py required interactive user input. The script could not be called in a non-interactive manner for automation purposes. A --yes option has been added. yaml-nic-config-2-script.py can now be called with --yes option and the user is not asked for interactive input.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-29 16:36:37 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 Marius Cornea 2018-05-10 01:16:24 UTC
Description of problem:

yaml-nic-config-2-script.py[1] requires interactive user input and doesn't provide a way to bypass it. For automated tests that run this script we require the ability(--yes option) to bypass the user input. yes or echo 'y' pipe is not always reliable.

[1 http://git.openstack.org/cgit/openstack/tripleo-heat-templates/tree/tools/yaml-nic-config-2-script.py

Comment 13 Joanne O'Flynn 2018-08-15 07:56:55 UTC
This bug is marked for inclusion in the errata but does not currently contain draft documentation text. To ensure the timely release of this advisory please provide draft documentation text for this bug as soon as possible.

If you do not think this bug requires errata documentation, set the requires_doc_text flag to "-".


To add draft documentation text:

* Select the documentation type from the "Doc Type" drop down field.

* A template will be provided in the "Doc Text" field based on the "Doc Type" value selected. Enter draft text in the "Doc Text" field.

Comment 14 Alexander Chuzhoy 2018-08-15 17:41:09 UTC
Verified:

Environment:
openstack-tripleo-heat-templates-8.0.4-16.el7ost.noarch


(overcloud) [stack@undercloud-0 ~]$  /usr/share/openstack-tripleo-heat-templates/tools/yaml-nic-config-2-script.py virt/network/three-nics-vlans/legacy/compute.yaml
Using script at /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh
The yaml file will be overwritten and the original saved as /home/stack/virt/network/three-nics-vlans/legacy/compute.yaml.20180815134047
Overwrite virt/network/three-nics-vlans/legacy/compute.yaml? [y/n] 
Skipping file virt/network/three-nics-vlans/legacy/compute.yaml


(overcloud) [stack@undercloud-0 ~]$  /usr/share/openstack-tripleo-heat-templates/tools/yaml-nic-config-2-script.py virt/network/three-nics-vlans/legacy/compute.yaml --yes
Using script at /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh
The yaml file will be overwritten and the original saved as /home/stack/virt/network/three-nics-vlans/legacy/compute.yaml.20180815134051
Converting virt/network/three-nics-vlans/legacy/compute.yaml

Comment 16 errata-xmlrpc 2018-08-29 16:36:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2574