1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-03 01:17:41 +03:00
Commit Graph

26 Commits

Author SHA1 Message Date
Ruben S. Montero
dca50b2bb9
F #6275: External scheduler API
The connection to an external scheduler module is configured in sched.conf:

EXTERNAL_SCHEDULER = [
   SERVER  = "http://localhost:4567",
   PROXY   = "",
   TIMEOUT = 10
]

The API post on '/' the list of VMs, their pre-selected list of
candidate hosts based on REQUIREMENTS along with the VM information
(CAPACITY, TEMPLATE and USER_TEMPLATE).

Example:
{
  "VMS": [
    {
      "CAPACITY": {
        "CPU": 1.5,
        "DISK_SIZE": 1024,
        "MEMORY": 131072
      },
      "HOST_IDS": [
        3,
        4,
        5
      ],
      "ID": 32,
      "STATE": "PENDING",
      "TEMPLATE": {
        "AUTOMATIC_DS_REQUIREMENTS": "(\"CLUSTERS/ID\" @> 0)",
        "AUTOMATIC_NIC_REQUIREMENTS": "(\"CLUSTERS/ID\" @> 0)",
        "AUTOMATIC_REQUIREMENTS": "(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED)",
        "CPU": "1.5",
        "MEMORY": "128",
        ...
      },
      "USER_TEMPLATE": {}
    },
    {
      "CAPACITY": {
        "CPU": 1.5,
        "DISK_SIZE": 1024,
        "MEMORY": 131072
      },
      "HOST_IDS": [
        3,
        4,
        5
      ],
      "ID": 33,
      "STATE": "PENDING",
      "TEMPLATE": {
       ...
      },
      "USER_TEMPLATE": {}
    }
  ]
}

The scheduler needs to respond to this post action with a simple list of
the allocation for each VM:

{
  "VMS": [
    {
      "ID": 32,
      "HOST_ID": 2
    },
    {
      "ID": 33,
      "HOST_ID": 0
    }
  ]
}

This commits vendorize Vendorize nlohmann-json (MIT license)
2023-08-29 17:11:01 +02:00
Alejandro Huertas Herrero
e1585c6ef4
M #-: fix gem dependencies error in provision (#1754) 2022-02-07 13:23:25 +01:00
Ricardo Diaz
b900491a9a
M #-: Skip null values from Equinix response (#1348)
It can happen that Equinix API responses contain null values for certain
attributes (e.g. "facility":null). This fix avoids the provision crashes
with this error "[one.vn.allocate] undefined method `each_pair' for
nil:NilClass" when creating the packet-cluster-public network.

Signed-off-by: Ricardo Diaz <rdiaz@opennebula.io>
2021-07-06 13:34:46 +02:00
Alejandro Huertas Herrero
7078b8d298
F #5387: change Vultr API dir (#1236) 2021-05-19 16:46:47 +02:00
Alejandro Huertas Herrero
7927c95553
F #5387: add Vultr support into OneProvision (#1229) 2021-05-19 12:24:19 +02:00
Angel Luis Moya Gonzalez
a1f36e047d F #3990: Prepare to change rbvmomi version (#4059) 2019-12-19 16:50:14 +01:00
Alejandro Huertas
1a56d89890
F #3042: Packet Public Networking
* Add alias ip hook
    * Add packet ipam scripts
    * Make some changes in packethost Ruby gem
    * Make some changes in Packet vmm driver

(cherry picked from commit c87025d314)
2019-08-30 17:29:24 +02:00
Tino Vazquez
ba99174e13
Add missing dependency
Exclude non ready ruby files
2019-01-18 19:27:58 +01:00
Vlastimil Holer
e5d3f46da1 F #2645: Disaggregated Data Centers (oneprovision) 2018-11-29 15:14:17 +01:00
Javi Fontan
f93e2be001 Bump version to 5.4.0 2017-07-17 13:24:09 +02:00
Javi Fontan
0524112489 Bump version to 5.3.90 2017-07-07 15:27:26 +02:00
Jaime Melis
d0ca67a6e4 Bump to version 5.3.85 2017-06-27 15:54:47 +02:00
mcabrerizo
a53464a897 F #4913: Modify vmodl.db to solve issue with wrong types returned 2017-06-11 18:54:28 +02:00
Javi Fontan
8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
mcabrerizo
595a74f999 F #4913: Solved some wrong types declared for Rbvmomi SOAP responses 2017-03-30 12:05:41 +02:00
Jaime Melis
238a75c608 Bump version 5.2 2016-09-27 11:49:32 +02:00
Tino Vazquez
f1915898a2 F #3045: vCenter support for limiting VM traffic
rbvmomi updated to v1.9.3
2016-09-23 11:44:35 +02:00
Javi Fontan
1fb5f9aeff Update vendorized rbvmomi to version 1.8.2 2016-03-10 17:41:14 +01:00
Tino Vazquez
d8a63b8e1b feature #4186: Fix rbvmomi 2016-03-03 17:33:14 +01:00
Tino Vazquez
bdba6c66a7 feature #4186: Add modified rbvmomi lib Datastore.rb 2016-03-03 17:29:03 +01:00
Tino Vazquez
5eb891eb9d feature #4186: Add support for flat vmdk for vcenter to marketplace export 2016-02-12 19:00:50 +01:00
Tino Vazquez
8c07d9d7b9 feature #4186: Add export functionality from vCenter DS to Marketplace 2016-02-11 18:28:45 +01:00
Tino Vazquez
6ec461acce feature #4186: Add upload functionality for vCenter 2016-02-04 18:57:34 +01:00
Tino Vazquez
08dfad047e feature #1977: Remove unneeded gem files 2013-05-20 17:52:16 +02:00
Tino Vazquez
9e7ba3fc69 feature #1977: Better use of the inside rbvmomi gem 2013-05-20 17:37:30 +02:00
Tino Vazquez
c09050ad35 feature #1977: Add rbvmomi gem to the distribution 2013-05-20 17:08:45 +02:00