AppArmorTest test_aa_status_json JSONDecodeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QA Regression Testing |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When running test_aa_status_json the test will crash and fail due to a JSONDecodeError.
[Test case]
AppArmorTest test_aa_status_json seen on j/oracle t.15.0-1043.49 on VM.Standard2.1
[Logs]
8461 09:51:06 INFO | START ubuntu_
8462 09:51:06 DEBUG| Persistent state client.
8463 09:51:06 DEBUG| Persistent state client.
8464 09:51:06 DEBUG| Waiting for pid 10145 for 2100 seconds
8465 09:51:06 WARNI| System python is too old, crash handling disabled
8466 09:51:06 DEBUG| Running 'python3 ./test-apparmor.py -v ApparmorTest.
8467 09:51:06 DEBUG| [stdout] Running test: './test-
8468 09:51:06 ERROR| [stderr] test_aa_status_json (__main_
8469 09:51:06 ERROR| [stderr] Test aa-status --json ... FAIL
8470 09:51:06 ERROR| [stderr]
8471 09:51:06 ERROR| [stderr] =======
8472 09:51:06 ERROR| [stderr] FAIL: test_aa_status_json (__main_
8473 09:51:06 ERROR| [stderr] Test aa-status --json
8474 09:51:06 ERROR| [stderr] -------
8475 09:51:06 ERROR| [stderr] Traceback (most recent call last):
8476 09:51:06 ERROR| [stderr] File "/home/
8477 09:51:06 ERROR| [stderr] json.loads(report)
8478 09:51:06 ERROR| [stderr] File "/usr/lib/
8479 09:51:06 ERROR| [stderr] return _default_
8480 09:51:06 ERROR| [stderr] File "/usr/lib/
8481 09:51:06 ERROR| [stderr] obj, end = self.raw_decode(s, idx=_w(s, 0).end())
8482 09:51:06 ERROR| [stderr] File "/usr/lib/
8483 09:51:06 ERROR| [stderr] obj, end = self.scan_once(s, idx)
8484 09:51:06 ERROR| [stderr] json.decoder.
8485 09:51:06 ERROR| [stderr]
8486 09:51:06 ERROR| [stderr] During handling of the above exception, another exception occurred:
8487 09:51:06 ERROR| [stderr]
8488 09:51:06 ERROR| [stderr] Traceback (most recent call last):
8489 09:51:06 DEBUG| [stdout] Skipping private tests
8490 09:51:06 ERROR| [stderr] File "/home/
8491 09:51:06 ERROR| [stderr] self.fail("Failed to parse json output from aa-status --json: %s" % (e))
8492 09:51:06 ERROR| [stderr] AssertionError: Failed to parse json output from aa-status --json: Expecting property name enclosed in double quotes: line 1 column 2349 (char 2348)
8493 09:51:06 ERROR| [stderr]
8494 09:51:06 ERROR| [stderr] -------
8495 09:51:06 ERROR| [stderr] Ran 1 test in 0.075s
8496 09:51:06 ERROR| [stderr]
8497 09:51:06 ERROR| [stderr] FAILED (failures=1)
8498 09:51:06 ERROR| Exception escaping from test:
8499 Traceback (most recent call last):
8500 File "/home/
8501 _call_test_
8502 File "/home/
8503 return func(*args, **dargs)
8504 File "/home/
8505 postprocess_
8506 File "/home/
8507 self.run_
8508 File "/home/
8509 self.results = utils.system_
8510 File "/home/
8511 verbose=verbose, args=args).stdout
8512 File "/home/
8513 "Command returned non-zero exit status")
8514 CmdError: Command failed, rc=1, Command returned non-zero exit status
8515 * Command:
8516 python3 ./test-apparmor.py -v ApparmorTest.
8517 Exit status: 1
8518 Duration: 0.328819036484
8519
8520 stdout:
8521 Running test: './test-
8522 Skipping private tests
8523 stderr:
8524 test_aa_status_json (__main_
8525 Test aa-status --json ... FAIL
8526
8527 =======
8528 FAIL: test_aa_status_json (__main_
8529 Test aa-status --json
8530 -------
8531 Traceback (most recent call last):
8532 File "/home/
8533 json.loads(report)
8534 File "/usr/lib/
8535 return _default_
8536 File "/usr/lib/
8537 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
8538 File "/usr/lib/
8539 obj, end = self.scan_once(s, idx)
8540 json.decoder.
8541
8542 During handling of the above exception, another exception occurred:
8543
8544 Traceback (most recent call last):
8545 File "/home/
8546 self.fail("Failed to parse json output from aa-status --json: %s" % (e))
8547 AssertionError: Failed to parse json output from aa-status --json: Expecting property name enclosed in double quotes: line 1 column 2349 (char 2348)
8548
8549 -------
8550 Ran 1 test in 0.075s
8551
8552 FAILED (failures=1)
8553 09:51:06 ERROR| child process failed
8554 09:51:06 DEBUG| Traceback (most recent call last):
8555 09:51:06 DEBUG| File "/home/
8556 09:51:06 DEBUG| l()
8557 09:51:06 DEBUG| File "/home/
8558 09:51:06 DEBUG| l = lambda: test.runtest(self, url, tag, args, dargs)
8559 09:51:06 DEBUG| File "/home/
8560 09:51:06 DEBUG| job.sysinfo.
8561 09:51:06 DEBUG| File "/home/
8562 09:51:06 DEBUG| mytest._exec(args, dargs)
8563 09:51:06 DEBUG| File "/home/
8564 09:51:06 DEBUG| _call_test_
8565 09:51:06 DEBUG| File "/home/
8566 09:51:06 DEBUG| return func(*args, **dargs)
8567 09:51:06 DEBUG| File "/home/
8568 09:51:06 DEBUG| postprocess_
8569 09:51:06 DEBUG| File "/home/
8570 09:51:06 DEBUG| self.run_
8571 09:51:06 DEBUG| File "/home/
8572 09:51:06 DEBUG| self.results = utils.system_
8573 09:51:06 DEBUG| File "/home/
8574 09:51:06 DEBUG| verbose=verbose, args=args).stdout
8575 09:51:06 DEBUG| File "/home/
8576 09:51:06 DEBUG| "Command returned non-zero exit status")
8577 09:51:06 DEBUG| CmdError: Command failed, rc=1, Command returned non-zero exit status
8578 09:51:06 DEBUG| * Command:
8579 09:51:06 DEBUG| python3 ./test-apparmor.py -v ApparmorTest.
8580 09:51:06 DEBUG| Exit status: 1
8581 09:51:06 DEBUG| Duration: 0.328819036484
8582 09:51:06 DEBUG|
8583 09:51:06 DEBUG| stdout:
8584 09:51:06 DEBUG| Running test: './test-
8585 09:51:06 DEBUG| Skipping private tests
8586 09:51:06 DEBUG| stderr:
8587 09:51:06 DEBUG| test_aa_status_json (__main_
8588 09:51:06 DEBUG| Test aa-status --json ... FAIL
8589 09:51:06 DEBUG|
8590 09:51:06 DEBUG| =======
8591 09:51:06 DEBUG| FAIL: test_aa_status_json (__main_
8592 09:51:06 DEBUG| Test aa-status --json
8593 09:51:06 DEBUG| -------
8594 09:51:06 DEBUG| Traceback (most recent call last):
8595 09:51:06 DEBUG| File "/home/
8596 09:51:06 DEBUG| json.loads(report)
8597 09:51:06 DEBUG| File "/usr/lib/
8598 09:51:06 DEBUG| return _default_
8599 09:51:06 DEBUG| File "/usr/lib/
8600 09:51:06 DEBUG| obj, end = self.raw_decode(s, idx=_w(s, 0).end())
8601 09:51:06 DEBUG| File "/usr/lib/
8602 09:51:06 DEBUG| obj, end = self.scan_once(s, idx)
8603 09:51:06 DEBUG| json.decoder.
8604 09:51:06 DEBUG|
8605 09:51:06 DEBUG| During handling of the above exception, another exception occurred:
8606 09:51:06 DEBUG|
8607 09:51:06 DEBUG| Traceback (most recent call last):
8608 09:51:06 DEBUG| File "/home/
8609 09:51:06 DEBUG| self.fail("Failed to parse json output from aa-status --json: %s" % (e))
8610 09:51:06 DEBUG| AssertionError: Failed to parse json output from aa-status --json: Expecting property name enclosed in double quotes: line 1 column 2349 (char 2348)
8611 09:51:06 DEBUG|
8612 09:51:06 DEBUG| -------
8613 09:51:06 DEBUG| Ran 1 test in 0.075s
8614 09:51:06 DEBUG|
8615 09:51:06 DEBUG| FAILED (failures=1)
8616 09:51:08 INFO | ERROR ubuntu_
8617 * Command:
8618 python3 ./test-apparmor.py -v ApparmorTest.
8619 Exit status: 1
8620 Duration: 0.328819036484
8621
8622 stdout:
8623 Running test: './test-
8624 Skipping private tests
8625 stderr:
8626 test_aa_status_json (__main_
8627 Test aa-status --json ... FAIL
8628
8629 =======
8630 FAIL: test_aa_status_json (__main_
8631 Test aa-status --json
8632 -------
8633 Traceback (most recent call last):
8634 File "/home/
8635 json.loads(report)
8636 File "/usr/lib/
8637 return _default_
8638 File "/usr/lib/
8639 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
8640 File "/usr/lib/
8641 obj, end = self.scan_once(s, idx)
8642 json.decoder.
8643
8644 During handling of the above exception, another exception occurred:
8645
8646 Traceback (most recent call last):
8647 File "/home/
8648 self.fail("Failed to parse json output from aa-status --json: %s" % (e))
8649 AssertionError: Failed to parse json output from aa-status --json: Expecting property name enclosed in double quotes: line 1 column 2349 (char 2348)
8650
8651 -------
8652 Ran 1 test in 0.075s
8653
8654 FAILED (failures=1)
8655 09:51:08 INFO | END ERROR ubuntu_
tags: | added: sru-s2023.08.08 |
affects: | ubuntu-kernel-tests → qa-regression-testing |