Merge ~ruansx/cloud-init:add-zstack-datasource into cloud-init:master
Proposed by
Steve Ruan
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Scott Moser | ||||
Approved revision: | faac76e6adbfbab9e1e3ea59089611e7f95a1532 | ||||
Merge reported by: | Server Team CI bot | ||||
Merged at revision: | not available | ||||
Proposed branch: | ~ruansx/cloud-init:add-zstack-datasource | ||||
Merge into: | cloud-init:master | ||||
Diff against target: |
198 lines (+94/-2) 7 files modified
cloudinit/apport.py (+1/-0) cloudinit/sources/DataSourceEc2.py (+15/-1) doc/rtd/topics/datasources.rst (+1/-0) doc/rtd/topics/datasources/zstack.rst (+36/-0) tests/unittests/test_datasource/test_ec2.py (+28/-0) tests/unittests/test_ds_identify.py (+8/-1) tools/ds-identify (+5/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Scott Moser | Approve | ||
Review via email: mp+372445@code.launchpad.net |
Commit message
Add datasource for ZStack platform.
Zstack platform provides a AWS Ec2 metadata service, and
identifies their platform to the guest by setting the 'chassis asset tag'
to a string that ends with '.zstack.io'.
LP: #1841181
To post a comment you must log in.
Quick review things: /test_ds_ identify. py should be fairly to understand and update for Zstack /test_datasourc e/test_ zstack. py topics/ datasources/ zstack. rst and update doc/rtd/ topics/ datasources. rst to reference it. See Exoscale for a recently added datasource example.
* make a better commit message (the 'Commit message` above will be be used when this is ultimately squashed and merged)
* add 'LP: #1841181' to your commit message. See git log for examples. Thats how MPs get associated with bugs.
* Tests needed.
* tests/unittests
* Probably add a tests/unittests
* Add doc/rtd/
* Did you check to see if simply adding Zstack in the same way as BrightBox is added would work? That could be even less code.