Skip to content

Commit

Permalink
Issue crc-org#1041 Add intermediate Starting status for the cluster
Browse files Browse the repository at this point in the history
When starting CRC, some of the operators don't available even
after 3 min wait. A user who execute `crc status` sees openshift status
as stopped which is confusing since cluster is not completely stopped
but waiting for some of operators to be available. After this change, user
can see `Starting` as status.

```
$crc status
CRC VM:          Running
OpenShift:       Starting
Disk Usage:      10.11GB of 32.2GB (Inside the CRC VM)
Cache Usage:     22.99GB
Cache Directory: /home/prkumar/.crc/cache
```
  • Loading branch information
praveenkumar committed Mar 26, 2020
1 parent 08c905b commit 960a6a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/crc/machine/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ func Status(statusConfig ClusterStatusConfig) (ClusterStatusResult, error) {
openshiftVersion = crcBundleMetadata.GetOpenshiftVersion()
}
openshiftStatus = fmt.Sprintf("Running (v%s)", openshiftVersion)
} else if operatorsStatus.Degraded {
openshiftStatus = fmt.Sprintf("Degraded")
} else if operatorsStatus.Progressing {
openshiftStatus = fmt.Sprintf("Starting")
}
sshRunner := crcssh.CreateRunner(host.Driver)
diskSize, diskUse, err = cluster.GetRootPartitionUsage(sshRunner)
Expand Down

0 comments on commit 960a6a2

Please sign in to comment.