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

pkg/types: Push platform-specific types (AWS, etc.) into subdirs #657

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

wking
Copy link
Member

@wking wking commented Nov 12, 2018

This decouples our platforms a bit and makes it easier to distinguish between platform-specific and platform-agnostic code. It also gives us much more compact struct names, since now we don't need to distinguish between many flavors of machine pool, etc. in a single package.

I've also added OWNERS files for some OpenStack-specific directories that were missing them before.

There's still more work to go in this direction (e.g. pushing default logic into subdirs), but this seems like a reasonable chunk.

CC @flaper87, @tomassedovic

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 12, 2018
@openshift-ci-robot openshift-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 12, 2018
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 12, 2018
@wking wking force-pushed the type-platform-subdirs branch from a5324fa to 634165f Compare November 12, 2018 19:13
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 12, 2018
@wking
Copy link
Member Author

wking commented Nov 12, 2018

Rebased around #600 with a5324fa -> 634165f.

@wking wking force-pushed the type-platform-subdirs branch 2 times, most recently from 8426554 to 5299922 Compare November 12, 2018 19:46
@wking
Copy link
Member Author

wking commented Nov 12, 2018

I've pushed 8426554 -> 6c5e904, adding pkg/types/*/doc.go with package godocs for the new packages. I've also updated pkg/types/doc.go to make it more generic; pkg/types includes more than user-specified configuration since 78c3118 (#324).

This decouples our platforms a bit and makes it easier to distinguish
between platform-specific and platform-agnostic code.  It also gives
us much more compact struct names, since now we don't need to
distinguish between many flavors of machine pool, etc. in a single
package.

I've also updated pkg/types/doc.go; pkg/types includes more than
user-specified configuration since 78c3118 (pkg: add ClusterMetadata
asset,type that can be used for destroy, 2018-09-25, openshift#324).

I've also added OWNERS files for some OpenStack-specific directories
that were missing them before.

There's still more work to go in this direction (e.g. pushing default
logic into subdirs), but this seems like a reasonable chunk.
@wking wking force-pushed the type-platform-subdirs branch from 5299922 to 6c5e904 Compare November 12, 2018 19:56
@wking
Copy link
Member Author

wking commented Nov 12, 2018

e2e-aws:

error: watch closed before Until timeout
error openshift-ingress/ds/router-default did not come up
Waiting for daemon set "router-default" rollout to finish: 2 of 3 updated pods are available...
E1112 20:34:20.917433     473 streamwatcher.go:109] Unable to decode an event from the watch stream: net/http: request canceled (Client.Timeout exceeded while reading body)
error: watch closed before Until timeout
timeout waiting for openshift-ingress/ds/router-default to be available
2018/11/12 20:34:22 Container test in pod e2e-aws failed, exit code 1, reason Error

/retest

@abhinavdahiya
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 12, 2018
@abhinavdahiya
Copy link
Contributor

/hold

wait for comments from @flaper87 @tomassedovic

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 12, 2018
@abhinavdahiya
Copy link
Contributor

filed openshift/cluster-network-operator#32 for this e2e-aws failure.

Waiting for router to be created ...
NAME                           STATUS     ROLES     AGE       VERSION
ip-10-0-1-38.ec2.internal      Ready      master    29m       v1.11.0+d4cacc0
ip-10-0-128-19.ec2.internal    Ready      worker    24m       v1.11.0+d4cacc0
ip-10-0-156-32.ec2.internal    Ready      worker    24m       v1.11.0+d4cacc0
ip-10-0-174-183.ec2.internal   Ready      worker    23m       v1.11.0+d4cacc0
ip-10-0-27-9.ec2.internal      NotReady   master    29m       v1.11.0+d4cacc0
ip-10-0-46-179.ec2.internal    Ready      master    29m       v1.11.0+d4cacc0
NAME             DESIRED   CURRENT   READY     UP-TO-DATE   AVAILABLE   NODE SELECTOR                     AGE
router-default   3         3         0         3            0           node-role.kubernetes.io/worker=   13s
Found router in openshift-ingress
Waiting for daemon set "router-default" rollout to finish: 0 of 3 updated pods are available...
Waiting for daemon set "router-default" rollout to finish: 1 of 3 updated pods are available...
Waiting for daemon set "router-default" rollout to finish: 2 of 3 updated pods are available...
daemon set "router-default" successfully rolled out
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   337  100   337    0     0    603      0 --:--:-- --:--:-- --:--:--   605
namespace/openshift-telemetry created
cluster role "cluster-reader" added: "default"
error: error reading /tmp/cluster/telemeter-token: no such file or directory
error: no objects passed to apply
Error from server (Forbidden): deployments.apps "telemeter-client" is forbidden: caches not synchronized
which: no openshift-tests in (/usr/libexec/origin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
/bin/bash: line 112: !which: command not found
Running Suite: Extended
=======================
Random Seed: 1542060443 - Will randomize all specs
Will run 1251 specs

Running in parallel across 30 nodes

Nov 12 22:07:47.021: INFO: >>> kubeConfig: /tmp/admin.kubeconfig
Nov 12 22:07:47.023: INFO: Waiting up to 30m0s for all (but 0) nodes to be schedulable
Nov 12 22:07:47.408: INFO: Condition Ready of node ip-10-0-27-9.ec2.internal is false instead of true. Reason: KubeletNotReady, message: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni config uninitialized
Nov 12 22:08:17.457: INFO: Condition Ready of node ip-10-0-27-9.ec2.internal is false instead of true. Reason: KubeletNotReady, message: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni config uninitialized
Nov 12 22:08:47.491: INFO: Condition Ready of node ip-10-0-27-9.ec2.internal is false instead of true. Reason: KubeletNotReady, message: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni config uninitialized
Nov 12 22:09:17.570: INFO: Condition Ready of node ip-10-0-27-9.ec2.internal is false instead of true. Reason: KubeletNotReady, message: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni config uninitialized
Nov 12 22:09:47.499: INFO: Condition Ready of node ip-10-0-27-9.ec2.internal is false instead of true. Reason: KubeletNotReady, message: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni config uninitialized
Nov 12 22:10:17.448: INFO: Condition Ready of node ip-10-0-27-9.ec2.internal is false instead of true. Reason: KubeletNotReady, message: runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni config uninitialized
Nov 12 22:10:47.453: INFO: Condition Ready of node ip-10-0-27-9.ec2.internal is false instead of true. Reason: KubeletNotReady, message: runtime network not ready:

/retest

@tomassedovic
Copy link
Contributor

/test e2e-openstack

@tomassedovic
Copy link
Contributor

@abhinavdahiya thumbs up from my side. I've pulled the change locally, rebuilt the installer & deployed on OpenStack. There were no regressions. The e2e-openstack job will always fail right now.

@flaper87
Copy link
Contributor

/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, flaper87, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [abhinavdahiya,flaper87,wking]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@flaper87
Copy link
Contributor

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 13, 2018
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@flaper87
Copy link
Contributor

/test all

@flaper87
Copy link
Contributor

How can one remove an optional test from the check queue? The bot shouldn't block this patch on the openstack job, it's not a required job.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link
Contributor

@wking: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-openstack 6c5e904 link /test e2e-openstack

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@wking
Copy link
Member Author

wking commented Nov 13, 2018

/skip

^ this may get us past the e2e-openstack failure

@openshift-merge-robot openshift-merge-robot merged commit a6bddcd into openshift:master Nov 13, 2018
@wking wking deleted the type-platform-subdirs branch November 13, 2018 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants