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

Bug 1643994

Summary: deactivation of interactive login in get-occ-config.sh
Product: Red Hat OpenStack Reporter: Dariusz Wojewódzki <dwojewod>
Component: openstack-tripleo-heat-templatesAssignee: James Slagle <jslagle>
Status: CLOSED ERRATA QA Contact: Gurenko Alex <agurenko>
Severity: medium Docs Contact:
Priority: medium    
Version: 12.0 (Pike)CC: dwojewod, jslagle, mburns
Target Milestone: asyncKeywords: Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-7.0.12-16 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1647635 1647636 (view as bug list) Environment:
Last Closed: 2018-12-05 18:51:01 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:
Bug Depends On:    
Bug Blocks: 1647635, 1647636    

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