esunar / test4

GNU General Public License v3.0
0 stars 0 forks source link

Dump state output feature does not dump lint results #202

Open esunar opened 1 year ago

esunar commented 1 year ago

The help string suggests the lint reports will be written to the directory:

-d [OUTPUT.FOLDER], --output-dir [OUTPUT.FOLDER] The folder to use when saving gathered cloud data and lint reports.

However only cloud state data is written. See example:

miles@t440:~/tmp$ snap list | grep juju-lint juju-lint 1.0.4.dev24+g03479fa 67 latest/edge txiao classic

miles@t440:~/tmp$ cat ~/.config/juju-lint/config.yaml clouds: testcloud: type: openstack

miles@t440:~/tmp$ mkdir juju-lint-output miles@t440:~/tmp$ juju-lint --dump-state dump --output-dir ./juju-lint-output -c /snap/juju-lint/current/contrib/openstack-focal-ovn.yaml 2022-09-15 10:02:32 [INFO] juju-lint version 1.0.4.dev24+g03479fa starting...

2022-09-15 10:02:32 [INFO] [testcloud] Refreshing cloud information for t440 2022-09-15 10:02:32 [INFO] [testcloud] Getting Juju state for t440 2022-09-15 10:02:32 [INFO] [testcloud] Found Juju controller: local 2022-09-15 10:02:32 [INFO] [testcloud] Getting models for controller: local 2022-09-15 10:02:33 [INFO] [testcloud] Processing model controller for controller: local 2022-09-15 10:02:33 [INFO] [testcloud] Processing model default for controller: local 2022-09-15 10:02:33 [INFO] [testcloud] Processing Juju status for model controller on controller local ERROR nothing to export as there are no applications 2022-09-15 10:02:33 [ERROR] Command '['juju', 'export-bundle', '-m', 'local:controller']' returned non-zero exit status 1. 2022-09-15 10:02:33 [WARNING] An error happened to get the bundle on local:controller. If the model doesn't have apps, disconsider this message. 2022-09-15 10:02:33 [INFO] [testcloud] Processing Juju status for model default on controller local 2022-09-15 10:02:34 [INFO] [testcloud] Processing Juju bundle export for model default on controller local 2022-09-15 10:02:34 [INFO] [testcloud] Running OpenStack-specific audit steps. 2022-09-15 10:02:34 [INFO] [testcloud] Auditing information for t440 2022-09-15 10:02:34 [INFO] [testcloud] Linting model information for t440, controller local, model controller... 2022-09-15 10:02:34 [WARNING] [testcloud] [local/controller] Model contains no applications, skipping. 2022-09-15 10:02:34 [INFO] [testcloud] Linting model information for t440, controller local, model default... 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Ops charm 'elasticsearch' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Ops charm 'grafana' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Ops charm 'graylog' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Ops charm 'landscape-server' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Ops charm 'nagios' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Ops charm 'prometheus2' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'ceilometer' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'ceilometer-agent' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'ceph-mon' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'ceph-osd' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'cinder' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'cinder-ceph' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'glance' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'heat' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'keystone' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'neutron-api' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'nova-cloud-controller' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'nova-compute' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'openstack-dashboard' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'bootstack-charmers-homer-dashboard' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'ovn-central' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'ovn-chassis' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack charm 'neutron-api-plugin-ovn' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack ops charm 'openstack-service-checks' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack ops charm 'prometheus-libvirt-exporter' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack ops charm 'prometheus-openstack-exporter' is missing 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Openstack ops charm 'prometheus-grok-exporter' is missing 2022-09-15 10:02:34 [WARNING] [testcloud] [local/default] Machine 4 has no availability-zone info in hardware field; skipping. 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Invalid number of AZs: '0', expecting 3 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Subordinate 'telegraf' is missing for application(s): 'ubuntu' 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Subordinate 'landscape-client' is missing for application(s): 'ubuntu' 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Subordinate 'filebeat' is missing for application(s): 'ubuntu' 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Subordinate 'canonical-livepatch' is missing for application(s): 'ubuntu' 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Subordinate 'nrpe' is missing for application(s): 'ubuntu' 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Subordinate 'ntp' is missing for application(s): 'ubuntu' 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Subordinate 'hw-health' is missing for application(s): 'ubuntu' 2022-09-15 10:02:34 [ERROR] [testcloud] [local/default] Subordinate 'logrotated' is missing for application(s): 'ubuntu'

miles@t440:~/tmp$ ls -alhtr juju-lint-output/ total 24K drwxrwxr-x 3 miles miles 4,0K Eyl 15 10:01 .. -rw-rw-r-- 1 miles miles 6,2K Eyl 15 10:02 testcloud-state.yaml drwxrwxr-x 2 miles miles 4,0K Eyl 15 10:02 . -rw-rw-r-- 1 miles miles 6,6K Eyl 15 10:02 all-data.yaml


Imported from Launchpad using lp2gh.