summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/command.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix pep8 errors in the files of the 'openshift-storage-libs' dirValerii Ponomarov2019-09-031-2/+2
| | | | Change-Id: Iaa7deca275958d4de68601dc16d1920f3dab85f2
* Use 'cmd_run' func instead of 'g.run' func in openshift_ops.pyValerii Ponomarov2019-05-291-2/+4
| | | | | | | | | | | | | It will allow us to recreate SSH connections when it is broken. Also, do following additional things: - Fix 'podcmd' module, where 'user' argument for 'g.run' is missing in it's wrapper. - Use "g.log.error" command to log errors when they appear inside of the 'cmd_run' func. - Delete several unused commands, instead of fixing them. - Update several test cases's logic due to the changes in the libraries. Change-Id: I908e5adcff739b6ab3a4aefaebfe46abdee22655
* Make 'command.cmd_run' func be resistable to broken SSH connectionsValerii Ponomarov2019-05-241-0/+4
| | | | | | | It happens that we get "No ssh connection" errors from time to time. So, avoid such errors recreating SSH connections if such error appears. Change-Id: Idc71c4ceece6b3040c396b25da1deadcefd29b60
* Reorder lib files removing redundant dir layerValerii Ponomarov2019-03-181-0/+23
Move all the files of 'cns-libs/cnslibs/common' dir to the 'openshift-storage-libs/openshiftstoragelibs', because 'common' is the only dir there, which doesn't really makes sense. And "cns" is old project name, so, replace it with "openshift-storage-libs". Also, fix all the imports of these libs. Change-Id: Ife00a73554e73b21b214b15016b0c8dbbf423446