Skip to content

Instantly share code, notes, and snippets.

View arax's full-sized avatar

Boris Parak arax

  • Brno, Czech Republic
View GitHub Profile
@arax
arax / gist:3348688
Created August 14, 2012 12:01
rOCCI client ideas
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" }
@arax
arax / gist:3313266
Created August 10, 2012 10:33
rOCCI-server issue - parsing exsiting compute resources
...
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
@arax
arax / gist:3225600
Created August 1, 2012 10:06
rOCCI-server network template issue
/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
@arax
arax / gist:3225596
Created August 1, 2012 10:05
rOCCI-server storage issue stack trace
/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
@arax
arax / gist:3225574
Created August 1, 2012 10:01
rOCCI-server OpenNebula storage model patch
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"