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

[release-1.32] Bump to 1.32.1 #2575

Merged

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Mar 22, 2024

Update metadata for patch release

Waiting for openshift/release#50173

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@openshift-ci openshift-ci bot requested review from alanfx and lberk March 22, 2024 15:47
@pierDipi
Copy link
Member Author

/assign @Kaustubh-pande @mgencur

@@ -60,12 +60,12 @@ jobs:
- name: Generate CI (on workflow dispatch)
if: github.event_name == 'workflow_dispatch'
working-directory: ./src/github.com/openshift-knative/hack
run: go run ./cmd/prowcopy --branch ${{ inputs.branch }} --tag ${{ inputs.branch }} --config config/serverless-operator.yaml
run: go run ./cmd/prowcopy --branch ${{ inputs.branch }} --tag "${{ inputs.branch }}.0" --config config/serverless-operator.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

When you're changing this, do you plan to re-generate the CI config for release-1.32 branch?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I don't but this is necessary moving forward to make sure that the Dockerfile olm-catalog/serverless-operator/index/Dockerfile is using the correct versioned image

@pierDipi
Copy link
Member Author

/retest

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Comment on lines 36 to +39
name: stable-1.30
package: serverless-operator
entries:
- name: "serverless-operator.v1.30.0"
- name: "serverless-operator.v1.31.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

This one doesn't seem right, @mgencur @Kaustubh-pande do you know what I'm doing wrong here ?

Copy link
Contributor

Choose a reason for hiding this comment

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

We need stable 1.30? already EOL?
I think you are adding serverless-operator-1.31.0 in the stable 1.30 channel

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we leave current - 2 for the upgrade test regardless of the EOL date

I think you are adding serverless-operator-1.31.0 in the stable 1.30 channel

yes, but this is generated and I'm not sure what's wrong in the project.yaml that causes it to generate this one

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixing it here: #2583 , The commit can be cherry-picked on release-1.32 if desired.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@lberk
Copy link
Member

lberk commented Mar 25, 2024

/retest

@@ -5,7 +5,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/metadata.bash"

registry_host='registry.ci.openshift.org'
registry="${registry_host}/openshift"
export CURRENT_VERSION_IMAGES=${CURRENT_VERSION_IMAGES:-"main"}
export CURRENT_VERSION_IMAGES=${CURRENT_VERSION_IMAGES:-"release-$(metadata.get project.version)"}
Copy link
Member

Choose a reason for hiding this comment

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

😍

Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to use just

export CURRENT_VERSION_IMAGES="release-$(metadata.get project.version)"

and then leave the file .github/workflows/validate.yaml untouched?

serving: knative-v1.10
eventing: knative-v1.10
eventing_kafka_broker: knative-v1.10
serving: knative-v1.11
Copy link
Member

Choose a reason for hiding this comment

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

Uh, previous, as in 1.32.0 is "previous to this?

That's a weak / difficult knob, IMO. But likely subject for a different discussion

Copy link
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

/hold
in cases anyone has feedback - feel free to unhold

@Kaustubh-pande
Copy link
Contributor

/retest

1 similar comment
@matzew
Copy link
Member

matzew commented Mar 26, 2024

/retest

@pierDipi
Copy link
Member Author

