Open zxhdaze opened 6 months ago
When I tried use --logfile to store logs, so I can share them, however this was not working and my log file was not created.
--logfile
x1:➜ juju-lint git:(master) ✗ juju-lint -c contrib/openstack-jammy-ovs.yaml -t openstack tests/resources/openstack-yoga-jammy-ovs-bundle.yaml --logfile test.log 2023-06-01 09:16:46 [INFO] juju-lint version 1.0.7 starting... * Config directory: /home/rgildein/.config/juju-lint * Cloud type: openstack * Manual file: tests/resources/openstack-yoga-jammy-ovs-bundle.yaml * Rules files: ['contrib/openstack-jammy-ovs.yaml'] * Log level: INFO 2023-06-01 09:16:46 [WARNING] Regex autodetection feature of the eq operator is deprecated. It will only check for equality in the future. Please use the search operator for regex checks. 2023-06-01 09:16:46 [INFO] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] Linting manual file... 2023-06-01 09:16:46 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application ceph-mon has incorrect setting for 'nagios_additional_checks_critical': Expected True, got False 2023-06-01 09:16:46 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application ceph-mon has incorrect setting for 'nagios_additional_checks': Expected '{"ceph_slow_requests": "slow requests"}', got '' 2023-06-01 09:16:46 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application keystone has config for 'token-expiration' which is less than 86400: 3600 Traceback (most recent call last): File "/snap/juju-lint/91/bin/juju-lint", line 8, in <module> sys.exit(main()) File "/home/rgildein/code/canonical/juju-lint/jujulint/cli.py", line 241, in main cli.audit_file(cli.manual_file, cloud_type=cli.cloud_type) File "/home/rgildein/code/canonical/juju-lint/jujulint/cli.py", line 157, in audit_file linter.lint_yaml_file(filename) File "/home/rgildein/code/canonical/juju-lint/jujulint/lint.py", line 1395, in lint_yaml_file return self.do_lint(parsed_yaml) File "/home/rgildein/code/canonical/juju-lint/jujulint/lint.py", line 1417, in do_lint self.check_configuration(parsed_yaml[applications]) File "/home/rgildein/code/canonical/juju-lint/jujulint/lint.py", line 603, in check_configuration self.check_config( File "/home/rgildein/code/canonical/juju-lint/jujulint/lint.py", line 556, in check_config check_method( File "/home/rgildein/code/canonical/juju-lint/jujulint/lint.py", line 397, in gte return self.check_config_generic( File "/home/rgildein/code/canonical/juju-lint/jujulint/lint.py", line 487, in check_config_generic if operator.check(check_value, actual_value): File "/home/rgildein/code/canonical/juju-lint/jujulint/lint.py", line 388, in operator_gte_check return current >= expected TypeError: '>=' not supported between instances of 'str' and 'int' [0.75s] x1:➜ juju-lint git:(master) ✗ juju-lint -c contrib/openstack-jammy-ovs.yaml -t openstack tests/resources/openstack-yoga-jammy-ovs-bundle.yaml --logfile test.log 2023-06-01 09:16:51 [INFO] juju-lint version 1.0.7 starting... * Config directory: /home/rgildein/.config/juju-lint * Cloud type: openstack * Manual file: tests/resources/openstack-yoga-jammy-ovs-bundle.yaml * Rules files: ['contrib/openstack-jammy-ovs.yaml'] * Log level: INFO 2023-06-01 09:16:51 [WARNING] Regex autodetection feature of the eq operator is deprecated. It will only check for equality in the future. Please use the search operator for regex checks. 2023-06-01 09:16:51 [INFO] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] Linting manual file... 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application ceph-mon has incorrect setting for 'nagios_additional_checks_critical': Expected True, got False 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application ceph-mon has incorrect setting for 'nagios_additional_checks': Expected '{"ceph_slow_requests": "slow requests"}', got '' 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application keystone has config for 'token-expiration' which is less than 86400: 3600 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application neutron-api has incorrect setting for 'global-physnet-mtu': Expected 9000, got 8958 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application rabbitmq-server has incorrect setting for 'cluster-partition-handling': Expected 'pause_minority', got 'ignore' 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Application rabbitmq-server has an invalid config for 'queue_thresholds': regex '\\W\\*, \\W\\*, 25000, 27500' not found at "[['\\*', '\\*', 100, 200]]" 2023-06-01 09:16:51 [WARNING] endpoint: elasticsearch not found on filebeat 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Charm 'nrpe' missing on machines: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25'] 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Charm 'telegraf' missing on machines: ['1', '3', '4', '5', '9', '10', '11', '12', '15', '17', '19', '20', '25'] 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Charm 'filebeat' missing on machines: ['0', '2', '3', '5', '6', '7', '8', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25'] 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Charm 'landscape-client' missing on machines: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25'] 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Charm 'ubuntu-advantage' missing on machines: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25'] 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Charm 'prometheus-ceph-exporter' not recognised 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Ops charm 'landscape-server' is missing 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Ops charm 'nagios' is missing 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Openstack charm 'ceilometer' is missing 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Openstack charm 'ceilometer-agent' is missing 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Openstack charm 'openstack-dashboard' is missing 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Openstack charm 'bootstack-charmers-homer-dashboard' is missing 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Openstack ops charm 'openstack-service-checks' is missing 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Openstack ops charm 'prometheus-libvirt-exporter' is missing 2023-06-01 09:16:51 [ERROR] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Openstack ops charm 'prometheus-grok-exporter' is missing 2023-06-01 09:16:51 [WARNING] [tests/resources/openstack-yoga-jammy-ovs-bundle.yaml] [manual/manual] Relations detected but explicit bindings not found; Not specifying explicit bindings may cause problems on models with multiple network s [0.64s] x1:➜ juju-lint git:(master) ✗ ll *.log zsh: no matches found: *.log [0.02s]
When I tried use
--logfile
to store logs, so I can share them, however this was not working and my log file was not created.