Closed esunar closed 1 year ago
(by phausman) Workaround:
juju-lint -c ~/canonical-rules.yaml -t openstack /tmp/juju_status.json
(by vlgrevtsev) Hi,
Running 1.0.2.dev21+g438991c snap and still seeing this.
$ grep logrotate /snap/juju-lint/current/contrib/canonical-rules.yaml logrotate:
and, despite my model has logrotateD deployed:
$ juju status mysql | grep logrotat logrotated active 3 logrotated jujucharms 3 ubuntu logrotated/4 active idle 62.217.87.91 Unit is ready. logrotated/7 active idle 62.217.87.81 Unit is ready. logrotated/5 active idle 62.217.87.95 Unit is ready.
juju-lint is still complaining, because it expects logrotate (without D) to be present:
2021-02-24 08:35:47 [ERROR] [/tmp/juju-status.json] [manual/manual] -> logrotate [aodh, ceilometer, ceph-mon, ceph-osd, ceph-radosgw, cinder, controller-node-stub, designate, designate-bind, easyrsa, etcd, glance, glance-simplestreams-sync, gnocchi, heat, keystone, memcached, mysql, neutron-api, nova-cloud-controller, nova-compute, nova-compute-fat, nova-compute-gpu, nova-compute-io, openstack-dashboard, openstack-service-checks, placement, prometheus-ceph-exporter, prometheus-openstack-exporter, rabbitmq-server, vault]
(by jfguedez) Looks like due to a series of merges the fix was essentially reverted - https://git.launchpad.net/juju-lint/tree/contrib/canonical-rules.yaml#n91
Will create a new MP to bring it back
/snap/juju-lint/current/contrib/canonical-rules.yaml defines
logrotate
charm, instead oflogrotated
-- note missing 'd'.84 hw-health: 85 where: host only 86 logrotate: <--- HERE 87 where: all 88 89 operations mandatory: &operations-mandatory-charms 90 - elasticsearch
As a result, juju-lint reports false-positive about missing logrotated relations:
2021-01-27 08:25:53 [ERROR] [/tmp/juju_status.json] [manual/manual] -> logrotate [aodh, barbican, ceilometer, ceph-mon, ceph-osd, ceph-radosgw, cinder, designate, designate-bind, easyrsa, etcd, glance, gnocchi, heat, keystone, memcached, mysql-innodb-cluster, neutron-api, nova-cloud-controller, nova-compute, octa via, openstack-dashboard, openstack-service-checks, placement, prometheus-ceph-exporter, prometheus-openstack-exporter, rabbitmq-server, ubuntu, vault]
$ snap info juju-lint | grep installed installed: 1.0.2.dev7+g39fd901 (25) 13MB classic
Imported from Launchpad using lp2gh.
date created: 2021-01-27T09:11:40Z
owner: phausman
assignee: aieri
the launchpad url