I believe there is something wrong somewhere :(

@ReToCode
Copy link
Member

I believe there is something wrong somewhere :(

yes I think I face the same here

@@ -10,7 +10,7 @@ COPY olm-catalog/serverless-operator/index/configs /configs
RUN /bin/opm init serverless-operator --default-channel=stable --output yaml >> /configs/index.yaml
RUN /bin/opm render --skip-tls-verify -o yaml registry.ci.openshift.org/knative/openshift-serverless-v1.30.0:serverless-bundle \
registry.ci.openshift.org/knative/openshift-serverless-v1.31.0:serverless-bundle \
registry.ci.openshift.org/knative/openshift-serverless-v1.32.0:serverless-bundle >> /configs/index.yaml || \
registry.ci.openshift.org/knative/release-1.32.1:serverless-bundle >> /configs/index.yaml || \
Copy link
Contributor

Choose a reason for hiding this comment

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

You will also need to update this line: https://github.com/openshift-knative/serverless-operator/blob/release-1.32/hack/lib/catalogsource.bash#L68

We're promoting to a different name/namespace now and if we don't change the line we'll end up with this command in the Dockerfile:

RUN /bin/opm render --skip-tls-verify -o yaml registry.ci.openshift.org/knative/openshift-serverless-v1.30.0:serverless-bundle \
      registry.ci.openshift.org/knative/openshift-serverless-v1.31.0:serverless-bundle \
      registry.ci.openshift.org/knative/release-1.32.1:serverless-bundle >> /configs/index.yaml || \
    /bin/opm render --skip-tls-verify -o yaml registry.ci.openshift.org/knative/openshift-serverless-v1.30.0:serverless-bundle \
      registry.ci.openshift.org/knative/openshift-serverless-v1.31.0:serverless-bundle \
      registry.ci.openshift.org/knative/serverless-bundle:main >> /configs/index.yaml

And since we're on release-1.32 branch and not main, and since release-1.32.1 tag doesn't exist yet, the Index will be corrupted (the first command will fail, then the second one will run but it will only add the bundle from "main" branch).

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@openshift-ci openshift-ci bot removed the lgtm label Mar 26, 2024
@mgencur
Copy link
Contributor

mgencur commented Mar 26, 2024

This PR should be merged after #2581

@mgencur
Copy link
Contributor

mgencur commented Mar 26, 2024

The error is :

./hack/lib/catalogsource.bash: line 68: CURRENT_VERSION_IMAGES: unbound variable

The last commit should use CURRENT_VERSION, not CURRENT_VERSION_IMAGES

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
…cram512

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi
Copy link
Member Author

Upgrade test failing

{Failed  === RUN   TestServerlessUpgradePrePost/Run/Steps/DowngradeWith/DowngradeServerless
    upgrade.go:23: Serverless downgrade failed: serving downgrade failed: knativeserving knative-serving is not in desired state, got: &{TypeMeta:{Kind: APIVersion:} ObjectMeta:{Name:knative-serving GenerateName: Namespace:knative-serving SelfLink: UID:b2bbdae0-e2ef-4140-b46e-46edec842497 ResourceVersion:79236 Generation:1 CreationTimestamp:2024-03-26 15:39:08 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[] Annotations:map[kubectl.kubernetes.io/last-applied-configuration:{"apiVersion":"operator.knative.dev/v1beta1","kind":"KnativeServing","metadata":{"annotations":{},"name":"knative-serving","namespace":"knative-serving"},"spec":{"config":{"autoscaler":{"container-concurrency-target-default":"100","container-concurrency-target-percentage":"1.0","enable-scale-to-zero":"true","max-scale-up-rate":"10","panic-threshold-percentage":"200.0","panic-window":"6s","panic-window-percentage":"10.0","scale-to-zero-grace-period":"30s","stable-window":"60s","tick-interval":"2s"},"defaults":{"revision-timeout-seconds":"300"},"deployment":{"progressDeadline":"120s","registriesSkippingTagResolving":"ko.local,dev.local"},"gc":{"stale-revision-create-delay":"24h","stale-revision-lastpinned-debounce":"5h","stale-revision-minimum-generations":"1","stale-revision-timeout":"15h"},"logging":{"loglevel.activator":"debug","loglevel.autoscaler":"debug","loglevel.controller":"debug","loglevel.domainmapping":"debug","loglevel.domainmapping-webhook":"debug","loglevel.hpaautoscaler":"debug","loglevel.queueproxy":"debug","loglevel.webhook":"debug"},"network":{},"observability":{"logging.enable-probe-request-log":"true","logging.enable-request-log":"true","logging.enable-var-log-collection":"false","logging.request-log-template":"{\"httpRequest\": {\"requestMethod\": \"{{.Request.Method}}\", \"requestUrl\": \"{{js .Request.RequestURI}}\", \"requestSize\": \"{{.Request.ContentLength}}\", \"status\": {{.Response.Code}}, \"responseSize\": \"{{.Response.Size}}\", \"userAgent\": \"{{js .Request.UserAgent}}\", \"remoteIp\": \"{{js .Request.RemoteAddr}}\", \"serverIp\": \"{{.Revision.PodIP}}\", \"referer\": \"{{js .Request.Referer}}\", \"latency\": \"{{.Response.Latency}}s\", \"protocol\": \"{{.Request.Proto}}\"}, \"traceId\": \"{{index .Request.Header \"X-B3-Traceid\"}}\"}","metrics.backend-destination":"prometheus"},"tracing":{"backend":"zipkin","debug":"false","enable":"true","sample-rate":"1.0","zipkin-endpoint":"http://zipkin.istio-system.svc.cluster.local:9411/api/v2/spans"}}}}
        ] OwnerReferences:[] Finalizers:[knativeservings.operator.knative.dev knative-serving-openshift] ManagedFields:[{Manager:kubectl-client-side-apply Operation:Update APIVersion:operator.knative.dev/v1beta1 Time:2024-03-26 15:39:08 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{".":{},"f:config":{".":{},"f:autoscaler":{".":{},"f:container-concurrency-target-default":{},"f:container-concurrency-target-percentage":{},"f:enable-scale-to-zero":{},"f:max-scale-up-rate":{},"f:panic-threshold-percentage":{},"f:panic-window":{},"f:panic-window-percentage":{},"f:scale-to-zero-grace-period":{},"f:stable-window":{},"f:tick-interval":{}},"f:defaults":{".":{},"f:revision-timeout-seconds":{}},"f:deployment":{".":{},"f:progressDeadline":{},"f:registriesSkippingTagResolving":{}},"f:gc":{".":{},"f:stale-revision-create-delay":{},"f:stale-revision-lastpinned-debounce":{},"f:stale-revision-minimum-generations":{},"f:stale-revision-timeout":{}},"f:logging":{".":{},"f:loglevel.activator":{},"f:loglevel.autoscaler":{},"f:loglevel.controller":{},"f:loglevel.domainmapping":{},"f:loglevel.domainmapping-webhook":{},"f:loglevel.hpaautoscaler":{},"f:loglevel.queueproxy":{},"f:loglevel.webhook":{}},"f:network":{},"f:observability":{".":{},"f:logging.enable-probe-request-log":{},"f:logging.enable-request-log":{},"f:logging.enable-var-log-collection":{},"f:logging.request-log-template":{},"f:metrics.backend-destination":{}},"f:tracing":{".":{},"f:backend":{},"f:debug":{},"f:enable":{},"f:sample-rate":{},"f:zipkin-endpoint":{}}}}} Subresource:} {Manager:operator Operation:Update APIVersion:operator.knative.dev/v1beta1 Time:2024-03-26 15:39:08 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:metadata":{"f:finalizers":{".":{},"v:\"knative-serving-openshift\"":{},"v:\"knativeservings.operator.knative.dev\"":{}}}} Subresource:} {Manager:operator Operation:Update APIVersion:operator.knative.dev/v1beta1 Time:2024-03-26 15:51:55 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:status":{".":{},"f:conditions":{},"f:manifests":{},"f:observedGeneration":{},"f:version":{}}} Subresource:status}]} Spec:{CommonSpec:{Config:map[autoscaler:map[container-concurrency-target-default:100 container-concurrency-target-percentage:1.0 enable-scale-to-zero:true max-scale-up-rate:10 panic-threshold-percentage:200.0 panic-window:6s panic-window-percentage:10.0 scale-to-zero-grace-period:30s stable-window:60s tick-interval:2s] defaults:map[revision-timeout-seconds:300] deployment:map[progressDeadline:120s registriesSkippingTagResolving:ko.local,dev.local] gc:map[stale-revision-create-delay:24h stale-revision-lastpinned-debounce:5h stale-revision-minimum-generations:1 stale-revision-timeout:15h] logging:map[loglevel.activator:debug loglevel.autoscaler:debug loglevel.controller:debug loglevel.domainmapping:debug loglevel.domainmapping-webhook:debug loglevel.hpaautoscaler:debug loglevel.queueproxy:debug loglevel.webhook:debug] network:map[] observability:map[logging.enable-probe-request-log:true logging.enable-request-log:true logging.enable-var-log-collection:false logging.request-log-template:{"httpRequest": {"requestMethod": "{{.Request.Method}}", "requestUrl": "{{js .Request.RequestURI}}", "requestSize": "{{.Request.ContentLength}}", "status": {{.Response.Code}}, "responseSize": "{{.Response.Size}}", "userAgent": "{{js .Request.UserAgent}}", "remoteIp": "{{js .Request.RemoteAddr}}", "serverIp": "{{.Revision.PodIP}}", "referer": "{{js .Request.Referer}}", "latency": "{{.Response.Latency}}s", "protocol": "{{.Request.Proto}}"}, "traceId": "{{index .Request.Header "X-B3-Traceid"}}"} metrics.backend-destination:prometheus] tracing:map[backend:zipkin debug:false enable:true sample-rate:1.0 zipkin-endpoint:http://zipkin.istio-system.svc.cluster.local:9411/api/v2/spans]] Registry:{Default: Override:map[] ImagePullSecrets:[]} DeprecatedResources:[] DeploymentOverride:[] Workloads:[] ServiceOverride:[] Version: Manifests:[] AdditionalManifests:[] HighAvailability:<nil> PodDisruptionBudgetOverride:[]} ControllerCustomCerts:{Type: Name:} Ingress:<nil> Security:<nil>} Status:{Status:{ObservedGeneration:1 Conditions:[{Type:DependenciesInstalled Status:True Severity: LastTransitionTime:{Inner:2024-03-26 15:39:24 +0000 UTC} Reason: Message:} {Type:DeploymentsAvailable Status:True Severity: LastTransitionTime:{Inner:2024-03-26 15:40:13 +0000 UTC} Reason: Message:} {Type:InstallSucceeded Status:True Severity: LastTransitionTime:{Inner:2024-03-26 15:47:44 +0000 UTC} Reason: Message:} {Type:Ready Status:True Severity: LastTransitionTime:{Inner:2024-03-26 15:47:44 +0000 UTC} Reason: Message:} {Type:VersionMigrationEligible Status:True Severity: LastTransitionTime:{Inner:2024-03-26 15:39:08 +0000 UTC} Reason: Message:}] Annotations:map[]} Version:1.10 Manifests:[/var/run/ko/knative-serving/1.10 /var/run/ko/ingress/1.10/kourier]}}: timed out waiting for the condition
--- FAIL: TestServerlessUpgradePrePost/Run/Steps/DowngradeWith/DowngradeServerless (391.30s)

@pierDipi
Copy link
Member Author

@mgencur do I need to also change the upgrade_sequence in project.yaml ?

@mgencur
Copy link
Contributor

mgencur commented Mar 27, 2024

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi
Copy link
Member Author

/test 414-test-upgrade-aws-414

@pierDipi
Copy link
Member Author

/unhold

@mgencur
Copy link
Contributor

mgencur commented Mar 27, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Mar 27, 2024
Copy link
Contributor

openshift-ci bot commented Mar 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew, mgencur, pierDipi

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 [matzew,mgencur,pierDipi]

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

@openshift-merge-bot openshift-merge-bot bot merged commit 5ab219d into openshift-knative:release-1.32 Mar 27, 2024
21 checks passed
@pierDipi pierDipi deleted the bump-1.32.1 branch March 27, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants