Bug #827

require 'yaml' missing in econe-server.rb

Added by Shi Jin 8 months ago. Updated 8 months ago.

Status:Closed Start date:09/24/2011
Priority:Normal Due date:
Assignee:Ruben S. Montero % Done:

0%

Category:Cloud APIs
Target version:Release 3.0
Resolution:fixed Affected Version:OpenNebula 3.0
Story points-
Velocity based estimate-

Description

Hi there,

I had problem starting econe-server

[cloudadmin@frontend-cogeco etc]$ econe-server start
Error executing econe-server.
Check /vrstorm/cloud/one298/var/econe-server.log for more information
[cloudadmin@frontend-cogeco etc]$ cat  /vrstorm/cloud/one298/var/econe-server.log
Error parsing config file /vrstorm/cloud/one298/etc/econe.conf: uninitialized constant YAML

Then I fixed it by simply adding

require 'yaml'

to $ONE_LOCATION/lib/ruby/cloud/econe/econe-server.rb.

Associated revisions

Revision f3b9bf4d
Added by Ruben S. Montero 8 months ago

Bug #827: Removed unneeded Configuration file an associated requires. Added yaml explicit require as it seems to be needed by some ruby versions

Revision 7a530fb7
Added by Ruben S. Montero 8 months ago

Bug #827: Removed unneeded Configuration file an associated requires. Added yaml explicit require as it seems to be needed by some ruby versions

History

Updated by Ruben S. Montero 8 months ago

  • Category set to Cloud APIs
  • Status changed from New to Closed
  • Assignee set to Ruben S. Montero
  • Target version set to Release 3.0
  • Resolution set to fixed

I can not reproduce this one. This may be caused by your ruby installation. Anyway, I added the requires as it shouldn't harm. Changes in master an one-3.0

Updated by Shi Jin 8 months ago

Thanks. It is very likely due to the different between RHEL/CentOS and Ubuntu since I am using RHEL.

Updated by Shi Jin 8 months ago

Just to point out that there is the same problem for the occi-server.rb.

Also available in: Atom PDF