← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1697932] [NEW] Nova doesn't show instances in error state when a marker specified

 

Public bug reported:

Description
===========
When we use pagination in nova it doesn't show instances in "Error" state.
But if we do just `nova list` it show all instances.

Steps to reproduce
==================
* Create one instance in Error state
* Create two instances in Active state

Let's show all instances
    $ nova list
+--------------------------------------+-------+--------+------------+-------------+--------------------------------+
| ID                                   | Name  | Status | Task State | Power State | Networks                       |
+--------------------------------------+-------+--------+------------+-------------+--------------------------------+
| 197a0316-a156-47b7-8e2b-3e915f8010bc | inst1 | ERROR  | -          | NOSTATE     |                                |
| e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c | inst2 | ACTIVE | -          | Running     | public=2001:db8::b, 172.24.4.4 |
| 4cb491a7-79fd-47d4-a9f7-96a5594f940a | inst3 | ACTIVE | -          | Running     | public=2001:db8::c, 172.24.4.2 |
+--------------------------------------+-------+--------+------------+-------------+--------------------------------+
    or
    $ nova list --marker=e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c --sort display_name:desc
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+
    $ nova list --marker=e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c --sort display_name:asc
+--------------------------------------+-------+--------+------------+-------------+--------------------------------+
| ID                                   | Name  | Status | Task State | Power State | Networks                       |
+--------------------------------------+-------+--------+------------+-------------+--------------------------------+
| 4cb491a7-79fd-47d4-a9f7-96a5594f940a | inst3 | ACTIVE | -          | Running     | public=2001:db8::c, 172.24.4.2 |
+--------------------------------------+-------+--------+------------+-------------+--------------------------------+

Expected result
===============
After the execution of the steps above on the step when we do
`nova list --marker=e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c --sort display_name:desc` 
we should see "inst1".

Actual result
=============
After the execution of the steps above on the step when we do
`nova list --marker=e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c --sort display_name:desc` 
we can't see anything.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1697932

Title:
  Nova doesn't show instances in error state when a marker specified

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  When we use pagination in nova it doesn't show instances in "Error" state.
  But if we do just `nova list` it show all instances.

  Steps to reproduce
  ==================
  * Create one instance in Error state
  * Create two instances in Active state

  Let's show all instances
      $ nova list
  +--------------------------------------+-------+--------+------------+-------------+--------------------------------+
  | ID                                   | Name  | Status | Task State | Power State | Networks                       |
  +--------------------------------------+-------+--------+------------+-------------+--------------------------------+
  | 197a0316-a156-47b7-8e2b-3e915f8010bc | inst1 | ERROR  | -          | NOSTATE     |                                |
  | e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c | inst2 | ACTIVE | -          | Running     | public=2001:db8::b, 172.24.4.4 |
  | 4cb491a7-79fd-47d4-a9f7-96a5594f940a | inst3 | ACTIVE | -          | Running     | public=2001:db8::c, 172.24.4.2 |
  +--------------------------------------+-------+--------+------------+-------------+--------------------------------+
      or
      $ nova list --marker=e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c --sort display_name:desc
  +----+------+--------+------------+-------------+----------+
  | ID | Name | Status | Task State | Power State | Networks |
  +----+------+--------+------------+-------------+----------+
  +----+------+--------+------------+-------------+----------+
      $ nova list --marker=e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c --sort display_name:asc
  +--------------------------------------+-------+--------+------------+-------------+--------------------------------+
  | ID                                   | Name  | Status | Task State | Power State | Networks                       |
  +--------------------------------------+-------+--------+------------+-------------+--------------------------------+
  | 4cb491a7-79fd-47d4-a9f7-96a5594f940a | inst3 | ACTIVE | -          | Running     | public=2001:db8::c, 172.24.4.2 |
  +--------------------------------------+-------+--------+------------+-------------+--------------------------------+

  Expected result
  ===============
  After the execution of the steps above on the step when we do
  `nova list --marker=e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c --sort display_name:desc` 
  we should see "inst1".

  Actual result
  =============
  After the execution of the steps above on the step when we do
  `nova list --marker=e8d6b5cd-c8a0-4836-95f0-6af249bd9a4c --sort display_name:desc` 
  we can't see anything.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1697932/+subscriptions


Follow ups