Reviewed: https://review.openstack.org/626585 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8aadd4ebdfea3f1b46b2e2e62b355e8b40b6261b Submitter: Zuul Branch: stable/queens
commit 8aadd4ebdfea3f1b46b2e2e62b355e8b40b6261b Author: Andrey Volkov <email address hidden> Date: Wed Dec 12 09:11:17 2018 +0300
Exclude build request marker from server listing
When listing "real" (already in cell) instances e.g. from nova_cell1.instances table, a marker option means "start after the instance with marker".
For VMs:
| uuid | name | | 1 | vm1 | | 2 | vm2 |
"openstack server list --marker 1" returns vm2 only.
But for VMs from nova_api.build_requests table it's different.
"openstack server list --marker 1" returns both vm1 and vm2.
This patch excludes instance with marker from listing for instances from build_requests table.
Closes-Bug: #1808286 Change-Id: I5165b69f956fbf1904112a742698b2739f747e72 (cherry picked from commit 2ef704cba619a149336692311c2614742aa32909) (cherry picked from commit 3eb0ba988f4cfca4399c92cd6bb7b4ae8665720c)
Reviewed: https:/ /review. openstack. org/626585 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8aadd4ebdfe a3f1b46b2e2e62b 355e8b40b6261b
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 8aadd4ebdfea3f1 b46b2e2e62b355e 8b40b6261b
Author: Andrey Volkov <email address hidden>
Date: Wed Dec 12 09:11:17 2018 +0300
Exclude build request marker from server listing
When listing "real" (already in cell) instances e.g. from cell1.instances table, a marker option means "start after the
nova_
instance with marker".
For VMs:
| uuid | name |
| 1 | vm1 |
| 2 | vm2 |
"openstack server list --marker 1" returns vm2 only.
But for VMs from nova_api. build_requests table it's different.
For VMs:
| uuid | name |
| 1 | vm1 |
| 2 | vm2 |
"openstack server list --marker 1" returns both vm1 and vm2.
This patch excludes instance with marker from listing for
instances from build_requests table.
Closes-Bug: #1808286 1904112a742698b 2739f747e72 9336692311c2614 742aa32909) 4399c92cd6bb7b4 ae8665720c)
Change-Id: I5165b69f956fbf
(cherry picked from commit 2ef704cba619a14
(cherry picked from commit 3eb0ba988f4cfca