-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add OpenSearch Ingestion Pipeline Support #1491
Conversation
Signed-off-by: Blake R <85771645+blakeromano@users.noreply.github.com>
c789a7a
to
e5082b9
Compare
/test-examples="examples/osis/v1beta1/pipeline.yaml" |
So looking at logs https://github.com/crossplane-contrib/provider-upjet-aws/actions/runs/10835115001/job/30065908399 it seems like it actually does get ready but maybe I am missing something in terms of it not working or maybe it is just timing out too soon? |
First, I'm not an expert on Uptest logs 🙂 Second, the following line tells me that the Pipeline resource is not ready: 2024-09-12T17:13:53.1182356Z case.go:363: command "${KUBECTL} wait pipeline.osis.aws.upbound.io/example --for=condition=Test --timeout 10s" exceeded 7 sec timeout, context deadline exceeded When I check the resource output by grepping - apiVersion: osis.aws.upbound.io/v1beta1
kind: Pipeline
metadata:
annotations:
crossplane.io/external-create-pending: "2024-09-12T17:13:44Z"
crossplane.io/external-create-succeeded: "2024-09-12T17:13:44Z"
crossplane.io/external-name: example
meta.upbound.io/example-id: osis/v1beta1/pipeline
upjet.upbound.io/test: "true"
creationTimestamp: "2024-09-12T16:53:53Z"
finalizers:
- finalizer.managedresource.crossplane.io
generation: 2
labels:
testing.upbound.io/example-name: example
name: example
resourceVersion: "4358"
uid: 8b15e491-dd01-4096-9084-b373f7027be0
spec:
deletionPolicy: Delete
forProvider:
maxUnits: 1
minUnits: 1
pipelineConfigurationBody: |
version: "2"
example-pipeline:
source:
http:
path: "/example"
sink:
- s3:
aws:
sts_role_arn: "arn:aws:iam::609897127049:role/example-osi-pipeline-role"
region: "us-west-1"
bucket: "example-upbound-osis-pipeline-example"
threshold:
event_collect_timeout: "60s"
codec:
ndjson:
pipelineName: example
region: us-west-1
tags:
crossplane-kind: pipeline.osis.aws.upbound.io
crossplane-name: example
crossplane-providerconfig: default
initProvider: {}
managementPolicies:
- '*'
providerConfigRef:
name: default
status:
atProvider: {}
conditions:
- lastTransitionTime: "2024-09-12T16:53:54Z"
reason: Creating
status: "False"
type: Ready
- lastTransitionTime: "2024-09-12T16:53:54Z"
reason: ReconcileSuccess
status: "True"
type: Synced
- lastTransitionTime: "2024-09-12T16:53:55Z"
reason: Success
status: "True"
type: LastAsyncOperation |
@mergenci sorry missed that 🤦♂️ what I am still confused by is why it is still in a creating state. I know OSI pipelines do take a long time to come up but I am able to get this same uptest command work locally on my AWS environment by just swapping the AWS Account ID in the pipeline body. Like I said I wonder if there we are just timing out on the test and it isn't an actual failure. |
Please rebase the PR and trigger again to get this fix, so that we can see if there is an error. |
/test-examples="examples/osis/v1beta1/pipeline.yaml" |
It looks like it is failing with this error:
So we may need to tweak the permissioning on the user to allow the test to pass. |
/test-examples="examples/osis/v1beta1/pipeline.yaml" |
@blakeromano I've added the following policies to the test user:
|
@jeanduplessis I still see same error on Uptest. Is there an SCP or Tag Policy or anything that is giving it the explicit deny? I just can't see anything from my POV on why this would be failing... |
Signed-off-by: Blake R <85771645+blakeromano@users.noreply.github.com>
/test-examples="examples/osis/v1beta1/pipeline.yaml" |
/test-examples="examples/osis/v1beta1/pipeline.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your patient and effort in this PR @blakeromano. I left a few comments for you to consider.
Signed-off-by: Blake R <85771645+blakeromano@users.noreply.github.com>
/test-examples="examples/osis/v1beta1/pipeline.yaml" |
Because of this issue we could not convert the singleton list to embedded object in the osis Pipeline resource. This issue is not currently blocking and will be fixed with new versions of the resource. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @blakeromano, LGTM.
Description of your changes
Fixes #1446
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
I took the example and modified line 26 to change it to my own AWS Account ID. I was able to validate the command:
make e2e UPTEST_EXAMPLE_LIST=examples/osis/v1beta1/pipeline.yaml