summaryrefslogtreecommitdiff
path: root/tests/unittests/test_datasource/test_configdrive.py
diff options
context:
space:
mode:
authorVlastimil Holer <vlastimil.holer@gmail.com>2014-01-28 14:15:20 -0500
committerScott Moser <smoser@ubuntu.com>2014-01-28 14:15:20 -0500
commit06c80d8b0dcb8cf1013885fc745bf48d57b39ce4 (patch)
tree30715a23e7b6d5f15c746167302e86082e460b55 /tests/unittests/test_datasource/test_configdrive.py
parent0be4922d92e874b2e3300bdde65829cdb6569524 (diff)
parent7659f06379122218e11ef445cd1f435ea5e74f40 (diff)
downloadvyos-cloud-init-06c80d8b0dcb8cf1013885fc745bf48d57b39ce4.tar.gz
vyos-cloud-init-06c80d8b0dcb8cf1013885fc745bf48d57b39ce4.zip
util.is_ipv4: realize that 0 is a valid number in a ipv4 address.
Due to bug in function "cloudinit.util.is_ipv4" an IPv4 address with zero (0) at any component wasn't evaluated as IPv4 address. E.g.: having local datasource with 192.168.0.1 in meta-data/local-hostname. The correct behaviour would be to generate ip-192-168-0-1 hostname. With this bug, the hostname (with IPv4) was considered as FQDN (no IPv4 inside) and just first component (supposed to be hostname there) was taken. It generated hostname "192". Fixes for SmartOS datasource 1. fixed conflation of user-data and cloud-init user-data. Cloud-init user-data is now namespaced as 'cloud-init:user-data'. 2. user-scripts (not user-data) are now fetched from the meta-data service each boot and executed as in the scripts directory 3. datacenter name is now namespaced as sdc:datacenter 4. user-scripts will now have '#!/bin/bash' magically prepended if the 'file' thinks its plain text and it does not start with '#!' read_file_or_url: raise UrlError with 404 on ENOENT This makes it easier to call read_file_or_url and handle file or url errors. Now read_file_or_url will raise a UrlError in either case on errors.
Diffstat (limited to 'tests/unittests/test_datasource/test_configdrive.py')
0 files changed, 0 insertions, 0 deletions