Check_haproxy script looking for Auth in incorrect file
Bug #1713165 reported by
Benard Okolie
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
High
|
James Page | ||
OpenStack Dashboard Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Currently the check_haproxy.sh script gains authentication using the following variable:
AUTH=$(grep -r "stats auth" /etc/haproxy | awk 'NR=1{print $4}')
The problem is if the authentication credentials are changed a backup file is created in the same directory, which still contains the old credentials. This can cause the problem with the check.
This problem can be solved by grepping for stats inside the file rather than the directory
AUTH=$(egrep "stats auth" /etc/haproxy/
Changed in charm-helpers: | |
status: | In Progress → Fix Committed |
Changed in charm-helpers: | |
status: | Fix Committed → Fix Released |
tags: | added: canonical-bootstack |
To post a comment you must log in.
Moving bug to charm-helpers as that is the source for the check_haproxy.sh script.