Merge ~rjschwei/cloud-init:netV1ToTranslate into cloud-init:master
| Status: | Needs review | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Proposed branch: | ~rjschwei/cloud-init:netV1ToTranslate | ||||||||
| Merge into: | cloud-init:master | ||||||||
| Diff against target: |
163 lines (+126/-1) 3 files modified
cloudinit/distros/net_util.py (+23/-1) cloudinit/distros/tests/__init__.py (+0/-0) cloudinit/distros/tests/test_net_util.py (+103/-0) |
||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Chad Smith | 2017-11-17 | Needs Information on 2017-11-29 | |
| Server Team CI bot | continuous-integration | Approve on 2017-11-27 | |
|
Review via email:
|
|||
Description of the Change
Handle network configuration translation for the legacy path, do not drop gateway information
- 4d3028d... by Robert Schweikert on 2017-11-19
FAILED: Continuous integration, rev:4d3028d8d08
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
FAILED: MAAS Compatability Testing
Click here to trigger a rebuild:
https:/
- 2f0c7c4... by Scott Moser on 2017-11-19
- 0bee235... by Scott Moser on 2017-11-20
- f8d7238... by Scott Moser on 2017-11-20
- 7d99045... by Ryan McCabe on 2017-11-20
- 36f7770... by Scott Moser on 2017-11-21
- 462d4c1... by Joshua Powers on 2017-11-22
| Chad Smith (chad.smith) wrote : | # |
Looking over the failure, that MAAS compatibility testing hit an issue with an include url test unrelated to your branch. Can you git fetch on master and git rebase your branch against master and re-push that branch up. It will contain the fix 6ad23fe9b11f07e
- ec12296... by Robert Schweikert on 2017-11-27
PASSED: Continuous integration, rev:462d4c1710f
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:/
| Robert Schweikert (rjschwei) wrote : | # |
@raharper and @chad.smith
Thanks for review and comments.
Fixed: Test location and IPv4 regular expression.
Comments and questions on the other info you provided.
As far as the test data is concerned, I kind of did a cut and paste from existing tests based on network configuration for the distros. I really have no idea what the various data sources can and cannot produce and what the debian/ubuntu format looks like. So test data that conforms to what the data sources produce would be better. If there is concrete data, that I should be using and have not used, please point me in that direction. Same can be applied to the suggested change of the search for "default gw", I agree that the proposed expression is more flexible, but does it need to be, i.e. do we have a data source where there is a varying space?
Yes there is always the risk that a new data source may format things differently, but the question would then be if we should compensate for such potential future discretions now or not.
PASSED: Continuous integration, rev:ec1229688e6
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:/
| Chad Smith (chad.smith) wrote : | # |
Robert, I agree on your suggestion to not be too flexible for future formats etc. So +1 on dropping my other re.match suggestion on 'default gw' handling. Yeah no need to waste resources planning for future-formats if we don't need to. Per your handling is duplicate (list type) entries in post-up, did you have specific use-cases in mind where multiple post-up commands are specified in /etc/network/
Unmerged commits
- ec12296... by Robert Schweikert on 2017-11-27
- 462d4c1... by Joshua Powers on 2017-11-22
- 36f7770... by Scott Moser on 2017-11-21
- 7d99045... by Ryan McCabe on 2017-11-20
- f8d7238... by Scott Moser on 2017-11-20
- 0bee235... by Scott Moser on 2017-11-20
- 2f0c7c4... by Scott Moser on 2017-11-19
- 8cd5461... by Chad Smith on 2017-11-17
- c8604c4... by Chad Smith on 2017-11-17
- 4d3028d... by Robert Schweikert on 2017-11-19


FAILED: Continuous integration, rev:0acc956dc47 0fa201577c2b126 7585217ed972d1 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 510/
https:/
Executed test runs:
SUCCESS: Checkout
FAILED: Unit & Style Tests
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 510/rebuild
https:/