Skip to content

Conversation

@gabemontero
Copy link
Contributor

per recent aos-devel announce from clayton ... moving to config.openshift.io

/assign @bparees

@openshift/sig-developer-experience fyi / ptal

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gabemontero

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 7, 2018
@gabemontero
Copy link
Contributor Author

another test of the new e2e job @bparees :-)

@gabemontero
Copy link
Contributor Author

oops forgot the unit test

@bparees
Copy link
Contributor

bparees commented Nov 7, 2018

@gabemontero since we have that awesome new e2e job, please add a test that confirms the clusteroperator object is getting created w/ appropriate status information.

@gabemontero
Copy link
Contributor Author

assuming I get a clean run as-is @bparees, sure

@gabemontero
Copy link
Contributor Author

aws nat pain on e2e-aws:

aws_eip.nat_eip.2: Error creating EIP: AddressLimitExceeded: The maximum number of addresses has been reached.
	status code: 400, request id: b28de6e6-5933-478b-a950-dad7d8006a2f
* module.vpc.aws_eip.nat_eip[3]: 1 error(s) occurred:

@gabemontero
Copy link
Contributor Author

same nat pain with our new e2e job ... posted on forum-testplatform

@gabemontero
Copy link
Contributor Author

/retest

@gabemontero
Copy link
Contributor Author

the new e2e test failed on a timeout ... it never found the ruby imagestream

i have the new test ... hopefully I can debug what is up with the existing test while I vet out the new one

@gabemontero
Copy link
Contributor Author

ah ha:

time="2018-11-07T19:05:44Z" level=error msg="error updating cluster operator status: failed to get cluster operator resource openshift-cluster-samples-operator/openshift-samples: clusterversions.config.openshift.io \"openshift-samples\" is forbidden: User \"system:serviceaccount:openshift-cluster-samples-operator:cluster-samples-operator\" cannot get clusterversions.config.openshift.io at the cluster scope: no RBAC policy matched"

more changes needed ....

@gabemontero
Copy link
Contributor Author

A bit stuck ...my email to aos-devel:

Ok, after

  • updating my operator's clusterrole rbac's to deal with ClusterVersion

  • adding k8sutil.AddToSDKScheme(ocfgapi.AddToScheme) to register the new type with the operator sdk (where ocfgapi is "github.com/openshift/cluster-version-operator/pkg/apis/config.openshift.io/v1") after getting unknown type messages from the operator sdk

I can't seem to get past this error when I attempt to get/update/create my ClusterVersion

"error updating cluster operator status: failed to unmarshal the retrieved data: failed to decode json data with gvk(config.openshift.io/v1, Kind=ClusterVersion): v1.ClusterVersion.Spec: v1.ClusterVersionSpec.Upstream: DesiredUpdate: ClusterID: unmarshalerDecoder: invalid UUID length: 0, error found in #10 byte of ...|sterID\":\"\",\"desiredU|..., bigger context ...|723e82c3772e\"},\"spec\":{\"channel\":\"\",\"clusterID\":\"\",\"desiredUpdate\":null,\"upstream\":null}}\n|..."

The comment for the DesiredUpdate field notes it is optional.

Any insights on how to make the operator sdk work with ClusterVersion? Or should I be using a different client?

I do get the following ClusterVersion (with the status missing as a result of the error I previously noted)

apiVersion: config.openshift.io/v1
kind: ClusterVersion
metadata:
  creationTimestamp: 2018-11-07T19:40:06Z
  generation: 1
  name: openshift-samples
  resourceVersion: "218197"
  selfLink: /apis/config.openshift.io/v1/clusterversions/openshift-samples
  uid: edb58aeb-e2c4-11e8-b436-723e82c3772e
spec:
  channel: ""
  clusterID: ""
  desiredUpdate: null
  upstream: null

@bparees
Copy link
Contributor

bparees commented Nov 7, 2018

@gabemontero have you bumped openshift/api and openshift/client-go in this repo?

@bparees
Copy link
Contributor

bparees commented Nov 7, 2018

(actually that may not matter)

@openshift-ci-robot
Copy link
Contributor

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

Test name Commit Details Rerun command
ci/prow/e2e-aws-operator 489e0fc link /test e2e-aws-operator

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.

kind: CustomResourceDefinition
metadata:
name: clusteroperators.operatorstatus.openshift.io
name: clusterversions.operatorstatus.openshift.io
Copy link
Contributor

Choose a reason for hiding this comment

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

clusterversions.config.openshift.io ?

Copy link
Contributor

Choose a reason for hiding this comment

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

(honestly i dunno that we need to keep this file around anymore, it was a useful development tool when we stood up clusters manually but now that the installer is the only way, we can rely on the installer to have created this CRD in all our clusters)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah I just as soon delete it ... will do that when I circle back to this PR (pending response to my outstanding client question I've circled back to implementing the progressing condition for image streams)

- "config.openshift.io"
resources:
- clusteroperators
- clusterversions
Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think this was supposed to change. the resource type is still clusteroperators.

@gabemontero
Copy link
Contributor Author

total mix up on my part ... @bparees got me back on track ... waiting on @dmage 's openshift/cluster-version-operator#48

@gabemontero gabemontero closed this Nov 7, 2018
@gabemontero gabemontero deleted the cfg-cluster-op-group branch November 7, 2018 21:57
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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants