Github user sureshanaparti commented on the pull request:

    https://github.com/apache/cloudstack/pull/830#issuecomment-162483571
  
    @DaanHoogland , @ustcweizhou 
    This issue is reproduced when the volume associated vm instance has null or 
invalid state (vm_state in volume_view). The code changes would guard this 
situation since it should not block volume listing.
    
    mysql> SELECT id, name, volume_type, state, vm_state FROM cloud.volume_view 
where vm_state is null;
    +----+----------------------+-------------+----------+----------+
    | id | name                 | volume_type | state    | vm_state |
    +----+----------------------+-------------+----------+----------+
    | 57 | ROOT-57              | ROOT        | Expunged | NULL     |
    | 69 | mytestvolume         | DATADISK    | Ready    | NULL     |
    | 71 | DATA-69              | DATADISK    | Expunged | NULL     |
    | 73 | DATA-70              | DATADISK    | Expunged | NULL     |
    | 78 | testvolcreated       | DATADISK    | Ready    | NULL     |
    | 81 | test2volume          | DATADISK    | Destroy  | NULL     |
    | 83 | testvol07            | DATADISK    | Ready    | NULL     |
    | 87 | testattachvolcreated | DATADISK    | Ready    | NULL     |
    +----+----------------------+-------------+----------+----------+
    8 rows in set (0.00 sec)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to