calm-television-89033
03/24/2022, 3:56 PMsource:
type: bigquery
config:
project_id: '${DATAPLATFORM_PROJECT_ID}'
credential:
project_id: '${DATAPLATFORM_PROJECT_ID}'
private_key_id: '${BIGQUERY_PRIVATE_KEY_ID}'
private_key: '${BIGQUERY_PRIVATE_KEY}'
client_email: '${BIGQUERY_CLIENT_EMAIL}'
client_id: '${BIGQUERY_CLIENT_ID}'
sink:
type: datahub-rest
config:
server: '<http://30.222.164.39:8080>'
And I'm getting the following error:
"Failed to resolve secret with name DATAPLATFORM_PROJECT_ID. Aborting recipe execution."
I double-checked the secrets names as sugested by the UI Ingestion Guide and they are correct.
Have you guys gone through this or could you give me any tips on how to proceed? Thanks in advance for your attention! 🙂square-activity-64562
03/24/2022, 4:41 PMcurl <http://30.222.164.39:8080/gms/config>
That will test the connectivitysquare-activity-64562
03/24/2022, 4:42 PMbig-carpet-38439
03/24/2022, 4:53 PMcalm-television-89033
03/24/2022, 7:49 PMMETADATA_SERVICE_AUTH_ENABLED="true"
in frontend and in datahub-gms paired with Google Authentication, i've realized that i was making a mistake by not adding the token in the recipe, so as instructed in the guide, i've added the token exposed in the recipe for testing, but the failure to resolve the secrets continued. Trying to run the command as you suggested curl <http://30.222.164.39:8080/config>
inside the datahub-action container worked just fine, but when i try using curl <https://datacatalog.falconi.com/api/gms/config>
i have to add the -H 'Authorization: Bearer <access-token>'
to work, otherwise nothing is returned.
Recipe
source:
type: bigquery
config:
project_id: '${DATAPLATFORM_PROJECT_ID}'
credential:
project_id: '${DATAPLATFORM_PROJECT_ID}'
private_key_id: '${BIGQUERY_PRIVATE_KEY_ID}'
private_key: '${BIGQUERY_PRIVATE_KEY}'
client_email: '${BIGQUERY_CLIENT_EMAIL}'
client_id: '${BIGQUERY_CLIENT_ID}'
sink:
type: datahub-rest
config:
server: '<http://35.222.164.39:8080>'
token: eyJhbGciOiJIUzI1NiJ9.eyJhY3Rv...
Error:
~~~~ Execution Summary ~~~~
RUN_INGEST - {'errors': [],
'exec_id': 'adf6f957-ce18-423c-8ad7-e9228c214c69',
'infos': ['2022-03-24 19:30:28.951974 [exec_id=adf6f957-ce18-423c-8ad7-e9228c214c69] INFO: Starting execution for task with name=RUN_INGEST',
'2022-03-24 19:30:28.965176 [exec_id=adf6f957-ce18-423c-8ad7-e9228c214c69] INFO: Caught exception EXECUTING '
'task_id=adf6f957-ce18-423c-8ad7-e9228c214c69, name=RUN_INGEST, stacktrace=Traceback (most recent call last):\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/default_executor.py", line 119, in execute_task\n'
' self.event_loop.run_until_complete(task_future)\n'
' File "/usr/local/lib/python3.9/site-packages/nest_asyncio.py", line 81, in run_until_complete\n'
' return f.result()\n'
' File "/usr/local/lib/python3.9/asyncio/futures.py", line 201, in result\n'
' raise self._exception\n'
' File "/usr/local/lib/python3.9/asyncio/tasks.py", line 256, in __step\n'
' result = coro.send(None)\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 74, in execute\n'
' recipe: dict = self._resolve_recipe(validated_args.recipe, ctx)\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 147, in _resolve_recipe\n'
' raise TaskError(f"Failed to resolve secret with name {match}. Aborting recipe execution.")\n'
'acryl.executor.execution.task.TaskError: Failed to resolve secret with name DATAPLATFORM_PROJECT_ID. Aborting recipe execution.\n']}
Execution finished with errors.
big-carpet-38439
03/24/2022, 7:50 PMbig-carpet-38439
03/24/2022, 7:51 PMbig-carpet-38439
03/24/2022, 7:51 PMbig-carpet-38439
03/24/2022, 7:55 PMdatahub-gms
pod to see if you find any related logscalm-television-89033
03/24/2022, 7:58 PMbig-carpet-38439
03/25/2022, 5:48 PMbig-carpet-38439
03/25/2022, 5:50 PMbig-carpet-38439
03/25/2022, 5:51 PMbig-carpet-38439
03/25/2022, 5:52 PMquery getSecretValues {
getSecretValues(input: { secrets: [ "BIGQUERY_PRIVATE_KEY_ID"] }) { name value }
}
big-carpet-38439
03/25/2022, 5:55 PMbig-carpet-38439
03/25/2022, 5:55 PMbig-carpet-38439
03/25/2022, 5:56 PMcalm-television-89033
03/30/2022, 1:08 PMcalm-television-89033
04/05/2022, 4:50 PMbig-carpet-38439
04/05/2022, 6:03 PMbig-carpet-38439
04/05/2022, 7:05 PMbig-carpet-38439
04/05/2022, 7:07 PMdatahub-encryption-secrets
big-carpet-38439
04/05/2022, 7:07 PMprovisionSecret: true
big-carpet-38439
04/05/2022, 7:08 PMkubectl edit secret datahub-encryption-secrets -n <namespace>
big-carpet-38439
04/05/2022, 7:11 PM.Values.global.datahub.encryptionKey.secretRef, .Values.global.datahub.encryptionKey.secretKey
big-carpet-38439
04/05/2022, 7:13 PMcalm-television-89033
04/05/2022, 8:29 PMprovisionSecret: true
tag to my custom values.yaml file?
This is how it's cofigured right now.
values.yaml:
datahub-gms:
extraEnvs:
- name: METADATA_SERVICE_AUTH_ENABLED
value: "true"
datahub-frontend:
image:
repository: us-docker.pkg.dev/data-platform-327618/datacatalog-frontend/datacatalog-frontend
tag: "0.1.e5ebasf39asdffd3e360cf4a5f0asdf65ceaf5"
extraEnvs:
- name: METADATA_SERVICE_AUTH_ENABLED
value: "true"
- name: AUTH_OIDC_ENABLED
value: "true"
- name: AUTH_OIDC_CLIENT_ID
value: "<http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com>"
- name: AUTH_OIDC_CLIENT_SECRET
value: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
- name: AUTH_OIDC_DISCOVERY_URI
value: "<https://accounts.google.com/.well-known/openid-configuration>"
- name: AUTH_OIDC_BASE_URL
value: "<https://datacatalog.falconi.com>"
- name: AUTH_OIDC_USER_NAME_CLAIM
value: "email"
- name: AUTH_OIDC_USER_NAME_CLAIM_REGEX
value: ([^@]+)
- name: AUTH_OIDC_SCOPE
value: "openid profile email"
To do the deployment im using this command: helm upgrade datahub datahub/datahub -f values.yaml
Also i have runned the command kubectl edit secret datahub-encryption-secrets
and the value for datahub-encryption-secrets
is present in the output.
Thanks for your help and patience.big-carpet-38439
04/05/2022, 9:36 PMbig-carpet-38439
04/05/2022, 9:40 PMbig-carpet-38439
04/05/2022, 9:42 PMa3FNTXp3SE5VeDdKUTNZdWxkaUU=
3. Restart DataHub deployments (gms)
4. Remove and recreate your secrets
5. Run recipe again
This is based on a suspicion im currently trying to validatebig-carpet-38439
04/05/2022, 10:31 PMbig-carpet-38439
04/05/2022, 10:31 PMcalm-television-89033
04/06/2022, 7:57 PMbig-carpet-38439
04/07/2022, 1:43 AMcalm-australia-73026
06/10/2022, 1:18 PMencryption_key_secret
value as follow
"encryption_key_secret":"dFk3VlFTelRTNjJOcTlGMFZOcjE="
Logs from datahub-action
Exception: Failed to retrieve secrets from DataHub.
[2022-06-10 13:03:33,538] DEBUG {datahub.emitter.rest_emitter:233} - Attempting to emit to DataHub GMS; using curl equivalent to:
curl -X POST -H 'User-Agent: python-requests/2.27.1' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'Connection: keep-alive' -H 'X-RestLi-Protocol-Version: 2.0.0' -H 'Content-Type: application/json' -H 'Authorization: Basic __datahub_system:MXc6v273fGAsoHLxxHNz5EGnhcf15a6b' --data '{"proposal": {"entityType": "dataHubExecutionRequest", "entityKeyAspect": {"value": "{\"id\": \"33d70b99-d93b-4f14-aff9-bcb8919ea6aa\"}", "contentType": "application/json"}, "changeType": "UPSERT", "aspectName": "dataHubExecutionRequestResult", "aspect": {"value": "{\"status\": \"FAILURE\", \"startTimeMs\": 1654866213455, \"durationMs\": 83, \"report\": \"~~~~ Execution Summary ~~~~\\n\\nRUN_INGEST - {'"'"'errors'"'"': [],\\n '"'"'exec_id'"'"': '"'"'33d70b99-d93b-4f14-aff9-bcb8919ea6aa'"'"',\\n '"'"'infos'"'"': ['"'"'2022-06-10 13:03:33.517274 [exec_id=33d70b99-d93b-4f14-aff9-bcb8919ea6aa] INFO: Starting execution for task with name=RUN_INGEST'"'"',\\n '"'"'2022-06-10 13:03:33.537627 [exec_id=33d70b99-d93b-4f14-aff9-bcb8919ea6aa] INFO: Caught exception EXECUTING '"'"'\\n '"'"'task_id=33d70b99-d93b-4f14-aff9-bcb8919ea6aa, name=RUN_INGEST, stacktrace=Traceback (most recent call last):\\\\n'"'"'\\n '"'"' File \\\"/usr/local/lib/python3.9/site-packages/acryl/executor/execution/default_executor.py\\\", line 119, in execute_task\\\\n'"'"'\\n '"'"' self.event_loop.run_until_complete(task_future)\\\\n'"'"'\\n '"'"' File \\\"/usr/local/lib/python3.9/site-packages/nest_asyncio.py\\\", line 81, in run_until_complete\\\\n'"'"'\\n '"'"' return f.result()\\\\n'"'"'\\n '"'"' File \\\"/usr/local/lib/python3.9/asyncio/futures.py\\\", line 201, in result\\\\n'"'"'\\n '"'"' raise self._exception\\\\n'"'"'\\n '"'"' File \\\"/usr/local/lib/python3.9/asyncio/tasks.py\\\", line 256, in __step\\\\n'"'"'\\n '"'"' result = coro.send(None)\\\\n'"'"'\\n '"'"' File \\\"/usr/local/lib/python3.9/site-packages/acryl/executor/execution/sub_process_ingestion_task.py\\\", line 74, in execute\\\\n'"'"'\\n '"'"' recipe: dict = self._resolve_recipe(validated_args.recipe, ctx)\\\\n'"'"'\\n '"'"' File \\\"/usr/local/lib/python3.9/site-packages/acryl/executor/execution/sub_process_ingestion_task.py\\\", line 147, in _resolve_recipe\\\\n'"'"'\\n '"'"' raise TaskError(f\\\"Failed to resolve secret with name {match}. Aborting recipe execution.\\\")\\\\n'"'"'\\n '"'"'acryl.executor.execution.task.TaskError: Failed to resolve secret with name SNOWFLAKE_USERNAME. Aborting recipe execution.\\\\n'"'"']}\\nExecution finished with errors.\\n\"}", "contentType": "application/json"}}}' '<http://datahub-datahub-gms:8080/aspects?action=ingestProposal>'
calm-australia-73026
06/10/2022, 1:18 PMcalm-australia-73026
06/10/2022, 1:39 PMbig-carpet-38439
06/17/2022, 3:27 PMprehistoric-salesclerk-23462
07/05/2022, 9:25 AMsome-microphone-33485
07/15/2022, 3:26 PM