Closed fotisolgr closed 3 years ago
Hello!
Would you please provide the whole logs of the charmcraft
execution? You can see them when executing with --verbose
or in the file mentioned in the error at the end.
Thanks!
When I'm running charmcraft build --verbose I get the output located here: charmcraft-powerDNS-logs.txt
The build seems to be successful but when I am trying to deploy the charm I get the aforementioned error.
How are you trying to deploy the charm? Which exact command are you running? Thanks!
I am running the following commands to deploy the charm:
osm nfpkg-create ./powerdns_cnf
osm nspkg-create ./powerdns_cnf_ns/
osm ns-create \
--ns_name powerdns-cnf-ns \
--nsd_name powerdns_cnf_ns \
--vim_account "${VIM}" \
--config '{vld: [ {name: mgmtnet, vim-network-name: external} ] }'
and when I am trying to get the status of the NS by running osm ns-list
I get the aforementioned error.
Hey @fotisolgr . It looks there's an issue while deployment.
You may try to deploy directly with juju
, to understand if it's an issue with the osm
tool or a bigger problem. Probably you should ask for help about this in the forum, as this is not specifically charmcraft
related (closing this issue for that reason).
Thanks!
The problem was that I was not using the exact generated .charm file. So, when I changed charm: ./charms/powerdns-operator
to charm: ./charms/powerdns-operator/powerdns.charm
in bundle.yaml
the deployment was successfully completed.
Hello,
I am trying to deploy the powerDNS CNF to OSM and fails by giving me the following error:
error":"cannot upload charm: cannot read charm archive: invalid charm archive: ambiguous root directory","error-code":"bad request
.I am using charmcraft version 1.2.1 and I was able to deploy the same charm in charmcraft version 1.1.1 .
The bundle.yaml I am using is the following one:
And the metadata.yaml is the following one:
Any ideas on how to fix that issue would be appreciated.
Thanks in advance, Fotis