Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit b246b8f

Browse files
author
Alejandro Huertas
committed
M #-: sync onegate with OpenNebula one
1 parent 280f193 commit b246b8f

1 file changed

Lines changed: 29 additions & 15 deletions

File tree

src/usr/bin/onegate.rb

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22

33
# -------------------------------------------------------------------------- #
4-
# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems #
4+
# Copyright 2002-2022, OpenNebula Project, OpenNebula Systems #
55
# #
66
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
77
# not use this file except in compliance with the License. You may obtain #
@@ -29,7 +29,7 @@
2929
module CloudClient
3030

3131
# OpenNebula version
32-
VERSION = '5.12.6'
32+
VERSION = '6.9.80'
3333

3434
# #########################################################################
3535
# Default location for the authentication file
@@ -221,6 +221,9 @@ module VirtualMachine
221221
DISK_RESIZE_POWEROFF
222222
DISK_RESIZE_UNDEPLOYED
223223
HOTPLUG_NIC_POWEROFF
224+
HOTPLUG_RESIZE
225+
HOTPLUG_SAVEAS_UNDEPLOYED
226+
HOTPLUG_SAVEAS_STOPPED
224227
}
225228

226229
SHORT_VM_STATES={
@@ -302,7 +305,10 @@ module VirtualMachine
302305
"DISK_RESIZE" => "drsz",
303306
"DISK_RESIZE_POWEROFF" => "drsz",
304307
"DISK_RESIZE_UNDEPLOYED" => "drsz",
305-
"HOTPLUG_NIC_POWEROFF" => "hotp"
308+
"HOTPLUG_NIC_POWEROFF" => "hotp",
309+
"HOTPLUG_RESIZE" => "hotp",
310+
"HOTPLUG_SAVEAS_UNDEPLOYED" => "hotp",
311+
"HOTPLUG_SAVEAS_STOPPED" => "hotp"
306312
}
307313

308314
def self.state_to_str(id, lcm_id)
@@ -339,17 +345,21 @@ def self.print(json_hash, extended = false)
339345

340346
module Service
341347
STATE = {
342-
'PENDING' => 0,
343-
'DEPLOYING' => 1,
344-
'RUNNING' => 2,
345-
'UNDEPLOYING' => 3,
346-
'WARNING' => 4,
347-
'DONE' => 5,
348-
'FAILED_UNDEPLOYING' => 6,
349-
'FAILED_DEPLOYING' => 7,
350-
'SCALING' => 8,
351-
'FAILED_SCALING' => 9,
352-
'COOLDOWN' => 10
348+
'PENDING' => 0,
349+
'DEPLOYING' => 1,
350+
'RUNNING' => 2,
351+
'UNDEPLOYING' => 3,
352+
'WARNING' => 4,
353+
'DONE' => 5,
354+
'FAILED_UNDEPLOYING' => 6,
355+
'FAILED_DEPLOYING' => 7,
356+
'SCALING' => 8,
357+
'FAILED_SCALING' => 9,
358+
'COOLDOWN' => 10,
359+
'DEPLOYING_NETS' => 11,
360+
'UNDEPLOYING_NETS' => 12,
361+
'FAILED_DEPLOYING_NETS' => 13,
362+
'FAILED_UNDEPLOYING_NETS' => 14
353363
}
354364

355365
STATE_STR = [
@@ -363,7 +373,11 @@ module Service
363373
'FAILED_DEPLOYING',
364374
'SCALING',
365375
'FAILED_SCALING',
366-
'COOLDOWN'
376+
'COOLDOWN',
377+
'DEPLOYING_NETS',
378+
'UNDEPLOYING_NETS',
379+
'FAILED_DEPLOYING_NETS',
380+
'FAILED_UNDEPLOYING_NETS'
367381
]
368382

369383
# Returns the string representation of the service state

0 commit comments

Comments
 (0)