after cluster-check, the status of cluster is warning

Bug #1619842 reported by miaohb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Critical
miaohb

Bug Description

after cluster-check, the status of cluster is changed from active to warning, and can not recover.

miaohb (miao-hongbao)
Changed in senlin:
assignee: nobody → miaohb (miao-hongbao)
status: New → In Progress
Revision history for this message
Qiming Teng (tengqim) wrote :

can you paste some related logs or error message about recovery? Cannot figure out why a recover operation failed.

Revision history for this message
miaohb (miao-hongbao) wrote :

1、Firstly, the status of my cluster and my node is "ACTIVE";

2、After cluster-check,the status of my cluster is "WARNING",and the status reason is "check: number of active nodes is below desired_capacity (1)".

stack@tecs:/home$ senlin cluster-list
WARNING (shell) "senlin cluster-list" is deprecated and will be removed by Apr 2017, please use "openstack cluster list" instead.
+----------+-----------+---------+----------------------+----------------------+
| id | name | status | created_at | updated_at |
+----------+-----------+---------+----------------------+----------------------+
| 9183c694 | mycluster | WARNING | 2016-09-01T02:00:17Z | 2016-09-01T03:38:58Z |
+----------+-----------+---------+----------------------+----------------------+

3、Meanwhile, the status of my node is "Check: Node is ACTIVE", which caused the error cluster status.
in function def eval_status(self, ctx, operation, **params):
......
        for node in self.nodes:
            if node.status == 'ACTIVE':
                active_count += 1
......

here,the active_count is always equal to 0.

Revision history for this message
miaohb (miao-hongbao) wrote :

I will commit a new patch. Please check it.

Qiming Teng (tengqim)
Changed in senlin:
importance: Undecided → Critical
milestone: none → newton-rc1
status: In Progress → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to senlin (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/366468

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on senlin (master)

Change abandoned by Qiming Teng (<email address hidden>) on branch: master
Review: https://review.openstack.org/366468
Reason: This is not needed now because problem has been addressed on other patches.

Revision history for this message
miaohb (miao-hongbao) wrote :

This bug should not be abandoned,because most of modifications have been committed in this patch:

cluster-check results the status error

After cluster-check, the status of the cluster is changed from ACTIVE to WARNING.

The node status is changed from "ACTIVE" to "CHECK: Node is ACTIVE."

In eval_status funcion, the cluster status is evaluated as "WARNING"
because of the error node status.

Change-Id: I707ee7956cb94032dee508a5a61aeccf2d9fa84e

Qiming Teng (tengqim)
Changed in senlin:
status: Triaged → Fix Released
miaohb (miao-hongbao)
no longer affects: python-senlinclient
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.