Bug #45284
cephadm: Access host files on "cephadm shell"
Status:
Resolved
Priority:
Normal
Assignee:
Ricardo Marques
Category:
cephadm (binary)
Target version:
% Done:
0%
Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Description
I have a file on my host, that I would like to use to set a "config-key":
master:/etc/ceph # head -1 /tmp/ceph-salt-ssh-id_rsa -----BEGIN RSA PRIVATE KEY-----
But when I try to use that file, I get an error because the file is not accessible inside the container:
master:/etc/ceph # cephadm shell -- ceph config-key set mgr/cephadm/ssh_identity_key -i /tmp/ceph-salt-ssh-id_rsa ... Can't open input file /tmp/ceph-salt-ssh-id_rsa: [Errno 2] No such file or directory: '/tmp/ceph-salt-ssh-id_rsa'
History
#1 Updated by Ricardo Marques almost 4 years ago
- Assignee set to Ricardo Marques
#2 Updated by Ricardo Marques almost 4 years ago
- Status changed from New to In Progress
#3 Updated by Ricardo Marques almost 4 years ago
- Pull request ID set to 34773
#4 Updated by Sebastian Wagner almost 4 years ago
- Status changed from In Progress to Pending Backport
#5 Updated by Sebastian Wagner almost 4 years ago
- Status changed from Pending Backport to Resolved
- Target version changed from v16.0.0 to v15.2.4