Closed dparv closed 1 year ago
the issue seems to be that juju status
returns an empty dict. I've heard of that issue before but I'm not sure in what context.
can you try running manually juju status --format json
and see if you get any values out?
It returns plenty of things, and applications is there
juju status --format json | jq '.applications | keys[]'
"aodh"
"aodh-mysql-router"
"barbican"
"barbican-mysql-router"
"barbican-vault"
"bcache-tuning"
"ceilometer"
"ceilometer-agent"
"ceph-dashboard"
"ceph-fs"
"ceph-mon"
"ceph-osd-flash"
"ceph-osd-hdd"
"ceph-radosgw"
"cinder"
"cinder-ceph-flash"
"cinder-ceph-hdd"
"cinder-mysql-router"
"cos-proxy-lite"
"designate"
"designate-bind"
"designate-mysql-router"
"easyrsa"
"etcd"
"filebeat"
"glance"
"glance-mysql-router"
"glance-simplestreams-sync"
"gnocchi"
"gnocchi-mysql-router"
"golang-openstack-exporter"
"hacluster-aodh"
"hacluster-barbican"
"hacluster-ceilometer"
"hacluster-cinder"
"hacluster-designate"
"hacluster-glance"
"hacluster-gnocchi"
"hacluster-heat"
"hacluster-horizon"
"hacluster-keystone"
"hacluster-neutron"
"hacluster-nova"
"hacluster-octavia"
"hacluster-placement"
"hacluster-radosgw"
"hacluster-vault"
"heat"
"heat-mysql-router"
"hw-health"
"juju-lint"
"keystone"
"keystone-mysql-router"
"landscape-client"
"lldpd"
"logrotated"
"memcached"
"mysql-innodb-cluster"
"neutron-api"
"neutron-api-mysql-router"
"neutron-api-plugin-ovn"
"nova-cloud-controller"
"nova-cloud-controller-mysql-router"
"nova-compute-kvm"
"nova-compute-kvm-ctrl"
"nova-compute-kvm-sriov"
"nrpe"
"ntp"
"octavia"
"octavia-dashboard"
"octavia-diskimage-retrofit"
"octavia-mysql-router"
"octavia-ovn-chassis"
"openstack-dashboard"
"openstack-dashboard-mysql-router"
"openstack-service-checks"
"ovn-central"
"ovn-chassis"
"ovn-chassis-sriov"
"placement"
"placement-mysql-router"
"prometheus-grok-exporter"
"prometheus-libvirt-exporter"
"prometheus-openstack-exporter"
"public-policy-routing"
"rabbitmq-server"
"sysconfig"
"sysconfig-ctrl"
"sysconfig-sriov"
"telegraf"
"ubuntu-advantage"
"vault"
"vault-mysql-router"
snap connections jhack
?
TLDR: jhack assumes that unless you specify a model with --model
, the applications you're trying to show relations for are in the 'current model', i.e. what your local juju client is switched to.
It seems that @dparv and colleagues are relying on a JUJU_MODEL
envvar to target different models instead of juju-switching to them. jhack currently is unaware of that envvar.
Closing this as a won't fix, but if you think jhack should consider JUJU_MODEL, we can open a new feature request and discuss there.
Traceback: jhack show-relation vault:secrets barbican-vault:secrets-storage