Juju 2.7 bundles hates relative paths?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Achilleas Anagnostopoulos |
Bug Description
We just switched over to using juju 2.7 candidate and our charm testing broke. The problem is that when we test a charm we use a bundle which uses all supporting charms from the charm store and uses a local copy of the charm under test.
We reference the charm being tests in the bundle like this:
charm: ../../.
because the overlay with that in lives inside the charm here:
nova-cell-
and the local paths seems to be relative to the overlay location. This worked in 2.6 but in 2.7 it breaks with:
ERROR cannot deploy bundle: the provided bundle has the following errors:
charm path in application "nova-cell-
Does anyone know of a 2.7 change that might account for this ?
Changed in juju: | |
milestone: | 2.7.1 → 2.7.2 |
Changed in juju: | |
milestone: | 2.7.2 → 2.7.3 |
Changed in juju: | |
milestone: | 2.7.3 → 2.7.4 |
Changed in juju: | |
milestone: | 2.7.4 → 2.7.5 |
Changed in juju: | |
milestone: | 2.7.5 → 2.7.6 |
Yes, bundles were accidentally not using the same code that charms do that
were meant to be an explicit full path. 2.7 brought bundles in line in prep
for making sure we have room and lack of ambiguity for charm urls which was
why that was done with charms in the past. We had meant to make this a big
highlight as a "watch out for" in the 2.7 release docs but missed having
that there. We'll make sure to correct the docs around this.
On Fri, Nov 8, 2019 at 5:45 AM Liam Young <email address hidden> wrote:
> Public bug reported: ./nova- cell-controller controller/ tests/bundles/ overlays controller- cell2" does not exist: controller /bugs.launchpad .net/bugs/ 1851817 /bugs.launchpad .net/juju/ +bug/1851817/ +subscriptions
>
> We just switched over to using juju 2.7 candidate and our charm testing
> broke. The problem is that when we test a charm we use a bundle which
> uses all supporting charms from the charm store and uses a local copy
> of the charm under test.
>
> We reference the charm being tests in the bundle like this:
>
> charm: ../../.
>
> because the overlay with that in lives inside the charm here:
>
> nova-cell-
>
> and the local paths seems to be relative to the overlay location. This
> worked in 2.6 but in 2.7 it breaks with:
>
> ERROR cannot deploy bundle: the provided bundle has the following errors:
> charm path in application "nova-cell-
> /nova-cell-
>
> Does anyone know of a 2.7 change that might account for this ?
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> https:/
>
> Title:
> Juju 2.7 bundles hates relative paths?
>
> To manage notifications about this bug go to:
> https:/
>