Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cspi status): add provisioned and healthy replica count in CSPI status #54

Merged
merged 1 commit into from
Jun 25, 2020

Conversation

mittachaitu
Copy link

@mittachaitu mittachaitu commented Jun 12, 2020

This PR adds Provisioned and Healthy
replica count in CSPI status.

  • When users execute kubectl get cspi -n openebs below will be output
 kubectl get cspi -n openebs
NAME                HOSTNAME    ALLOCATED   FREE     CAPACITY    READONLY   PROVISIONEDREPLICAS   HEALTHYREPLICAS   STATUS   AGE
cstor-stripe-fb4b   127.0.0.1   190k        19200M   19200190k   false      2                     1                 ONLINE   36m

Provisioned Replicas: Count of volume replicas present in the pool.
Healthy Replicas: Count of Healthy volume replicas present in the pool.

It will be helpful to users to know how many replicas are healthy out of provisioned replicas
without executing kubectl get cvr -n openebs -l cstorpoolinstance.openebs.io/name=<cspi_name>

Note to reviewers:

  • Fetching information of Provisioned Replicas from zfs list and Healthy replicas using zfs stats.

Signed-off-by: mittachaitu sai.chaithanya@mayadata.io

…status

Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
Copy link
Contributor

@shubham14bajpai shubham14bajpai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonasingh46 sonasingh46 merged commit 4ef7efa into openebs-archive:master Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants