Merge "Retry nerdctl tag command"
diff --git a/de/heat-templates/scripts/functions.sh b/de/heat-templates/scripts/functions.sh
index 7c44921..4524075 100644
--- a/de/heat-templates/scripts/functions.sh
+++ b/de/heat-templates/scripts/functions.sh
@@ -790,7 +790,7 @@
 
 # Remove Tunnel interface from netplan
 if [[ $TUNNEL_INTERFACE_NETPLAN_MANAGE == false ]]; then
-    sed -i "/    ${TUNNEL_INTERFACE}/,/      set-name: ${TUNNEL_INTERFACE}/d" ${cloud_netplan_cfg}
+yq d -i ${cloud_netplan_cfg} network.ethernets.${TUNNEL_INTERFACE}
 fi
 
 if [[ -n ${IRONIC_BAREMETAL_INTERFACE} ]]; then
@@ -931,7 +931,11 @@
 
     if [[ "${apply_grub}" == true ]]; then
         update-grub
-        cloud-init clean -r
+        cloud-init clean --reboot
+        # waiting for reboot to prevent sending wait condition status failure
+        sleep 600
+        echo "Failed to reboot node"
+        /bin/false
     else
         echo "GRUB already configured with huge pages"
     fi