Description: If agent-install.sh or agent-uninstall.sh fails a large number of the modules are not idempotent. Due to this when re-running the script the script will fail in several areas if needing to re-run the script due to some error. This is most commonly hit during the create* functions.
Agent-Install.sh functions tested to have this defect:
create_cluster_resources()
create_deployment()
get_pod_id() (this will fail if >1 pod exists with agent- which happens when we encounter some failure, we need to re-think this section if >1 pod exists like due to install problem. So far I have encountered this issue in test with pods that cannot terminate).
create_node() (we should check if the node already exists before re-creating in-case the script fails and needs to re-run).
Agent-Uninstall.sh functions tested to have this defect:
unregister() (if the node is already unregistered and the script needs to run again this function will fail and exit)
Description: If agent-install.sh or agent-uninstall.sh fails a large number of the modules are not idempotent. Due to this when re-running the script the script will fail in several areas if needing to re-run the script due to some error. This is most commonly hit during the create* functions.
Agent-Install.sh functions tested to have this defect:
Agent-Uninstall.sh functions tested to have this defect: