Public bug reported:

[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_qrt_apparmor.ApparmorTest.test_aa_status_json    
ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json    timestamp=1694166666    
timeout=2100    localtime=Sep 08 09:51:06    
                8462            09:51:06 DEBUG| Persistent state 
client._record_indent now set to 2
                8463            09:51:06 DEBUG| Persistent state 
client.unexpected_reboot now set to 
('ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json', 
'ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json')
                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.test_aa_status_json'
                8467            09:51:06 DEBUG| [stdout] Running test: 
'./test-apparmor.py' distro: 'Ubuntu 22.04' kernel: '5.15.0-1043.49 (Ubuntu 
5.15.0-1043.49-oracle 5.15.122)' arch: 'amd64' init: 'systemd' uid: 0/0 
SUDO_USER: 'ubuntu')
                8468            09:51:06 ERROR| [stderr] test_aa_status_json 
(__main__.ApparmorTest)
                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__.ApparmorTest)
                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/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 382, in test_aa_status_json
                8477            09:51:06 ERROR| [stderr]     json.loads(report)
                8478            09:51:06 ERROR| [stderr]   File 
"/usr/lib/python3.10/json/__init__.py", line 346, in loads
                8479            09:51:06 ERROR| [stderr]     return 
_default_decoder.decode(s)
                8480            09:51:06 ERROR| [stderr]   File 
"/usr/lib/python3.10/json/decoder.py", line 337, in decode
                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/python3.10/json/decoder.py", line 353, in raw_decode
                8483            09:51:06 ERROR| [stderr]     obj, end = 
self.scan_once(s, idx)
                8484            09:51:06 ERROR| [stderr] 
json.decoder.JSONDecodeError: Expecting property name enclosed in double 
quotes: line 1 column 2349 (char 2348)
                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/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 384, in test_aa_status_json
                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/ubuntu/autotest/client/shared/test.py", line 411, in _exec
                8501                _call_test_function(self.execute, *p_args, 
**p_dargs)
                8502              File 
"/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
                8503                return func(*args, **dargs)
                8504              File 
"/home/ubuntu/autotest/client/shared/test.py", line 291, in execute
                8505                postprocess_profiled_run, args, dargs)
                8506              File 
"/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
                8507                self.run_once(*args, **dargs)
                8508              File 
"/home/ubuntu/autotest/client/tests/ubuntu_qrt_apparmor/ubuntu_qrt_apparmor.py",
 line 155, in run_once
                8509                self.results = utils.system_output(cmd, 
retain_output=True)
                8510              File 
"/home/ubuntu/autotest/client/shared/utils.py", line 1268, in system_output
                8511                verbose=verbose, args=args).stdout
                8512              File 
"/home/ubuntu/autotest/client/shared/utils.py", line 918, in run
                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.test_aa_status_json
                8517            Exit status: 1
                8518            Duration: 0.328819036484
                8519            
                8520            stdout:
                8521            Running test: './test-apparmor.py' distro: 
'Ubuntu 22.04' kernel: '5.15.0-1043.49 (Ubuntu 5.15.0-1043.49-oracle 5.15.122)' 
arch: 'amd64' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
                8522            Skipping private tests
                8523            stderr:
                8524            test_aa_status_json (__main__.ApparmorTest)
                8525            Test aa-status --json ... FAIL
                8526            
                8527            
======================================================================
                8528            FAIL: test_aa_status_json 
(__main__.ApparmorTest)
                8529            Test aa-status --json
                8530            
----------------------------------------------------------------------
                8531            Traceback (most recent call last):
                8532              File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 382, in test_aa_status_json
                8533                json.loads(report)
                8534              File "/usr/lib/python3.10/json/__init__.py", 
line 346, in loads
                8535                return _default_decoder.decode(s)
                8536              File "/usr/lib/python3.10/json/decoder.py", 
line 337, in decode
                8537                obj, end = self.raw_decode(s, idx=_w(s, 
0).end())
                8538              File "/usr/lib/python3.10/json/decoder.py", 
line 353, in raw_decode
                8539                obj, end = self.scan_once(s, idx)
                8540            json.decoder.JSONDecodeError: Expecting 
property name enclosed in double quotes: line 1 column 2349 (char 2348)
                8541            
                8542            During handling of the above exception, another 
exception occurred:
                8543            
                8544            Traceback (most recent call last):
                8545              File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 384, in test_aa_status_json
                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/ubuntu/autotest/client/parallel.py", line 25, in fork_start
                8556            09:51:06 DEBUG|     l()
                8557            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/job.py", line 505, in 
                8558            09:51:06 DEBUG|     l = lambda: 
test.runtest(self, url, tag, args, dargs)
                8559            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/test.py", line 125, in runtest
                8560            09:51:06 DEBUG|     
job.sysinfo.log_after_each_iteration)
                8561            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest
                8562            09:51:06 DEBUG|     mytest._exec(args, dargs)
                8563            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
                8564            09:51:06 DEBUG|     
_call_test_function(self.execute, *p_args, **p_dargs)
                8565            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
                8566            09:51:06 DEBUG|     return func(*args, **dargs)
                8567            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 291, in execute
                8568            09:51:06 DEBUG|     postprocess_profiled_run, 
args, dargs)
                8569            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
                8570            09:51:06 DEBUG|     self.run_once(*args, 
**dargs)
                8571            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/tests/ubuntu_qrt_apparmor/ubuntu_qrt_apparmor.py",
 line 155, in run_once
                8572            09:51:06 DEBUG|     self.results = 
utils.system_output(cmd, retain_output=True)
                8573            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/utils.py", line 1268, in system_output
                8574            09:51:06 DEBUG|     verbose=verbose, 
args=args).stdout
                8575            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/utils.py", line 918, in run
                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.test_aa_status_json
                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-apparmor.py' distro: 'Ubuntu 22.04' kernel: '5.15.0-1043.49 (Ubuntu 
5.15.0-1043.49-oracle 5.15.122)' arch: 'amd64' init: 'systemd' uid: 0/0 
SUDO_USER: 'ubuntu')
                8585            09:51:06 DEBUG| Skipping private tests
                8586            09:51:06 DEBUG| stderr:
                8587            09:51:06 DEBUG| test_aa_status_json 
(__main__.ApparmorTest)
                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__.ApparmorTest)
                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/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 382, in test_aa_status_json
                8596            09:51:06 DEBUG|     json.loads(report)
                8597            09:51:06 DEBUG|   File 
"/usr/lib/python3.10/json/__init__.py", line 346, in loads
                8598            09:51:06 DEBUG|     return 
_default_decoder.decode(s)
                8599            09:51:06 DEBUG|   File 
"/usr/lib/python3.10/json/decoder.py", line 337, in decode
                8600            09:51:06 DEBUG|     obj, end = 
self.raw_decode(s, idx=_w(s, 0).end())
                8601            09:51:06 DEBUG|   File 
"/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
                8602            09:51:06 DEBUG|     obj, end = 
self.scan_once(s, idx)
                8603            09:51:06 DEBUG| json.decoder.JSONDecodeError: 
Expecting property name enclosed in double quotes: line 1 column 2349 (char 
2348)
                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/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 384, in test_aa_status_json
                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_qrt_apparmor.ApparmorTest.test_aa_status_json    
ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json    timestamp=1694166668    
localtime=Sep 08 09:51:08    Command  failed, rc=1, Command returned non-zero 
exit status
                8617              * Command: 
                8618                  python3 ./test-apparmor.py -v 
ApparmorTest.test_aa_status_json
                8619              Exit status: 1
                8620              Duration: 0.328819036484
                8621              
                8622              stdout:
                8623              Running test: './test-apparmor.py' distro: 
