|
1 | 1 | # SCS flavor name tooling |
2 | 2 |
|
3 | | -This directory contains three basic tools: |
| 3 | +This directory contains two basic tools: |
4 | 4 |
|
5 | 5 | - `cli.py`, a command-line interface for syntax-checking flavor names, turning them into prose descriptions |
6 | 6 | or yaml documents, and interactively constructing flavor names; |
7 | | -- `flavor-form.py`, a CGI script for a web form that offers roughly the same features, |
8 | | -- `flavor-names-openstack.py`, a script that connects to an OpenStack environment and checks the syntax |
9 | | - of all publicly available flavors. |
| 7 | +- `flavor-form.py`, a CGI script for a web form that offers roughly the same features. |
10 | 8 |
|
11 | 9 | Besides, it contains the scripts `flavor-name-check.py` and `flavor-name-describe.py`, which have been |
12 | 10 | superseded by `cli.py`, and it contains `flavor-form-server.py`, which is a most simple webserver that can |
@@ -188,41 +186,3 @@ The form is accessible at http://0.0.0.0:8000/cgi-bin/flavor-form.py |
188 | 186 | ^C |
189 | 187 | Keyboard interrupt received, exiting. |
190 | 188 | ``` |
191 | | - |
192 | | -## flavor-names-openstack.py |
193 | | - |
194 | | -As with `cli.py`, we have a look at the built-in help: |
195 | | - |
196 | | -```console |
197 | | -$ ./flavor-names-openstack.py -h |
198 | | -Usage: flavor-names-openstack.py [options] |
199 | | -Options: [-c/--os-cloud OS_CLOUD] sets cloud environment (default from OS_CLOUD env) |
200 | | - [-C/--mand mand.yaml] overrides the list of mandatory flavor names |
201 | | - [-1/--v1prefer] prefer v1 flavor names (but still tolerates v2 |
202 | | - [-o/--accept-old-mandatory] prefer v2 flavor names, but v1 ones can fulfill mand list |
203 | | - [-2/--v2plus] only accepts v2 flavor names, old ones result in errors |
204 | | - [-3/--v3] differentiate b/w mand and recommended flavors |
205 | | - [-v/--verbose] [-q/--quiet] control verbosity of output |
206 | | -This tool retrieves the list of flavors from the OpenStack cloud OS_CLOUD |
207 | | - and checks for the presence of the mandatory SCS flavors (read from mand.yaml) |
208 | | - and reports inconsistencies, errors etc. It returns 0 on success. |
209 | | -``` |
210 | | - |
211 | | -Example invocation: |
212 | | - |
213 | | -```console |
214 | | -$ OS_CLOUD=wave1-compliance ./flavor-names-openstack.py |
215 | | -wave1-compliance: |
216 | | - OtherFlavorSummary: |
217 | | - TotalAmount: 0 |
218 | | - SCSFlavorSummary: |
219 | | - FlavorsWithWarnings: 0 |
220 | | - MandatoryFlavorsMissing: 0 |
221 | | - MandatoryFlavorsPresent: 26 |
222 | | - OptionalFlavorsValid: 37 |
223 | | - OptionalFlavorsWrong: 0 |
224 | | - TotalAmount: 63 |
225 | | - TotalSummary: |
226 | | - Errors: 0 |
227 | | - Warnings: 0 |
228 | | -``` |
0 commit comments