Project

General

Profile

Actions

Task #6875

closed

Task #6869: Challenge OpenStack and OpenNebula with ucloud

Create ucloud-scheduler

Added by Nico Schottelius almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
06/24/2019
Due date:
% Done:

50%

Estimated time:
PM Check date:

Description

Reads / watches keys below /v1/vm (later probably as well /v1/networks?)

The JSON of the VM should contain a "status" field. On submit, the status should be "REQUESTED_NEW" (-> need to update ucloud-api).

Creating VM

The scheduler watches for changes on the key prefix. If the status is REQUEST_NEW, find a suitable host for deploying the VM to.
Update the status field to "SCHEDULED_DEPLOY". Also add a new field "host" that contains the hostname of the host the VM should be running on.

Deleting VM

The scheduler watches for changes on the key prefix. If the status is REQUEST_DELETE, do nothing -> ucloud-vm needs to react and will update the field.

APIs

ucloud scheduler only reacts on etcd changes and does not have a direct accessible API.

Actions

Also available in: Atom PDF