Reservation time not working when using multi-site deployment en G5K
It looks like even if clusters are free at the asked date/time, EnOSlib launches reservations immediatly
import logging
from pathlib import Path
import enoslib as en
en.init_logging(level=logging.INFO)
en.check()
job_name = Path(__file__).name
conf = (
en.G5kConf.from_settings(
job_type=[],
job_name=job_name,
walltime="0:10:00",
reservation='2024-07-02 17:00:00',) # Change to a future time
# For convenience, we use the site name as role
.add_machine(roles=["nantes", "intel"], cluster="ecotype", nodes=1)
.add_machine(roles=["grenoble", "amd"], cluster="dahu", nodes=1)
)
provider = en.G5k(conf)
# Get actual resources
roles, networks = provider.init()
# Check connectivity from Nantes to Grenoble
target = roles["nantes"][0]
results = en.run_command(f"ping -c3 {target.address}", roles=roles["grenoble"])
for result in results:
print(f"Ping from {result.host} to {target.address}:")
print(f"{result.stdout}")
# Release all Grid'5000 resources