summaryrefslogtreecommitdiffstats
path: root/docker/storperf-master/rest_server.py
AgeCommit message (Collapse)AuthorFilesLines
2019-12-20Add Agent PortMark Beierl1-1/+2
Allows the port number to be added to the IP addresses used for initiating worklaods. This is done specifically for containerized workload where the exposed port might need to be specified per workload agent to allow multiple agents to run on the same host. STORPERF-270 Change-Id: If011e686d89e5667509ca57e25f05fba1ed52ed1 Signed-off-by: Mark Beierl <mbeierl@vmware.com>
2019-12-17Sunset stack supportMark Beierl1-11/+33
Adds sunset marker to all stack related calls. STORPERF-269 Change-Id: I79108104c5bf52d253a52eadf4173e95324ea057 Signed-off-by: Mark Beierl <mbeierl@vmware.com>
2018-11-09Race condition in job executembeierl1-2/+0
Fixes a problem in job execution where the stack is not checked for slave IP addresses if it is still cached. Change-Id: Ie5719b233e86474b17f6ff04c6b47f8110afcc6d Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-10-29Add Stackless Supportmbeierl1-12/+102
Adds ability to specify IP address list instead of looking up full list from OpenStack Heat. Adds stackless mode to bypass OpenStack heat altogether if we are running against bare metal or other nodes that are not under Heat's domain. Adds ability to create filesystems and mount them for profiling. Adds number of jobs and number of files to create to the initializations API so we can lay down files and fill them with random data ahead of the actual performance run. Change-Id: Ia787f8b863bc92b38dd29b3cf17eda0d48f3bcd5 JIRA: STORPERF-265 Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-07-19Merge "Allow user to specify stack name on stack create"Mark Beierl1-9/+82
2018-07-18Allow user to specify stack name on stack createAmeed Ashour1-9/+82
this allow Storperf to run multiple time at same time using same OpenStack Adds stack_name to all /configurations API requests as an optional parameter. Adds stack_name to the /jobs API POST as an optional parameter. Adds stack_name to the /initializations API as an optional parameter. Adds all stack info to the metadata for later reporting. JIRA: STORPERF-256 Change-Id: Ief69c69472e08ee821555f3a006ab9edc7ec177f Signed-off-by: Ameed Ashour <Ameed.Ashour.ext@nokia.com>
2018-07-17Tiding up post runmbeierl1-0/+2
Sometimes extra slave IPs are left behind in memory and deleting a job shows multiples of the same IP being cancelled. Change-Id: I7a1bd2f327a46a89fcb3df7e25356c946afb8262 Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-07-16Allow user to specify subnet cidr on stack createopnfv-7.0.stable.RC1Ameed Ashour1-0/+5
Change-Id: If910ac18f405c98a0e1f48d38d338ad4f61f6004 JIRA: STORPERF-255 Signed-off-by: Ameed Ashour <Ameed.Ashour.ext@nokia.com>
2018-07-16Allow multiple initializesmbeierl1-0/+1
Fixes a bug where custom workloads could take priority over the initialization API and the warm up does not actually work Change-Id: I984fc8d5e8e2871bb7f4420924efe38e2608cb4d Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-07-13Initialization APImbeierl1-0/+63
Adds a new API that performs initialization of the target filename or device instead of having to rely on the magic _warm_up workload name. Change-Id: Icb7ece05fb6190802df08f5a4aeeba62652757db JIRA: STORPERF-254 Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-07-06Support Custom Workloadsmbeierl1-3/+89
Refactors interaction with test_executor to clean up the tight coupling. Adds ability to specify custom workloads. Change-Id: Idbadcec1f42714e96c5f96d1e45c05982a531503 JIRA: STORPERF-246 Co-Authored-By: Ameed.Ashour.Ext@Nokia.com Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-07-05Adds volume_type supportmbeierl1-8/+6
Adds a new optional parameter, volume_type, to the configurations REST API, allowing the user to specify the volume type to create. Change-Id: I29b7bee442a5e1b6b98be439c06a58e3fd322943 JIRA: STORPERF-217 Co-Authored-By: Ameed.Ashour.Ext@Nokia.com Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-06-26Adds IP Addresses to Config APImbeierl1-1/+4
Uses the IP addresses of the VMs in the stack to populate a new slave_addresses field in the REST API. Change-Id: I363a4d118cf5c786f4faf8432ea884cb010c6db5 JIRA: STORPERF-239 Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-05-10Adds Volume Count and Dynamic Reloadmbeierl1-0/+6
Adds a volume_count parameter that allows the user to change the number of volumes. Test execution still uses each volume specified and appends it to the host ip address in the graphite metrics. Changes the cache policy of the stack from SNAPS-OO so that changes made to the stack are refelcted in StorPerf. Fixes the documentation path and updates the docs for the above changes. Change-Id: I5b9160b469e80d4f7d6906ac270bb3b75411fb5a JIRA: STORPERF-242 Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-04-05Fixing daily jobmbeierl1-0/+1
Use Ubuntu 16.04 instead as it is LTS and not subject to change Enhance error reporting on stack creation failure Change-Id: Ie187ae44ce66564da9779733a418fc8bb4e1c320 JIRA: STORPERF-240 Signed-off-by: mbeierl <mark.beierl@dell.com>
2018-01-11WIP - Use SNAPS to launch StorPerf StackTaseer Ahmed1-1/+3
Change-Id: I8857e6e0dd2bf9cd7c38cf18a7c239d7eb993d05 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-12-20Fixes Availability Zone Supportmbeierl1-2/+2
Fixes typo and passes the availability zone parameter through all the heat templates. Change-Id: I12d9d5d32ceb6461833fcfb4ea2961a34b97c35a JIRA: STORPERF-225 Signed-off-by: mbeierl <mark.beierl@dell.com>
2017-09-27Returns job id and statusTaseer Ahmed1-1/+7
- If the user GETs for job without ID and type status, return all jobs along with status JIRA: STORPERF-213 Change-Id: I5518acae45f259644c961c6dc9f0cb170b86b6e1 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-09-19Adding Proxy Path Supportmbeierl1-0/+35
Adds WSGI wrapper to allow the path to be arbitrary as long as it is passed in the reverse proxy Change-Id: I6feca119093a3b3c60ad615f4e4b59bb2c212800 Signed-off-by: mbeierl <mark.beierl@dell.com>
2017-09-01Support for different agent OSTaseer Ahmed1-1/+7
JIRA: STORPERF-175 Change-Id: I64d13c77c18dd129a79dde3bf9a8bc996019bff5 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-08-28Standardize Outputmbeierl1-5/+8
Re-arrange the JSON output so that it matches the format that gets sent and retrieved from the testresults db. Change-Id: I9f15e553e94b27b9e5a36f4984789c5e710feac4 JIRA: STORPERF-200 Signed-off-by: mbeierl <mark.beierl@dell.com>
2017-08-23Graphite Standalone containerShrenik1-1/+2
A new Graphite container is used Metrics are sent to both Graphite instances However, it seems that some metrics might be missing This is however a direct plugin. There are differences in carbon.conf, storage-schemas.conf and other files as well. It is suggested to write own Dockerfile instead of using the image available. We anyway have to do it with respect ARM Support. Change-Id: Id34c728f598150caac23ac167c3cce5eaf183a6c JIRA: STORPERF-142 Signed-off-by: Shrenik <shrenik.jain@research.iiit.ac.in> Signed-off-by: mbeierl <mark.beierl@dell.com>
2017-08-20REST API for logsTaseer Ahmed1-0/+30
JIRA: STORPERF-94 Change-Id: I59189109d7f731977fc682b3fb78e60bc92a8270 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-07-31Merge "Fixing typos"Mark Beierl1-4/+4
2017-07-31Fixing typosmbeierl1-4/+4
Change-Id: I985085d0f75ea9fdf10b0f2572cef0c894ceb9e8 Signed-off-by: mbeierl <mark.beierl@dell.com>
2017-07-27Add availability zone option to launch agent.Taseer Ahmed1-2/+8
JIRA: STORPERF-178 Change-Id: I1a5c1a0d1c3b700a0858f644b01553bf0b5675de Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-07-25Getting a list of Jobs.Taseer Ahmed1-1/+1
JIRA: STORPERF-184 - Remove "required" condition for getting Job. - Update documentation. Change-Id: I4dad1dfdb998c78c9c6620760614a36dd62318ec Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-07-25Returns all job ID's if queried without ID.Taseer1-6/+9
JIRA: STORPERF-184 Change-Id: I631b4adbd830420a3b502e4f2a86a66824c87fcd Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-07-13Add reason for stack creation failureTaseer1-1/+1
JIRA: STORPERF-180 Change-Id: Ic10f5d96ed0d7b38ccd21b59a68b1ccec403023c Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
2017-07-11Change all pathsmbeierl1-0/+342
Changes the paths of all source code so that it exists under the dockerfile location for each container. This way we can use COPY instead of git clone, as well as use the existing JJB. Change-Id: I883b2957d89659c164fff0a1ebc4d677c534796d JIRA: STORPERF-188 Signed-off-by: mbeierl <mark.beierl@dell.com>