~ubuntu-branches/ubuntu/maverick/eucalyptus/maverick

« back to all changes in this revision

Viewing changes to cluster/cc-client-marshal-adb.c

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey)
  • Date: 2010-07-21 17:27:10 UTC
  • mfrom: (1.1.38 upstream)
  • Revision ID: james.westby@ubuntu.com-20100721172710-7xv07dmdqgivc3t9
Tags: 2.0~bzr1211-0ubuntu1
* New major upstream version merge, 2.0 (r1211).
* debian/patches/:
  - 01-wsdl-stubs.patch, debian/wsdl.md5sums: wsdl stubs updated.
  - 02-Makefile.patch: Updated to reflect new code layout.
  - 07-local_support_euca_conf-in.patch: Updated to reflect new code layout.
  - 08-ubuntu-default-networking.patch: Refreshed.
  - 09-small-128-192MB.patch: Updated to point to new location.
  - 10-disable-iscsi.patch: Refreshed.
  - 11-state-cleanup-memleakfix.patch: Removed, fixed upstream.
  - 15-fix-default-ramdisk.patch: Updated to point to new location.
  - 16-kvm_libvirt_xml_default_use_kvm.patch: Updated to reflect changes.
  - 17-fix_walrus_OOM_errors.patch: Removed, fixed upstream.
  - 18-priv_security.patch: Updated to reflect upstream changes.
  - 20-brute-force-webui.patch: Updated to reflect upstream changes. 
  - 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:
60
60
#include <stdio.h>
61
61
#include <time.h>
62
62
#include <misc.h>
 
63
#include <data.h>
63
64
#include <cc-client-marshal.h>
64
65
#include "axis2_stub_EucalyptusCC.h"
65
66
#include <euca_auth.h>
66
67
#include <sys/types.h>
67
68
#include <unistd.h>
 
69
#include "adb-helpers.h"
68
70
 
69
71
int cc_killallInstances(axutil_env_t *env, axis2_stub_t *stub) {
70
72
  int rc, instIdsLen;
802
804
        state = adb_ccInstanceType_get_stateName(it, env);
803
805
        nct = adb_ccInstanceType_get_netParams(it, env);
804
806
        vm = adb_ccInstanceType_get_instanceType(it, env);
805
 
        networkIndex = adb_ccInstanceType_get_networkIndex(it, env);
 
807
        //      networkIndex = adb_ccInstanceType_get_networkIndex(it, env);
806
808
 
807
809
        if (0)
808
810
        {
836
838
        vol = adb_ccInstanceType_get_volumes_at(it, env, 0);
837
839
        volId = adb_volumeType_get_volumeId(vol, env);
838
840
 
839
 
        printf("Desc: %s %s %s %s %s %s %s %s %d %s %s %d %d %d %s %s %s %s %s %d\n", instId, reservationId, ownerId, state, adb_netConfigType_get_privateMacAddress(nct, env), adb_netConfigType_get_publicMacAddress(nct, env), adb_netConfigType_get_privateIp(nct, env), adb_netConfigType_get_publicIp(nct, env), adb_netConfigType_get_vlan(nct, env), keyName, adb_virtualMachineType_get_name(vm, env), adb_virtualMachineType_get_cores(vm, env),adb_virtualMachineType_get_memory(vm, env),adb_virtualMachineType_get_disk(vm, env), adb_ccInstanceType_get_serviceTag(it, env), adb_ccInstanceType_get_userData(it, env), adb_ccInstanceType_get_launchIndex(it, env), adb_ccInstanceType_get_groupNames_at(it, env, 0), volId, networkIndex);
 
841
        networkIndex = adb_netConfigType_get_networkIndex(nct, env);
 
842
        printf("Desc: %s %s %s %s %s %s %s %d %s %s %d %d %d %s %s %s %s %s %d\n", instId, reservationId, ownerId, state, adb_netConfigType_get_privateMacAddress(nct, env), adb_netConfigType_get_privateIp(nct, env), adb_netConfigType_get_publicIp(nct, env), adb_netConfigType_get_vlan(nct, env), keyName, adb_virtualMachineType_get_name(vm, env), adb_virtualMachineType_get_cores(vm, env),adb_virtualMachineType_get_memory(vm, env),adb_virtualMachineType_get_disk(vm, env), adb_ccInstanceType_get_serviceTag(it, env), adb_ccInstanceType_get_userData(it, env), adb_ccInstanceType_get_launchIndex(it, env), adb_ccInstanceType_get_groupNames_at(it, env, 0), volId, networkIndex);
840
843
        
841
844
      }
842
845
    }
844
847
  return 0;
845
848
}
846
849
 
847
 
 
848
 
int cc_runInstances(char *amiId, char *amiURL, char *kernelId, char *kernelURL, char *ramdiskId, char *ramdiskURL, int num, int vlan, char *netName, axutil_env_t *env, axis2_stub_t *stub) {
 
850
int cc_runInstances(char *amiId, char *amiURL, char *kernelId, char *kernelURL, char *ramdiskId, char *ramdiskURL, int num, int vlan, char *netName, virtualMachine *vm_type, axutil_env_t *env, axis2_stub_t *stub) {
849
851
  int i;
850
852
  adb_RunInstances_t *riIn;
851
853
  adb_runInstancesType_t *rit;
853
855
  adb_RunInstancesResponse_t *riOut;
854
856
  adb_runInstancesResponseType_t *rirt;
855
857
  
856
 
  adb_virtualMachineType_t *vm;
857
 
  //  char mac[32], meh[32];
 
858
  adb_virtualMachineType_t *vm = copy_vm_type_to_adb (env, vm_type);
858
859
  
859
860
  srand(time(NULL));
860
861
  
861
 
  vm = adb_virtualMachineType_create(env);
862
 
  adb_virtualMachineType_set_name(vm, env, "small");
863
 
  adb_virtualMachineType_set_memory(vm, env, 128);
864
 
  adb_virtualMachineType_set_cores(vm, env, 1);
865
 
  adb_virtualMachineType_set_disk(vm, env, 10);
866
 
  
867
862
  rit = adb_runInstancesType_create(env);
868
863
  adb_runInstancesType_set_imageId(rit, env, amiId);
869
864
  adb_runInstancesType_set_imageURL(rit, env, amiURL);