summaryrefslogtreecommitdiffstats
path: root/adapters/mso-adapter-utils/src/main
AgeCommit message (Collapse)AuthorFilesLines
2020-03-01Add ability to build https endpoint to multicloudEric Multanen1-1/+7
Add parameter to allow https endpoint to be used for endpoint to multicloud (via msb). Change-Id: Ia3a296cab8e8676e7b39c0f56c03e18e18a0a777 Issue-ID: SO-1450 Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
2020-02-25enhance openstack librarySmokowski, Steven1-0/+63
Add new methods to NovaClient Issue-ID: SO-2680 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I13fdfcb7052f12ece409a19fbd33abc3f101e2d9
2020-01-30Remove Valet from openstack adapterSmokowski, Steven1-20/+0
Remove Valet from openstack adapter Clean up CI, so it passes on dev branch Fixed bad merge regarding correct method name. Added try catch around createIfNotExists methods to avoid failing sim. Fix broken Fabric Tests from merge Update logging jar dependency for CI Issue-ID: SO-2623 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I572276f751b132ec78d7ab5763f1c76bfc8256c5
2020-01-30- Include stack Status Reason when rollback isMerkel, Jeff1-2/+4
- Include stack Status Reason when rollback is suppressed. - Updated to format code to pass the build. Issue-ID: SO-2620 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Id9789930eaf7c47666a9401f8e3c57156c931b74
2020-01-23Add Neutron Port and Nova Server to ProxySmokowski, Steven2-0/+39
Add Neutron Port and Nova Server to Proxy Issue-ID: SO-2614 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I09e0302bbdb66dadae3dbac7bbf07a64dfc39d10
2020-01-15Use the timeout from the heat template instead ofBoslet, Cory1-5/+1
Use the timeout from the heat template instead of hardcode WIP Added custom uuid to vf adapter delete rest request Added and fixed compilations errors due to interface change added logic to check that the timeout is less than 120 Set the cust model uuid in bpmn so its avaiable to adapter. Added to use timeout from heat template for network. Updated unit test to account for new param change to method. Fixed and added missing param to deletevf in vnfadapterrestv2 Fixed failing junits due to adding model cust id to request Issue-ID: SO-2601 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I6ac276f37d4b6423501fb07fe081828ea3bed235
2019-11-22improve error log scoresPlummer, Brittany2-22/+22
Updated error code name to fix spelling Defaulted errorcode and errordesc to unknown when not provided Remove unused imports from nc orchestrator application Added defaulting of serviceName to error log Issue-ID: SO-2538 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I5ae960f728739e2528173b66484562742429416c
2019-10-15Cleanup - removed unused variables and methods,Oleksandr Moliavko1-1/+1
redundant initializers in several places Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: I15ae50cf327d3d125f9d86c34281093bef677c71
2019-10-04Merge "Added null checks for bp to prevent exceptions at bp.getId() calls; ↵Lukasz Muszkieta1-8/+13
fixed omissions in methods control logic; removed unneeded catch blocks"
2019-10-04Added null checks for bp to prevent exceptions atOleksandr Moliavko1-8/+13
bp.getId() calls; fixed omissions in methods control logic; removed unneeded catch blocks Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: I8347b953381ebb4a112a22fc8c58a9a32f2dbfb7
2019-10-03Merge "Added null check for executions variable to prevent a static analyzer ↵Lukasz Muszkieta1-1/+1
warning"
2019-10-03Added null check for executions variable toOleksandr Moliavko1-1/+1
prevent a static analyzer warning Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: I6c10240048452c242ab3f513a6e13e81baedbc5f
2019-10-01Improve fall out case handlingSmokowski, Steven3-211/+141
Update Openstack adapter to handle fall out cases with greater stability Issue-ID: SO-2376 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I20116cbd3b63bb29c9bf4ed99e92bd5f2b691da5
2019-09-30Added null check for execute() result to removeOleksandr Moliavko1-1/+5
static analyzer warning Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: Ifc8481b659c5b53378611f9e80db087db590ae05
2019-09-10Integrate Logging LibraryPlummer, Brittany1-2/+2
Updated SO to use ONAP provided filters and constants to meet logging standards. Removed redundant classes Updated constant references Issue-ID: SO-2301 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: Ia4e3c2b1a4dcb3881aa34d39885c8b2782880d64
2019-08-21Added null check for latestStack to prevent crashOleksandr Moliavko1-10/+14
at method calls; moved latestStack declaration according to comment by maintainer Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: Ic4bfeca94103f6c902808de39df752569580c066
2019-08-21Rewritten checks for status according to commentsOleksandr Moliavko1-5/+9
Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: I6023a043e2cf532de330060973d23a402a742e36
2019-08-13Merge "Removed unused method setHPAParameters()"Lukasz Muszkieta1-18/+0
2019-08-13Removed unused method setHPAParameters()Oleksandr Moliavko1-18/+0
Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: Ic9de579495c1400bca233b679699ae857180520b
2019-08-12Merge "Sonar fix in mso-adapter-utils"Lukasz Muszkieta2-34/+29
2019-08-12Merge "Change collections size with isEmpty"Seshu Kumar M1-2/+2
2019-08-12Sonar fix in mso-adapter-utilsParshad Patel2-34/+29
Either log or rethrow this exception Remove this unused import Make "workloadStatusReason" transient or serializable Issue-ID: SO-1841 Change-Id: I01fe8ce059b5fde95d300d2d0e5b4a1a114c479a Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2019-08-12Change collections size with isEmptysindhu36721-2/+2
Change collections size with isEmpty mso-adapter-utils class Issue-ID: SO-2187 Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com> Change-Id: I784a5839d003c42a9880287d304060cd9639f1b6
2019-08-09Replace collections size with isEmptysindhu36721-3/+3
Replace collections size with isEmpty mso-adapter-utils class Issue-ID: SO-2187 Signed-off-by: sindhu3672 <arcot.sindhuri@huawei.com> Change-Id: Icf6fc86d9d6f02571938804d214b5b5bfca72698
2019-08-09fix sonar issuesarada prasad sahoo1-12/+9
fix sonar issues Issue-ID: SO-1811 Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com> Change-Id: I8e443077864d758149bb5f62bc5dc5f718c29204
2019-08-09fix sonar issuesarada prasad sahoo1-41/+35
fix sonar issues Issue-ID: SO-1811 Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com> Change-Id: I51a9106ad99e7bb101c3d6c9a33603ac202d7cb6
2019-07-30Replaced constructor call with Boolean.valueOf() callOleksandr Moliavko1-1/+1
to prevent static analyzer warning about inefficient use of constructor Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: Id5a883628726bdd0313a46ea4808a36eccf03c9a
2019-07-25store heat env file sent to heatGamboa, Gilbert2-1/+41
Initial commit, include heat environment info in cloud-api_requests. Updated MSOHeatUtilsTest.saveStackTest unit test to assert cloudApiRequests requestBody Issue-ID: SO-2158 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I333cae7746459917ba5e64feb07db4f710b8d99b
2019-07-18Merge "Added null check for yaml to prevent crash at getParameterListFromEnvt()"Steve Smokowski1-3/+6
2019-07-18Removing application-local.yaml filesRoy, Amresh1-64/+0
Removing the application-local.yaml files because they're no longer maintained or working. Issue-ID: SO-2121 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I191c8775de931671a4657be8940e6aec64023359
2019-07-17add query stack data and populate table stepBoslet, Cory1-3/+33
Need to check if audit is enabled first in the delete record task Updates to audit delete redeisgn and data to table Various updates to logging, audit object, added tag to query, updated tag value. Updated write method to make sure an entry for this heat stack doesnt already exist to avoid duplicate entrys Updated unit test to account for get query Added so that id is not hidden from query results Updated the was delete is done plus minor updates. Updated delete method to use resttemplate instead of bowman client Combined the write and get stack data task into the external tasks. Removed the task to delete the stack data from db Updates to junit request id so its not a random id for test Updated service tasks in att BB to call external task Update to be a real uuid format due to failing unit test Updated fields to protected and updated unit test Issue-ID: SO-2111 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com> Change-Id: I8f479a046cf837403f60c330ed6ad8bc08a9c82f
2019-07-15Added null check for yaml to prevent crash atOleksandr Moliavko1-3/+6
getParameterListFromEnvt() Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko <o.moliavko@samsung.com> Change-Id: I8fabba8d99e311f01a5fd5dad166e0bb643044e3
2019-06-27Update failsafe dependency to 2.0.1Benjamin, Max1-7/+4
Updated calls to failsafe 2.0.1 API Change-Id: I2c86ca02d56a07262e330ee5f8f088d1a1f5b4a7 Issue-ID: SO-2057 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-18Use Regex to find the name on failure scenarioSmokowski, Steven1-12/+9
Use Regex to find the keypair name on failure scenario Change-Id: Ibf2167283d90407def7750fab4538f5443e57092 Issue-ID: SO-2037 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-15Merge "update multi stage code to accurately skip bbs"Max Benjamin4-0/+80
2019-06-14Merge "adapter client will not retry on openstack failure"Max Benjamin7-25/+29
2019-06-14fix delete stack error not propogatingSmokowski, Steven1-28/+38
Update logic to properly format rollback error messages Change-Id: I66ad4fd78758661be297810f393e6da759daa17b Issue-ID: SO-2014 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-14update multi stage code to accurately skip bbsBenjamin, Max4-0/+80
moved around classes to packages that make more sense updated license headers in java files converted MultiStage logic to FlowManipulator moved tests to new package location and fixed issues allow for custom listeners before flowsToExecute moved validation classes to listener.validation Change-Id: Ic5416812ef9c5611fe19bf9b6aa316373b110ec6 Issue-ID: SO-2021 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-14adapter client will not retry on openstack failureSangalang, Felix7-25/+29
Utilized the original util method with boolean argument. inventory audit: adapter client should not retry on openstack failures. Change-Id: Ibdcec58c662f54ccef887e74f17634baa9df2457 Issue-ID: SO-2016 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-09Merge "Switched name and id, and updated tests"Steve Smokowski1-2/+2
2019-06-09Update stack save to only save the params objectSmokowski, Steven1-3/+3
use get parameters not store entire request of stack Update stack save to only save off the params object Change-Id: I41e0e03b412e37f12d348c84a1512c9bf4403748 Issue-ID: SO-2002 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-09Switched name and id, and updated testsPlummer, Brittany1-2/+2
Switched name and id, and updated tests Change-Id: Ica8251be71d2fd9362e4f209755d80bc36ccbf66 Issue-ID: SO-2000 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-07Merge "Updated to use the logicalResourceId"Steve Smokowski1-1/+1
2019-06-06Updated to use the logicalResourceIdPlummer, Brittany1-1/+1
Updated to use the logicalResourceId instead of physicalResourceId Change-Id: I2ebc800cf7ce4b5794bece7c304ebd7d1ac92088 Issue-ID: SO-1979 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-06change the update line to update the latest stackKalkere Ramesh, Sharan1-1/+1
fix the unit test for latest stack update change the update line to update the latest stack Change-Id: I8b7f903c9f7bbae1163f1363a19f18b2803f558c Issue-ID: SO-1977 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-06-06Merge remote-tracking branch 'origin/dublin' into 'origin/master'Steve Smokowski3-64/+37
Change-Id: I551ea3f29a76dc99532455ea4d7e84a316f9bf38 Issue-ID: SO-1980 Signed-off-by: Smokowski, Steve (ss835w) <ss835w@us.att.com>
2019-05-31Fix issue where request was not being updatedSmokowski, Steven2-3/+12
Fix issue where request was not being updated Change-Id: Ib4b3809797449224ac417facfaa4bf48d91a1ecb Issue-ID: SO-1966 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-05-31fix keypair conflict issue in openstack adapterSmokowski, Steven9-509/+313
Fix wiremock stubs to return proper data and url Fix copyright header issue on unit test file Fix keypair issue, clean up unit tests and logging Fix issues found in unit testing, update data Fix broken Unit tests that used invalid data Continue Refactor to support keypair failure scenario Update logic for when to auto delete a stuck keypair Change-Id: Ice5256cf0381a3b46d1c442907c0f321a1c0d006 Issue-ID: SO-1897 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-05-15store openstack request status in requestdbSmokowski, Steven14-136/+868
Openstack request status now stored in request db Change-Id: Ida8f4f613d406c2b834ab190e01d5aaf2f16dd3d Issue-ID: SO-1867 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
2019-05-03Merge "Merge remote-tracking branch 'origin/dublin'"Marcus Williams1-1/+1