changeset 10:cdfa2e1a7ef4 draft

planemo upload for repository https://github.com/afgane/gcp_batch_netcat commit 4af8133734db9edb3cb94326a82cdaa484e96482-dirty
author enis
date Tue, 12 Aug 2025 16:22:41 +0000
parents 3fd12035e6c9
children fe0bf22037a5
files gcp_batch_netcat.py log1.txt
diffstat 2 files changed, 40 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/gcp_batch_netcat.py	Sun Aug 10 21:32:04 2025 +0000
+++ b/gcp_batch_netcat.py	Tue Aug 12 16:22:41 2025 +0000
@@ -89,7 +89,7 @@
 echo "Timestamp: $(date)"
 echo "Container hostname: $(hostname)"
 echo "Host VM Image: galaxy-k8s-boot-v2025-08-10"
-echo "Container Image: afgane/gcp-batch-netcat:0.2.0"
+echo "Container Image: afgane/gcp-batch-netcat:0.3.0"
 echo ""
 
 # Basic system info
@@ -307,13 +307,11 @@
     logger.info("Building job specification...")
     runnable = batch_v1.Runnable()
     runnable.container = batch_v1.Runnable.Container()
-    runnable.container.image_uri = "afgane/gcp-batch-netcat:0.2.0"
+    runnable.container.image_uri = "afgane/gcp-batch-netcat:0.3.0"
 
     # Bind mount /cvmfs from the host VM (which has CVMFS client) into the container
-    cvmfs_volume = batch_v1.Volume()
-    cvmfs_volume.host_path = "/cvmfs"
-    cvmfs_volume.mount_path = "/cvmfs"
-    runnable.container.volumes = [cvmfs_volume]
+    # Use the docker-style volume syntax for bind mounting host paths
+    runnable.container.volumes = ["/cvmfs:/cvmfs:ro"]
 
     runnable.container.entrypoint = "/bin/bash"
     runnable.container.commands = ["-c", test_script]
@@ -350,9 +348,13 @@
     instance_policy.boot_disk.size_gb = 99
     logger.debug(f"Using custom VM image: {instance_policy.boot_disk.image}")
 
+    # Wrap the instance policy in InstancePolicyOrTemplate
+    instance_policy_or_template = batch_v1.AllocationPolicy.InstancePolicyOrTemplate()
+    instance_policy_or_template.policy = instance_policy
+
     allocation_policy = batch_v1.AllocationPolicy()
     allocation_policy.network = network_policy
-    allocation_policy.instances = [instance_policy]
+    allocation_policy.instances = [instance_policy_or_template]
 
     job = batch_v1.Job()
     job.task_groups = [task_group]
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/log1.txt	Tue Aug 12 16:22:41 2025 +0000
@@ -0,0 +1,31 @@
+2025-08-11 19:47:27.404 WGST
+is only available from another source
+2025-08-11 19:47:27.404 WGST
+2025-08-11 19:47:27.407 WGST
+E: Package 'docker-ce' has no installation candidate
+2025-08-11 19:47:27.407 WGST
+E: Package 'docker-ce-cli' has no installation candidate
+2025-08-11 19:47:27.407 WGST
+E: Unable to locate package containerd.io
+2025-08-11 19:47:27.407 WGST
+E: Couldn't find any package by glob 'containerd.io'
+2025-08-11 19:47:27.407 WGST
+E: Couldn't find any package by regex 'containerd.io'
+2025-08-11 19:47:27.407 WGST
+E: Unable to locate package docker-compose-plugin
+2025-08-11 19:47:27.408 WGST
+Task action/STARTUP/0/0/group0 runnable 0 wait error: exit status 100
+2025-08-11 19:47:27.408 WGST
+Task action/STARTUP/0/0/group0 runnable 0 exited with status 100
+2025-08-11 19:47:27.408 WGST
+Task action/STARTUP/0/0/group0 runnable 0 execution err: command failed with exitCode 100
+2025-08-11 19:47:27.408 WGST
+Task action/STARTUP/0/0/group0 background runnables all exited on their own.
+2025-08-11 19:47:27.408 WGST
+Task action/STARTUP/0/0/group0: failed runnables [0]
+2025-08-11 19:47:27.408 WGST
+Scheduler reported task "action/STARTUP/0/0/group0"
+2025-08-11 19:47:27.408 WGST
+report agent state: metadata:{parent:"projects/526897014808/locations/us-east4" zone:"us-east4-b" instance:"netcat-job-bf1b499-5d135274-e581-45210-group0-0-mpfx" instance_id:447085315223971911 creation_time:{seconds:1754945238 nanos:445714106} creator:"projects/526897014808/regions/us-east4/instanceGroupManagers/netcat-job-bf1b499-5d135274-e581-45210-group0-0" version:"cloud-batch-agent_20250723.00_p00" os_release:{key:"ID" value:"ubuntu"} os_release:{key:"NAME" value:"Ubuntu"} os_release:{key:"VERSION" value:"24.04.3 LTS (Noble Numbat)"} os_release:{key:"VERSION_CODENAME" value:"noble"} os_release:{key:"VERSION_ID" value:"24.04"} machine_type:"e2-highcpu-2"} agent_info:{state:AGENT_RUNNING job_id:"netcat-job-bf1b499-5d135274-e581-45210" user_project_num:526897014808 tasks:{task_id:"action/STARTUP/0/0/group0" task_status:{state:FAILED status_events:{type:"ASSIGNED" description:"task action/STARTUP/0/0/group0 ASSIGNED" event_time:{seconds:1754945238 nanos:621564382} task_state:ASSIGNED} status_events:{type:"RUNNING" description:"task action/STARTUP/0/0/group0 RUNNING" event_time:{seconds:1754945238 nanos:621571338} task_state:RUNNING} status_events:{type:"FAILED" description:"failed runnables [0]" event_time:{seconds:1754945247 nanos:408496955} task_execution:{exit_code:100 stderr_snippet:"e-plugin\nouldn't find any package by regex 'containerd.io'\nE: Unable to locate package docker-compos"} task_state:FAILED}}} report_time:{seconds:1754945247 nanos:408751935} task_group_id:"group0"} agent_timing_info:{boot_time:{seconds:1754945215 nanos:397254370} script_startup_time:{seconds:1754945232 nanos:497254370} agent_startup_time:{seconds:1754945238 nanos:445714106}}
+2025-08-11 19:47:27.484 WGST
+Server response for instance 447085315223971911: tasks:{task:"action/STARTUP/0/0/group0" status:{state:FAILED status_events:{type:"ASSIGNED" description:"task action/STARTUP/0/0/group0 ASSIGNED" event_time:{seconds:1754945238 nanos:621564382} task_state:ASSIGNED} status_events:{type:"RUNNING" description:"task action/STARTUP/0/0/group0 RUNNING" event_time:{seconds:1754945238 nanos:621571338} task_state:RUNNING} status_events:{type:"FAILED" description:"failed runnables [0]" event_time:{seconds:1754945247 nanos:408496955} task_execution:{exit_code:100 stderr_snippet:"e-plugin\nouldn't find any package by regex 'containerd.io'\nE: Unable to locate package docker-compos"} task_state:FAILED}} intended_state:ASSIGNED job_uid:"netcat-job-bf1b499-5d135274-e581-45210" task_group_id:"group0" location:"us-east4" job_id:"netcat-job-bf1b4994-8ab8-4361-91b3-c7b90ce3a02f"} use_batch_monitored_resource:true.