Permission denied reading in .ssh/

Bug #1842920 reported by David
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
osmclient
New
Undecided
Unassigned

Bug Description

Executing this:

osm ns-create --ns_name proxycharm --nsd_name hackfest_proxycharm-ns --vim_account microstack-site --ssh_keys .ssh/id_rsa.pub

It happens the following:

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 1169, in ns_create
    wait=wait)
  File "/snap/osmclient/37/lib/python2.7/site-packages/osmclient/sol005/ns.py", line 161, in create
    with open(pubkeyfile, 'r') as f:
IOError: [Errno 13] Permission denied: u'.ssh/id_rsa.pub'

Revision history for this message
David (davigar15) wrote :

Adam Israel:
It doesn't have permissions to dotfile directories. It's a strictly confined app, so it's permissions need to be explicitly granted.

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.