summaryrefslogtreecommitdiffstats
path: root/modules/opnfv/utils
AgeCommit message (Collapse)AuthorFilesLines
2017-10-26Execute ovs-logger cmds with sudoDimitrios Markou1-2/+2
In some installers we execute commands as ordinary users and that causes problems when we need superuser priviledges. Change-Id: I84786e63995990e9d68803ed50879b086b0bd4af Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2017-09-26Make the ovs_logger installer independentDimitrios Markou1-6/+13
The ovs_logger library was too tightly connected to the Fuel installer. This patch make the aforementioned library installer independent Change-Id: I39115067393b8d4baf66c23baf2d9c130e4668bd Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2017-03-27Monkey patch paramiko _custom_start_clientGeorge Paraskevopoulos1-0/+20
A quick fix for the Unexpected kw arg in _custom_start_client error. Monkey patches this fix: https://github.com/robotframework/SSHLibrary/pull/159/files Change-Id: Iaca2c3cb402f1f24d096c947bec5cb3e6aaf77d6 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-03-23Add timeout in releng.ssh_utilsGeorge Paraskevopoulos1-4/+9
Change-Id: If9c7ba05946b995affd061dea2f531a0642650c2 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-20Fix dump_ovs_flows crashing when no nodes are passedJuan Vidal1-11/+5
Although it makes no sense that the lists of controller/compute nodes are empty, the function should not crash. This check ensures that the directory where the logs are written to is always created before dumping anything. Change-Id: I3a1fd8ac8ab983decb0bc227a2a22286ff5e34ce Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-15Fix ovs_logger to use correct opnfv_logger moduleGeorge Paraskevopoulos1-1/+1
Change-Id: I7c72a75324897231a583f38d424dedea42b20f3d Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-14Fix flake8 violations in relengjose.lausuch4-9/+11
Change-Id: I45769ff9c9db2de9fbba69117a92de414dd7f651 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-09[deployment handler] Refactor the old installer_handlerjose.lausuch2-5/+5
This is a util library to interact with the deployment regardless of the installer. Objects: - Deployment - Node - DeploymentHandler - ApexAdapter - FuelAdapter - Factory The installer adapters implement some of the abstract functions of DeploymentHandler class that can't be generalized. Printout of example.py: http://pastebin.com/raw/SF3A1fee More info: JIRA: RELENG-149 Change-Id: I5c9e94459d5be0bfad6ffac29908a8cfc7ba919c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-01-30Create Apex Adapterjose.lausuch1-5/+17
JIRA: RELENG-152 This implementation will help collect information from the deployment. For example: - overcloudrc file - files from the undercloud - files from the overcloud nodes (i.e. logs) Change-Id: I293837695a4b82e57b9fac6027fe8197d68b1f14 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-01-17propose a class in releng for constants (return values, installer names, ...)SerenaFeng1-0/+9
JIRA: RELENG-185 Change-Id: Iae566f42b77449778491b83aaf3d72ae120a6dd6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-01-12Add a new installer daisy adapter to modules directoryJing Sun2-2/+8
Change-Id: I9a46665941f8536f08d27a1c6d7e62f2a50ffbc2 Signed-off-by: Jing Sun <sun.jing22@zte.com.cn>
2016-12-13Merge "SSHUtils: Rename jumphost into proxy"Jose Lausuch1-35/+34
2016-12-12SSHUtils: Rename jumphost into proxyGeorge Paraskevopoulos1-35/+34
JIRA: SFC-61 Proxy is more clear than jumphost for most. Refactoring all the appearances. Change-Id: I7247d904046814c6e815c8e266637babf9445da7 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-12Add ovs_logger moduleGeorge Paraskevopoulos1-0/+118
JIRA: SFC-61 In SFC we have created a module to gather "ovs-vsctl show" and "ovs-ofctl dump-flows" information automatically. Releng is a more appropriate place for it, as it can be utilized by other projects to create artifacts with ovs logs when a testcase fails Change-Id: If6cf6a937532f7776f9b300ffdb2ab6c4fde82c8 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-22Merge "Add Exceptions and Constants in opnfv module"Morgan Richomme2-0/+141
2016-11-21Add Exceptions and Constants in opnfv moduleMorgan Richomme2-0/+141
JIRA: FUNCTEST-497 Change-Id: I4bc0d545058c4778b632911bb317789110de29d1 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-17Transform fetch_os_creds.sh into python Classjose.lausuch3-2/+133
JIRA: RELENG-168 Change-Id: Id5b1fca430c37917b554a54dd0678d9d7497dc11 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-11-16Move installer adapters to the new modules directoryjose.lausuch3-0/+172
JIRA: RELENG-149 JIRA: RELENG-161 Now that we have a modules directory in place, let's move all the shared python code to this location. We need to create a setup.py to install these modules in the system so that we don't have to modify the pythonpath. Change-Id: I7e608ce6e1e6b3d111405bc789cdb2ff7fcb49c3 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>