~raharper/curtin/trunk.fix-bcache-sysfs-write-failures-on-remove

« back to all changes in this revision

Viewing changes to tests/vmtests/test_network_ipv6_vlan.py

  • Committer: Scott Moser
  • Author(s): Ryan Harper
  • Date: 2017-07-27 17:26:02 UTC
  • mfrom: (504.2.78 centos-passthrough)
  • Revision ID: smoser@ubuntu.com-20170727172602-6x7fi8pg8ga41m38
pass network configuration through to target for ubuntu and centos

curtin will now query the in-target cloud-init for the NETWORK_CONFIG_V2
feature flag. If present, curtin will copy in any custom networking config
an defer rendering to cloud-init upon first boot. This function is also
implemented for Centos/Enterprise Linux distros.

Centos network curthooks has the following capabilities
  - Only runs when 'centos_network_curthooks: true' is passed in via
    curtin config. MAAS will modify centos built-in curthooks to use the
    centos_network_curthooks as needed.
  - If the target centos image does not contain a new enough cloud-init
    then the cloud-init-el-stable repo is configured and curtin installs
    epel-release, cloud-init and bridge-utils if needed

Additional VMtests were added for Centos66 and Centos70 covering all of
the network tests. Note that network_mtu is disabled as mixed v4 and ipv6
mtu settings are not supported in sysconfig.

Other useful features in this branch:
- tools/build-deb now lets users set the RELEASE value like:
  RELEASE=xenial ./tools/build-deb
  and the RELEASE value will be set in the changelog for the deb

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from .releases import base_vm_classes as relbase
2
 
from .test_network_vlan import TestNetworkVlanAbs
 
2
from .releases import centos_base_vm_classes as centos_relbase
 
3
from .test_network_vlan import (TestNetworkVlanAbs,
 
4
                                CentosTestNetworkVlanAbs)
3
5
 
4
6
 
5
7
class TestNetworkIPV6VlanAbs(TestNetworkVlanAbs):
6
8
    conf_file = "examples/tests/vlan_network_ipv6.yaml"
7
9
 
8
10
 
 
11
class CentosTestNetworkIPV6VlanAbs(CentosTestNetworkVlanAbs):
 
12
    conf_file = "examples/tests/vlan_network_ipv6.yaml"
 
13
 
 
14
 
9
15
class PreciseTestNetworkIPV6Vlan(relbase.precise, TestNetworkIPV6VlanAbs):
10
16
    __test__ = True
11
17
 
42
48
class ZestyTestNetworkIPV6Vlan(relbase.zesty, TestNetworkIPV6VlanAbs):
43
49
    __test__ = True
44
50
 
 
51
    @classmethod
 
52
    def setUpClass(cls):
 
53
        cls.skip_by_date(cls.__name__, cls.release, bugnum="ci-003c6678e",
 
54
                         fixby=(2017, 8, 16), removeby=(2017, 8, 31))
 
55
        super().setUpClass()
 
56
 
45
57
 
46
58
class ArtfulTestNetworkIPV6Vlan(relbase.artful, TestNetworkIPV6VlanAbs):
47
59
    __test__ = True
 
60
 
 
61
 
 
62
class Centos66TestNetworkIPV6Vlan(centos_relbase.centos66fromxenial,
 
63
                                  CentosTestNetworkIPV6VlanAbs):
 
64
    __test__ = True
 
65
 
 
66
 
 
67
class Centos70TestNetworkIPV6Vlan(centos_relbase.centos70fromxenial,
 
68
                                  CentosTestNetworkIPV6VlanAbs):
 
69
    __test__ = True