'Ubuntu 22.04' kernel: '5.15.0-1043.49 (Ubuntu 5.15.0-1043.49-oracle 5.15.122)' 
arch: 'amd64' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
                8624              Skipping private tests
                8625              stderr:
                8626              test_aa_status_json (__main__.ApparmorTest)
                8627              Test aa-status --json ... FAIL
                8628              
                8629              
======================================================================
                8630              FAIL: test_aa_status_json 
(__main__.ApparmorTest)
                8631              Test aa-status --json
                8632              
----------------------------------------------------------------------
                8633              Traceback (most recent call last):
                8634                File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 382, in test_aa_status_json
                8635                  json.loads(report)
                8636                File 
"/usr/lib/python3.10/json/__init__.py", line 346, in loads
                8637                  return _default_decoder.decode(s)
                8638                File "/usr/lib/python3.10/json/decoder.py", 
line 337, in decode
                8639                  obj, end = self.raw_decode(s, idx=_w(s, 
0).end())
                8640                File "/usr/lib/python3.10/json/decoder.py", 
line 353, in raw_decode
                8641                  obj, end = self.scan_once(s, idx)
                8642              json.decoder.JSONDecodeError: Expecting 
property name enclosed in double quotes: line 1 column 2349 (char 2348)
                8643              
                8644              During handling of the above exception, 
another exception occurred:
                8645              
                8646              Traceback (most recent call last):
                8647                File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 384, in test_aa_status_json
                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_qrt_apparmor.ApparmorTest.test_aa_status_json    
ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json    timestamp=1694166668    
localtime=Sep 08 09:51:08

** Affects: qa-regression-testing
     Importance: Undecided
         Status: New


** Tags: sru-s2023.08.08

** Tags added: sru-s2023.08.08

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2034930

Title:
  AppArmorTest test_aa_status_json JSONDecodeError

Status in QA Regression Testing:
  New

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_qrt_apparmor.ApparmorTest.test_aa_status_json    
ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json    timestamp=1694166666    
timeout=2100    localtime=Sep 08 09:51:06    
                8462            09:51:06 DEBUG| Persistent state 
client._record_indent now set to 2
                8463            09:51:06 DEBUG| Persistent state 
client.unexpected_reboot now set to 
('ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json', 
'ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json')
                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.test_aa_status_json'
                8467            09:51:06 DEBUG| [stdout] Running test: 
'./test-apparmor.py' distro: 'Ubuntu 22.04' kernel: '5.15.0-1043.49 (Ubuntu 
5.15.0-1043.49-oracle 5.15.122)' arch: 'amd64' init: 'systemd' uid: 0/0 
SUDO_USER: 'ubuntu')
                8468            09:51:06 ERROR| [stderr] test_aa_status_json 
(__main__.ApparmorTest)
                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__.ApparmorTest)
                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/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 382, in test_aa_status_json
                8477            09:51:06 ERROR| [stderr]     json.loads(report)
                8478            09:51:06 ERROR| [stderr]   File 
"/usr/lib/python3.10/json/__init__.py", line 346, in loads
                8479            09:51:06 ERROR| [stderr]     return 
_default_decoder.decode(s)
                8480            09:51:06 ERROR| [stderr]   File 
"/usr/lib/python3.10/json/decoder.py", line 337, in decode
                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/python3.10/json/decoder.py", line 353, in raw_decode
                8483            09:51:06 ERROR| [stderr]     obj, end = 
self.scan_once(s, idx)
                8484            09:51:06 ERROR| [stderr] 
json.decoder.JSONDecodeError: Expecting property name enclosed in double 
quotes: line 1 column 2349 (char 2348)
                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/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 384, in test_aa_status_json
                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/ubuntu/autotest/client/shared/test.py", line 411, in _exec
                8501                _call_test_function(self.execute, *p_args, 
**p_dargs)
                8502              File 
"/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
                8503                return func(*args, **dargs)
                8504              File 
"/home/ubuntu/autotest/client/shared/test.py", line 291, in execute
                8505                postprocess_profiled_run, args, dargs)
                8506              File 
