Reviewed: https://review.opendev.org/677201 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=133232603168e240292ca54a49cbab599e8e566a Submitter: Zuul Branch: stable/ocata
commit 133232603168e240292ca54a49cbab599e8e566a 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) (cherry picked from commit 8aadd4ebdfea3f1b46b2e2e62b355e8b40b6261b) (cherry picked from commit 3d3a263789c5cc49899d63d18f9233c981f5b894)
Reviewed: https:/ /review. opendev. org/677201 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=13323260316 8e240292ca54a49 cbab599e8e566a
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 133232603168e24 0292ca54a49cbab 599e8e566a
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) b46b2e2e62b355e 8b40b6261b) 9899d63d18f9233 c981f5b894)
Change-Id: I5165b69f956fbf
(cherry picked from commit 2ef704cba619a14
(cherry picked from commit 3eb0ba988f4cfca
(cherry picked from commit 8aadd4ebdfea3f1
(cherry picked from commit 3d3a263789c5cc4