File: allow-_enable_ipv6_nic_webserver-ip-addr-add-to-fail.patch

package info (click to toggle)
octavia-tempest-plugin 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,936 kB
  • sloc: python: 20,153; sh: 47; makefile: 24
file content (21 lines) | stat: -rw-r--r-- 989 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Allow "ip address add {0}/{1} dev eth0"
 This code is for Cirros, and crashes in Debian, where it's not needed
 anyways, as the IPv6 is already added.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2025-01-30

Index: octavia-tempest-plugin/octavia_tempest_plugin/tests/test_base.py
===================================================================
--- octavia-tempest-plugin.orig/octavia_tempest_plugin/tests/test_base.py
+++ octavia-tempest-plugin/octavia_tempest_plugin/tests/test_base.py
@@ -1202,7 +1202,8 @@ class LoadBalancerBaseTestWithCompute(Lo
         linux_client.validate_authentication()
 
         linux_client.exec_command('sudo ip address add {0}/{1} dev '
-                                  'eth0'.format(ipv6_address, ipv6_prefix))
+                                  'eth0'.format(ipv6_address, ipv6_prefix) +
+                                  ' || true')
 
     @classmethod
     def _validate_webserver(cls, ip_address, start_id):