neutron-tempest-plugin/neutron_tempest_plugin/common
Brian Haley 52582a0c12 Always run iptables-save as root
When there is a failure and we run commands to collect
network information, the iptables-save command always
fails in the root namespace:

  Executing command 'iptables-save' on local host (timeout=None)...
  Command 'iptables-save' failed (exit_status=4):
  stderr:
  iptables-save v1.8.7 (nf_tables): Could not fetch rule set
    generation id: Permission denied (you must be root)

Change list_iptables() to always use sudo fixes the issue.

Trivialfix

Change-Id: I656569cb333e98f5f55b51b0cfec8e99922424b3
2023-05-11 11:45:13 -04:00
..
__init__.py Refactored Neutron tempest plugin directory structure 2017-11-13 09:19:11 +05:30
constants.py Improve security groups management. 2018-11-14 13:03:09 +01:00
ip.py Always run iptables-save as root 2023-05-11 11:45:13 -04:00
shell.py Stop using not existing ShellCommandError exception class 2020-02-06 10:44:16 +01:00
ssh.py Honour ssh_key_type config for keypair and ssh clients 2022-03-08 19:34:16 +05:30
tempest_fixtures.py Refactored Neutron tempest plugin directory structure 2017-11-13 09:19:11 +05:30
utils.py Use StatefulConnection class to verify connectivity in SG tests 2022-08-16 17:15:01 +03:00