hardcode network_name=public3 to sidestep phantom dhcp lease issues

This commit is contained in:
forest 2021-07-12 15:59:20 -05:00
parent 06a2bd3a6f
commit 47fbaab403

View File

@ -166,13 +166,16 @@ def can_claim_create(payload, host_id) -> (str, str):
return payload, ""
def on_create_claimed(payload, host_id):
//
get_model().create_vm(
email=payload['email'],
id=payload['id'],
size=payload['size'],
os=payload['os'],
host=host_id,
network_name=payload['network_name'],
# network_name=payload['network_name'],
# hard-code the network name for now until we can fix the phantom dhcp lease issues.
network_name='public3',
public_ipv4=payload['public_ipv4'],
ssh_authorized_keys=list(map(lambda x: x["name"], payload['ssh_authorized_keys'])),
)