Merge ~smoser/cloud-init:feature/gce-main into cloud-init:master
| Status: | Merged |
|---|---|
| Approved by: | Scott Moser on 2017-08-30 |
| Approved revision: | 16ef156113d8e4d21b6da2592b4f22ed2e21521b |
| Merged at revision: | 44529c1de0098ccd684b46b0bc18d48312c4097c |
| Proposed branch: | ~smoser/cloud-init:feature/gce-main |
| Merge into: | cloud-init:master |
| Diff against target: |
222 lines (+112/-70) 1 file modified
cloudinit/sources/DataSourceGCE.py (+112/-70) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Server Team CI bot | continuous-integration | Approve on 2017-08-29 | |
| Chad Smith | Approve on 2017-08-29 | ||
| Ryan Harper | 2017-08-22 | Approve on 2017-08-22 | |
|
Review via email:
|
|||
Commit Message
GCE: Add a main to the GCE Datasource.
This just adds a main to the GCE datasource so that it is easily
callable: python3 -m cloudinit.
| Ryan Harper (raharper) wrote : | # |
Nice!
If we're in here, we could update the metadata header:
Metadata-Flavor: Google
https:/
which says:
When you query for metadata, you must provide the following header in all of your requests:
Metadata-Flavor: Google
This header indicates that the request was sent with the intention of retrieving metadata values, rather than unintentionally from an insecure source, and allows the metadata server to return the data you requested. If you do not provide this header, the metadata server denies your request.
Note: Previously, the X-Google-
- 78332b6... by Scott Moser on 2017-08-29
- 16ef156... by Scott Moser on 2017-08-29
| Scott Moser (smoser) wrote : | # |
I addressed your one nit, and then wrapped log_time around the read_md call.
| Scott Moser (smoser) wrote : | # |
and also tested that on a gce instance.
smoser@
cloud-init 0.7.9-256-
smoser@
2017-08-29 18:17:45,142 - util.py[DEBUG]: Crawl of GCE metadata service took 0.051 seconds
| Chad Smith (chad.smith) wrote : | # |
+1 on the additional event logging for analyze +1 when CI finishes
PASSED: Continuous integration, rev:78332b64356
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild:
https:/
PASSED: Continuous integration, rev:16ef156113d
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild:
https:/


PASSED: Continuous integration, rev:f3182aac49c b8d1df42775fb2f e26bb33f207425 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 184/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 184/rebuild
https:/