summaryrefslogtreecommitdiffstats
path: root/modules/opnfv/deployment/fuel/adapter.py
AgeCommit message (Collapse)AuthorFilesLines
2018-09-26modules.opnfv: fuel adapter: Switch to MCPAlexandru Avadanii1-147/+83
The current codebase was intended for Fuel@OPNFV up to and including the Danube release (based on Fuel@Openstack). Starting with the Euphrates release, Fuel@OPNFV is based on Mirantis Cloud Platform (MCP), so the Fuel adapter in modules.opnfv needs a rework to accomodate the new platform: - remove unused obsolete code in opnfv.utils; - switch to key-based SSH auth instead of password-based; - drop proxy-ing SSH to cluster nodes via installer node, instead SSH directly via PXE/admin network; Notes: - MaaS node (when present) is marked with 'installer' role to prevent ovs-vsctl queries on it; - gtw01 node (when present) is not marked with any role yet; JIRA: FUEL-394 Change-Id: If2b7744b950cd502df8eaca0137c9f845a9d077d Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2017-03-01[deployment_handler] Fix apt-cache to get installed versionCiprian Barbu1-1/+1
In case multiple versions of a package exist on the repo, the old method using apt-cache show opendaylight returned everything available rather than what was actually installed. Using apt-cache policy opendaylight is more appropriate. Change-Id: I8068c18ab25ca532988f24277fd48a4c42647891 Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
2017-02-17[deployment_handler] Fix some nits and improve outputjose.lausuch1-7/+11
Change-Id: I283564c2f9a651b6c6fd6ec8986a6c1d98a58b2c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-16[deployment_handler] Fix getting roles from fuel node outputRomanos Skiadas1-1/+1
The roles column that the fuel adapter should look in is "roles" but it accidentally ended up looking in "pending_roles". Change-Id: Ifcc59c16da2c604e60ca4d6e3ab33b5b91a029b6 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-02-15Bug fix: We are comparing an integer with a string“Manuel Buil”1-1/+1
The config file in SFC using this library was providing an integer whereas FUEL was providing a string. e.g. we were comparing 5 with '5' and thus the return was false Change-Id: I04c27403d479c45acd102a3dde848ba5b2427a10 Signed-off-by: “Manuel Buil” <mbuil@suse.com>
2017-02-14[deployment handler] Add Roles and Status classesjose.lausuch1-7/+17
By doing this, we can handle roles and status as a list in the node object. Output: http://pastebin.com/raw/PAMrWRJi Change-Id: I0e3c7f375b19548a7e424e3257b84424c8fe4725 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-14[deployment handler] Add support for Clusters in Fueljose.lausuch1-70/+88
Fix minor apex issues. Output of example.py http://pastebin.com/raw/x70Uj85V Change-Id: I6013f5c4d916126f79afd40a6d6a35278c8ed26f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-09[deployment handler] Refactor the old installer_handlerjose.lausuch1-0/+167
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>