-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create standard for mandatory and supported IaaS services (#587)
* Create scs-XXXX-vN-mandatory-and-supported-IaaS-services.md Signed-off-by: josephineSei <[email protected]> * Apply suggestions from code review Co-authored-by: Markus Hentsch <[email protected]> Signed-off-by: josephineSei <[email protected]> * Create test to check for mandatory services Signed-off-by: Josephine Seifert <[email protected]> --------- Signed-off-by: josephineSei <[email protected]> Co-authored-by: Markus Hentsch <[email protected]> Co-authored-by: anjastrunk <[email protected]> Co-authored-by: Sven <[email protected]>
- Loading branch information
1 parent
bb54f35
commit d2ea0eb
Showing
3 changed files
with
447 additions
and
0 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
Standards/scs-0123-v1-mandatory-and-supported-IaaS-services.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
title: Mandatory and Supported IaaS Services | ||
type: Standard | ||
status: Draft | ||
track: IaaS | ||
--- | ||
|
||
## Introduction | ||
|
||
To be SCS-compliant a Cloud Service Provider (CSP) has to fulfill all SCS standards. | ||
Some of those standards are broad and consider all APIs of all services on the IaaS-Layer like the consideration of a [role standard](https://github.com/SovereignCloudStack/issues/issues/396). | ||
There exist many services on that layer and for a first step they need to be limited to have a clear scope for the standards and the Cloud Service Providers following them. | ||
For this purpose, this standard will establish lists for mandatory services whose APIs have to be present in a SCS cloud as well as supported services, which APIs are considered by some standards and may even be tested for their integration but are optional in a sense that their omission will not violate SCS conformance. | ||
|
||
## Motivation | ||
|
||
There are many OpenStack APIs and their corresponding services that can be deployed on the IaaS level. | ||
These services have differences in the quality of their implementation and liveness and some of them may be easily omitted when creating an IaaS deployment. | ||
To fulfill all SCS-provided standards only a subset of these APIs are required. | ||
Some more but not all remaining OpenStack APIs are also supported additionally by the SCS project and may be part of its reference implementation. | ||
This results in different levels of support for specific services. | ||
This document will give readers insight about how the SCS classifies the OpenStack APIs accordingly. | ||
If a cloud provides all mandatory and any number of supported OpenStack APIs, it can be tested for SCS-compliance. | ||
Any unsupported APIs will not be tested. | ||
|
||
## Mandatory IaaS APIs | ||
|
||
The following IaaS APIs MUST be present in SCS-compliant IaaS deployments and could be implemented with the corresponding OpenStack services: | ||
|
||
| Mandatory API | corresponding OpenStack Service | description | | ||
|-----|-----|-----| | ||
| **block-storage** | Cinder | Block Storage service | | ||
| **compute** | Nova | Compute service | | ||
| **identity** | Keystone | Identity service | | ||
| **image** | Glance | Image service | | ||
| **load-balancer** | Octavia | Load-balancer service | | ||
| **network** | Neutron | Networking service | | ||
| **s3** | S3 API object storage | Object Storage service | | ||
|
||
:::caution | ||
|
||
S3 API implementations may differ in certain offered features. | ||
CSPs must publicly describe, which implementation they use in their deployment. | ||
Users should always research whether a needed feature is supported in the offered implementation. | ||
|
||
::: | ||
|
||
The endpoints of services MUST be findable through the `catalog list` of the identity API[^1]. | ||
|
||
[^1]: [Integrate into the service catalog of Keystone](https://docs.openstack.org/keystone/latest/contributor/service-catalog.html) | ||
|
||
## Supported IaaS APIs | ||
|
||
The following IaaS APIs MAY be present in SCS-compliant IaaS deployment, e.g. implemented thorugh the corresponding OpenStack services, and are considered in the SCS standards. | ||
|
||
| Supported API | corresponding OpenStack Service | description | | ||
|-----|-----|-----| | ||
| **bare-metal** | Ironic | Bare Metal provisioning service | | ||
| **billing** | Cloudkitty | Rating/Billing service | | ||
| **dns** | Designate | DNS service | | ||
| **ha** | Masakari | Instances High Availability service | | ||
| **key-manager** | Barbican | Key Manager service | | ||
| **object-store** | Swift | Object Store with different possible backends | | ||
| **orchestration** | Heat | Orchestration service | | ||
| **shared-file-systems** | Manila | Shared File Systems service | | ||
| **telemetry** | Ceilometer | Telemetry service | | ||
| **time-series-databse** | Gnocchi | Time Series Database service | | ||
|
||
## Unsupported IaaS APIs | ||
|
||
All other OpenStack services, whose APIs are not mentioned in the mandatory or supported lists will not be tested for their compatibility and conformance in SCS clouds by the SCS community. | ||
Those services MAY be integrated into IaaS deployments by a Cloud Service Provider on their own responsibility but the SCS will not assume they are present and potential issues that occur during deployment or usage have to be handled by the CSP on their own accord. | ||
The SCS standard offers no guarantees for compatibility or reliability of services categorized as unsupported. | ||
|
||
## Related Documents | ||
|
||
[The OpenStack Services](https://www.openstack.org/software/) | ||
|
||
## Conformance Tests | ||
|
||
The presence of the mandatory OpenStack APIs will be tested in [this test-script](https://github.com/SovereignCloudStack/standards/blob/mandatory-and-supported-IaaS-services/Tests/iaas/mandatory-services/mandatory-iaas-services.py). | ||
The test will further check, whether the object store endpoint is compatible to s3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Mandatory IaaS Service APIs Test Suite | ||
|
||
## Test Environment Setup | ||
|
||
### Test Execution Environment | ||
|
||
> **NOTE:** The test execution procedure does not require cloud admin rights. | ||
To execute the test suite a valid cloud configuration for the OpenStack SDK in the shape of "`clouds.yaml`" is mandatory[^1]. | ||
**The file is expected to be located in the current working directory where the test script is executed unless configured otherwise.** | ||
|
||
[^1]: [OpenStack Documentation: Configuring OpenStack SDK Applications](https://docs.openstack.org/openstacksdk/latest/user/config/configuration.html) | ||
|
||
The test execution environment can be located on any system outside of the cloud infrastructure that has OpenStack API access. | ||
Make sure that the API access is configured properly in "`clouds.yaml`". | ||
|
||
It is recommended to use a Python virtual environment[^2]. | ||
Next, install the OpenStack SDK and boto3 required by the test suite: | ||
|
||
```bash | ||
pip3 install openstacksdk | ||
pip3 install boto3 | ||
``` | ||
|
||
Within this environment execute the test suite. | ||
|
||
[^2]: [Python 3 Documentation: Virtual Environments and Packages](https://docs.python.org/3/tutorial/venv.html) | ||
|
||
## Test Execution | ||
|
||
The test suite is executed as follows: | ||
|
||
```bash | ||
python3 mandatory-iaas-services.py --os-cloud mycloud | ||
``` | ||
|
||
As an alternative to "`--os-cloud`", the "`OS_CLOUD`" environment variable may be specified instead. | ||
The parameter is used to look up the correct cloud configuration in "`clouds.yaml`". | ||
For the example command above, this file should contain a `clouds.mycloud` section like this: | ||
|
||
```yaml | ||
--- | ||
clouds: | ||
mycloud: | ||
auth: | ||
auth_url: ... | ||
... | ||
... | ||
``` | ||
|
||
If the deployment uses s3 only and does not have the object store endpoint specified in the service catalog, the "`--s3-endpoint`" flag may be used to specify the s3 endpoint. | ||
In that case the "`--s3-access`" and "`--s3-access-secret`" flags must also be set, to give all necessery credentials to the test suite: | ||
|
||
```bash | ||
python3 mandatory-iaas-services3.py --os-cloud mycloud2 --s3-endpoint "http://s3-endpoint:9000" --s3-access test-user --s3-access-secret test-user-secret | ||
``` | ||
|
||
For any further options consult the output of "`python3 volume-backup-tester.py --help`". | ||
|
||
### Script Behavior & Test Results | ||
|
||
If all tests pass, the script will return with an exit code of `0`. | ||
|
||
If any test fails, the script will halt, print the exact error to `stderr` and return with a non-zero exit code. | ||
|
||
There is no cleanup done by this test as it mainly only inspect the service catalog and only for the object store creates a bucket, which is then promptly deleted. |
Oops, something went wrong.