"/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
                8507                self.run_once(*args, **dargs)
                8508              File 
"/home/ubuntu/autotest/client/tests/ubuntu_qrt_apparmor/ubuntu_qrt_apparmor.py",
 line 155, in run_once
                8509                self.results = utils.system_output(cmd, 
retain_output=True)
                8510              File 
"/home/ubuntu/autotest/client/shared/utils.py", line 1268, in system_output
                8511                verbose=verbose, args=args).stdout
                8512              File 
"/home/ubuntu/autotest/client/shared/utils.py", line 918, in run
                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.test_aa_status_json
                8517            Exit status: 1
                8518            Duration: 0.328819036484
                8519            
                8520            stdout:
                8521            Running test: './test-apparmor.py' distro: 
'Ubuntu 22.04' kernel: '5.15.0-1043.49 (Ubuntu 5.15.0-1043.49-oracle 5.15.122)' 
arch: 'amd64' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
                8522            Skipping private tests
                8523            stderr:
                8524            test_aa_status_json (__main__.ApparmorTest)
                8525            Test aa-status --json ... FAIL
                8526            
                8527            
======================================================================
                8528            FAIL: test_aa_status_json 
(__main__.ApparmorTest)
                8529            Test aa-status --json
                8530            
----------------------------------------------------------------------
                8531            Traceback (most recent call last):
                8532              File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 382, in test_aa_status_json
                8533                json.loads(report)
                8534              File "/usr/lib/python3.10/json/__init__.py", 
line 346, in loads
                8535                return _default_decoder.decode(s)
                8536              File "/usr/lib/python3.10/json/decoder.py", 
line 337, in decode
                8537                obj, end = self.raw_decode(s, idx=_w(s, 
0).end())
                8538              File "/usr/lib/python3.10/json/decoder.py", 
line 353, in raw_decode
                8539                obj, end = self.scan_once(s, idx)
                8540            json.decoder.JSONDecodeError: Expecting 
property name enclosed in double quotes: line 1 column 2349 (char 2348)
                8541            
                8542            During handling of the above exception, another 
exception occurred:
                8543            
                8544            Traceback (most recent call last):
                8545              File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 384, in test_aa_status_json
                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/ubuntu/autotest/client/parallel.py", line 25, in fork_start
                8556            09:51:06 DEBUG|     l()
                8557            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/job.py", line 505, in 
                8558            09:51:06 DEBUG|     l = lambda: 
test.runtest(self, url, tag, args, dargs)
                8559            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/test.py", line 125, in runtest
                8560            09:51:06 DEBUG|     
job.sysinfo.log_after_each_iteration)
                8561            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest
                8562            09:51:06 DEBUG|     mytest._exec(args, dargs)
                8563            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
                8564            09:51:06 DEBUG|     
_call_test_function(self.execute, *p_args, **p_dargs)
                8565            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
                8566            09:51:06 DEBUG|     return func(*args, **dargs)
                8567            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 291, in execute
                8568            09:51:06 DEBUG|     postprocess_profiled_run, 
args, dargs)
                8569            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
                8570            09:51:06 DEBUG|     self.run_once(*args, 
**dargs)
                8571            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/tests/ubuntu_qrt_apparmor/ubuntu_qrt_apparmor.py",
 line 155, in run_once
                8572            09:51:06 DEBUG|     self.results = 
utils.system_output(cmd, retain_output=True)
                8573            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/utils.py", line 1268, in system_output
                8574            09:51:06 DEBUG|     verbose=verbose, 
args=args).stdout
                8575            09:51:06 DEBUG|   File 
"/home/ubuntu/autotest/client/shared/utils.py", line 918, in run
                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.test_aa_status_json
                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-apparmor.py' distro: 'Ubuntu 22.04' kernel: '5.15.0-1043.49 (Ubuntu 
5.15.0-1043.49-oracle 5.15.122)' arch: 'amd64' init: 'systemd' uid: 0/0 
SUDO_USER: 'ubuntu')
                8585            09:51:06 DEBUG| Skipping private tests
                8586            09:51:06 DEBUG| stderr:
                8587            09:51:06 DEBUG| test_aa_status_json 
