ERROR: Could not find a version that satisfies the requirement MarkupSafe==2.1.2 (from versions: none)

Bug #2034971 reported by Dan Munteanu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi Charm
Invalid
Undecided
Unassigned

Bug Description

While installing gnocchi using the 2023.1/stable | rev 140 charm on Ubuntu 22.04

```
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install ERROR: Could not find a version that satisfies the requirement MarkupSafe==2.1.2 (from versions: none)
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install ERROR: No matching distribution found for MarkupSafe==2.1.2
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install Traceback (most recent call last):
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install File "/var/lib/juju/agents/unit-gnocchi-1/charm/hooks/install", line 8, in <module>
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install basic.bootstrap_charm_deps()
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install File "/var/lib/juju/agents/unit-gnocchi-1/charm/lib/charms/layer/basic.py", line 226, in bootstrap_charm_deps
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install check_call([pip, 'install', '-U', reinstall_flag, '--no-index',
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install raise CalledProcessError(retcode, cmd)
unit-gnocchi-1: 22:40:06 WARNING unit.gnocchi/1.install subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-gnocchi-1/.venv/bin/pip', 'install', '-U', '--force-reinstall', '--no-index', '--no-cache-dir', '-f', 'wheelhouse', 'MarkupSafe==2.1.2', 'wheel==0.40.0']' returned non-zero exit status 1.
unit-gnocchi-1: 22:40:06 ERROR juju.worker.uniter.operation hook "install" (via explicit, bespoke hook script) failed: exit status 1
```

Revision history for this message
Felipe Reyes (freyes) wrote : Re: [Bug 2034971] [NEW] ERROR: Could not find a version that satisfies the requirement MarkupSafe==2.1.2 (from versions: none)

Hi, thanks for the bug report.

Can you please share with us the output of "juju status gnocchi"? and the full log of gnocchi
available at /var/log/juju/unit-gnocchi-*.log in the gnocchi unit(s).

Thanks,

Felipe Reyes (freyes)
Changed in charm-gnocchi:
status: New → Incomplete
Revision history for this message
Dan Munteanu (mdc-dmunteanu) wrote :

Hi Felipe,

it's a little bit too late for the logs as I already removed the faulty gnocchi units, but the problem seems to be a version mismatch.

```juju info``` displays rev 140 (which I've used in my bundle)

```
$ juju info gnocchi | grep 2023.1/stable
  2023.1/stable: fb5a58a 2023-08-22 (140) 22MB arm64 ubuntu@22.04, ubuntu@22.10, ubuntu@23.04
```

but

```juju deploy gnocchi --channel 2023.1/stable```

deploys rev 137 which works as expected on ubuntu@22.04.

Best,
Dan

Revision history for this message
Felipe Reyes (freyes) wrote : Re: [Bug 2034971] Re: ERROR: Could not find a version that satisfies the requirement MarkupSafe==2.1.2 (from versions: none)

On Fri, 2023-09-08 at 22:45 +0000, Dan Munteanu wrote:
> Hi Felipe,
>
> it's a little bit too late for the logs as I already removed the faulty
> gnocchi units, but the problem seems to be a version mismatch.
>
> ```juju info``` displays rev 140 (which I've used in my bundle)
>
> ```
> $ juju info gnocchi | grep 2023.1/stable
>   2023.1/stable:       fb5a58a  2023-08-22  (140)  22MB  arm64  ubuntu@22.04, ubuntu@22.10,
> ubuntu@23.04
> ```

you need to take into account the architecture, rev 140 is for arm64. I suggest you to use the `--
arch` flag to avoid including architectures you don't care about, e.g.

    juju info --arch amd64 gnocchi

Revision history for this message
Felipe Reyes (freyes) wrote :

I filed a bug to capture this UX issue - https://bugs.launchpad.net/juju/+bug/2035097

Changed in charm-gnocchi:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.