Merge lp:~kiril-vladimiroff/cloud-init/cloudsigma-smbios-data-check into lp:~cloud-init-dev/cloud-init/trunk
Proposed by
Kiril Vladimiroff
Status: | Merged |
---|---|
Merged at revision: | 975 |
Proposed branch: | lp:~kiril-vladimiroff/cloud-init/cloudsigma-smbios-data-check |
Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
Diff against target: |
80 lines (+28/-1) 3 files modified
cloudinit/cs_utils.py (+5/-1) cloudinit/sources/DataSourceCloudSigma.py (+22/-0) tests/unittests/test_datasource/test_cloudsigma.py (+1/-0) |
To merge this branch: | bzr merge lp:~kiril-vladimiroff/cloud-init/cloudsigma-smbios-data-check |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Needs Fixing | ||
Review via email: mp+221524@code.launchpad.net |
Description of the change
Changes made to the CloudSigma DS:
- Add timeouts for reading/writting from/to the serial console
- Check if the cloud-init is running in CloudSigma's infrastructure before trying to fetch data from its serial console (Fixes #1316475)
To post a comment you must log in.
This looks reasonable. I only have a few minor comments: in_clouds' check? examples/ cloud-config- datasources. txt has examples of other configuration that datasources have. I might just suggest:
system_ product_ name: (null|cloudsigma)
a.) READ_TIMEOUT and WRITE_TIMEOUT of 60 seconds and 10 seconds seem a bit high to me. Is there a need for that to be so high? I suspect if the other end of your datasource did not return in < 5 seconds to a query that you'd be looking to fix that very quickly.
b.) did you want to allow configuration of the string 'cloudsigma' and/or the 'is_running_
doc/
datasource:
CloudSigma:
If null then do not bother checking. If set to some other value (such as 'cloudsigma') then check and disable if not present.
I'd like the timeouts lowered unless you have a good reason for them to be so high( as we've seen negative fallout of this already). I'm fine to take it without the configuration though. That part is up to you.