Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1576627 - yaml-nic-config-2-script.py requires interactive user input and doesn't provide a way to bypass it
yaml-nic-config-2-script.py requires interactive user input and doesn't provi...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates (Show other bugs)
13.0 (Queens)
Unspecified Unspecified
medium Severity high
: z2
: 13.0 (Queens)
Assigned To: Marius Cornea
Alexander Chuzhoy
: Rebase, Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-09 21:16 EDT by Marius Cornea
Modified: 2018-08-29 12:37 EDT (History)
8 users (show)

See Also:
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 12:36:37 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1770296 None None None 2018-05-09 21:53 EDT
OpenStack gerrit 567456 None master: MERGED tripleo-heat-templates: Add option to override confirmation in yaml-nic-config-2-script.py (Ic8275bb3a944e503c73ab06c3d5... 2018-07-18 21:48 EDT
OpenStack gerrit 579164 None stable/queens: MERGED tripleo-heat-templates: Add option to override confirmation in yaml-nic-config-2-script.py (Ic8275bb3a944e503c73ab06c3d5... 2018-07-18 21:48 EDT
Red Hat Product Errata RHBA-2018:2574 None None None 2018-08-29 12:37 EDT

  None (edit)
Description Marius Cornea 2018-05-09 21:16:24 EDT
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 03:56:55 EDT
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 13:41:09 EDT
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 12:36:37 EDT
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

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