-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QA] iptables conditional logic can reference undefined var #3555
Comments
If this problem arose with |
Re-ran playbook on |
Yes, this ticket should be left open because it will show in situations where |
Fair - let's see if anyone can reproduce with |
I also saw this issue when |
On which branch? |
@redshiftzero sorry I tested |
Confirming: you ran |
@redshiftzero yes that is absolutely correct. I did a fresh install on the 0.8.2-rc2 tag. I had
I applied Conor's patch and the install continued and I was able to SSH into both the app and the mon server |
OK excellent, thanks for the clarity. We should indeed make this suggested change |
The conditional logic checking for whether the 'ipv4' attribute was defined wasn't properly structured: it assumed the attribute was present in order to check it. Slight tweak to the syntax to make a more graceful evaluation to False. Closes #3555.
I reran a clean install of the |
Description
The iptables templating logic contains unreliable conditional checks that may result in an undefined variable being referenced, which causes the provisioning run to fail hard.
Steps to Reproduce
Note that I was running on 0.7.0 in Tails, so it's possible the bug described cannot reproduced on release/0.8.0 and/or develop.
em1
(rather thaneth0
/eth1
used in our test VMs)../securedrop-admin install
against hardware machines.Expected Behavior
Playbook run completes, machines reboot, everything is copacetic.
Actual Behavior
Ansible errors out with a cryptic message about undefined dict attributes. Machines are incompletely configured.
Comments
There's a history to the logic referred to here.
While testing against hardware, I applied this patch against the 0.7.0 source and it resolved the problem:
So next step should be to evaluate whether this bug occurs against the same hardware on the 0.8.0 release branch.
The text was updated successfully, but these errors were encountered: