Bug #401

Flaw in SConstruct file

Added by Mikael Fernandus Simalango over 10 years ago. Updated about 10 years ago.

Status:ClosedStart date:11/09/2010
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Core & System
Target version:Release 3.0
Resolution:fixed Pull request:
Affected Versions:

Description

In SConstruct file line 130-131 from OpenNebula 2.0 release, there is a routine to check for mysql flag supplied by user:
130 if mysql=='yes':
131 main_env.ParseConfig('mysql_config --cflags --libs')

When check for mysql fails, it keeps showing error for xmlrpc-c problem. I think the exception part should be modified to properly display which check was failing.

Associated revisions

Revision 3771d57d
Added by Javi Fontan about 10 years ago

bug #401: give special error message when mysql_config not found in SConstruct

Revision 9e19ea51
Added by Abel Coronado almost 4 years ago

F #5217 Added Host requirements instantiate VM (#401)

  • Added hosts requirements intantiate VM
  • F #5217 Added Host requirements instantiate VM

Revision 902a0183
Added by Abel Coronado almost 4 years ago

F #5217 Added Host requirements instantiate VM (#401)

  • Added hosts requirements intantiate VM
  • F #5217 Added Host requirements instantiate VM

History

#1 Updated by Mikael Fernandus Simalango over 10 years ago

i forgot the mention that the problematic SConstruct file is the one located in the root directory (the same directory with install.sh).

this is more snippet about the part that generates this issue:
125 if not main_env.GetOption('clean'):
126 try:
127 main_env.ParseConfig('share/scons/get_xmlrpc_config server')
128 main_env.ParseConfig('share/scons/get_xmlrpc_config client')
129
130 if mysql=='yes':
131 main_env.ParseConfig('mysql_config --cflags --libs')
132
133 except Exception, e:
134 print ""
135 print "Error searching for xmlrpc-c libraries. Please check this"+\
136 " things:"
137 print ""
138 print " * You have installed development libraries for xmlrpc-c. One"+\
139 " way to check"
140 print " this is calling xmlrpc-c-config that is provided with the"+\
141 " development"
142 print " package."
143 print " * Check that the version of xmlrpc-c is at least 1.06. You"+\
144 " can do this also"
145 print " calling:"
146 print " $ xmlrpc-c-config --version"
147 print " * If all this requirements are already met please send log"+\
148 " files located in"
149 print " .xmlrpc_test to the mailing list."
150 print ""
151 exit(-1)

line 130 and 131 may generate mysql error but the exception was hardcoded to display xmlrpc error only.

#2 Updated by Ruben S. Montero over 10 years ago

  • Target version set to Release 3.0

#3 Updated by Javi Fontan about 10 years ago

  • Category set to Core & System
  • Status changed from New to Closed
  • Assignee set to Javi Fontan
  • Resolution set to fixed

Also available in: Atom PDF