api-to-deploy-created-du-in-swift-glance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Solum |
In Progress
|
Medium
|
Devdatta Kulkarni |
Bug Description
We need an API to deploy a pre-built application container (DU). This is required in situations where users have already built the application's container and want to deploy it, without having to build it first. The application container might be available in the configured solum storage (glance/swift) which might have been put there as part of the previous build.
CLI Usage:
solum app deploy --build-id <build-id>
solum app deploy --image-id <glance-
API:
POST /v1/apps/
The request body will specify the build-id or image-id which is specified on the CLI.
Error checking:
Check the image-id in the configured back-end storage. Return an error if the image is not found in the configured storage.
What needs to happen on the back-end?
The main change is in solum-worker
solum-worker:
- If the configured storage is swift and if the configured deployer is heat, we need to generate tempURL for the specified image. The code that generates tempURL is currently in bash script called from within build-app. We will have to extract this code
- If the configured storage is glance nothing needs to be done.
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- api-to-deploy-created-du + api-to-deploy-created-du-in-swift-glance |
This is the first patch in the series:
https:/ /review. openstack. org/#/c/ 271111/