Commit d67be90
authored
Merge pull request #896 from cderici/series-local-bundle-manifest
#896
#### Description
This fixes a duplication introduced in this cherry pick bd06a24, and adds functionality to determine series using utils for base, which already has the logic for checking `manifest.yaml` for bases (alongside with `metadata.yaml` etc).
Fixes #891
#### QA Steps
This adds the simplified version of the scenario in #891 as an integration test, so the following should pass:
```sh
tox -e integration -- tests/integration/test_model.py::test_deploy_bundle_local_charm_series_manifest
```
**Alternatively**, get the onos charm:
```sh
wget https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages/-/raw/master/charm-packages/pebble_charm_vnf/juju-bundles/charms/onos_ubuntu-20.04-amd64.charm
```
Write the following in a `bundle.yaml`:
```yaml
description: Onos Bundle
bundle: kubernetes
applications:
onos:
charm: './onos_ubuntu-20.04-amd64.charm'
scale: 1
options:
admin-password: admin
resources:
onos-image: onosproject/onos:2.6.0
```
Deploy with this change, should go through just fine without complaining about the series:
```sh
$ python -m asyncio
asyncio REPL 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux
Use "await" directly instead of "asyncio.run()".
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> from juju import model;m=model.Model();await m.connect();await m.deploy('./bundle.yaml')
unknown facade AgentLifeFlag
unexpected facade AgentLifeFlag found, unable to decipher version to use
[<Application entity_id="onos">]
>>>
```7 files changed
Lines changed: 54 additions & 2 deletions
File tree
- juju
- tests/integration
- bundle
- charm-manifest
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
130 | 143 | | |
131 | 144 | | |
132 | 145 | | |
| |||
0 commit comments