You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If incorrect information is entered in initial sdconfig and install (such as switching the app and mon IP names or IP addresses), and then the installation is rerun with correct values, app's /etc/hosts ends up with two conflicting entries.
(Reporting as issue has been encountered by an existing instance)
Steps to Reproduce
(Probably?) Run sdconfig but switch app and mon IP addresses in error (so 10.20.3.2 for app) to simulate user error, then install.
Then rerun sdconfig and install with correct values.
Expected Behavior
Subsequent install replaces old hosts file with new hosts file. In this case, incorrect alias should be overwritten.
This is likely because securedrop/install_files/ansible-base/roles/common/tasks/setup_etc_hosts.yml has a task for avoiding adding duplicate entries, but does not handle the case of a user trying to replace/overwrite an incorrect entry.
The text was updated successfully, but these errors were encountered:
Description
If incorrect information is entered in initial
sdconfig
andinstall
(such as switching the app and mon IP names or IP addresses), and then the installation is rerun with correct values, app's/etc/hosts
ends up with two conflicting entries.(Reporting as issue has been encountered by an existing instance)
Steps to Reproduce
(Probably?) Run
sdconfig
but switch app and mon IP addresses in error (so 10.20.3.2 for app) to simulate user error, theninstall
.Then rerun
sdconfig
andinstall
with correct values.Expected Behavior
Subsequent
install
replaces oldhosts
file with newhosts
file. In this case, incorrect alias should be overwritten.Actual Behavior
Old values are preserved and new values are appended, creating a conflict.
Comments
This is likely because
securedrop/install_files/ansible-base/roles/common/tasks/setup_etc_hosts.yml
has a task for avoiding adding duplicate entries, but does not handle the case of a user trying to replace/overwrite an incorrect entry.The text was updated successfully, but these errors were encountered: