This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/etc/backend/opennebula/model/infrastructure/storage.json b/etc/backend/opennebula/model/infrastructure/storage.json | |
index 8612a6c..3670fcb 100644 | |
--- a/etc/backend/opennebula/model/infrastructure/storage.json | |
+++ b/etc/backend/opennebula/model/infrastructure/storage.json | |
@@ -22,11 +22,11 @@ | |
}, | |
"bus":{ | |
"Description":"Type of disk device to emulate.", | |
- "Pattern": "IDE|SCSI|virtio" | |
+ "Pattern": "ide|IDE|scsi|SCSI|virtio" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:121:in `block in check' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:105:in `each_key' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:105:in `check' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:124:in `block in check' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:105:in `each_key' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:105:in `check' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:124:in `block in check' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:105:in `each_key' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:105:in `check' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/occi-2.4.0/lib/occi/core/entity.rb:124:in `block |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/rOCCI-server/lib/occi/backend/opennebula/network.rb:62:in `network_parse_backend_object' | |
/opt/rOCCI-server/lib/occi/backend/opennebula/network.rb:120:in `block in network_register_all_instances' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/oca-3.4.1/lib/OpenNebula/XMLUtils.rb:388:in `call' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/oca-3.4.1/lib/OpenNebula/XMLUtils.rb:388:in `block in each_element' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239:in `block in each' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in `upto' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in `each' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/oca-3.4.1/lib/OpenNebula/XMLUtils.rb:386:in `each_element' | |
/opt/rOCCI-server/vendor/bundle/ruby/1.9.1/gems/oca-3.4.1/lib/OpenNebula/Pool.rb:100:in `each' | |
/opt/rOC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
D, [2012-08-10T12:27:07.128635 #22941] DEBUG -- : current VM state is: RUNNING <-- OK | |
D, [2012-08-10T12:27:07.129598 #22941] DEBUG -- : Storage Backend ID: 0 <-- Wrong ID, should be 31 | |
D, [2012-08-10T12:27:07.131134 #22941] DEBUG -- : Network Backend ID: 4 <-- OK | |
D, [2012-08-10T12:27:07.137310 #22941] DEBUG -- : Category with id http://schemas.ogf.org/occi/infrastructure#ipnetwork not found | |
D, [2012-08-10T12:27:07.138659 #22941] DEBUG -- : Category with id #<OCCI::Core::Mixin:0x000000024c4d78> not found | |
D, [2012-08-10T12:27:07.138753 #22941] DEBUG -- : Category with id #<OCCI::Core::Mixin:0x000000022f42a0> not found | |
D, [2012-08-10T12:27:07.147738 #22941] DEBUG -- : Category with id http://schemas.ogf.org/occi/infrastructure#ipnetwork not found | |
D, [2012-08-10T12:27:07.152783 #22941] DEBUG -- : Category with id http://schemas.ogf.org/occi/infrastructure#ipnetwork not found | |
D, [2012-08-10T12:27:07.177933 #22941] DEBUG -- : Category with id http://schemas.ogf.org/occi/infrastructure#ipnetw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'occi/client' | |
include OCCI::Client | |
endpoint = "https://localhost:3300" | |
auth = { :type => "x509", | |
:user_cert => "mycert.pem", | |
:user_cert_password => "mypass", | |
:ca_path => "/etc/grid-security/certificates" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D, [2012-08-15T14:43:25.845116 #6688] DEBUG -- : ### POST request processing ... | |
D, [2012-08-15T14:43:25.845300 #6688] DEBUG -- : Deploying resource with title My rOCCI VM in backend OCCI::Backend::OpenNebula | |
D, [2012-08-15T14:43:25.845534 #6688] DEBUG -- : Compute deploy found mixin: [#<Hashie::Mash related=["http://schemas.ogf.org/occi/infrastructure#os_tpl"] scheme="http://my.occi.service/occ | |
i/infrastructure/os_tpl#" term="monitoring" title="monitoring">] | |
NoMethodError - undefined method `related_to?' for #<Array:0x000000016f58c8>: | |
/opt/rOCCI-server/lib/occi/backend/opennebula/compute.rb:225:in `block in compute_deploy' | |
/opt/rOCCI-server/lib/occi/backend/opennebula/compute.rb:220:in `select' | |
/opt/rOCCI-server/lib/occi/backend/opennebula/compute.rb:220:in `compute_deploy' | |
/opt/rOCCI-server/lib/occi/backend/manager.rb:104:in `signal_resource' | |
/opt/rOCCI-server/lib/occi/server.rb:266:in `block (2 levels) in <class:Server>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/api/dsl.rb:101:in `check': You have to issue 'connect' first! (RuntimeError) | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/api/dsl.rb:79:in `mixins' | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/collection.rb:23:in `initialize' | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/parser.rb:31:in `new' | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/parser.rb:31:in `parse' | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/api/client.rb:420:in `get' | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/api/client.rb:516:in `set_model' | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/api/client.rb:83:in `initialize' | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/api/dsl.rb:5:in `new' | |
from ~/.rvm/gems/ruby-1.9.2-p290/gems/occi-2.5.3/lib/occi/api/dsl.rb:5:in `connect' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/fedcloud.py b/fedcloud.py | |
index 37f485d..c8e675a 100644 | |
--- a/fedcloud.py | |
+++ b/fedcloud.py | |
@@ -254,6 +254,7 @@ def checkMachine(machine,validMachines): | |
checkRunning = "curl -s --cert "+certpath+"/usercert.pem:"+passwd+" --key "+certpath+"/userkey.pem "+endpoint[0]+"/compute/ --capath "+capath+" | awk \'{ print $1 }\'" | |
if debug == 1: print "Launched:",checkRunning.replace(passwd,"xxxxxx") | |
status, checkResult = commands.getstatusoutput(checkRunning) | |
+ if debug == 1: print "Returned:\n", checkResult | |
if checkResult.find("X-OCCI-Location:") != -1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/occi/backend/opennebula/compute.rb b/lib/occi/backend/opennebula/compute.rb | |
index 70fdf01..e95a0d5 100644 | |
--- a/lib/occi/backend/opennebula/compute.rb | |
+++ b/lib/occi/backend/opennebula/compute.rb | |
@@ -241,6 +241,9 @@ module OCCI | |
# --------------------------------------------------------------------------------------------------------------------- | |
def compute_deploy(client, compute) | |
+ | |
+ OCCI::Log.debug "Deploying #{compute.inspect}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/occi/infrastructure/resource_tpl.rb b/lib/occi/infrastructure/resource_tpl.rb | |
index d3d726a..67ec27b 100644 | |
--- a/lib/occi/infrastructure/resource_tpl.rb | |
+++ b/lib/occi/infrastructure/resource_tpl.rb | |
@@ -4,7 +4,7 @@ module Occi | |
extend Occi | |
- def self.mixin | |
+ def self.mixins |
OlderNewer