[2.0b6] Installation log is not sent back to MAAS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Critical
|
Unassigned | ||
curtin |
Fix Released
|
Undecided
|
Unassigned | ||
curtin (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* MaaS deployments using curtin revno newer than 365 find that curtin
no longer sends the installation log file back to maas due to a
change in how the curtin reporter is configured.
This affects MaaS users looking to examine the install process of a
node.
* This SRU resolves the bug by changing the reporter configuration to
always send the install log independent of the log level
configured.
[Test Case]
* On a Xenial 16.04 system
- % apt-get install curtin
- In one shell download and run the report-
to this bug)
% python3 ./report-
- In second shell: run
% sudo curtin -vvv install \
--set install/
--set reporting/
--set reporting/
PASS: In the reporting shell, the reporter will recieve an event
like this with base64 encoded content.
{
"level": "ERROR",
"files": [
{
}
],
"result": "FAIL",
"name": "cmd-install",
"origin": "curtin",
}
FAIL: Reporter does not post an event with install log file.
[Regression Potential]
[Original Description]
Installation log is not sent back to back regardless of whether it being a successful or failed install.
Related branches
- Server Team CI bot: Approve (continuous-integration)
- curtin developers: Pending requested
-
Diff: 96 lines (+27/-15)2 files modifiedcurtin/reporter/handlers.py (+4/-13)
tests/unittests/test_reporter.py (+23/-2)
- Scott Moser: Approve
-
Diff: 2457 lines (+1095/-323)35 files modifiedcurtin/block/__init__.py (+9/-3)
curtin/commands/block_meta.py (+7/-2)
curtin/commands/curthooks.py (+19/-3)
curtin/commands/net_meta.py (+39/-28)
curtin/net/__init__.py (+25/-5)
curtin/reporter/handlers.py (+4/-13)
curtin/util.py (+56/-0)
debian/changelog (+19/-0)
examples/tests/basic_network.yaml (+6/-0)
examples/tests/basic_scsi.yaml (+72/-0)
examples/tests/bonding_network.yaml (+2/-0)
examples/tests/multipath.yaml (+38/-0)
examples/tests/simple.yaml (+3/-0)
helpers/common (+14/-6)
tests/unittests/test_net.py (+49/-1)
tests/unittests/test_reporter.py (+23/-2)
tests/vmtests/__init__.py (+121/-58)
tests/vmtests/helpers.py (+169/-0)
tests/vmtests/image_sync.py (+16/-2)
tests/vmtests/releases.py (+5/-0)
tests/vmtests/test_basic.py (+121/-4)
tests/vmtests/test_bcache_basic.py (+4/-0)
tests/vmtests/test_bonding.py (+6/-44)
tests/vmtests/test_lvm.py (+4/-4)
tests/vmtests/test_mdadm_bcache.py (+24/-24)
tests/vmtests/test_multipath.py (+63/-0)
tests/vmtests/test_network.py (+19/-57)
tests/vmtests/test_nvme.py (+4/-4)
tests/vmtests/test_raid5_bcache.py (+8/-4)
tests/vmtests/test_simple.py (+40/-0)
tests/vmtests/test_uefi_basic.py (+8/-8)
tools/jenkins-runner (+10/-0)
tools/launch (+74/-44)
tools/vmtest-sync-images (+5/-1)
tools/xkvm (+9/-6)
tags: | added: curtin-sru |
Changed in curtin: | |
status: | Confirmed → Fix Committed |
Changed in curtin: | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
Attaching the rsyslog