osmclient.osm vnfd-create fails

Bug #1840160 reported by Dominik Fleischmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
osmclient
New
High
Unassigned

Bug Description

When executing the following command:

osm vnfd-create hackfest_basic_vnf.tar.gz

I get the follwing error:

/etc/magic, 0: Warning: using regular magic file `/usr/share/misc/magic'
Traceback (most recent call last):
  File "/snap/osmclient/37/bin/osm", line 11, in <module>
    load_entry_point('osmclient==6.0.1+gb2829e9', 'console_scripts', 'osm')()
  File "/snap/osmclient/37/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/snap/osmclient/37/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/snap/osmclient/37/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/snap/osmclient/37/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/snap/osmclient/37/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/snap/osmclient/37/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/snap/osmclient/37/lib/python2.7/site-packages/osmclient/scripts/osm.py", line 1091, in vnfd_create1
    vnfd_create(ctx, filename, overwrite)
  File "/snap/osmclient/37/lib/python2.7/site-packages/osmclient/scripts/osm.py", line 1075, in vnfd_create
    ctx.obj.vnfd.create(filename, overwrite)
  File "/snap/osmclient/37/lib/python2.7/site-packages/osmclient/sol005/vnfd.py", line 124, in create
    mime_type = magic.from_file(filename, mime=True)
  File "/snap/osmclient/37/lib/python2.7/site-packages/magic.py", line 135, in from_file
    m = _get_magic_type(mime)
  File "/snap/osmclient/37/lib/python2.7/site-packages/magic.py", line 123, in _get_magic_type
    i = _instances[mime] = Magic(mime=mime)
  File "/snap/osmclient/37/lib/python2.7/site-packages/magic.py", line 67, in __init__
    magic_load(self.cookie, magic_file)
  File "/snap/osmclient/37/lib/python2.7/site-packages/magic.py", line 264, in magic_load
    return _magic_load(cookie, coerce_filename(filename))
  File "/snap/osmclient/37/lib/python2.7/site-packages/magic.py", line 195, in errorcheck_negative_one
    raise MagicException(err)
magic.MagicException: cannot read magic file `/etc/magic' (Permission denied)

This is using the descriptor package from the OSM ftp and the Canonical Distribution of OSM

summary: - osmclient.osm vnfd create fails
+ osmclient.osm vnfd-create fails
Revision history for this message
David (davigar15) wrote :

This is currently high priority, because it affects `osm nst-create` command.

osm nsd-create and osm vnfd-create can be replaced by osm upload-package, but the nst-create can't

Changed in osmclient:
importance: Undecided → High
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.