Merge ~smoser/cloud-init:fix/brightbox-less-matchy into cloud-init:master
Proposed by
Scott Moser
Status: | Merged |
---|---|
Approved by: | Ryan Harper |
Approved revision: | f8b0b19b2f0b985dbce7d1b85d75d0cc931283e1 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~smoser/cloud-init:fix/brightbox-less-matchy |
Merge into: | cloud-init:master |
Diff against target: |
71 lines (+16/-5) 3 files modified
cloudinit/sources/DataSourceEc2.py (+1/-1) tests/unittests/test_ds_identify.py (+14/-2) tools/ds-identify (+1/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ryan Harper | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Dan Watkins | Approve | ||
Neil Wilson | Pending | ||
Review via email: mp+372622@code.launchpad.net |
Commit message
Brightbox: restrict detection to require full domain match .brightbox.com
The detection for brightbox in both ds-identify and in
identify_brightbox would incorrectly match the domain 'bobrightbox',
which is not a brightbox platform. The fix here is to restrict
matching to '*.brightbox.com' rather than '*brightbox.com'
Also, while here remove a url to bug 1661693 which added the
knowledge of brightbox.
Description of the change
see commit message
To post a comment you must log in.
Just for reference, bug 1661693 has some real collected output that shows:
$ ( cd /sys/class/dmi/id && sudo grep -r . . ) 2>/dev/null serial: srv-fajvm. gb1.brightbox. com vendor: Seabios version: RHEL 6.6.0 PC runtime_ active_ kids:0 runtime_ suspended_ time:0 runtime_ enabled: disabled runtime_ active_ time:0 control: auto async:disabled runtime_ usage:0 runtime_ status: unsupported vendor: Red Hat dmi:bvnSeabios: bvr0.5. 1:bd01/ 01/2007: svnRedHat: pnKVM:pvrRHEL6. 6.0PC:cvnRedHat :ct1:cvr: uuid:D5BF3AE9- 7D9C-2923- 0B1E-B0ED967E7D F0 version: 0.5.1 MODALIAS= dmi:bvnSeabios: bvr0.5. 1:bd01/ 01/2007: svnRedHat: pnKVM:pvrRHEL6. 6.0PC:cvnRedHat :ct1:cvr: date:01/ 01/2007
./product_
./bios_
./product_
./power/
./power/
./power/
./power/
./power/
./power/
./power/
./power/
./chassis_
./modalias:
./product_
./bios_
./sys_vendor:Red Hat
./chassis_type:1
./uevent:
./product_name:KVM
./bios_