Merge "Remove unneeded sudo in lvs-masquerade.sh" into stable/yoga
This commit is contained in:
commit
b707808cad
1
.gitignore
vendored
1
.gitignore
vendored
@ -33,6 +33,7 @@ tempest.log
|
|||||||
*~
|
*~
|
||||||
.eggs/
|
.eggs/
|
||||||
.ropeproject/
|
.ropeproject/
|
||||||
|
*.qcow2
|
||||||
|
|
||||||
# Files created by releasenotes build
|
# Files created by releasenotes build
|
||||||
releasenotes/build
|
releasenotes/build
|
||||||
|
@ -30,7 +30,7 @@ fi
|
|||||||
|
|
||||||
if [ "$1" == "add" ]; then
|
if [ "$1" == "add" ]; then
|
||||||
|
|
||||||
if [ -x "$(sudo bash -c 'command -v nft')" ]; then
|
if [ -x "$(command -v nft)" ]; then
|
||||||
# Note: inet for nat requires a 5.2 or newer kernel.
|
# Note: inet for nat requires a 5.2 or newer kernel.
|
||||||
if [ "$2" == "ipv4" ]; then
|
if [ "$2" == "ipv4" ]; then
|
||||||
nft add table ip octavia-ipv4
|
nft add table ip octavia-ipv4
|
||||||
@ -77,7 +77,7 @@ if [ "$1" == "add" ]; then
|
|||||||
|
|
||||||
elif [ "$1" == "delete" ]; then
|
elif [ "$1" == "delete" ]; then
|
||||||
|
|
||||||
if [ -x "$(sudo bash -c 'command -v nft')" ]; then
|
if [ -x "$(command -v nft)" ]; then
|
||||||
if [ "$2" == "ipv4" ]; then
|
if [ "$2" == "ipv4" ]; then
|
||||||
nft flush chain ip octavia-ipv4 ip-udp-masq
|
nft flush chain ip octavia-ipv4 ip-udp-masq
|
||||||
nft delete chain ip octavia-ipv4 ip-udp-masq
|
nft delete chain ip octavia-ipv4 ip-udp-masq
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixed issue with SELinux and the lvs-masquerade.sh script on the amphora.
|
||||||
|
The script already runs with root permissions, so the use of sudo inside the
|
||||||
|
script is unneeded.
|
Loading…
Reference in New Issue
Block a user