Bug 1643994 - deactivation of interactive login in get-occ-config.sh
Summary: deactivation of interactive login in get-occ-config.sh
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: async
: 12.0 (Pike)
Assignee: James Slagle
QA Contact: Gurenko Alex
URL:
Whiteboard:
Depends On:
Blocks: 1647635 1647636
TreeView+ depends on / blocked
 
Reported: 2018-10-29 17:19 UTC by Dariusz Wojewódzki
Modified: 2023-09-14 04:41 UTC (History)
3 users (show)

Fixed In Version: openstack-tripleo-heat-templates-7.0.12-16
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1647635 1647636 (view as bug list)
Environment:
Last Closed: 2018-12-05 18:51:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1800834 0 None None None 2018-10-31 13:08:02 UTC
OpenStack gerrit 614493 0 None None None 2018-10-31 13:08:16 UTC
Red Hat Product Errata RHBA-2018:3789 0 None None None 2018-12-05 18:52:01 UTC

Description Dariusz Wojewódzki 2018-10-29 17:19:27 UTC
The script "/usr/share/openstack-tripleo-heat-templates/deployed-server/scripts/get-occ-config.sh" is using -tt SSH Option:


RHOSP12: openstack-tripleo-heat-templates-7.0.12-8.el7ost.noarch
RHOSP13: openstack-tripleo-heat-templates-8.0.4-20.el7ost.noarch

$grep SSH_OPTIONS /usr/share/openstack-tripleo-heat-templates/deployed-server/scripts/get-occ-config.sh

SSH_OPTIONS="-tt -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=Verbose -o PasswordAuthentication=no -o ConnectionAttempts=32"
            ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host "echo '$config' > deployed-server.json"
            ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host sudo mkdir -p -m 0700 /var/lib/os-collect-config/local-data/ || true
            ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host sudo cp deployed-server.json /var/lib/os-collect-config/local-data/deployed-server.json
            ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host sudo systemctl start os-collect-config
            ssh $SSH_OPTIONS -i $SUBNODES_SSH_KEY $host sudo systemctl enable os-collect-config


The "-tt" option forces a TTY allocation and so the connection is handled like an interactive login.



[1]
What is the reason for this option in get-occ-config.sh ?


[2]
Is there any negative impact of removing -tt?

[3]
Customer tests showed no real issues so far but that's only for them and not really for the product. Will this modification be supported?
Customer wants to know if RedHat can remove the ` -tt`  option in the script ?

Comment 10 Gurenko Alex 2018-11-21 12:11:58 UTC
Verified on puddle 2018-11-14.1

[stack@undercloud-0 ~]$ rpm -q openstack-tripleo-heat-templates
openstack-tripleo-heat-templates-7.0.12-16.el7ost.noarch

Comment 13 errata-xmlrpc 2018-12-05 18:51:01 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:3789

Comment 14 Red Hat Bugzilla 2023-09-14 04:41:29 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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