Comment 2 for bug 1988595

Revision history for this message
gulsum atici (gatici) wrote :

Built one of the charm by adding assumes expression in to metadata.yaml such as:

name: osm-lcm

display-name: OSM LCM

assumes:
  - any-of:
    - juju >= 2.9
    - K8s-api

It throws the error 'parsing "any-of" expression: malformed feature expression "K8s-api"'

$ juju deploy ./osm.zip --trust
Located charm "osm-lcm" in charm-hub, channel beta
Located charm "zookeeper-k8s" in charm-hub, channel stable

Executing changes:
- upload charm osm-lcm from charm-hub for series jammy from channel latest/beta with architecture=amd64
ERROR cannot deploy bundle: cannot add charm "osm-lcm": downloading charm "ch:amd64/jammy/osm-lcm-10" from origin {charm-hub charm 0xc004e1d258 beta amd64/ubuntu/jammy }: parsing expression 1 in top level "assumes" block: parsing "any-of" expression: malformed feature expression "K8s-api"