summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2022-04-18 12:51:56 -0700
committerJames E. Blair <jim@acmegating.com>2022-04-19 09:13:45 -0700
commitd8420315d4f8fde0416c65f39404055da16fc952 (patch)
tree0df25e4db8b6b5106f89fac5e7f49fab2569a99b /releasenotes
parent55f77c0f80033909870de1fda435ef856cd67c38 (diff)
downloadzuul-d8420315d4f8fde0416c65f39404055da16fc952.tar.gz
Make nodepool hostvars available on unreachable hosts
Zuul ignores nodes with network_cli connections when running the setup playbook in order to support the use-case where a network appliance begins a job in an unreachable state. Starting with Zuul v4.6.0, for security reasons, host variables require a functioning Ansible connection in order to be set. This includes the Nodepool variables such as public and private IP addresses. Causing a network_cli host to become online after the start of a job requires this information, and so this functionality has not worked since 4.6.0. To correct this, we now always add in the nodepool host vars as originally set regardless of whether the variable freeze playbook runs for a particular host. This means that even if we have no other variables set for that host, we at least know the IP address of the host and can interact with it directly in order to bring it online. Additionally, the freeze playbook did not correctly check the return value, due to a typo. This accidentally allowed Zuul to continue to function in this situation (but without the nodepool variables accessible). With this change we continue to ignore the return value, but intentionally so. A test for this use-case is added, along with a releaso note. Change-Id: Icd8a2c035e6c04a7c198281adbd07fef422a6c63 Story: 2009226
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/network-vars-60fd922781da7b92.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/releasenotes/notes/network-vars-60fd922781da7b92.yaml b/releasenotes/notes/network-vars-60fd922781da7b92.yaml
new file mode 100644
index 000000000..79724eff6
--- /dev/null
+++ b/releasenotes/notes/network-vars-60fd922781da7b92.yaml
@@ -0,0 +1,6 @@
+---
+fixes:
+ - |
+ Nodepool host variables are now available even for unreachable
+ hosts. This is useful for network appliances which start the job
+ in an unreachable state.