~ubuntu-core-dev/ubuntu/maverick/eucalyptus/devel

« back to all changes in this revision

Viewing changes to cluster/handlers.c

  • Committer: Dustin Kirkland
  • Date: 2010-07-22 08:41:57 UTC
  • mfrom: (1050.1.19 ubuntu)
  • Revision ID: kirkland@x200-20100722084157-zh2p8dkawznvxxpn
Approving Dave Walker's merge of new upstream Eucalyptus 2.0 release.

Dustin Kirkland <kirkland@canonical.com>

* New major upstream version merge, 2.0 (r1211).
  - 01-wsdl-stubs.patch, debian/wsdl.md5sums: wsdl stubs updated.
  - 11-state-cleanup-memleakfix.patch: Removed, fixed upstream.
  - 21-eucalyptus-1.7-with-gwt-1.6.4.patch: New patch, allows 
    eucalyptus-1.7 to be built against gwt 1.6.4. Based on patch courtesy 
    of Dmitrii Zagorodnov, upstream. (LP: #597330)
* debian/eucalyptus-java-common.links: 
  - Changed symlink for groovy, point to groovy.all.jar, making compatiable 
    with groovy versions >1.7. (LP: #595421)
  - Added ant.jar & jetty-rewrite-handler.jar as they are now required.
* debian/control
  - & debian/build-jars: Added libjavassist-java and libjetty-extra-java as 
    build dependencies.
  - Added libjetty-extra-java as a dependency of eucalyptus-java-common
* The binary resulting jar's have been renamed from eucalyptus-*-1.6.2.jar
  to eucalyptus-*-main.jar:    
  - debian/eucalyptus-cc.upstart
  - debian/eucalyptus-cloud.install
  - debian/eucalyptus-common.eucalyptus.upstart
  - debian/eucalyptus-java-common.install
  - debian/eucalyptus-network.upstart
  - debian/eucalyptus-sc.install
  - debian/eucalyptus-walrus.install
* debian/eucalyptus-java-common.install: New upstream jars that have been
  installed:
  - eucalyptus-db-hsqldb-ext-main.jar
  - eucalyptus-component-main.jar
* debian/control:
  - Updated Standards Version to 3.8.4 (no change)
  - Updated the upstream Homepage to: http://open.eucalyptus.com/
  - Changed Vcs-Bzr to reflect new location of Ubuntu hosted development branch.
  - Made the Build Dependency of groovy and the binary eucalyptus-java-common
    package depend on version >=1.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2383
2383
}
2384
2384
 
2385
2385
int update_config(void) {
2386
 
  char home[MAX_PATH], *tmpstr=NULL;
 
2386
  char home[MAX_PATH], *tmpstr=NULL, nodesList[1024];
2387
2387
  ccResource *res=NULL;
2388
2388
  int rc, numHosts, ret;
2389
2389
  time_t configMtime;
2395
2395
  
2396
2396
  configMtime = 0;
2397
2397
  sem_mywait(CONFIG);
 
2398
 
 
2399
  snprintf(nodesList, 1024, NODES_LIST_LOCATION, config->eucahome);
 
2400
 
 
2401
  // stat the config file(s), update modification time
2398
2402
  for (i=0; i<2; i++) {
2399
 
    // stat the config file, update modification time
2400
2403
    rc = stat(config->configFiles[i], &statbuf);
2401
2404
    if (!rc) {
2402
2405
      if (statbuf.st_mtime > configMtime) {
2404
2407
      }
2405
2408
    }
2406
2409
  }
 
2410
 
 
2411
  // check the external nodes list file, if it exists
 
2412
  if (!check_file(nodesList)) {
 
2413
    rc = stat(nodesList, &statbuf);
 
2414
    if (!rc) {
 
2415
      if (statbuf.st_mtime > configMtime) {
 
2416
       configMtime = statbuf.st_mtime;
 
2417
      }
 
2418
    }
 
2419
  }
 
2420
 
2407
2421
  if (configMtime == 0) {
2408
2422
    logprintfl(EUCAERROR, "update_config(): could not stat config files (%s,%s)\n", config->configFiles[0], config->configFiles[1]);
2409
2423
    sem_mypost(CONFIG);
2952
2966
  char ncservice[512];
2953
2967
  int ncport;
2954
2968
  char **hosts;
 
2969
  char nodesFile[1024];
2955
2970
 
2956
2971
  *numHosts = 0;
2957
2972
  *res = NULL;
2958
2973
 
 
2974
  snprintf(nodesFile, 1024, NODES_LIST_LOCATION, config->eucahome);
 
2975
  
2959
2976
  tmpstr = getConfString(config->configFiles, 2, CONFIG_NC_SERVICE);
2960
2977
  if (!tmpstr) {
2961
2978
    // error
2980
2997
  }
2981
2998
  if (tmpstr) free(tmpstr);
2982
2999
 
2983
 
  tmpstr = getConfString(config->configFiles, 2, CONFIG_NODES);
 
3000
  if (!check_file(nodesFile)) {
 
3001
    // nodesFile exists, read list of nodes from nodesFile
 
3002
    tmpstr = file2str(nodesFile);
 
3003
  } else {
 
3004
    // otherwise, read NODES="..." from eucalyptus config file(s)
 
3005
    tmpstr = getConfString(config->configFiles, 2, CONFIG_NODES);
 
3006
  }
 
3007
  
2984
3008
  if (!tmpstr) {
2985
3009
    // error
2986
3010
    logprintfl(EUCAWARN,"refreshNodes(): NODES parameter is missing from config files(%s,%s)\n", config->configFiles[1], config->configFiles[0]);