Incorrect samples in the add Tenant Access to private flavor action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Fix Released
|
Medium
|
Diane Fleming |
Bug Description
when I give a specified tenant access to the specified private flavor, I use it like this :
POST /v2/{tenant_
{
"addTenantA
"tenant": "fake_tenant"
}
}
tenant: The name of the tenant to which to give access.
The response is:
{
"flavor_
{
#here is "tenant_id"
},
{
}
]
}
when I use the private flavor to create VM in the specified tenant,it failed. But if I add the tenant access by using the tenant id,it can create VM successfully in the specified tenant .
POST /v2/{tenant_
{
"addTenantA
"tenant": "{tenant_id}"
}
}
I check the code, It also uses the "tenant" information as the "project id".
So we should change the api guides in the add Tenant Access to private flavor action,
change "tenant: The name of the tenant to which to give access." to
"tenant: The uuid of the tenant to which to give access."
Changed in nova: | |
assignee: | nobody → KaiLin (linkai3) |
description: | updated |
affects: | nova → openstack-api-site |
description: | updated |
This is just a temporary modification method,we can not let the user to ensure the correctness of parameters, so we should verify the validation of tenant id.