Bases: object
Ensures file path is built correctly for remote UNIX system
Parameters: |
|
---|---|
Returns: | a uniform path constructed from both strings |
Retrieve a file via FTP
Parameters: |
|
---|---|
Raises : | PowerVMFileTransferFailed |
Method to transfer a file via ftp.
Parameters: |
|
---|---|
Raises : | PowerVMFileTransferFailed |
Method to execute remote command as root.
Parameters: |
|
---|---|
Returns: | Tuple – a tuple of (stdout, stderr) |
Raises : | nova.exception.ProcessExecutionError |
Method to connect to remote system using ssh protocol.
Parameters: | connection – a Connection object. |
---|---|
Returns: | paramiko.SSHClient – an active ssh connection. |
Raises : | PowerVMConnectionFailed |
Context allowing for SSH between VIOS partitions
This context will build an SSH key on the source host, put the key into the authorized_keys on the destination host, and make the private key file name available within the context. The key files and key inserted into authorized_keys will be removed when the context exits.
Parameters: |
|
---|