Merge ~smoser/ubuntu/+source/open-iscsi:bug/1715468-test-support-systemd-resolved into ~usd-import-team/ubuntu/+source/open-iscsi:ubuntu/devel
| Status: | Merged |
|---|---|
| Merge reported by: | ChristianEhrhardt |
| Merged at revision: | ad9e6fc6359cabb1930616d2f27d06eac52d2513 |
| Proposed branch: | ~smoser/ubuntu/+source/open-iscsi:bug/1715468-test-support-systemd-resolved |
| Merge into: | ~usd-import-team/ubuntu/+source/open-iscsi:ubuntu/devel |
| Diff against target: |
226 lines (+98/-27) 4 files modified
debian/changelog (+8/-0) debian/tests/README-boot-test.md (+2/-2) debian/tests/patch-image (+21/-3) debian/tests/test-open-iscsi.py (+67/-22) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| ChristianEhrhardt | 2017-09-06 | Approve on 2017-09-11 | |
| Canonical Server Team | 2017-09-07 | Pending | |
|
Review via email:
|
|||
Description of the Change
Change open-icsi's test to support checking systemd-resolved for dns info.
open-iscsi has a test case where it boots a system off a read-only iscsi
root device. It verifies the system starts up and shuts down successfully.
It also verifies that the dns 'search' and 'nameserver' entries provided
by the dhcp server are used by the system.
In the past, it did this just by reading asserting those values
were in /etc/resolv.conf. The change made was to also support reading
output of 'systemd-resolved --status'.
The text will still fail in current artful because of bug 1713803.
| Scott Moser (smoser) wrote : | # |
| ChristianEhrhardt (paelzer) wrote : | # |
Added the server team review slot to show up in the active reviews for all of us to be picked up as time permits.
| ChristianEhrhardt (paelzer) wrote : | # |
I know the actual test is Ubuntu Delta we added and not in Debian.
I reviewed the code and on that level agree to the changes.
I don't like that this is a "fix the test" change but the test is still failing (due to the other bug). As a workaround I ran the new .dsc through autopkgtest with a rebuild on zesty.
It passed the "testsuite" test which the MP is modifying.
I gave it a shot on Artful as well and it failed with the known issue of:
File "/tmp/autopkgte
(dns_addr, resolve_status)))
AssertionError: 10.1.1.4 not in systemd-resolve status: Global
Debian:
debian/
Other fixes:
Reading into 1713803 that will be fixed in an upload to another package. So on this migration you will again run into "always failed" and migrate.
That todo is already tracked in the bugs you have open, so that is ok I guess.
@Scott if the error in artful above is really expected then ack - is it?
- be1911c... by Scott Moser on 2017-09-07
- 33de4ec... by Scott Moser on 2017-09-07
- ad9e6fc... by Scott Moser on 2017-09-07
| Scott Moser (smoser) wrote : | # |
Christian,
I do not believe that 'debian/
$ git show pkg/debian/
fatal: Path 'debian/
It is really just part of the delta for that test we've added.
I've done some modifications to make the test easier to run for development. On our dev system 'diglett', which runs artful I've done:
$ sudo ISCSI_TEST_
and that passes.
$ sudo ISCSI_TEST_
will fail as the dns is legitimately broken.
| ChristianEhrhardt (paelzer) wrote : | # |
Yeah as I mentioned in IRC I was doing the test on zesty as well but with the new package being built and it worked.
Sorry for asking on the patch-image it is clearly part of our Delta, was just not part of the same commit that added the rest. But that said:
1. test ok
2. fixing/improving the test
3. code review LGTM
=> Approve
And as you outline the "remaining" issue is already tracked in another bug.
So please go ahead and tag + upload or let me know if you want me to do so.
| ChristianEhrhardt (paelzer) wrote : | # |
Hi Scott,
I found your question on IRC.
Nish explained, but I still don't see an upload so following your request to do so.
I (git ubuntu lint) just found you still had set UNRELEASED.
But I can fix that up on tag/merge.
I tagged, pushed - verified the dsc debdiff matches the git one and sponsored it for you.
It is now at [1], please help tracking its build and proposed migration.
[1]: https:/


Note that this is still failing at the moment, as there is no solution for /bugs.launchpad .net/ubuntu/ +source/ initramfs- tools/+ bug/1713803
https:/
but that will be fixed separately.
we currently get a failure like this:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= _.CloudImageTes t) ------- ------- ------- ------- ------- ------- ------- ------- ------- tests/test- open-iscsi. py", line 287, in test_tgt_boot
16.172. in-addr. arpa
168.192. in-addr. arpa
17.172. in-addr. arpa
18.172. in-addr. arpa
19.172. in-addr. arpa
20.172. in-addr. arpa
21.172. in-addr. arpa
22.172. in-addr. arpa
23.172. in-addr. arpa
24.172. in-addr. arpa
25.172. in-addr. arpa
26.172. in-addr. arpa
27.172. in-addr. arpa
28.172. in-addr. arpa
29.172. in-addr. arpa
30.172. in-addr. arpa
31.172. in-addr. arpa
corp
d.f.ip6. arpa
home
internal
intranet
lan
local
private
test
FAIL: test_tgt_boot (__main_
-------
Traceback (most recent call last):
File "debian/
(dns_addr, resolve_status)))
AssertionError: 10.1.1.4 not in systemd-resolve status: Global
DNSSEC NTA: 10.in-addr.arpa
Link 2 (eth0)
Current Scopes: LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 3 tests in 74.603s