Merge lp:~dannf/maas-images/arm64-netinst-restructure into lp:maas-images
Proposed by
dann frazier
Status: | Merged |
---|---|
Merged at revision: | 218 |
Proposed branch: | lp:~dannf/maas-images/arm64-netinst-restructure |
Merge into: | lp:maas-images |
Diff against target: |
52 lines (+18/-3) 1 file modified
meph2/netinst.py (+18/-3) |
To merge this branch: | bzr merge lp:~dannf/maas-images/arm64-netinst-restructure |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
maintainers of maas images | Pending | ||
Review via email: mp+250338@code.launchpad.net |
To post a comment you must log in.
for reference... here is what I did to verify this is sane.
- added bin/netboot-mirror and README.di-scraping
these probalby woudl have been helpful for you.. in seeing what is going
on. and explaining things.
- ran from your proposed merge: netboot- mirror --no-item-download out-new.d netboot- mirror --no-item-download out-old.d
./bin/
and from original:
./bin/
That created out-old.d and out-new.d which contains streams data for the NetbootMirrorReader
- got a list of fields in there, and flattened and sorted output. d/streams/ v1/com. ubuntu. installer: released: netboot. json installer: released: netboot' , format' : 'default', default' , d/files/ utopic/ i386/20101020ub untu349/ utopic/ generic/ kernel. default' , flavor' : 'generic', release' : 'utopic', 9684447bf54fd02 ce9', utopic/ i386/20101020ub untu349/ utopic/ generic/ kernel. default' , name': 'com.ubuntu. installer: netboot: 14.10:i386' , b1ceb591bb425fd 85d3735e2306de2 4a1e4345de01a20 9017c', name': '20101020ubuntu 349'}
run:
sstream-query --pretty out-old.
That dumps all fields for each item... looks like:
{'arch': 'i386',
'basename': 'linux',
'content_id': 'com.ubuntu.
'format': 'products:1.0',
'ftype': 'kernel',
'image-
'item_name': 'ututgenke0.
'item_url': 'out-old.
'kernel-
'kernel-
'md5': '4237d65fc81b90
'path': 'files/
'pocket': 'release',
'product_
'pubdate': 'Fri, 17 Oct 2014 15:53:00 +0000',
'release': 'utopic',
'sha256': '479619cc6522ef
'size': '6077104',
'version': '14.10',
'version_
- cleaned up the list of fields i wanted to compare to make sure old and new are similar.
then, sorted that output and diffed them.
base= "%(product_ name)s/ %(version_ name)s/ %(item_ name)s" "%(release) s %(version)s %(pocket)s %(kernel-flavor)s %(ftype)s %(image-format)s %(kernel-release)s %(md5)s %(path)s" streams/ v1/com. ubuntu. installer: released: netboot. json
extra=
path=
sstream-query --output- format= "$base $extra" out-old.d/$path | sort > old.list format= "$base $extra" out-new.d/$path | sort > new.list
sstream-query --output-
Then, just diff them paste.ubuntu. com/11503207/
http://
Your new had only new entries, and only in wily... so that seems good.