(__main__.ApparmorTest)
                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__.ApparmorTest)
                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/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 382, in test_aa_status_json
                8596            09:51:06 DEBUG|     json.loads(report)
                8597            09:51:06 DEBUG|   File 
"/usr/lib/python3.10/json/__init__.py", line 346, in loads
                8598            09:51:06 DEBUG|     return 
_default_decoder.decode(s)
                8599            09:51:06 DEBUG|   File 
"/usr/lib/python3.10/json/decoder.py", line 337, in decode
                8600            09:51:06 DEBUG|     obj, end = 
self.raw_decode(s, idx=_w(s, 0).end())
                8601            09:51:06 DEBUG|   File 
"/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
                8602            09:51:06 DEBUG|     obj, end = 
self.scan_once(s, idx)
                8603            09:51:06 DEBUG| json.decoder.JSONDecodeError: 
Expecting property name enclosed in double quotes: line 1 column 2349 (char 
2348)
                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/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 384, in test_aa_status_json
                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_qrt_apparmor.ApparmorTest.test_aa_status_json    
ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json    timestamp=1694166668    
localtime=Sep 08 09:51:08    Command  failed, rc=1, Command returned non-zero 
exit status
                8617              * Command: 
                8618                  python3 ./test-apparmor.py -v 
ApparmorTest.test_aa_status_json
                8619              Exit status: 1
                8620              Duration: 0.328819036484
                8621              
                8622              stdout:
                8623              Running test: './test-apparmor.py' distro: 
'Ubuntu 22.04' kernel: '5.15.0-1043.49 (Ubuntu 5.15.0-1043.49-oracle 5.15.122)' 
arch: 'amd64' init: 'systemd' uid: 0/0 SUDO_USER: 'ubuntu')
                8624              Skipping private tests
                8625              stderr:
                8626              test_aa_status_json (__main__.ApparmorTest)
                8627              Test aa-status --json ... FAIL
                8628              
                8629              
======================================================================
                8630              FAIL: test_aa_status_json 
(__main__.ApparmorTest)
                8631              Test aa-status --json
                8632              
----------------------------------------------------------------------
                8633              Traceback (most recent call last):
                8634                File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 382, in test_aa_status_json
                8635                  json.loads(report)
                8636                File 
"/usr/lib/python3.10/json/__init__.py", line 346, in loads
                8637                  return _default_decoder.decode(s)
                8638                File "/usr/lib/python3.10/json/decoder.py", 
line 337, in decode
                8639                  obj, end = self.raw_decode(s, idx=_w(s, 
0).end())
                8640                File "/usr/lib/python3.10/json/decoder.py", 
line 353, in raw_decode
                8641                  obj, end = self.scan_once(s, idx)
                8642              json.decoder.JSONDecodeError: Expecting 
property name enclosed in double quotes: line 1 column 2349 (char 2348)
                8643              
                8644              During handling of the above exception, 
another exception occurred:
                8645              
                8646              Traceback (most recent call last):
                8647                File 
"/home/ubuntu/autotest/client/tmp/ubuntu_qrt_apparmor/src/qa-regression-testing/scripts/./test-apparmor.py",
 line 384, in test_aa_status_json
                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_qrt_apparmor.ApparmorTest.test_aa_status_json    
ubuntu_qrt_apparmor.ApparmorTest.test_aa_status_json    timestamp=1694166668    
localtime=Sep 08 09:51:08

To manage notifications about this bug go to:
https://bugs.launchpad.net/qa-regression-testing/+bug/2034930/+subscriptions


-- 
Mailing list: https://launchpad.net/~canonical-ubuntu-qa
Post to     : canonical-ubuntu-qa@lists.launchpad.net
Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa
More help   : https://help.launchpad.net/ListHelp

Reply via email to