Make sure hostname is resolvable

Related-Prod: PRODX-2063
Change-Id: If02a703af5294bbae6e8989dd6d6b46d28a845a6
diff --git a/de/heat-templates/scripts/instance_boot.sh b/de/heat-templates/scripts/instance_boot.sh
index 7400bb7..c16b494 100644
--- a/de/heat-templates/scripts/instance_boot.sh
+++ b/de/heat-templates/scripts/instance_boot.sh
@@ -163,6 +163,8 @@
 
 function prepare_network {
     systemctl restart systemd-resolved
+    # Make sure local hostname is present in /etc/hosts
+    sed -i "s/127.0.0.1 localhost/127.0.0.1 localhost\n${NODE_IP_ADDRESS} $(hostname)/" /etc/hosts
 }
 
 function workaround_default_forward_policy {