~ubuntu-branches/ubuntu/karmic/eucalyptus/karmic-proposed

« back to all changes in this revision

Viewing changes to cluster/handlers.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Dustin Kirkland, Thierry Carrez, Mathias Gug
  • Date: 2009-11-05 12:17:33 UTC
  • Revision ID: james.westby@ubuntu.com-20091105121733-03je71nikv8vze1p
Tags: 1.6~bzr931-0ubuntu7.1
[ Dustin Kirkland ]
* cluster/handlers.c: euca_rootwrap rework did not whitelist powerwake;
  however, powerwake does *not* need root privs, drop euca_rootwrap wrapper
  (LP: #458163)

[ Thierry Carrez ]
* clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/EucalyptusWebInterface.html:
  Fix HTML title in the web UI for more consistency in naming (LP: #455293)
* debian/eucalyptus-common.eucalyptus.upstart: Add -l to eucalyptus-cloud
  options so that cloud-output.log is affected by LOGLEVEL (LP: #458001)

[ Mathias Gug ]
* cluster/handlers.c: Fix the networkIndex returned by describeInstances.
  (LP: #454405 - upstream revno 933).
* debian/eucalyptus-cc.eucalyptus-cc-publication{,-ip}.upstart: add an
  upstart job to explicitly publish the IP/CC hostname mapping via avahi
  instead of publishing the CC IP address via the service name (LP: #458904).
* debian/avahi-daemon.conf: ship a specific avahi-daemon configuration file
  that doesn't publish IP addresses by default. (LP: #458904).
* debian/eucalyptus-cloud.postinst: Fix postfix configuration to accept
  confirmation emails sent by eucalyptus (LP: #459101)
* debian/eucalyptus-cc.upstart: Don't clean the CC network state when the CC is
  stopped by default (LP: #460089).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1023
1023
    rc = 0;
1024
1024
    ret = 0;
1025
1025
    if (strcmp(res->mac, "00:00:00:00:00:00")) {
1026
 
      snprintf(cmd, 256, "%s/usr/lib/eucalyptus/euca_rootwrap powerwake -b %s %s", vnetconfig->eucahome, bc, res->mac);
 
1026
      snprintf(cmd, 256, "powerwake -b %s %s", bc, res->mac);
1027
1027
    } else if (strcmp(res->ip, "0.0.0.0")) {
1028
 
      snprintf(cmd, 256, "%s/usr/lib/eucalyptus/euca_rootwrap powerwake -b %s %s", vnetconfig->eucahome, bc, res->ip);
 
1028
      snprintf(cmd, 256, "powerwake -b %s %s", bc, res->ip);
1029
1029
    } else {
1030
1030
      ret = rc = 1;
1031
1031
    }
1484
1484
          allocate_ccInstance(myInstance, instId, amiId, kernelId, ramdiskId, amiURL, kernelURL, ramdiskURL, ownerId, "Pending", time(NULL), reservationId, &(myInstance->ccnet), &(myInstance->ccvm), myInstance->ncHostIdx, keyName, myInstance->serviceTag, userData, launchIndex, myInstance->groupNames, myInstance->volumes, myInstance->volumesSize, myInstance->networkIndex);
1485
1485
 
1486
1486
          // instance info that CC has
1487
 
          myInstance->networkIndex = thenidx;
 
1487
          if (thenidx >= 0) {
 
1488
            myInstance->networkIndex = networkIndexList[thenidx];
 
1489
          }
1488
1490
          myInstance->ts = time(NULL);
1489
1491
          if (strcmp(pubip, "0.0.0.0")) {
1490
1492
            strncpy(myInstance->ccnet.publicIp, pubip, 16);