Skip to content

Conversation

@abhinavdahiya
Copy link
Contributor

cluster operators must use the config.openshit.io as source for their top level config.

/cc @derekwaynecarr @enxebre

cluster operators must use the config.openshit.io as source for their top level config.
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: bison

If they are not already assigned, you can assign the PR to them by writing /assign @bison in a comment when ready.

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

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

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 26, 2019

if installConfig.AWS != nil {
func getProviderFromInfrastructure(infra *configv1.Infrastructure) (Provider, error) {
switch infra.Status.Platform {
Copy link
Member

Choose a reason for hiding this comment

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

can't this function now just return infra.Status.Platform and we completely drop type Provider string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

didn't want to change more than required. :)

metadata:
name: cluster
status:
platform: AWS
Copy link
Member

Choose a reason for hiding this comment

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

this need to be 'kubemark' cc @ingvagabund

Copy link
Member

Choose a reason for hiding this comment

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

Right, if not set properly our Jenkins CI will start to fail.

Copy link
Member

Choose a reason for hiding this comment

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

kubectl apply -f config/kubemark-config-infra.yaml
error: error validating "config/kubemark-config-infra.yaml": error validating data: [ValidationError(CustomResourceDefinition.spec.versions[0]): missing required field "storage" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion, ValidationError(CustomResourceDefinition): unknown field "storage" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition]; if you choose to ignore these errors, turn validation off with --validate=false

metadata:
name: cluster
status:
platform: kubemark
Copy link
Member

@enxebre enxebre Mar 28, 2019

Choose a reason for hiding this comment

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

error: error validating "config/kubemark-config-infra.yaml": error validating data:[ValidationError(CustomResourceDefinition.spec): unknown field "storage" in io.k8s.apiextensions apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionSpec, ValidationError(CustomResourceDefinition.spec.versions[0]): missing required field "storage" in io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinitionVersion]; if you choose to ignore these errors, turn validation off with --validate=false

looks like storage field need to be set here or dropped from the CRD def @abhinavdahiya

Copy link
Member

Choose a reason for hiding this comment

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

also I don't see status on the CRD def?

@abhinavdahiya
Copy link
Contributor Author

/retest

@enxebre
Copy link
Member

enxebre commented Mar 29, 2019

/retest

@openshift-ci-robot
Copy link
Contributor

@abhinavdahiya: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/actuator-pkg-staleness 6cbadc3 link /test actuator-pkg-staleness
ci/prow/e2e-aws-operator 6cbadc3 link /test e2e-aws-operator
ci/prow/e2e-aws 6cbadc3 link /test e2e-aws

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.

Details

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.

metadata:
name: cluster
status:
platform: AWS
Copy link
Member

Choose a reason for hiding this comment

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

s/AWS/kubemark

func (optr *Operator) maoConfigFromInstallConfig() (*OperatorConfig, error) {
installConfig, err := getInstallConfig(optr.kubeClient)
func (optr *Operator) maoConfigFromInfrastructure() (*OperatorConfig, error) {
infra, err := optr.osClient.ConfigV1().Infrastructures().Get("cluster", metav1.GetOptions{})
Copy link
Member

Choose a reason for hiding this comment

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

@abhinavdahiya e2e seems to be consistently failing, can't see anything meaningful in the logs. who/when creates the infra object?

Copy link
Member

Choose a reason for hiding this comment

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

Managed to debug this by running installer locally from CI payload and running bastion to ssh into masters.

E0401 09:48:01.939450       1 operator.go:177] Failed getting operator config: infrastructures.config.openshift.io "cluster" is forbidden: User "system:serviceaccount:openshift-machine-api:default" cannot get resource "infrastructures" in API group "config.openshift.io" at the cluster scope

See if it goes green here df1d9c0

@enxebre
Copy link
Member

enxebre commented Apr 1, 2019

Closing in favour of #264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants