ArchipelProject / Archipel

XMPP Based Orchestrator
http://archipelproject.org
GNU Affero General Public License v3.0
802 stars 127 forks source link

[UI] Range {-1, 1} is out of bounds when Parking #1069

Closed SalomonBrys closed 9 years ago

SalomonBrys commented 10 years ago

I use the latest git version with both agent and central-agent built with -d. When I try to park a VM, I get a 501 error : the feature requested is not implemented by the recipient... Since I use the last git version, I do not have the binary archipel-vmparkingnode. Did I forget something ?

CyrilPeponnet commented 10 years ago

Did you enable the plugin in configuration file ?

SalomonBrys commented 10 years ago

I think I did:

In archipel.conf:

[MODULES]
action_scheduler            = True
centraldb                   = True
geolocalization             = True
hypervisor_health           = True
hypervisor_network          = True
hypervisor_vmcasts          = True
iphone_notification         = False
oomkiller                   = True
snapshoting                 = True
storage                     = True
virtualmachine_appliance    = True
vnc                         = True
xmppserver                  = True
vmparking                   = True  # needs centraldb to be activated                                                                                                                                                                             

In archipel-central-agent.conf:

[MODULES]
platformrequest             = True
vmparking                   = True
CyrilPeponnet commented 10 years ago

Can you remove the comments on the vm parking line for archipel agent configuration file ?

SalomonBrys commented 10 years ago

OK, so I removed the comment and /etc/init.d/archipel restart.

After logging in I tried to park a VM and the app crashed. The crash report is below.

The crash forced me to reload the archipel web-app but once reloaded, I could see that my VM was correctly parked!

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.103 Safari/537.36

Exception: CPInvalidArgumentException: Range {-1, 1} is out of bounds.

Version: 0.6.0-e593f52 (Apophis)

Stack Trace: 
 Error,    at $CPException__alloc (eval at <anonymous> (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), <anonymous>:50:18),    at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8007:8),    at $CPException__exceptionWithName_reason_userInfo_ (eval at <anonymous> (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), <anonymous>:67:25),    at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8013:13),    at $CPException__raise_reason_ (eval at <anonymous> (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), <anonymous>:56:91),    at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8011:8),    at $CPIndexSet__addIndexesInRange_ (eval at <anonymous> (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), <anonymous>:449:117),    at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8009:8),    at $CPIndexSet__addIndex_ (eval at <anonymous> (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), <anonymous>:437:46),    at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8009:8)
CyrilPeponnet commented 10 years ago

Weird do you use the UI from nightlies ?

On 3 juil. 2014, at 07:58, Salomon BRYS notifications@github.com wrote:

OK, so I removed the comment and /etc/init.d/archipel restart.

After logging in I tried to park a VM and the app crashed. The crash report is below.

The crash forced me to reload the archipel web-app but once reloaded, I could see that my VM was correctly parked!

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.103 Safari/537.36

Exception: CPInvalidArgumentException: Range {-1, 1} is out of bounds.

Version: 0.6.0-e593f52 (Apophis)

Stack Trace: Error, at $CPException__alloc (eval at (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16),

:50:18), at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8007:8), at $CPException__exceptionWithName_reason_userInfo_ (eval at (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), :67:25), at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8013:13), at $CPException__raise_reason_ (eval at (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), :56:91), at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8011:8), at $CPIndexSet__addIndexesInRange_ (eval at (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), :449:117), at ob jj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8009:8), at $CPIndexSet__addIndex_ (eval at (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:7454:16), :437:46), at objj_msgSend (http://app.archipelproject.org/Frameworks/Objective-J/Objective-J.js:8009:8) — Reply to this email directly or view it on GitHub https://github.com/ArchipelProject/Archipel/issues/1069#issuecomment-47940643 .
SalomonBrys commented 10 years ago

I use http://app.archipelproject.org/

CyrilPeponnet commented 10 years ago

You right, got it. I'll take a look later. Thanks for the report.

CyrilPeponnet commented 9 years ago

Fixed in lasted master