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
OpenSSL::SSL::SSLError: Received fatal alert: decrypt_error | |
connect at org/jruby/ext/openssl/SSLSocket.java:170 | |
connect at jar:file:/tmp/jruby7520675521007850409extract/jruby-stdlib-1.7.2.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:799 | |
timeout at org/jruby/ext/timeout/Timeout.java:105 | |
connect at jar:file:/tmp/jruby7520675521007850409extract/jruby-stdlib-1.7.2.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:799 | |
do_start at jar:file:/tmp/jruby7520675521007850409extract/jruby-stdlib-1.7.2.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:755 | |
start at jar:file:/tmp/jruby7520675521007850409extract/jruby-stdlib-1.7.2.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:744 | |
request at jar:file:/tmp/jruby7520675521007850409extract/jruby-stdlib-1.7.2.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:1292 | |
perform at /home/arax/.rvm/gems/jruby-1.7.2/gems/httparty-0.10.2/lib/httparty/request.rb:91 | |
perform_request at /home/arax/.rvm/ge |
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, [2013-01-03T12:19:26.894193 #6645] DEBUG -- : ### Client Accept: ["text/uri-list"] | |
D, [2013-01-03T12:19:26.894599 #6645] DEBUG -- : ### Client Request method: POST | |
D, [2013-01-03T12:19:26.894722 #6645] DEBUG -- : ### Client Request Media Type: application/occi+json | |
D, [2013-01-03T12:19:26.894989 #6645] DEBUG -- : ### Client Request header: {"HTTPS"=>"on", "HTTP_ACCEPT"=>"text/uri-list", "HTTP_CONNECTION"=>"close", "HTTP_HOST"=>"localhost"} | |
D, [2013-01-03T12:19:26.895720 #6645] DEBUG -- : ### Client Request body: {"resources":[{"kind":"http://schemas.ogf.org/occi/infrastructure#compute","mixins":["https://occi.localhost/occi/infrastructure/resource_tpl#medium"]}],"links":[{"kind":"http://schemas.ogf.org/occi/infrastructure#storagelink","rel":"http://schemas.ogf.org/occi/infrastructure#storage","target":"https://localhost/storage/e60aa2b8-0c86-5973-b93e-30c5c46d6eac"},{"kind":"http://schemas.ogf.org/occi/infrastructure#networkinterface","rel":"http://schemas.ogf.org/occi/core#resource","target":"https://loca |
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
POST /compute/ HTTP/1.1 | |
Accept: text/uri-list | |
Content-Type: application/occi+json | |
Connection: close | |
Host: localhost | |
Content-Length: 599 | |
{"resources":[{"kind":"http://schemas.ogf.org/occi/infrastructure#compute","mixins":["https://occi.localhost/occi/infrastructure/resource_tpl#medium"]}],"links":[{"kind":"http://schemas.ogf.org/occi/infrastructure#storagelink","rel":"http://schemas.ogf.org/occi/infrastructure#storage","target":"https://localhost/storage/e60aa2b8-0c86-5973-b93e-30c5c46d6eac"},{"kind":"http://schemas.ogf.org/occi/infrastructure#networkinterface","rel":"http://schemas.ogf.org/occi/core#resource","target":"https://localhost/network/d71df087-9a55-5228-822b-1f1a57107851"}]} | |
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
VCR.configure do |c| | |
c.hook_into :webmock | |
c.cassette_library_dir = 'spec/cassettes' | |
c.default_cassette_options = { :record => :new_episodes } | |
## Ignore some requests based on the hosts involved. | |
c.ignore_hosts 'localhost', '8.8.8.8', 'our.local.test.server.org' | |
## Ignore some requests based on their properties. | |
# The block passed to c.ignore_request has to |
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
################################################ | |
# GET (describe) will fail for recently created | |
# resources. | |
# | |
# to reproduce, run examples/x509auth_example.rb | |
################################################ | |
D, [2012-11-07T20:02:07.836934 #18365] DEBUG -- : Parsed collection: empty? true | |
[~/.rvm/gems/ruby-1.9.3-p194/gems/occi-3.0.0.alpha.0/lib/occi/collection.rb:134:in `as_json': undefined method `size' for nil:NilClass (NoMethodError) | |
from ~/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/json/encoding.rb:47:in `block in encode' |
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 |
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/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
~/.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
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>' |