charmed-osm / charm-simple-proxy

An example of a simple proxy charm written in the Python Operator Framework
0 stars 1 forks source link

Trying this charm on OSM8 yields error #1

Open paaguti opened 3 years ago

paaguti commented 3 years ago

Hi,

I've created a simple mono-VDU VNFD and an NSD that uses it. I'm trying to use this charm in the VNFD and when I deploy the NSD, it gets in a loop and I see

unit-app-vnf-b90287a7423f-0: 07:52:21 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-app-vnf-b90287a7423f-0: 07:52:24 ERROR juju.worker.uniter.operation hook "install" (via explicit, bespoke hook script) failed: exit status 1

repeated infinitely

Do I need to build the charm? Or can I use it directly on the VNFD?

Thanks a lot, /PA

paaguti commented 3 years ago

Debugging inside juju, I see that the ops module is not installed...

root@juju-c6a7ad-0:/var/lib/juju/agents/unit-app-vnf-55e93c85ec5b-0/charm/hooks# ./install 
Traceback (most recent call last):
  File "./install", line 7, in <module>
    from ops.charm import CharmBase
ImportError: No module named 'ops'
paaguti commented 3 years ago

Apparently the problem lies in the way the init code tries to install paramiko on xenial.