Juan Antonio Martínez Navarro
2015-08-05 10:03:29 UTC
Hello again,
I installed omf_sfa in a computer. I'm able to see the API REST vÃa web
using https://serverip:8001.
However, when I try to create a new resource I obtain an error and I
don't know its reason.
./create_resource -t node -c conf.yaml -i nodes_description.json
I got this error message:
[2015-08-05 11:55:09 +0200] INFO OmfCommon::Comm::XMPP::Communicator:
Connecting to 'localhost' ...
[2015-08-05 11:55:09 +0200] INFO OmfCommon::Comm::XMPP::Communicator:
Connected
[2015-08-05 11:55:09 +0200] WARN OmfCommon::Auth::CertificateStore:
Overriding certificate 'omf' - new:
/C=US/ST=CA/O=ACME/OU=Roadrunner/CN=xmpp://***@localhost/type=am_controller/uuid=67cfa2ae-40f2-4fc0-a8a5-22c2cf3df708
old:
/C=US/ST=CA/O=ACME/OU=Roadrunner/CN=3dfdc326-2682-52b9-82d2-09b99794d985/emailAddress=***@localhost
am_controller <inform(ERROR)>
reason: undefined method `include?' for nil:NilClass
------
done.
[2015-08-05 11:55:10 +0200] INFO OmfCommon::Comm::XMPP::Communicator:
Disconnecting...
Could you help me, please?
This is my conf.yaml file:
:auth:
:root_cert_dir: /root/.omf/trusted_roots
:entity_cert: /root/.omf/user_cert.pem
:entity_key: /root/.omf/user_cert.pkey
:xmpp:
:username: am_mgr-1.0
:password: pw
:server: localhost
:topic: am_controller
:operation_mode: development
I've created the user in the xmpp (openfire)
And this is the json of the new resource to be added:
nodes_description.json
[
{
"name" : "OMF-RC1",
"hostname" : "OMF-RC1",
"urn" : "urn:publicid:IDN+omf:10.0.0.40+node+OMF-RC1",
"ram" : "995MB",
"hd_capacity" : "10 GB",
"cpu" : {
"cpu_type" : "Intel(R) CORE(TM) i5-2500 CPU @ 3.30GHz",
"cores" : "1"
},
"interfaces" : [
{
"name" : "OMF-RC1:if1",
"role" : "control",
"mac" : "08:00:27:07:d3:8a",
"ip" : {
"address" : "10.0.0.1",
"netmask" : "255.255.255.0",
"ip_type" : "ipv4"
}
}
]
}
]
Kind regards,
Juan Antonio
I installed omf_sfa in a computer. I'm able to see the API REST vÃa web
using https://serverip:8001.
However, when I try to create a new resource I obtain an error and I
don't know its reason.
./create_resource -t node -c conf.yaml -i nodes_description.json
I got this error message:
[2015-08-05 11:55:09 +0200] INFO OmfCommon::Comm::XMPP::Communicator:
Connecting to 'localhost' ...
[2015-08-05 11:55:09 +0200] INFO OmfCommon::Comm::XMPP::Communicator:
Connected
[2015-08-05 11:55:09 +0200] WARN OmfCommon::Auth::CertificateStore:
Overriding certificate 'omf' - new:
/C=US/ST=CA/O=ACME/OU=Roadrunner/CN=xmpp://***@localhost/type=am_controller/uuid=67cfa2ae-40f2-4fc0-a8a5-22c2cf3df708
old:
/C=US/ST=CA/O=ACME/OU=Roadrunner/CN=3dfdc326-2682-52b9-82d2-09b99794d985/emailAddress=***@localhost
am_controller <inform(ERROR)>
reason: undefined method `include?' for nil:NilClass
------
done.
[2015-08-05 11:55:10 +0200] INFO OmfCommon::Comm::XMPP::Communicator:
Disconnecting...
Could you help me, please?
This is my conf.yaml file:
:auth:
:root_cert_dir: /root/.omf/trusted_roots
:entity_cert: /root/.omf/user_cert.pem
:entity_key: /root/.omf/user_cert.pkey
:xmpp:
:username: am_mgr-1.0
:password: pw
:server: localhost
:topic: am_controller
:operation_mode: development
I've created the user in the xmpp (openfire)
And this is the json of the new resource to be added:
nodes_description.json
[
{
"name" : "OMF-RC1",
"hostname" : "OMF-RC1",
"urn" : "urn:publicid:IDN+omf:10.0.0.40+node+OMF-RC1",
"ram" : "995MB",
"hd_capacity" : "10 GB",
"cpu" : {
"cpu_type" : "Intel(R) CORE(TM) i5-2500 CPU @ 3.30GHz",
"cores" : "1"
},
"interfaces" : [
{
"name" : "OMF-RC1:if1",
"role" : "control",
"mac" : "08:00:27:07:d3:8a",
"ip" : {
"address" : "10.0.0.1",
"netmask" : "255.255.255.0",
"ip_type" : "ipv4"
}
}
]
}
]
Kind regards,
Juan Antonio