wgreven-ibr opened a new issue, #36557: URL: https://github.com/apache/beam/issues/36557
### What happened? When deploying a Python Dataflow pipeline from a Windows client using the --prebuild_sdk_container_engine=cloud_build option, the Apache Beam SDK incorrectly constructs the target image path. It uses a Windows-style backslash (\) as a path separator instead of the required forward slash (/) for the Docker image name. This malformed image path is passed to the Cloud Build job, which then fails when it attempts to tag and push the image to Artifact Registry. **Observed Behavior** The pipeline is deployed using the following pipeline options ```bash --prebuild_sdk_container_engine=cloud_build --docker_registry_push_url=IMAGE_PATH --sdk_location=container --sdk_container_image=docker.io/apache/beam_python3.11_sdk:2.67.0 ``` The Cloud Build log shows the buildah command being executed with an invalid image name containing a backslash: ```bash sh -c buildah bud --storage-driver=vfs -t europe-west1-docker.pkg.dev/PROJECT_ID/IMAGE_PATH\beam_python_prebuilt_sdk:9589111e-8d9f-4247-b799-0e65f806635f . && buildah push --storage-driver=vfs europe-west1-docker.pkg.dev/PROJECT_ID/IMAGE_PATH\beam_python_prebuilt_sdk:9589111e-8d9f-4247-b799-0e65f806635f docker://europe-west1-docker.pkg.dev/PROJECT_ID/IMAGE_PATH\beam_python_prebuilt_sdk:9589111e-8d9f-4247-b799-0e65f806635f ``` _(Note the incorrect ...data-ingestion\beam_python... path)_ This leads to the final push failing: ``` Error: pushing image "europe-west1-docker.pkg.dev/PROJECT_ID/IMAGE_PATHbeam_python_prebuilt_sdk:9589111e-8d9f-4247-b799-0e65f806635f" to "docker://europe-west1-docker.pkg.dev/PROJECT_ID/IMAGE_PATHbeam_python_prebuilt_sdk:9589111e-8d9f-4247-b799-0e65f806635f": trying to reuse blob sha256:b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 at destination: Requesting bearer token: received unexpected HTTP status: 404 Not Found ERROR ERROR: build step 0 "quay.io/buildah/stable:latest" failed: step exited with non-zero status: 125 ``` **Environment** - **Client OS:** Windows - **Apache Beam SDK:** 2.67.0 (based on apache/beam_python3.11_sdk:2.67.0) - **Python Version:** 3.11 ### Issue Priority Priority: 2 (default / most bugs should be filed as P2) ### Issue Components - [ ] Component: Python SDK - [ ] Component: Java SDK - [ ] Component: Go SDK - [ ] Component: Typescript SDK - [ ] Component: IO connector - [ ] Component: Beam YAML - [ ] Component: Beam examples - [ ] Component: Beam playground - [ ] Component: Beam katas - [ ] Component: Website - [ ] Component: Infrastructure - [ ] Component: Spark Runner - [ ] Component: Flink Runner - [ ] Component: Samza Runner - [ ] Component: Twister2 Runner - [ ] Component: Hazelcast Jet Runner - [x] Component: Google Cloud Dataflow Runner -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
