Add validation for the parameter provider_id in checkpoint POST API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Karbor |
Fix Released
|
Undecided
|
chenying |
Bug Description
Add validation for the parameter provider_id in checkpoint POST API.
When the user call the create checkpoint API, the user need provide a parameter provider_id, but the provider_id in checkpoint is not checked with the value in plan.
Now the parameter provider_id of checkpoint is not same as the value in plan, but the
checkpoint also can be created.
root@SZX1000173
+------
| Id | Name | Description |
+------
| cf56bd3e-
+------
root@SZX1000173
+------
| Id | Name | Description |
+------
| b766f37c-
| cf56bd3e-
+------
root@SZX1000173
+------
| Property | Value |
+------
| description | None |
| id | a2cb79c6-
| name | OS Images protection plan. |
| parameters | {} |
| provider_id | cf56bd3e-
| resources | [{u'type': u'OS::Glance:
| status | suspended |
+------
root@SZX1000173
root@SZX1000173
+------
| Property | Value |
+------
| created_at | None |
| id | 8186ba26-
| project_id | d8b88615407146d
| protection_plan | {u'id': u'a2cb79c6-
| resource_graph | None |
| status | protecting |
+------
root@SZX1000173
description: | updated |
Changed in karbor: | |
assignee: | nobody → chenying (ying-chen) |
description: | updated |
Fix proposed to branch: master /review. openstack. org/422626
Review: https:/