esunar / test4

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

Determine if provider networks are configured correctly #161

Open esunar opened 2 years ago

esunar commented 2 years ago

Need to confirm if for neutron-openvswitch enable-local-dhcp-and-metadata=true, then for neutron-gateway enable-isolated-metadata=true and enable-metadata-network=true. If not, then the dhcp delivered from neutron-gateway hosts will not have metadata.


Imported from Launchpad using lp2gh.

esunar commented 2 years ago

(by ec0) I'm having trouble grokking this, but I think I get the gist of it. I think we'd need a way in juju-lint to be able to check the values of configuration items on one charm, dependent on the value of another charm.

With the example provided, if neutron-openvswitch enable-local-dhcp-and-metadata=true, then we would want to ensure neutron-gateway enable-isolated-metadata=true and enable-metadata-network=true were both set?

The pattern which could work for this, in my opinion, is nested rules like -

neutron-gateway: enable-isolated-metadata: if: true neutron-gateway: enable-metadata-network: eq: true enable-isolated-metadata: eq: true

Does that sound like it would address the use case?