cloud-init resets eth0 of supplemental node breaking networking
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Harry Rybacki |
Bug Description
Description
===========
cloud-init is resetting the config in /etc/system/
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=dhcp
DEVICE=eth0
HWADDR=
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
thereby invalidating what is in a given deployment's ssh.config.ansible file
<snip>
Host supplemental
ProxyCommand ssh -o UserKnownHostsF
ConnectTi
IdentityFile /home/XXX/
User stack
StrictHostK
UserKnownHo
<snip>
and stopping playbook execution when it next attempts to reach the guest
TASK [freeipa-setup : Create FreeIPA deployment script] *******
task path: /home/XXX/
Wednesday 20 September 2017 20:23:39 -0400 (0:00:00.088) 0:50:41.051 ***
<supplemental> ssh_retry: attempt: 0, ssh return code is 255. cmd (/bin/sh -c 'echo ~stack &&
sleep 0'...), pausing for 0 seconds
<supplemental> ssh_retry: attempt: 1, ssh return code is 255. cmd (/bin/sh -c 'echo ~stack &&
sleep 0'...), pausing for 1 seconds
<supplemental> ssh_retry: attempt: 2, ssh return code is 255. cmd (/bin/sh -c 'echo ~stack &&
sleep 0'...), pausing for 3 seconds
fatal: [supplemental]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host
via ssh: Warning: Permanently added 'XXX.com,
hosts.\r\nchannel 0: open failed: connect failed: No route to host\r\nstdio forwarding
failed\
true}
Steps to reproduce
==================
Deploy quickstart w/ IPA against a CentOS virthost
# Deploy w/ quickstart
pushd tripleo-quickstart
bash quickstart.sh \
--bootstrap \
--ansible-debug \
--no-clone \
--playbook quickstart-
--working-dir $WORKING_DIR \
--release master-tripleo-ci \
--config $WORKSPACE/
--nodes $WORKSPACE/
--teardown "all" \
--tags "all" \
$VIRTHOST
Expected result
===============
Quickstart runs successfully and the FreeIPA server exists on the supplemental node.
Actual result
=============
Quickstart fails upon attempting to reach the supplemental node after it has started.
Environment
===========
release=master
CentOS 7.3
cloud-init-
Changed in tripleo: | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in tripleo: | |
milestone: | none → queens-1 |
tags: | added: quickstart |
Fix proposed to branch: master /review. openstack. org/508158
Review: https:/