2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Amend postscript logging strategy

This adjusts to avoid hangs in
anaconda
This commit is contained in:
Jarrod Johnson 2021-04-30 13:38:31 -04:00
parent 4df3fda8ea
commit 672bc4f754
4 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,7 @@
mkdir -p /var/log/confluent
exec >> /var/log/confluent/confluent-post.log
tail -f /var/log/confluent/confluent-post.log > /dev/tty &
# need to copy over ssh key info
logshowpid=$!
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
apikey=$(cat /etc/confluent/confluent.apikey)
@ -45,3 +45,4 @@ run_remote_parts post
# Induce execution of remote configuration, e.g. ansible plays in ansible/post.d/
run_remote_config post
curl -sf -X POST -d 'status: staged' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" https://$mgr/confluent-api/self/updatestatus
kill $logshowpid

View File

@ -13,6 +13,7 @@ if [ -f "/run/install/cmdline.d/01-autocons.conf" ]; then
fi
exec >> /tmp/confluent-pre.log
tail -f /tmp/confluent-pre.log > /dev/tty &
loogshowpid=$!
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
locale=$(grep ^locale: /etc/confluent/confluent.deploycfg)
locale=${locale#locale: }
@ -77,3 +78,4 @@ if [ -e /tmp/installdisk -a ! -e /tmp/partitioning ]; then
echo autopart --nohome $LUKSPARTY >> /tmp/partitioning
fi
python /etc/confluent/apiclient /confluent-public/os/$profile/kickstart.custom -o /tmp/kickstart.custom
kill $logshowpid

View File

@ -2,7 +2,7 @@
mkdir -p /var/log/confluent
exec >> /var/log/confluent/confluent-post.log
tail -f /var/log/confluent/confluent-post.log > /dev/tty &
# need to copy over ssh key info
logshowpid=$!
nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')
apikey=$(cat /etc/confluent/confluent.apikey)
@ -45,3 +45,4 @@ run_remote_parts post
# Induce execution of remote configuration, e.g. ansible plays in ansible/post.d/
run_remote_config post
curl -sf -X POST -d 'status: staged' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" https://$mgr/confluent-api/self/updatestatus
kill $logshowpid

View File

@ -13,6 +13,7 @@ if [ -f "/run/install/cmdline.d/01-autocons.conf" ]; then
fi
exec >> /tmp/confluent-pre.log
tail -f /tmp/confluent-pre.log > /dev/tty &
logshowpid=$!
/usr/libexec/platform-python /etc/confluent/apiclient >& /dev/null
nicname=$(ip link|grep ^$(cat /tmp/confluent.ifidx): | awk '{print $2}' | awk -F: '{print $1}')
nmcli c u $nicname
@ -87,3 +88,4 @@ if [ -e /tmp/installdisk -a ! -e /tmp/partitioning ]; then
echo autopart --nohome $LUKSPARTY >> /tmp/partitioning
fi
curl -sf https://$mgr/confluent-public/os/$profile/kickstart.custom > /tmp/kickstart.custom
kill $logshowpid