From ce6ea610ae540cabda735486b9c1c67734afd68a Mon Sep 17 00:00:00 2001
From: Kristal Dale <kristal.dale@intel.com>
Date: Fri, 4 Oct 2019 16:41:03 -0700
Subject: [PATCH] Remove never ending while loops from R2 install guides

Remove while loops that will never exit from
- virtual aio-sx and aio-dx install guides
- all bare metal install guides

Change-Id: I081c64dbabd9619d75584e80b5dfefa39b53985f
Signed-off-by: Kristal Dale <kristal.dale@intel.com>
---
 .../r2_release/bare_metal/aio_duplex_extend.rst              | 4 ----
 .../r2_release/bare_metal/aio_simplex_install_kubernetes.rst | 3 ---
 .../bare_metal/controller_storage_install_kubernetes.rst     | 5 -----
 .../bare_metal/dedicated_storage_install_kubernetes.rst      | 5 -----
 .../r2_release/virtual/aio_simplex_install_kubernetes.rst    | 3 ---
 5 files changed, 20 deletions(-)

diff --git a/doc/source/deploy_install_guides/r2_release/bare_metal/aio_duplex_extend.rst b/doc/source/deploy_install_guides/r2_release/bare_metal/aio_duplex_extend.rst
index 456c2d09e..b42411f1c 100644
--- a/doc/source/deploy_install_guides/r2_release/bare_metal/aio_duplex_extend.rst
+++ b/doc/source/deploy_install_guides/r2_release/bare_metal/aio_duplex_extend.rst
@@ -173,10 +173,6 @@ OpenStack-specific host configuration
         system host-pv-add ${COMPUTE} nova-local ${NOVA_PARTITION_UUID}
       done
 
-      for COMPUTE in compute-0 compute-1; do
-        echo ">>> Wait for partition $NOVA_PARTITION_UUID to be ready."
-        while true; do system host-disk-partition-list $COMPUTE --nowrap | grep $NOVA_PARTITION_UUID | grep Ready; if [ $? -eq 0 ]; then break; fi; sleep 1; done
-      done
 
 --------------------
 Unlock compute nodes
diff --git a/doc/source/deploy_install_guides/r2_release/bare_metal/aio_simplex_install_kubernetes.rst b/doc/source/deploy_install_guides/r2_release/bare_metal/aio_simplex_install_kubernetes.rst
index a5d4e6eae..ee74966fe 100644
--- a/doc/source/deploy_install_guides/r2_release/bare_metal/aio_simplex_install_kubernetes.rst
+++ b/doc/source/deploy_install_guides/r2_release/bare_metal/aio_simplex_install_kubernetes.rst
@@ -320,9 +320,6 @@ OpenStack-specific host configuration
      system host-pv-add ${COMPUTE} nova-local ${NOVA_PARTITION_UUID}
      sleep 2
 
-     echo ">>> Wait for partition $NOVA_PARTITION_UUID to be ready."
-     while true; do system host-disk-partition-list $COMPUTE --nowrap | grep $NOVA_PARTITION_UUID | grep Ready; if [ $? -eq 0 ]; then break; fi; sleep 1; done
-
 .. incl-config-controller-0-openstack-specific-aio-simplex-end:
 
 -------------------
diff --git a/doc/source/deploy_install_guides/r2_release/bare_metal/controller_storage_install_kubernetes.rst b/doc/source/deploy_install_guides/r2_release/bare_metal/controller_storage_install_kubernetes.rst
index f12e24436..221ea051e 100644
--- a/doc/source/deploy_install_guides/r2_release/bare_metal/controller_storage_install_kubernetes.rst
+++ b/doc/source/deploy_install_guides/r2_release/bare_metal/controller_storage_install_kubernetes.rst
@@ -530,11 +530,6 @@ OpenStack-specific host configuration
 	   system host-pv-add ${COMPUTE} nova-local ${NOVA_PARTITION_UUID}
 	 done
 
-	 for COMPUTE in compute-0 compute-1; do
-	   echo ">>> Wait for partition $NOVA_PARTITION_UUID to be ready."
-	   while true; do system host-disk-partition-list $COMPUTE --nowrap | grep $NOVA_PARTITION_UUID | grep Ready; if [ $? -eq 0 ]; then break; fi; sleep 1; done
-	 done
-
 --------------------
 Unlock compute nodes
 --------------------
diff --git a/doc/source/deploy_install_guides/r2_release/bare_metal/dedicated_storage_install_kubernetes.rst b/doc/source/deploy_install_guides/r2_release/bare_metal/dedicated_storage_install_kubernetes.rst
index ce5c2cda6..6249d8810 100644
--- a/doc/source/deploy_install_guides/r2_release/bare_metal/dedicated_storage_install_kubernetes.rst
+++ b/doc/source/deploy_install_guides/r2_release/bare_metal/dedicated_storage_install_kubernetes.rst
@@ -339,11 +339,6 @@ OpenStack-specific host configuration
 	  system host-pv-add ${COMPUTE} nova-local ${NOVA_PARTITION_UUID}
 	done
 
-	for COMPUTE in compute-0 compute-1; do
-	  echo ">>> Wait for partition $NOVA_PARTITION_UUID to be ready."
-	  while true; do system host-disk-partition-list $COMPUTE --nowrap | grep $NOVA_PARTITION_UUID | grep Ready; if [ $? -eq 0 ]; then break; fi; sleep 1; done
-	done
-
 --------------------
 Unlock compute nodes
 --------------------
diff --git a/doc/source/deploy_install_guides/r2_release/virtual/aio_simplex_install_kubernetes.rst b/doc/source/deploy_install_guides/r2_release/virtual/aio_simplex_install_kubernetes.rst
index 782cc12fc..c4db1b4dc 100644
--- a/doc/source/deploy_install_guides/r2_release/virtual/aio_simplex_install_kubernetes.rst
+++ b/doc/source/deploy_install_guides/r2_release/virtual/aio_simplex_install_kubernetes.rst
@@ -264,9 +264,6 @@ OpenStack-specific host configuration
      system host-pv-add ${COMPUTE} nova-local ${NOVA_PARTITION_UUID}
      sleep 2
 
-     echo ">>> Wait for partition $NOVA_PARTITION_UUID to be ready."
-     while true; do system host-disk-partition-list $COMPUTE --nowrap | grep $NOVA_PARTITION_UUID | grep Ready; if [ $? -eq 0 ]; then break; fi; sleep 1; done
-
 .. incl-config-controller-0-openstack-specific-aio-simplex-end:
 
 -------------------