Commit 2eee0ad2 authored by Maverick Chardet's avatar Maverick Chardet
Browse files

Fixed everything for new enoslib API

parent 6416ca9d
......@@ -8,7 +8,8 @@ class G5kReservation:
@staticmethod
def _g5k_deploy(g5k_config, force_deploy=False, **kwargs):
from enoslib.infra.enos_g5k.provider import G5k
provider = G5k(g5k_config)
from enoslib.infra.enos_g5k.configuration import Configuration
provider = G5k(Configuration.from_dictionnary(g5k_config))
roles, networks = provider.init(force_deploy=force_deploy)
env = {'roles': roles, 'networks': networks}
logging.info('Wait 30 seconds for iface to be ready...')
......
g5k:
# reservation: "2018-03-12 19:00:01"
oargrid_jobid: 65542 # overriding the rest
walltime: "02:00:00"
force_deploy: false
oargrid_jobids: [['nantes', 66447]] # overriding the rest
walltime: "01:00:00"
dhcp: true
job_name: concerto_ssh_scalability
env_name: debian9-x64-nfs-madpp
......
g5k:
dhcp: true
env_name: debian9-x64-nfs-madpp
force_deploy: false
job_name: concerto_ssh_scalability
oargrid_jobids:
- - 65542
resources:
machines:
- cluster: ecotype
nodes: 20
primary_network: n1
roles:
- remote
secondary_networks: []
- cluster: ecotype
nodes: 1
primary_network: n1
roles:
- concerto
secondary_networks: []
networks:
- id: n1
roles:
- control_network
- database_network
site: nantes
type: prod
walltime: 02:00:00
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment