summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test_upgrade: add some missing commastest_upgradeDaniel Watkins2021-01-121-2/+2
|
* integration_tests: add integration test for LP: #1910835 (#761)Daniel Watkins2021-01-122-0/+67
|
* Fix regression with handling of IMDS ssh keys (#760)Thomas Stringer2021-01-112-1/+11
| | | | | | | | | With the changes for SSH public keys to be retrieved from IMDS as a first option, when a key is passed through not in the raw SSH public key format it causes an issue and the key is not added to the user's authorized_keys file. This PR will temporarily disable this behavior until a permanent fix is put in place.
* integration_tests: log cloud-init version in SUT (#758)Daniel Watkins2021-01-081-1/+8
|
* Add ajmyyra as contributor (#742)Antti Myyrä2021-01-081-0/+1
|
* net_convert: add some missing help text (#755)Daniel Watkins2021-01-071-3/+6
|
* Missing IPV6_AUTOCONF=no to render sysconfig dhcp6 stateful on RHEL (#753)Eduardo Otubo2021-01-072-0/+2
| | | | | | | | IPV6_AUTOCONF needs to be set to 'no' on RHEL so NetworkManager can properly acquire ipv6 address. rhbz: #1859695 Signed-off-by: Eduardo Otubo <otubo@redhat.com>
* doc: document missing IPv6 subnet types (#744)Antti Myyrä2021-01-071-2/+14
| | | | | Added some missing IPv6 subnet configuration types (ipv6_dhcpv6-stateful, ipv6_dhcpv6-stateless, ipv6_slaac) to Networking config v1 documentation.
* Add example configuration for datasource `AliYun` (#751)Xiaoyu Zhong2021-01-071-0/+15
|
* integration_tests: add SSH key selection settings (#754)Daniel Watkins2021-01-062-0/+21
| | | | | | This introduces PUBLIC_SSH_KEY, to configure what public SSH key should be used to access systems under test, and KEYPAIR_NAME, to configure the name used in clouds for that SSH key (or the default SSH key, in PUBLIC_SSH_KEY's absence).
* fix a typo in man page cloud-init.1 (#752)Amy Chen2021-01-062-1/+2
| | | | 1. fix a typo in cloud-init.1 2. add xiachen-rh as contributor
* network-config-format-v2.rst: add Netplan Passthrough section (#750)Daniel Watkins2021-01-051-4/+17
| | | | | We don't currently document our passthrough behaviour, which has lead to some user confusion about what they can rely upon on Ubuntu systems. This clarifies our support.
* stale: re-enable post holidays (#749)Daniel Watkins2021-01-041-3/+3
| | | | | | This reverts commits fad919aa2c894abaa3af88aed1e064c1220937fe ("stale: disable check for holiday break (#735)") and e4f2d6139a802e659c571f581763eddeee715e2f ("stale: fix error in definition (#740)").
* integration_tests: port ca_certs tests from cloud_tests (#732)Daniel Watkins2021-01-041-0/+91
|
* Azure: Add telemetry for poll IMDS (#741)Johnson Shi2021-01-041-0/+1
|
* doc: move testing section from HACKING to its own doc (#739)Daniel Watkins2020-12-185-159/+183
| | | | | | | | Our HACKING doc is very long, making it hard to justify expanding or restructuring its content too much. This moves the testing section to its own doc, and adds section headers in to make finding/linking to testing guidelines easier. To avoid confusion, the title of debugging.rst is changed.
* No longer allow integration test failures on travis (#738)James Falcon2020-12-181-3/+1
|
* stale: fix error in definition (#740)Daniel Watkins2020-12-181-1/+1
| | | | This should fix the error, and also allows us to manually trigger the workflow.
* integration_tests: set log-cli-level to INFO by default (#737)Daniel Watkins2020-12-181-0/+17
| | | | | | | | This gives us more detailed integration testing output by default. This will make debugging failures reported by users/developers easier to debug, as it removes the need for an initial round-trip to get the output we need for debugging. It will also make debugging intermittent failures easier: there will definitely be log output from runs which exhibit the intermittent failure.
* PULL_REQUEST_TEMPLATE.md: use backticks around commit message (#736)Daniel Watkins2020-12-181-11/+13
| | | | | This makes it easier to copy/paste commit messages prepared elsewhere into the GitHub UI (and also means that the formatting in the GH UI more closely matches how the commit message will be consumed elsewhere).
* stale: disable check for holiday break (#735)Daniel Watkins2020-12-181-3/+3
| | | | We're unlikely to see any activity on many PRs over the next couple of weeks, so don't close out inactive PRs for the duration.
* integration_tests: log the path we collect logs into (#733)Daniel Watkins2020-12-181-0/+1
| | | | This makes it easier to find the failure logs when you're running a bunch of similar tests in parallel.
* .travis.yml: add (most) supported Python versions to CI (#734)Daniel Watkins2020-12-171-3/+12
| | | | This excludes Python 3.4, as there are currently test failures there; that will be addressed separately.
* integration_tests: fix IN_PLACE CLOUD_INIT_SOURCE (#731)Daniel Watkins2020-12-172-2/+3
| | | | This fixes up an issue introduced in 54e202a6480e48dbb8a72004f7a5003f7c4edfae.
* cc_ca_certs: add RHEL support (#633)cawamata2020-12-173-149/+267
| | | | This refactors cc_ca_certs to support non-ca-certificates distros, and adds RHEL support.
* Azure: only generate config for NICs with addresses (#709)Thomas Stringer2020-12-162-1/+47
| | | | Prevent network interfaces without IP addresses from being added to the generated network configuration.
* doc: fix CloudStack configuration example (#707)Olivier Lemasle2020-12-162-2/+1
| | | This commit removes lines which are invalid configuration.
* integration_tests: restrict test_lxd_bridge appropriately (#730)Daniel Watkins2020-12-151-0/+2
| | | | | | | | | On xenial, the bridge test fails because xenial's LXD doesn't include the `network` subcommand. On bionic, the bridge test fails within containers, because LXD isn't able to manipulate the host kernel as it expects. (focal and later do run successfully in containers, but we don't have a good way of expressing that presently.)
* Add integration tests for CLI functionality (#729)James Falcon2020-12-151-0/+45
| | | This currently covers functionality added in #575
* Integration test for gh-626 (#728)James Falcon2020-12-151-0/+42
| | | | Ensure if wakeonlan is specified in the network config that it is rendered in the /etc/network/interfaces or netplan config.
* Some test_upgrade fixes (#726)James Falcon2020-12-151-5/+18
| | | | | | - workaround pad.lv/1908287 for restarting instances - move wait param from launch_kwargs to launch call - remove name param as it's not universally supported - add platform to log names
* Ensure overriding test vars with env vars works for booleans (#727)James Falcon2020-12-151-1/+9
|
* integration_tests: port lxd_bridge test from cloud_tests (#718)Daniel Watkins2020-12-151-0/+46
|
* Integration test for gh-632. (#725)James Falcon2020-12-111-0/+30
| | | | Verify that if cloud-init is using DataSourceRbxCloud, there is no traceback if the metadata disk cannot be found.
* Integration test for gh-671 (#724)James Falcon2020-12-112-1/+56
| | | | | Verify that on Azure that if a default user and password are specified through the Azure API that a change in the default password overwrites the old password
* integration-requirements.txt: bump pycloudlib commit (#723)Daniel Watkins2020-12-101-1/+1
| | | | | This bump is required to be able to launch groovy and hirsute LXD VMs, as it includes https://github.com/canonical/pycloudlib/commit/ffd86ad7fe12f5aaa6e03b568f8958a69f698bf4
* Drop unnecessary shebang from cmd/main.py (#722)Eduardo Otubo2020-12-101-1/+0
| | | | | | | | | Fedora build system's rpmlint is complaining that there is a file with a shebang but no executable flag set. No need to have shebang on this file, so drop it. Signed-off-by: Eduardo Otubo <otubo@redhat.com> Co-authored-by: Scott Moser <smoser@brickies.net>
* Integration test for LP: #1813396 and #669 (#719)James Falcon2020-12-103-10/+41
| | | | | | Ensure gpg is called with --no-tty flag. Also, refactored the "ordered_items_in_text" to assert if the line is missing and provide a more useful error message.
* integration_tests: include timestamp in log output (#720)Daniel Watkins2020-12-091-0/+2
|
* integration_tests: add test for LP: #1898997 (#713)Daniel Watkins2020-12-094-6/+93
| | | | | | | | | | | | | | | integration_tests: add test for LP: #1898997 This introduces the `lxd_config_dict` mark, used to specify a free-form configuration dict to LXD for tests which only run there; and the `not_xenial` and `not_bionic` marks, used to skip tests on xenial/bionic via a basic release skipping mechanism. This also bumps the pycloudlib commit we depend upon, as the latest commit includes the changes required for LXD network config to work. (The `lxd_config_dict` change further complicated `_client`, so a minor refactoring is applied.)
* Add integration test for power_state_change module (#717)James Falcon2020-12-096-7/+119
| | | | Also introduce the `unstable` mark, to allow us to land tests which run inconsistently (such as this one).
* Update documentation for network-config-format-v2 (#701)ggiesen2020-12-091-6/+6
| | | | Update documentation for network-config-format-v2 to reflect the fact that routes are a per-interface property, not a global network property.
* sandbox CA Cert tests to not require ca-certificates (#715)Eduardo Otubo2020-12-091-8/+4
| | | | | | | CA Cert tests will fail on systems that don't have ca-certificates installed and configured. Signed-off-by: Daniel Watkins <oddbloke@ubuntu.com> Signed-off-by: Eduardo Otubo <otubo@redhat.com>
* Add upgrade integration test (#693)James Falcon2020-12-073-45/+175
| | | | | Add an integration test that roughly mimics many of the manual cloud SRU tests. Also refactored some of the image setup code to make it easier to use in non-fixture code.
* Integration test for 570 (#712)James Falcon2020-12-043-3/+43
| | | | | | | | Test that we can add optional vendor-data to the seedfrom file in a NoCloud environment. Also added the option to pass raise_on_cloudinit_failure through an instance restart so we get automatic failure checking when we need to manually reboot.
* Add ability to keep snapshotted images in integration tests (#711)James Falcon2020-12-042-5/+12
| | | | | | | | For SRU test development, every single time we start a new test run, we need to first install the PROPOSED version and create an image snapshot. Instead of automatically deleting a snapshot, add an integration setting to allow us to keep the snapshot. The end of the test run will log the image name which can then be used as the OS_IMAGE in subsequent test runs.
* Integration test for pull #586 (#706)James Falcon2020-12-034-0/+97
| | | | If a non-default AuthorizedKeysFile is specified in /etc/ssh/sshd_config, ensure we can still ssh as expected
* integration_tests: introduce skipping of tests by OS (#702)Daniel Watkins2020-12-0310-10/+122
| | | | | | | | | | | | | | | | | This introduces an optional, more complex OS_IMAGE format (`<image id>::<os>::<release>`) which allows the specification of the OS/OS release which the given image ID corresponds to. This information is used to skip tests which do not apply to the image. This commit is comprised of the following discrete changes: * introduce the IntegrationImage class, to handle parsing and storing the new OS_IMAGE format * support inferring the OS and OS release of Ubuntu series, so that we can continue to set OS_IMAGE to just a series name and have test skipping work * add documentation on Image Selection to integration_tests.rst * introduce the actual skipping behaviour based on OS marks * apply the `ubuntu` mark to all tests that should be skipped on non-Ubuntu operating systems
* integration_tests: introduce IntegrationInstance.restart (#708)Daniel Watkins2020-12-032-1/+12
| | | | | This wraps pycloudlib's `BaseInstance.restart` and `BaseInstance.wait` to pass the same parameters as on launch, to avoid cloud-init failures on the _reboot_ raising an exception.
* Add lxd-vm to list of valid integration test platforms (#705)James Falcon2020-12-021-0/+1
|