Comment 8 for bug 1529691

Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

So I can confirm that there is 2 behaviors after stop deploy:
1. After stop deployment nodes go to offline , if it do not back online - we ran task for nodes removal - as result - we get only those nodes that appears online in time

2 Second case - Nodes are back online in time (like my second deployment of this case), so I am able to re-deploy env - and it is failed with Deployment has failed. Method granular_deploy. Failed to execute hook 'sync_time' command: cd / && ntpdate -u $(awk '/^server/ { if ($2 !~ /127\.127\.[0-9]+\.[0-9]+/) {ORS=" "; print $2}}' /etc/ntp.conf)

I run re-deployment one more time (for now of environment in error status) and it fails again Deployment has failed. Method granular_deploy. Failed to execute hook 'sync_time' command: cd / && ntpdate -u $(awk '/^server/ { if ($2 !~ /127\.127\.[0-9]+\.[0-9]+/) {ORS=" "; print $2}}' /etc/ntp.conf)
root@node-1:~# cd / && ntpdate -u $(awk '/^server/ { if ($2 !~ /127\\.127\\.[0-9]+\\.[0-9]+/) {ORS=\" \"; print $2}}' /etc/ntp.conf)
awk: 1: unexpected character '\'
awk: line 1: runaway string constant " \"; print ...
18 Jan 12:15:07 ntpdate[25266]: no servers can be used, exiting
root@node-1:/# cd / && ntpdate -d -u $(awk '/^server/ { if ($2 !~ /127\\.127\\.[0-9]+\\.[0-9]+/) {ORS=\" \"; print $2}}' /etc/ntp.conf)
awk: 1: unexpected character '\'
awk: line 1: runaway string constant " \"; print ...
18 Jan 12:16:12 ntpdate[25517]: ntpdate 4.2.6p5@1.2349-o Wed Nov 11 17:58:55 UTC 2015 (1)
18 Jan 12:16:12 ntpdate[25517]: no servers can be used, exiting
root@node-1:/#

So the main question from mt here, could we do not remove offline nodes after stop deployment, because it looks really dangerous: User has ready cluster - add compute - stop deployment - may lost all offline nodes wihtout any notification/confirmation