summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* d/control: add python3-pytest to Build-Depends (#247)ubuntu/daily/eoanDaniel Watkins2020-03-112-0/+10
| | | | | This fixes upstream daily builds. python3-nose is not removed from Build-Depends because, currently, the Ubuntu package builds will still use it for testing.
* releasing cloud-init version 19.4-33-gbb4131a2-0ubuntu1~19.10.1ubuntu/19.4-33-gbb4131a2-0ubuntu1_19.10.1Chad Smith2020-01-151-1/+1
|
* update changelog (New upstream snapshot 19.4-33-gbb4131a2).Chad Smith2020-01-151-0/+71
|
* merge from origin/master at 19.4-33-gbb4131a2Chad Smith2020-01-1596-2008/+2039
|\
| * Only use gpart if it is the BSD gpart (#131)Conrad Hoffmann2020-01-142-11/+44
| | | | | | | | | | | | | | | | | | | | | | | | Currently, cloud-init will happily try to run `gpart` on Linux even though on most distributions this a different tool [1]. Extend the availability check to make sure the `gpart` present is really the BSD variant, to avoid accidental execution. Also add a pointer to the docs, so that people do not try to install gpart on Linux in the expectation it will work with this module. [1] https://github.com/baruch/gpart
| * freebsd: remove superflu exception mapping (#166)Gonéri Le Bouder2020-01-141-10/+10
| | | | | | | | We often map exception when is not necessary. This commit clean up the FreeBSD distro file.
| * ssh_auth_key_fingerprints_disable test: fix capitalization (#165)Paride Legovini2020-01-101-1/+1
| | | | | | | | Adapt the test to the new capitalization introduced in 8116493950e7c47af0ce66fc1bb5d799ce5e477a.
| * util: move uptime's else branch into its own boottime function (#53)Igor Galić2020-01-092-10/+44
| | | | | | | | | | | | | | | | | | Also fix bugs: - pass binary instead of string to sysctlbyname(), and - unpack the "return value" in a struct, rather than in single integer. LP: #1853160 Co-Authored-By: Ryan Harper <ryan.harper@canonical.com>
| * workflows: add contributor license agreement checker (#155)Chad Smith2020-01-091-0/+29
| | | | | | | | | | | | | | | | | | | | | | Check whether the pull request submitter has signed the CLA due to presence of github.actor in tools/.lp-to-git-user Set 'CLA signed' if present, 'CLA not signed' label if absent * grep for the full github username in CLA file Co-authored-by: Daniel Watkins <daniel@daniel-watkins.co.uk>
| * lp-to-git-users: adding OddBloke (#159)Daniel Watkins2020-01-081-0/+1
| | | | | | | | Mapped from daniel-thewatkins
| * net: fix rendering of 'static6' in network config (#77)Ryan Harper2020-01-085-6/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * net: fix rendering of 'static6' in network config A V1 static6 network typo was misrendered in eni, it's not valid. It was ignored in sysconfig and netplan. This branch fixes eni, updates sysconfig, netplan to render it correctly and adds unittests for all cases. Reported-by: Raphaël Enrici LP: #1850988 * net: add comment about static6 type in subnet_is_ipv6 Co-authored-by: Chad Smith <blackboxsw@gmail.com> Co-authored-by: Daniel Watkins <daniel@daniel-watkins.co.uk>
| * lp-to-git-users: adding otubo (#135)Eduardo Otubo2020-01-081-0/+1
| | | | | | | | Mapped from otubo
| * Make tests work with Python 3.8 (#139)Conrad Hoffmann2020-01-083-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make DistroChecker test work with Python 3.8 In Python 3.8, `platform.linux_distribution` has been removed. This was anticipated, and the cloud-init code uses its own `util.get_linux_distro` instead, which works fine w/o `platform.linux_distribution`. However, these tests still try to mock the platform function, which fails if it doesn't exist (Python 3.8). Instead, mock the new function here, as this is a test for code that depends on it rather than the function itself. * Make GetLinuxDistro tests work with Python 3.8 In Python 3.8, `platform.dist` was removed, so allow mock to create the function by setting `create=True`. * Make linter happy in Python 3.8 Suppress E1101(no-member) as this function was removed.
| * lp-to-git-users: adding rjschwei (#158)Robert Schweikert2020-01-071-0/+1
| | | | | | Mapped from rjschwei
| * fixed minor bug with mkswap in cc_disk_setup.py (#143)andreaf742020-01-071-1/+3
| |
| * lp-to-git-users: adding andreaf74 (#157)andreaf742020-01-071-0/+1
| | | | | | Mapped from afranceschini
| * freebsd: fix create_group() cmd (#146)Gonéri Le Bouder2020-01-071-14/+15
| | | | | | | | | | | | | | The correct command to create a group if `pw group add foo`. In addition, this commit simplify a bit the logic: - simplify a block to avoid an extra level of indentation
| * lp-to-git-users: adding madhuri-rai07 (#156)Madhuri Kumari2020-01-071-0/+1
| | | | | | | | Mapped from madhuri-rai07
| * lp-to-git-users: adding ask0n (#150)Anton2020-01-071-0/+1
| | | | | | | | Mapped from askon
| * doc: make apt_update example consistent (#154)Daniel Watkins2020-01-061-1/+1
| | | | | | | | Other options near it use the non-default value, so the inconsistency has lead to confusion for readers.
| * doc: add modules page toc with links (#153)Chad Smith2020-01-061-0/+3
| | | | | | LP: #1852456
| * lp-to-git-users: adding karibou (#140)Louis Bouchard2020-01-061-0/+1
| | | | | | | | Mapped from louis
| * lp-to-git-users: adding pa-yourserveradmin-com (#145)Andrew Poltavchenko2019-12-271-0/+1
| | | | | | Mapped from andreipoltavchenko
| * Add support for the amazon variant in cloud.cfg.tmpl (#119)Frederick Lefebvre2019-12-202-5/+21
| |
| * ci: remove Python 2.7 from CI runs (#137)Daniel Watkins2019-12-202-5/+1
| | | | | | | | | | | | | | Specifically, drop it from the default list of environments that tox will run, and from Travis. (We retain the configuration in tox.ini for now, for any remaining Python 2.7 needs.)
| * modules: drop cc_snap_config config module (#134)Chad Smith2019-12-204-188/+2
| | | | | | | | | | | | | | | | cloud-init has moved to cc_snap module and a top-level config key 'snap'. cc_snap_config was deprecated in cloud-init version 18.2 Co-authored-by: Daniel Watkins <daniel@daniel-watkins.co.uk>
| * migrate-lp-user-to-github: ensure Launchpad repo exists (#136)Daniel Watkins2019-12-201-5/+7
| | | | | | | | | | | | * migrate-lp-user-to-github: remove unused option * migrate-lp-user-to-github: ensure Launchpad repo exists * migrate-lp-user-to-github: typo fix
| * docs: add initial troubleshooting to FAQ (#104)Joshua Powers2019-12-201-5/+200
| | | | | | | | docs: add initial troubleshooting to FAQ
| * doc: update cc_set_hostname frequency and descrip (#109)Joshua Powers2019-12-201-1/+9
| | | | | | | | | | | | | | | | | | doc: update cc_set_hostname frequency and descrip After fixing LP: #1746455 the docs for cc_set_hostname were not updated to indicate the change in frequency or why. LP: #1827021
| * freebsd: introduce the freebsd renderer (#61)Gonéri Le Bouder2019-12-2011-566/+427
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * freebsd: introduce the freebsd renderer Refactoring of the FreeBSD code base to provide a real network renderer for FreeBSD. Use the generic update_sysconfig_file() from rhel_util to handle the access to /etc/rc.conf. Interfaces are not automatically renamed by FreeBSD using the following configuration in /etc/rc.conf: ``` ifconfig_fxp0_name="eth0" ``` * freesd: use regex named groups Reduce the complexity of `get_interfaces_by_mac_on_freebsd()` with named groups. * freebsd: breaks up _write_network() in tree small functions - `_write_ifconfig_entries()` - `_write_route_entries()` - `_write_resolve_conf()` * extend find_fallback_nic() to support FreeBSD this uses `route -n show default` to find the default interface * freebsd: use dns keys from NetworkState class The NetworkState class (settings instance) exposes the DNS configuration in two keys: - `dns_nameservers` - `dns_searchdomains` On OpenStack, these keys are set when a global DNS server is set. The alternative is the `dns_nameservers` and `dns_search` keys from each subdomain. We continue to read those. * freebsd: properly target the /etc/resolv.conf file * freebsd: ignore 'service routing restart' ret code On FreeBSD 10, the restart of routing and dhclient is likely to fail because - routing: it cannot remove the loopback route, but it will still set up the default route as expected. - dhclient: it cannot stop the dhclient started by the netif service. In both case, the situation is ok, and we can proceed. * freebsd: handle case when metadata MAC local locally Handle the case where the metadata configuration comes with a MAC that does not exist locally. See: - https://github.com/canonical/cloud-init/pull/61/files/635ce14b3153934ba1041be48b7245062f21e960#r359600604 - https://github.com/canonical/cloud-init/pull/61/files/635ce14b3153934ba1041be48b7245062f21e960#r359600966 * freebsd: show up a warning if several subnet found The FreeBSD provider currently only allow one subnet per interface. * freebsd: honor the target parameter in _write_network * freebsd: log when a bad route is found * freebsd: pass _postcmds to start_services() * freebsd: updatercconf() is depercated Replace `updatercconf()` by `rhel_util.update_sysconfig_file()`. * freebsd: ensure gateway is ipv4 before using it With the legacy ENI format, an IPv6 gateway may be pushed. This instead of the expected IPv4. * freebsd: find_fallback_nic, support FB10 On FreeBSD <= 10, `ifconfig -l` ignores the down interfaces. * freebsd: use util.target_path() to load resolv.conf Ensure we access `/etc/resolv.conf`, not `etc/resolv.conf`. * freebsd: skip subnet without netmask Those are likely to be either invalid of in IPv6 format. IPv6 support will be addressed later in a new patchset. * freebsd: get_devicelist returns netif list Ensure `get_devicelist()` returns the list of known netif on FreeBSD. * replace rhel_util.update_sysconfig_file wrapper call, with a wrapper function * reverse if condition to remove an indent Co-authored-by: Igor Galić <me+github@igalic.co>
| * cc_snappy: remove deprecated module (#127)Daniel Watkins2019-12-197-965/+0
| | | | | | | | | | | | * cc_snappy: remove deprecated module * cloud_tests: remove cc_snappy tests (and references) This module was deprecated in favor of cc_snap in cloud-init v.18.2
| * lp-to-git-users: adding goneri (#133)Gonéri Le Bouder2019-12-191-0/+1
| | | | | | Mapped from goneri
| * HACKING.rst: clarify that everyone needs to do the LP->GH dance (#130)Daniel Watkins2019-12-191-6/+7
| | | | | | | | The previous language suggested that only people who had signed the CLA previously needed to prove their GH identity, which is not the case.
| * freebsd: cloudinit service requires devd (#132)Gonéri Le Bouder2019-12-191-1/+1
| | | | | | Depends on devd to be sure the NIC device drivers are loaded in time.
| * cloud-init: fix capitalisation of SSH (#126)Daniel Watkins2019-12-1819-44/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cc_ssh: fix capitalisation of SSH * doc: fix capitalisation of SSH * cc_keys_to_console: fix capitalisation of SSH * ssh_util: fix capitalisation of SSH * DataSourceIBMCloud: fix capitalisation of SSH * DataSourceAzure: fix capitalisation of SSH * cs_utils: fix capitalisation of SSH * distros/__init__: fix capitalisation of SSH * cc_set_passwords: fix capitalisation of SSH * cc_ssh_import_id: fix capitalisation of SSH * cc_users_groups: fix capitalisation of SSH * cc_ssh_authkey_fingerprints: fix capitalisation of SSH
| * doc: update cc_ssh clarify host and auth keysJoshua Powers2019-12-181-40/+49
| | | | | | | | | | | | * Add headers for Authorized and Host key sections, move the authorized section up as it is probably more relevant. LP: #1827021
| * ci: emit names of tests run in Travis (#120)Daniel Watkins2019-12-182-3/+11
| | | | | | | | This makes it easier to debug differences in test behaviour between Travis and local developer environments.
| * Release 19.419.4Chad Smith2019-12-182-1/+77
| | | | | | | | | | Bump the version in cloudinit/version.py to be 19.4 and update ChangeLog. LP: #1856761
| * rbxcloud: fix dsname in RbxCloudAdam Dobrawy2019-12-181-0/+1
| | | | | | | | LP: #1855196
| * tests: Add tests for value of dsname in datasourcesAdam Dobrawy2019-12-181-1/+12
| |
| * apport: Add RbxCloud dsAdam Dobrawy2019-12-181-1/+3
| |
| * docs: Updating index of datasourcesAdam Dobrawy2019-12-181-2/+3
| | | | | | | | | | - Added RbxCloud - Sorted alphabetically
| * docs: Fix anchor of datasource_rbxAdam Dobrawy2019-12-181-1/+1
| |
| * settings: Add RbxCloudAdam Dobrawy2019-12-181-0/+1
| |
| * doc: specify _ over - in cloud config modulesJoshua Powers2019-12-171-0/+12
| | | | | | | | | | | | | | Start a design decision area in HACKING to capture highlevel decisions. First example is to capture the use of _ over - in cloud config modules. LP: #1293254
| * tools: Detect python to use via env in migrate-lp-user-to-githubAdam Dobrawy2019-12-171-1/+1
| | | | | | Reduce incosistency and allow use virtualenv for launchpad packages.
| * lp-to-git-users: adding ad-mAdam Dobrawy2019-12-171-0/+1
| | | | | | Mapped from adobrawy
| * Partially revert "fix unlocking method on FreeBSD" (#116)Daniel Watkins2019-12-171-1/+1
| | | | | | | | | | | | | | | | Specifically, revert the changes to logic which are incorrect. The testing introduced is for a separate part of the codebase, so is retained. This (partially) reverts commit e2840f1771158748780a768f6bfbb117cd7610c6.
| * tests: mock uid when running as root (#113)Joshua Powers2019-12-161-7/+21
| | | | | | | | | | | | | | | | The query command checks the user's uid when running and takes two different code paths. As a normal user is returns fake data, that these tests were expecting. As a root user, the actual user and vendor data files are ready. LP: #1856096
| * cloudinit/netinfo: remove unused getgateway (#111)Daniel Watkins2019-12-131-12/+0
| |