diff options
author | Scott Moser <smoser@brickies.net> | 2017-03-01 15:50:40 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-03-03 01:30:15 -0500 |
commit | 79db2e2436d91510aceb8c036c4a945362c85a52 (patch) | |
tree | f26de3248c4d43d5935dd7c42750a08a7f43f804 /cloudinit/warnings.py | |
parent | 51a24555e5e7af709caa8dab1a5e6c7e7f317b17 (diff) | |
download | vyos-cloud-init-79db2e2436d91510aceb8c036c4a945362c85a52.tar.gz vyos-cloud-init-79db2e2436d91510aceb8c036c4a945362c85a52.zip |
Support warning if the used datasource is not in ds-identify's list.
If ds-identify is in report mode, and the datasource that is found
is not in the list, then warn the user of this situation.
Diffstat (limited to 'cloudinit/warnings.py')
-rw-r--r-- | cloudinit/warnings.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cloudinit/warnings.py b/cloudinit/warnings.py index 77c092f9..3206d4e9 100644 --- a/cloudinit/warnings.py +++ b/cloudinit/warnings.py @@ -35,6 +35,30 @@ putting that content into datasource: Ec2: strict_id: false""", + 'dsid_missing_source': """ +A new feature in cloud-init identified possible datasources for +this system as: + {dslist} +However, the datasource used was: {source} + +In the future, cloud-init will only attempt to use datasources that +are identified or specifically configured. +For more information see + https://bugs.launchpad.net/bugs/1669675 + +If you are seeing this message, please file a bug against +cloud-init at + https://bugs.launchpad.net/cloud-init/+filebug?field.tags=dsid +Make sure to include the cloud provider your instance is +running on. + +After you have filed a bug, you can disable this warning by launching +your instance with the cloud-config below, or putting that content +into /etc/cloud/cloud.cfg.d/99-warnings.cfg + +#cloud-config +warnings: + dsid_missing_source: off""", } |