Merge ~smoser/ubuntu/+source/open-iscsi:bug/1785108-net-interface-handler-runs-always into ubuntu/+source/open-iscsi:ubuntu/devel
Proposed by
Scott Moser
Status: | Merged |
---|---|
Merged at revision: | d668e0c6b50ace3fdfaac06b5cd525814f24dd8f |
Proposed branch: | ~smoser/ubuntu/+source/open-iscsi:bug/1785108-net-interface-handler-runs-always |
Merge into: | ubuntu/+source/open-iscsi:ubuntu/devel |
Diff against target: |
168 lines (+53/-13) 6 files modified
debian/changelog (+10/-0) debian/net-interface-handler (+18/-4) debian/tests/README-boot-test.md (+7/-5) debian/tests/test-open-iscsi.py (+15/-1) debian/tests/tgt-boot-test (+1/-1) debian/tests/xkvm (+2/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christian Ehrhardt (community) | Approve | ||
Review via email: mp+352215@code.launchpad.net |
Commit message
net-interface-
net-interface-
interface for all network device adds and it "down" for all the removes.
The quotes are used above because the design point of the script is to
basically fake ifupdown into believing the event already occurred.
The change here is to only operate when the INTERFACE provided by
udev is the iscsi root device.
LP: #1785108
Description of the change
see commit message
To post a comment you must log in.
I know these env vars are defined by the caller, but shouldn't we do a minimal bit of
[ -n $INTERFACE ] || return
before using it?
After wondering about this I found that it is done at least for some variables like DOMAINSEARCH below. I know that those are optional and INTERFACE should be mandatory, but I'd feel better if it was checked before being used.
Other than that the change LGTM - up to you if you'd want to add a check for some extra safety +1
I have not had a setup to test this on iscsi-root, but I assume you did so already on oracles cloud right?