{"id":22982178,"url":"https://github.com/osism/openstack-simple-stress","last_synced_at":"2025-08-13T17:34:31.349Z","repository":{"id":37966400,"uuid":"248986763","full_name":"osism/openstack-simple-stress","owner":"osism","description":"A tool to perform simple load tests on an OpenStack environment","archived":false,"fork":false,"pushed_at":"2024-12-14T20:20:24.000Z","size":281,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-14T21:23:59.552Z","etag":null,"topics":["openstack","python"],"latest_commit_sha":null,"homepage":"https://www.osism.tech","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osism.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-21T13:56:24.000Z","updated_at":"2024-12-14T20:20:27.000Z","dependencies_parsed_at":"2024-05-18T22:30:03.845Z","dependency_job_id":"d3a37988-33dc-46b3-a4fa-f4e0d9b62bc3","html_url":"https://github.com/osism/openstack-simple-stress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osism%2Fopenstack-simple-stress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osism%2Fopenstack-simple-stress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osism%2Fopenstack-simple-stress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osism%2Fopenstack-simple-stress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osism","download_url":"https://codeload.github.com/osism/openstack-simple-stress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229773543,"owners_count":18122035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openstack","python"],"created_at":"2024-12-15T02:16:29.580Z","updated_at":"2024-12-15T02:16:30.007Z","avatar_url":"https://github.com/osism.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openstack-simple-stress\n\nA tool to perform simple load tests on an OpenStack environment. For use by integrators\nwhen setting up new environments or for rapid problem analysis. Rally and Tempest are\nused for real tests and regular checks.\n\n## Usage\n\n* Clone Repository\n* Install Tox\n  (if not already installed)\n  ```\n  pipenv install tox\n  ```\n* Show help\n  ```\n  $ pipenv run tox -- --help\n  simple-stress: commands[0]\u003e python3 openstack_simple_stress/main.py --help\n\n   Usage: main.py [OPTIONS]\n\n  ╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮\n  │ --no-cleanup                                                                                                               │\n  │ --debug                                                                                                                    │\n  │ --no-delete                                                                                                                │\n  │ --volume                                                                                                                   │\n  │ --no-wait                                                                                                                  │\n  │ --interval             INTEGER                                           [default: 10]                                     │\n  │ --number               INTEGER                                           [default: 1]                                      │\n  │ --parallel             INTEGER                                           [default: 1]                                      │\n  │ --timeout              INTEGER                                           [default: 600]                                    │\n  │ --volume-number        INTEGER                                           [default: 1]                                      │\n  │ --volume-size          INTEGER                                           [default: 1]                                      │\n  │ --cloud                TEXT                                              [default: simple-stress]                          │\n  │ --flavor               TEXT                                              [default: SCS-1V-1-10]                            │\n  │ --image                TEXT                                              [default: Ubuntu 22.04]                           │\n  │ --subnet-cidr          TEXT                                              [default: 10.100.0.0/16]                          │\n  │ --prefix               TEXT                                              [default: simple-stress]                          │\n  │ --compute-zone         TEXT                                              [default: nova]                                   │\n  │ --storage-zone         TEXT                                              [default: nova]                                   │\n  │ --affinity             [soft-affinity|soft-anti-affinity|affinity|anti-  [default: soft-anti-affinity]                     │\n  │                        affinity]                                                                                           │\n  │ --volume-type          TEXT                                              [default: __DEFAULT__]                            │\n  │ --help                                                                   Show this message and exit.                       │\n  ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n\n    simple-stress: OK (0.35=setup[0.03]+cmd[0.32] seconds)\n    congratulations :) (0.39 seconds)\n  ```\n\n## Example Usage\n\n### Run a stresstest\n  ```\n  $ tox -- --parallel 4 --number 20 --network test --cloud yolo\n  simple-stress run-test-pre: PYTHONHASHSEED='3782665235'\n  simple-stress run-test: commands[0] | python3 src/main.py --parallel 4 --number 20 --network test --cloud yolo\n  2022-03-09 19:23:50 - INFO - Checking flavor SCS-1L:1:5\n  2022-03-09 19:23:51 - INFO - flavor.id = 596b4231-ddc0-4271-b678-3d97ec1d7c14\n  2022-03-09 19:23:51 - INFO - Checking image Ubuntu 20.04\n  2022-03-09 19:23:51 - INFO - image.id = c62cee00-838b-4de7-a0bc-adbda6d52d6f\n  2022-03-09 19:23:51 - INFO - Checking network test\n  2022-03-09 19:23:51 - INFO - network.id = cf9d9140-119e-4e02-9f57-bde70dc6875b\n  2022-03-09 19:23:51 - INFO - Creating server simple-stress-0\n  2022-03-09 19:23:51 - INFO - Creating server simple-stress-1\n  2022-03-09 19:23:52 - INFO - Waiting for server b02d24be-9d94-4cf5-9f57-87ef00630146 (simple-stress-1)\n  2022-03-09 19:23:52 - INFO - Waiting for server b70f1b73-f27d-413f-a23f-77cdd484ee09 (simple-stress-0)\n  2022-03-09 19:24:23 - INFO - Waiting for boot / test results of b02d24be-9d94-4cf5-9f57-87ef00630146 (simple-stress-1)\n  2022-03-09 19:24:23 - INFO - Waiting for boot / test results of b70f1b73-f27d-413f-a23f-77cdd484ee09 (simple-stress-0)\n  2022-03-09 19:26:06 - INFO - Deleting server b02d24be-9d94-4cf5-9f57-87ef00630146 (simple-stress-1)\n  2022-03-09 19:26:06 - INFO - Deleting server b70f1b73-f27d-413f-a23f-77cdd484ee09 (simple-stress-0)\n  2022-03-09 19:26:07 - INFO - Waiting for deletion of server b02d24be-9d94-4cf5-9f57-87ef00630146 (simple-stress-1)\n  2022-03-09 19:26:07 - INFO - Waiting for deletion of server b70f1b73-f27d-413f-a23f-77cdd484ee09 (simple-stress-0)\n  2022-03-09 19:26:17 - INFO - Server b02d24be-9d94-4cf5-9f57-87ef00630146 finished\n  2022-03-09 19:26:17 - INFO - Server b70f1b73-f27d-413f-a23f-77cdd484ee09 finished\n  __________________________________________________________________ summary __________________________________________________________________\n    simple-stress: commands succeeded\n    congratulations :)\n  ```\n### Create a number of virtual machines and remove them manually\n\n* Create a dedicated domain/project and configure a access profile (`clouds.yml`, `secure.yml`\n* Create virtual machines\n  ```\n  $ pipenv run tox -- --parallel 10 --number 20 --prefix testvm --volume --no-delete --flavor SCS-1L-1 --cloud yolo\n  ```\n* Check the status of the created machines\n  ```\n  $ openstack server list --long\n  ```\n* Remove the virtual machines\n  ```\n  $ openstack server list --all-projects -f json --os_cloud yolo | \\\n    jq -r '.[] | select(.Name | test(\"^testvm-\\\\d+\")) | .ID'| \\\n    xargs openstack --os_cloud server delete \n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosism%2Fopenstack-simple-stress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosism%2Fopenstack-simple-stress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosism%2Fopenstack-simple-stress/lists"}