Skip to content

Commit

Permalink
Merge pull request #61 from enxebre/fixes
Browse files Browse the repository at this point in the history
Increase wait time for nodes going ready
  • Loading branch information
openshift-merge-robot authored Apr 15, 2019
2 parents acbcbdc + cf41e6a commit f9925b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pkg/e2e/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func IsNodeReady(node *corev1.Node) bool {
}

func WaitUntilAllNodesAreReady(client runtimeclient.Client) error {
return wait.PollImmediate(1*time.Second, time.Minute, func() (bool, error) {
return wait.PollImmediate(1*time.Second, PoolNodesReadyTimeout, func() (bool, error) {
nodeList := corev1.NodeList{}
if err := client.List(context.TODO(), &runtimeclient.ListOptions{}, &nodeList); err != nil {
glog.Errorf("error querying api for nodeList object: %v, retrying...", err)
Expand Down
21 changes: 6 additions & 15 deletions pkg/e2e/machinehealthcheck/machinehealthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,9 @@ var _ = Describe("[Feature:MachineHealthCheck] MachineHealthCheck controller", f
client, err = e2e.LoadClient()
Expect(err).ToNot(HaveOccurred())

isKubemarkProvider, err := e2e.IsKubemarkProvider(client)
Expect(err).ToNot(HaveOccurred())

// TODO: remove once we can create or update kubemark machines
// that will give use possibility to make this test work
if isKubemarkProvider {
glog.V(2).Info("Can not run this tests with the 'KubeMark' provider")
Skip("Can not run this tests with the 'KubeMark' provider")
}
// TODO: enable once https://github.com/openshift/cluster-api-actuator-pkg/pull/61 is fixed
glog.V(2).Info("Skipping machine health checking test")
Skip("Skipping machine health checking test")

workerNodes, err := e2e.GetWorkerNodes(client)
Expect(err).ToNot(HaveOccurred())
Expand Down Expand Up @@ -118,12 +112,9 @@ var _ = Describe("[Feature:MachineHealthCheck] MachineHealthCheck controller", f
})

AfterEach(func() {
isKubemarkProvider, err := e2e.IsKubemarkProvider(client)
Expect(err).ToNot(HaveOccurred())
if isKubemarkProvider {
glog.V(2).Info("Can not run this tests with the 'KubeMark' provider")
Skip("Can not run this tests with the 'KubeMark' provider")
}
// TODO: enable once https://github.com/openshift/cluster-api-actuator-pkg/pull/61 is fixed
glog.V(2).Info("Skipping machine health checking test")
Skip("Skipping machine health checking test")

waitForWorkersToGetReady(numberOfReadyWorkers)
deleteMachineHealthCheck(e2e.MachineHealthCheckName)
Expand Down

0 comments on commit f9925b2

Please sign in to comment.