Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.1
    • Fix Version/s: 0.7.2, 0.8.0
    • Component/s: None
    • Labels:
      None

      Activity

      Hide
      Doug Mittendorf added a comment -

      Nevermind...the problem was not intalling openjdk, it was due to the generated zookeeper init script not including a chkconfig line. I added the following two lines into install_zookeeper.sh and the problem went away:

      # chkconfig: 2345 95 20
      # description: Zookeeper
      
      Show
      Doug Mittendorf added a comment - Nevermind...the problem was not intalling openjdk, it was due to the generated zookeeper init script not including a chkconfig line. I added the following two lines into install_zookeeper.sh and the problem went away: # chkconfig: 2345 95 20 # description: Zookeeper
      Hide
      Doug Mittendorf added a comment -

      This still appears to be a problem with latest trunk (0.8.0-SNAPSHOT) code. I tried using the CentOS 5.8 x64 image from RightScale (ami-3a62c053)

      $ bin/whirr launch-cluster --cluster-name zk-amazon-linux --instance-templates "1 zookeeper" --image-id "us-east-1/ami-3a62c053"
      Running on provider aws-ec2 using identity XXXXXXXXXXXX
      Bootstrapping cluster
      Configuring template for bootstrap-zookeeper
      Starting 1 node(s) with roles [zookeeper]
      >> running InitScript{INSTANCE_NAME=bootstrap-zookeeper} on node(us-east-1/i-193b5562)
      << error running InitScript{INSTANCE_NAME=bootstrap-zookeeper} on node(us-east-1/i-193b5562): {output=Reloading sshd: [  OK  ]
      This function does nothing. It just needs to exist so Statements.call("retry_helpers") doesn't call something which doesn't exist
      Loaded plugins: security
      Setting up Install Process
      Resolving Dependencies
      --> Running transaction check
      ---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 set to be updated
      --> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-1.27.1.10.8.el5_8 for package: java-1.6.0-openjdk-devel
      --> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: java-1.6.0-openjdk-devel
      --> Processing Dependency: libjli.so()(64bit) for package: java-1.6.0-openjdk-devel
      --> Running transaction check
      ---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 set to be updated
      --> Processing Dependency: jpackage-utils >= 1.7.3-1jpp.2 for package: java-1.6.0-openjdk
      --> Processing Dependency: tzdata-java for package: java-1.6.0-openjdk
      --> Processing Dependency: libgif.so.4()(64bit) for package: java-1.6.0-openjdk
      --> Running transaction check
      ---> Package giflib.x86_64 0:4.1.3-7.3.3.el5 set to be updated
      ---> Package jpackage-utils.noarch 0:5.0.0-1.jpp5 set to be updated
      ---> Package tzdata-java.x86_64 0:2012c-1.el5 set to be updated
      --> Finished Dependency Resolution
      
      Dependencies Resolved
      
      ================================================================================
       Package            Arch   Version                        Repository       Size
      ================================================================================
      Installing:
       java-1.6.0-openjdk-devel
                          x86_64 1:1.6.0.0-1.27.1.10.8.el5_8    updates          12 M
      Installing for dependencies:
       giflib             x86_64 4.1.3-7.3.3.el5                base             39 k
       java-1.6.0-openjdk x86_64 1:1.6.0.0-1.27.1.10.8.el5_8    updates          36 M
       jpackage-utils     noarch 5.0.0-1.jpp5                   rightscale-epel  61 k
       tzdata-java        x86_64 2012c-1.el5                    updates         181 k
      
      Transaction Summary
      ================================================================================
      Install       5 Package(s)
      Upgrade       0 Package(s)
      
      Total download size: 48 M
      Downloading Packages:
      --------------------------------------------------------------------------------
      Total                                           4.1 MB/s |  48 MB     00:11     
      Running rpm_check_debug
      Running Transaction Test
      Finished Transaction Test
      Transaction Test Succeeded
      Running Transaction
        Installing     : giflib                                                   1/5 
        Installing     : jpackage-utils                                           2/5 
        Installing     : tzdata-java                                              3/5 
        Installing     : java-1.6.0-openjdk                                       4/5 
        Installing     : java-1.6.0-openjdk-devel                                 5/5 
      
      Installed:
        java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8                   
      
      Dependency Installed:
        giflib.x86_64 0:4.1.3-7.3.3.el5                                               
        java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8                         
        jpackage-utils.noarch 0:5.0.0-1.jpp5                                          
        tzdata-java.x86_64 0:2012c-1.el5                                              
      
      Complete!
      zookeeper-3.3.3.tar.gz: OK
      , error=useradd: warning: the home directory already exists.
      Not copying any file from skel directory into it.
      java version "1.6.0_31"
      Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
      Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
      service zookeeper does not support chkconfig
      , exitStatus=1}
      << error running InitScript{INSTANCE_NAME=bootstrap-zookeeper} on node(us-east-1/i-193b5562): {output=Reloading sshd: [  OK  ]
      This function does nothing. It just needs to exist so Statements.call("retry_helpers") doesn't call something which doesn't exist
      Loaded plugins: security
      Setting up Install Process
      Resolving Dependencies
      --> Running transaction check
      ---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 set to be updated
      --> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-1.27.1.10.8.el5_8 for package: java-1.6.0-openjdk-devel
      --> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: java-1.6.0-openjdk-devel
      --> Processing Dependency: libjli.so()(64bit) for package: java-1.6.0-openjdk-devel
      --> Running transaction check
      ---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 set to be updated
      --> Processing Dependency: jpackage-utils >= 1.7.3-1jpp.2 for package: java-1.6.0-openjdk
      --> Processing Dependency: tzdata-java for package: java-1.6.0-openjdk
      --> Processing Dependency: libgif.so.4()(64bit) for package: java-1.6.0-openjdk
      --> Running transaction check
      ---> Package giflib.x86_64 0:4.1.3-7.3.3.el5 set to be updated
      ---> Package jpackage-utils.noarch 0:5.0.0-1.jpp5 set to be updated
      ---> Package tzdata-java.x86_64 0:2012c-1.el5 set to be updated
      --> Finished Dependency Resolution
      
      Dependencies Resolved
      
      ================================================================================
       Package            Arch   Version                        Repository       Size
      ================================================================================
      Installing:
       java-1.6.0-openjdk-devel
                          x86_64 1:1.6.0.0-1.27.1.10.8.el5_8    updates          12 M
      Installing for dependencies:
       giflib             x86_64 4.1.3-7.3.3.el5                base             39 k
       java-1.6.0-openjdk x86_64 1:1.6.0.0-1.27.1.10.8.el5_8    updates          36 M
       jpackage-utils     noarch 5.0.0-1.jpp5                   rightscale-epel  61 k
       tzdata-java        x86_64 2012c-1.el5                    updates         181 k
      
      Transaction Summary
      ================================================================================
      Install       5 Package(s)
      Upgrade       0 Package(s)
      
      Total download size: 48 M
      Downloading Packages:
      --------------------------------------------------------------------------------
      Total                                           4.1 MB/s |  48 MB     00:11     
      Running rpm_check_debug
      Running Transaction Test
      Finished Transaction Test
      Transaction Test Succeeded
      Running Transaction
        Installing     : giflib                                                   1/5 
        Installing     : jpackage-utils                                           2/5 
        Installing     : tzdata-java                                              3/5 
        Installing     : java-1.6.0-openjdk                                       4/5 
        Installing     : java-1.6.0-openjdk-devel                                 5/5 
      
      Installed:
        java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8                   
      
      Dependency Installed:
        giflib.x86_64 0:4.1.3-7.3.3.el5                                               
        java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8                         
        jpackage-utils.noarch 0:5.0.0-1.jpp5                                          
        tzdata-java.x86_64 0:2012c-1.el5                                              
      
      Complete!
      zookeeper-3.3.3.tar.gz: OK
      , error=useradd: warning: the home directory already exists.
      Not copying any file from skel directory into it.
      java version "1.6.0_31"
      Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
      Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
      service zookeeper does not support chkconfig
      , exitStatus=1}
      Nodes started: [{id=us-east-1/i-193b5562, providerId=i-193b5562, name=zk-amazon-linux-193b5562, location={scope=ZONE, id=us-east-1d, description=us-east-1d, parent=us-east-1, iso3166Codes=[US-VA]}, group=zk-amazon-linux, imageId=us-east-1/ami-3a62c053, os={family=centos, arch=paravirtual, version=5.0, description=411009282317/RightImage_CentOS_5.8_x64_v5.8.8_EBS, is64Bit=true}, status=RUNNING[running], loginPort=22, hostname=ip-10-62-59-73, privateAddresses=[10.62.59.73], publicAddresses=[174.129.91.33], hardware={id=m1.small, providerId=m1.small, processors=[{cores=1.0, speed=1.0}], ram=1740, volumes=[{type=LOCAL, size=150.0, device=/dev/sda2, bootDevice=false, durable=false}, {id=vol-633e9c03, type=SAN, device=/dev/sda1, bootDevice=true, durable=true}], hypervisor=xen, supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,ALWAYS_TRUE)}, loginUser=root, userMetadata={Name=zk-amazon-linux-193b5562}}]
      Wrote instances file /Users/dmittendorf/.whirr/zk-amazon-linux/instances
      Authorizing firewall ingress to [us-east-1/i-193b5562] on ports [2181] for [173.226.92.18/32]
      Starting to run scripts on cluster for phase configure on instances: us-east-1/i-193b5562
      >> running InitScript{INSTANCE_NAME=configure-zookeeper} on node(us-east-1/i-193b5562)
      << success executing InitScript{INSTANCE_NAME=configure-zookeeper} on node(us-east-1/i-193b5562): {output=This function does nothing. It just needs to exist so Statements.call("retry_helpers") doesn't call something which doesn't exist
      , error=, exitStatus=0}
      Finished running configure phase scripts on all cluster instances
      Completed configuration of zk-amazon-linux
      Hosts: ec2-174-129-91-33.compute-1.amazonaws.com:2181
      Starting to run scripts on cluster for phase start on instances: us-east-1/i-193b5562
      >> running InitScript{INSTANCE_NAME=start-zookeeper} on node(us-east-1/i-193b5562)
      << success executing InitScript{INSTANCE_NAME=start-zookeeper} on node(us-east-1/i-193b5562): {output=, error=, exitStatus=0}
      Finished running start phase scripts on all cluster instances
      Started cluster of 1 instances
      Cluster{instances=[Instance{roles=[zookeeper], publicIp=174.129.91.33, privateIp=10.62.59.73, id=us-east-1/i-193b5562, nodeMetadata={id=us-east-1/i-193b5562, providerId=i-193b5562, name=zk-amazon-linux-193b5562, location={scope=ZONE, id=us-east-1d, description=us-east-1d, parent=us-east-1, iso3166Codes=[US-VA]}, group=zk-amazon-linux, imageId=us-east-1/ami-3a62c053, os={family=centos, arch=paravirtual, version=5.0, description=411009282317/RightImage_CentOS_5.8_x64_v5.8.8_EBS, is64Bit=true}, status=RUNNING[running], loginPort=22, hostname=ip-10-62-59-73, privateAddresses=[10.62.59.73], publicAddresses=[174.129.91.33], hardware={id=m1.small, providerId=m1.small, processors=[{cores=1.0, speed=1.0}], ram=1740, volumes=[{type=LOCAL, size=150.0, device=/dev/sda2, bootDevice=false, durable=false}, {id=vol-633e9c03, type=SAN, device=/dev/sda1, bootDevice=true, durable=true}], hypervisor=xen, supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,ALWAYS_TRUE)}, loginUser=root, userMetadata={Name=zk-amazon-linux-193b5562}}}], configuration={}}
      
      Show
      Doug Mittendorf added a comment - This still appears to be a problem with latest trunk (0.8.0-SNAPSHOT) code. I tried using the CentOS 5.8 x64 image from RightScale (ami-3a62c053) $ bin/whirr launch-cluster --cluster-name zk-amazon-linux --instance-templates "1 zookeeper" --image-id "us-east-1/ami-3a62c053" Running on provider aws-ec2 using identity XXXXXXXXXXXX Bootstrapping cluster Configuring template for bootstrap-zookeeper Starting 1 node(s) with roles [zookeeper] >> running InitScript{INSTANCE_NAME=bootstrap-zookeeper} on node(us-east-1/i-193b5562) << error running InitScript{INSTANCE_NAME=bootstrap-zookeeper} on node(us-east-1/i-193b5562): {output=Reloading sshd: [ OK ] This function does nothing. It just needs to exist so Statements.call("retry_helpers") doesn't call something which doesn't exist Loaded plugins: security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 set to be updated --> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-1.27.1.10.8.el5_8 for package: java-1.6.0-openjdk-devel --> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: java-1.6.0-openjdk-devel --> Processing Dependency: libjli.so()(64bit) for package: java-1.6.0-openjdk-devel --> Running transaction check ---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 set to be updated --> Processing Dependency: jpackage-utils >= 1.7.3-1jpp.2 for package: java-1.6.0-openjdk --> Processing Dependency: tzdata-java for package: java-1.6.0-openjdk --> Processing Dependency: libgif.so.4()(64bit) for package: java-1.6.0-openjdk --> Running transaction check ---> Package giflib.x86_64 0:4.1.3-7.3.3.el5 set to be updated ---> Package jpackage-utils.noarch 0:5.0.0-1.jpp5 set to be updated ---> Package tzdata-java.x86_64 0:2012c-1.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: java-1.6.0-openjdk-devel x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 updates 12 M Installing for dependencies: giflib x86_64 4.1.3-7.3.3.el5 base 39 k java-1.6.0-openjdk x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 updates 36 M jpackage-utils noarch 5.0.0-1.jpp5 rightscale-epel 61 k tzdata-java x86_64 2012c-1.el5 updates 181 k Transaction Summary ================================================================================ Install 5 Package(s) Upgrade 0 Package(s) Total download size: 48 M Downloading Packages: -------------------------------------------------------------------------------- Total 4.1 MB/s | 48 MB 00:11 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : giflib 1/5 Installing : jpackage-utils 2/5 Installing : tzdata-java 3/5 Installing : java-1.6.0-openjdk 4/5 Installing : java-1.6.0-openjdk-devel 5/5 Installed: java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 Dependency Installed: giflib.x86_64 0:4.1.3-7.3.3.el5 java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 jpackage-utils.noarch 0:5.0.0-1.jpp5 tzdata-java.x86_64 0:2012c-1.el5 Complete! zookeeper-3.3.3.tar.gz: OK , error=useradd: warning: the home directory already exists. Not copying any file from skel directory into it. java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) service zookeeper does not support chkconfig , exitStatus=1} << error running InitScript{INSTANCE_NAME=bootstrap-zookeeper} on node(us-east-1/i-193b5562): {output=Reloading sshd: [ OK ] This function does nothing. It just needs to exist so Statements.call("retry_helpers") doesn't call something which doesn't exist Loaded plugins: security Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 set to be updated --> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-1.27.1.10.8.el5_8 for package: java-1.6.0-openjdk-devel --> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: java-1.6.0-openjdk-devel --> Processing Dependency: libjli.so()(64bit) for package: java-1.6.0-openjdk-devel --> Running transaction check ---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 set to be updated --> Processing Dependency: jpackage-utils >= 1.7.3-1jpp.2 for package: java-1.6.0-openjdk --> Processing Dependency: tzdata-java for package: java-1.6.0-openjdk --> Processing Dependency: libgif.so.4()(64bit) for package: java-1.6.0-openjdk --> Running transaction check ---> Package giflib.x86_64 0:4.1.3-7.3.3.el5 set to be updated ---> Package jpackage-utils.noarch 0:5.0.0-1.jpp5 set to be updated ---> Package tzdata-java.x86_64 0:2012c-1.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: java-1.6.0-openjdk-devel x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 updates 12 M Installing for dependencies: giflib x86_64 4.1.3-7.3.3.el5 base 39 k java-1.6.0-openjdk x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 updates 36 M jpackage-utils noarch 5.0.0-1.jpp5 rightscale-epel 61 k tzdata-java x86_64 2012c-1.el5 updates 181 k Transaction Summary ================================================================================ Install 5 Package(s) Upgrade 0 Package(s) Total download size: 48 M Downloading Packages: -------------------------------------------------------------------------------- Total 4.1 MB/s | 48 MB 00:11 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : giflib 1/5 Installing : jpackage-utils 2/5 Installing : tzdata-java 3/5 Installing : java-1.6.0-openjdk 4/5 Installing : java-1.6.0-openjdk-devel 5/5 Installed: java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 Dependency Installed: giflib.x86_64 0:4.1.3-7.3.3.el5 java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.27.1.10.8.el5_8 jpackage-utils.noarch 0:5.0.0-1.jpp5 tzdata-java.x86_64 0:2012c-1.el5 Complete! zookeeper-3.3.3.tar.gz: OK , error=useradd: warning: the home directory already exists. Not copying any file from skel directory into it. java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) service zookeeper does not support chkconfig , exitStatus=1} Nodes started: [{id=us-east-1/i-193b5562, providerId=i-193b5562, name=zk-amazon-linux-193b5562, location={scope=ZONE, id=us-east-1d, description=us-east-1d, parent=us-east-1, iso3166Codes=[US-VA]}, group=zk-amazon-linux, imageId=us-east-1/ami-3a62c053, os={family=centos, arch=paravirtual, version=5.0, description=411009282317/RightImage_CentOS_5.8_x64_v5.8.8_EBS, is64Bit=true}, status=RUNNING[running], loginPort=22, hostname=ip-10-62-59-73, privateAddresses=[10.62.59.73], publicAddresses=[174.129.91.33], hardware={id=m1.small, providerId=m1.small, processors=[{cores=1.0, speed=1.0}], ram=1740, volumes=[{type=LOCAL, size=150.0, device=/dev/sda2, bootDevice=false, durable=false}, {id=vol-633e9c03, type=SAN, device=/dev/sda1, bootDevice=true, durable=true}], hypervisor=xen, supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,ALWAYS_TRUE)}, loginUser=root, userMetadata={Name=zk-amazon-linux-193b5562}}] Wrote instances file /Users/dmittendorf/.whirr/zk-amazon-linux/instances Authorizing firewall ingress to [us-east-1/i-193b5562] on ports [2181] for [173.226.92.18/32] Starting to run scripts on cluster for phase configure on instances: us-east-1/i-193b5562 >> running InitScript{INSTANCE_NAME=configure-zookeeper} on node(us-east-1/i-193b5562) << success executing InitScript{INSTANCE_NAME=configure-zookeeper} on node(us-east-1/i-193b5562): {output=This function does nothing. It just needs to exist so Statements.call("retry_helpers") doesn't call something which doesn't exist , error=, exitStatus=0} Finished running configure phase scripts on all cluster instances Completed configuration of zk-amazon-linux Hosts: ec2-174-129-91-33.compute-1.amazonaws.com:2181 Starting to run scripts on cluster for phase start on instances: us-east-1/i-193b5562 >> running InitScript{INSTANCE_NAME=start-zookeeper} on node(us-east-1/i-193b5562) << success executing InitScript{INSTANCE_NAME=start-zookeeper} on node(us-east-1/i-193b5562): {output=, error=, exitStatus=0} Finished running start phase scripts on all cluster instances Started cluster of 1 instances Cluster{instances=[Instance{roles=[zookeeper], publicIp=174.129.91.33, privateIp=10.62.59.73, id=us-east-1/i-193b5562, nodeMetadata={id=us-east-1/i-193b5562, providerId=i-193b5562, name=zk-amazon-linux-193b5562, location={scope=ZONE, id=us-east-1d, description=us-east-1d, parent=us-east-1, iso3166Codes=[US-VA]}, group=zk-amazon-linux, imageId=us-east-1/ami-3a62c053, os={family=centos, arch=paravirtual, version=5.0, description=411009282317/RightImage_CentOS_5.8_x64_v5.8.8_EBS, is64Bit=true}, status=RUNNING[running], loginPort=22, hostname=ip-10-62-59-73, privateAddresses=[10.62.59.73], publicAddresses=[174.129.91.33], hardware={id=m1.small, providerId=m1.small, processors=[{cores=1.0, speed=1.0}], ram=1740, volumes=[{type=LOCAL, size=150.0, device=/dev/sda2, bootDevice=false, durable=false}, {id=vol-633e9c03, type=SAN, device=/dev/sda1, bootDevice=true, durable=true}], hypervisor=xen, supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,ALWAYS_TRUE)}, loginUser=root, userMetadata={Name=zk-amazon-linux-193b5562}}}], configuration={}}
      Hide
      Andrew Bayer added a comment -

      I think this has been fixed in WHIRR-528?

      Show
      Andrew Bayer added a comment - I think this has been fixed in WHIRR-528 ?
      Hide
      Karel Vervaeke added a comment -

      The current install_openjdk script expects /usr/lib/jvm/java-6-openjdk after installing openjdk,
      but the amazon-flavor of the package doesn't produce one.
      Other than that I suspect things will work fine.

      On the side, there's also an error message regarding ssh...
      This is because the bootstrap script invokes 'service ssh', but the ssh script is called 'sshd' on AMI...

      Show
      Karel Vervaeke added a comment - The current install_openjdk script expects /usr/lib/jvm/java-6-openjdk after installing openjdk, but the amazon-flavor of the package doesn't produce one. Other than that I suspect things will work fine. On the side, there's also an error message regarding ssh... This is because the bootstrap script invokes 'service ssh', but the ssh script is called 'sshd' on AMI...
      Hide
      Andrei Savu added a comment -

      It looks like this is still an issue we need to fix:

      (13:52:57 <~/src/whirr[trunk]>) $ ./bin/whirr launch-cluster --cluster-name zk-amazon-linux --instance-templates "1 zookeeper" --image-id "us-east-1/ami-e565ba8c" (amazon linux ami)
      Running on provider aws-ec2 using identity xxxxx
      Bootstrapping cluster
      Configuring template for bootstrap-zookeeper
      Starting 1 node(s) with roles [zookeeper]
      >> running InitScript{instanceName=bootstrap-zookeeper} on node(us-east-1/i-174d9771)
      << error running InitScript{instanceName=bootstrap-zookeeper} on node(us-east-1/i-174d9771): {output=Reloading sshd: [  OK  ]
      Loaded plugins: fastestmirror, priorities, security, update-motd
      Determining fastest mirrors
       * amzn-main: packages.us-east-1.amazonaws.com
       * amzn-updates: packages.us-east-1.amazonaws.com
      Setting up Install Process
      Package 1:java-1.6.0-openjdk-1.6.0.0-52.1.10.6.44.amzn1.x86_64 already installed and latest version
      Nothing to do
      , error=useradd: warning: the home directory already exists.
      Not copying any file from skel directory into it.
      ssh: unrecognized service
      Existing lock /var/run/yum.pid: another copy is running as pid 1211.
      Another app is currently holding the yum lock; waiting for it to exit...
        The other application is: yum
          Memory :  21 M RSS (225 MB VSZ)
          Started: Wed May  9 10:54:22 2012 - 00:04 ago
          State  : Running, pid: 1211
      Another app is currently holding the yum lock; waiting for it to exit...
        The other application is: yum
          Memory :  29 M RSS (234 MB VSZ)
          Started: Wed May  9 10:54:22 2012 - 00:06 ago
          State  : Uninterruptible, pid: 1211
      /tmp/bootstrap-zookeeper/bootstrap-zookeeper.sh: line 87: java: command not found
      , exitStatus=1}
      << error running InitScript{instanceName=bootstrap-zookeeper} on node(us-east-1/i-174d9771): {output=Reloading sshd: [  OK  ]
      Loaded plugins: fastestmirror, priorities, security, update-motd
      Determining fastest mirrors
       * amzn-main: packages.us-east-1.amazonaws.com
       * amzn-updates: packages.us-east-1.amazonaws.com
      Setting up Install Process
      Package 1:java-1.6.0-openjdk-1.6.0.0-52.1.10.6.44.amzn1.x86_64 already installed and latest version
      Nothing to do
      , error=useradd: warning: the home directory already exists.
      Not copying any file from skel directory into it.
      ssh: unrecognized service
      Existing lock /var/run/yum.pid: another copy is running as pid 1211.
      Another app is currently holding the yum lock; waiting for it to exit...
        The other application is: yum
          Memory :  21 M RSS (225 MB VSZ)
          Started: Wed May  9 10:54:22 2012 - 00:04 ago
          State  : Running, pid: 1211
      Another app is currently holding the yum lock; waiting for it to exit...
        The other application is: yum
          Memory :  29 M RSS (234 MB VSZ)
          Started: Wed May  9 10:54:22 2012 - 00:06 ago
          State  : Uninterruptible, pid: 1211
      /tmp/bootstrap-zookeeper/bootstrap-zookeeper.sh: line 87: java: command not found
      , exitStatus=1}
      Nodes started: [[id=us-east-1/i-174d9771, providerId=i-174d9771, group=zk-amazon-linux, name=zk-amazon-linux-174d9771, location=[id=us-east-1b, scope=ZONE, description=us-east-1b, parent=us-east-1, iso3166Codes=[US-VA], metadata={}], uri=null, imageId=us-east-1/ami-e565ba8c, os=[name=null, family=amzn-linux, version=pv-2012.03.1, arch=paravirtual, is64Bit=true, description=amazon/amzn-ami-pv-2012.03.1.x86_64-ebs], state=RUNNING, loginPort=22, hostname=ip-10-50-209-216, privateAddresses=[10.50.209.216], publicAddresses=[23.22.94.145], hardware=[id=m1.small, providerId=m1.small, name=null, processors=[[cores=1.0, speed=1.0]], ram=1740, volumes=[[id=null, type=LOCAL, size=150.0, device=/dev/sda2, durable=false, isBootDevice=false], [id=vol-50476b3f, type=SAN, size=null, device=/dev/sda1, durable=true, isBootDevice=true]], hypervisor=xen, supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,ALWAYS_TRUE), tags=[]], loginUser=ec2-user, userMetadata={Name=zk-amazon-linux-174d9771}, tags=[]]]
      Wrote instances file /Users/andreisavu/.whirr/zk-amazon-linux/instances
      Authorizing firewall ingress to [us-east-1/i-174d9771] on ports [2181] for [188.27.101.115/32]
      Starting to run scripts on cluster for phase configure on instances: us-east-1/i-174d9771
      >> running InitScript{instanceName=configure-zookeeper} on node(us-east-1/i-174d9771)
      Finished running configure phase scripts on all cluster instances
      << success executing InitScript{instanceName=configure-zookeeper} on node(us-east-1/i-174d9771): {output=, error=/tmp/configure-zookeeper/configure-zookeeper.sh: line 44: /etc/zookeeper/conf/zoo.cfg: No such file or directory
      , exitStatus=0}
      Completed configuration of zk-amazon-linux
      Hosts: ec2-23-22-94-145.compute-1.amazonaws.com:2181
      Starting to run scripts on cluster for phase start on instances: us-east-1/i-174d9771
      >> running InitScript{instanceName=start-zookeeper} on node(us-east-1/i-174d9771)
      Finished running start phase scripts on all cluster instances
      << error running InitScript{instanceName=start-zookeeper} on node(us-east-1/i-174d9771): {output=, error=/tmp/start-zookeeper/start-zookeeper.sh: line 41: /etc/init.d/zookeeper: No such file or directory
      , exitStatus=1}
      Started cluster of 1 instances
      Cluster{instances=[Instance{roles=[zookeeper], publicIp=23.22.94.145, privateIp=10.50.209.216, id=us-east-1/i-174d9771, nodeMetadata=[id=us-east-1/i-174d9771, providerId=i-174d9771, group=zk-amazon-linux, name=zk-amazon-linux-174d9771, location=[id=us-east-1b, scope=ZONE, description=us-east-1b, parent=us-east-1, iso3166Codes=[US-VA], metadata={}], uri=null, imageId=us-east-1/ami-e565ba8c, os=[name=null, family=amzn-linux, version=pv-2012.03.1, arch=paravirtual, is64Bit=true, description=amazon/amzn-ami-pv-2012.03.1.x86_64-ebs], state=RUNNING, loginPort=22, hostname=ip-10-50-209-216, privateAddresses=[10.50.209.216], publicAddresses=[23.22.94.145], hardware=[id=m1.small, providerId=m1.small, name=null, processors=[[cores=1.0, speed=1.0]], ram=1740, volumes=[[id=null, type=LOCAL, size=150.0, device=/dev/sda2, durable=false, isBootDevice=false], [id=vol-50476b3f, type=SAN, size=null, device=/dev/sda1, durable=true, isBootDevice=true]], hypervisor=xen, supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,ALWAYS_TRUE), tags=[]], loginUser=ec2-user, userMetadata={Name=zk-amazon-linux-174d9771}, tags=[]]}], configuration={}}
      
      You can log into instances using the following ssh commands:
      'ssh -i /Users/andreisavu/.ssh/id_rsa -o "UserKnownHostsFile /dev/null" -o StrictHostKeyChecking=no andreisavu@23.22.94.145'
      
      
      Show
      Andrei Savu added a comment - It looks like this is still an issue we need to fix: (13:52:57 <~/src/whirr[trunk]>) $ ./bin/whirr launch-cluster --cluster-name zk-amazon-linux --instance-templates "1 zookeeper" --image-id "us-east-1/ami-e565ba8c" (amazon linux ami) Running on provider aws-ec2 using identity xxxxx Bootstrapping cluster Configuring template for bootstrap-zookeeper Starting 1 node(s) with roles [zookeeper] >> running InitScript{instanceName=bootstrap-zookeeper} on node(us-east-1/i-174d9771) << error running InitScript{instanceName=bootstrap-zookeeper} on node(us-east-1/i-174d9771): {output=Reloading sshd: [ OK ] Loaded plugins: fastestmirror, priorities, security, update-motd Determining fastest mirrors * amzn-main: packages.us-east-1.amazonaws.com * amzn-updates: packages.us-east-1.amazonaws.com Setting up Install Process Package 1:java-1.6.0-openjdk-1.6.0.0-52.1.10.6.44.amzn1.x86_64 already installed and latest version Nothing to do , error=useradd: warning: the home directory already exists. Not copying any file from skel directory into it. ssh: unrecognized service Existing lock /var/run/yum.pid: another copy is running as pid 1211. Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 21 M RSS (225 MB VSZ) Started: Wed May 9 10:54:22 2012 - 00:04 ago State : Running, pid: 1211 Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 29 M RSS (234 MB VSZ) Started: Wed May 9 10:54:22 2012 - 00:06 ago State : Uninterruptible, pid: 1211 /tmp/bootstrap-zookeeper/bootstrap-zookeeper.sh: line 87: java: command not found , exitStatus=1} << error running InitScript{instanceName=bootstrap-zookeeper} on node(us-east-1/i-174d9771): {output=Reloading sshd: [ OK ] Loaded plugins: fastestmirror, priorities, security, update-motd Determining fastest mirrors * amzn-main: packages.us-east-1.amazonaws.com * amzn-updates: packages.us-east-1.amazonaws.com Setting up Install Process Package 1:java-1.6.0-openjdk-1.6.0.0-52.1.10.6.44.amzn1.x86_64 already installed and latest version Nothing to do , error=useradd: warning: the home directory already exists. Not copying any file from skel directory into it. ssh: unrecognized service Existing lock /var/run/yum.pid: another copy is running as pid 1211. Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 21 M RSS (225 MB VSZ) Started: Wed May 9 10:54:22 2012 - 00:04 ago State : Running, pid: 1211 Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 29 M RSS (234 MB VSZ) Started: Wed May 9 10:54:22 2012 - 00:06 ago State : Uninterruptible, pid: 1211 /tmp/bootstrap-zookeeper/bootstrap-zookeeper.sh: line 87: java: command not found , exitStatus=1} Nodes started: [[id=us-east-1/i-174d9771, providerId=i-174d9771, group=zk-amazon-linux, name=zk-amazon-linux-174d9771, location=[id=us-east-1b, scope=ZONE, description=us-east-1b, parent=us-east-1, iso3166Codes=[US-VA], metadata={}], uri=null, imageId=us-east-1/ami-e565ba8c, os=[name=null, family=amzn-linux, version=pv-2012.03.1, arch=paravirtual, is64Bit=true, description=amazon/amzn-ami-pv-2012.03.1.x86_64-ebs], state=RUNNING, loginPort=22, hostname=ip-10-50-209-216, privateAddresses=[10.50.209.216], publicAddresses=[23.22.94.145], hardware=[id=m1.small, providerId=m1.small, name=null, processors=[[cores=1.0, speed=1.0]], ram=1740, volumes=[[id=null, type=LOCAL, size=150.0, device=/dev/sda2, durable=false, isBootDevice=false], [id=vol-50476b3f, type=SAN, size=null, device=/dev/sda1, durable=true, isBootDevice=true]], hypervisor=xen, supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,ALWAYS_TRUE), tags=[]], loginUser=ec2-user, userMetadata={Name=zk-amazon-linux-174d9771}, tags=[]]] Wrote instances file /Users/andreisavu/.whirr/zk-amazon-linux/instances Authorizing firewall ingress to [us-east-1/i-174d9771] on ports [2181] for [188.27.101.115/32] Starting to run scripts on cluster for phase configure on instances: us-east-1/i-174d9771 >> running InitScript{instanceName=configure-zookeeper} on node(us-east-1/i-174d9771) Finished running configure phase scripts on all cluster instances << success executing InitScript{instanceName=configure-zookeeper} on node(us-east-1/i-174d9771): {output=, error=/tmp/configure-zookeeper/configure-zookeeper.sh: line 44: /etc/zookeeper/conf/zoo.cfg: No such file or directory , exitStatus=0} Completed configuration of zk-amazon-linux Hosts: ec2-23-22-94-145.compute-1.amazonaws.com:2181 Starting to run scripts on cluster for phase start on instances: us-east-1/i-174d9771 >> running InitScript{instanceName=start-zookeeper} on node(us-east-1/i-174d9771) Finished running start phase scripts on all cluster instances << error running InitScript{instanceName=start-zookeeper} on node(us-east-1/i-174d9771): {output=, error=/tmp/start-zookeeper/start-zookeeper.sh: line 41: /etc/init.d/zookeeper: No such file or directory , exitStatus=1} Started cluster of 1 instances Cluster{instances=[Instance{roles=[zookeeper], publicIp=23.22.94.145, privateIp=10.50.209.216, id=us-east-1/i-174d9771, nodeMetadata=[id=us-east-1/i-174d9771, providerId=i-174d9771, group=zk-amazon-linux, name=zk-amazon-linux-174d9771, location=[id=us-east-1b, scope=ZONE, description=us-east-1b, parent=us-east-1, iso3166Codes=[US-VA], metadata={}], uri=null, imageId=us-east-1/ami-e565ba8c, os=[name=null, family=amzn-linux, version=pv-2012.03.1, arch=paravirtual, is64Bit=true, description=amazon/amzn-ami-pv-2012.03.1.x86_64-ebs], state=RUNNING, loginPort=22, hostname=ip-10-50-209-216, privateAddresses=[10.50.209.216], publicAddresses=[23.22.94.145], hardware=[id=m1.small, providerId=m1.small, name=null, processors=[[cores=1.0, speed=1.0]], ram=1740, volumes=[[id=null, type=LOCAL, size=150.0, device=/dev/sda2, durable=false, isBootDevice=false], [id=vol-50476b3f, type=SAN, size=null, device=/dev/sda1, durable=true, isBootDevice=true]], hypervisor=xen, supportsImage=And(ALWAYS_TRUE,Or(isWindows(),requiresVirtualizationType(paravirtual)),ALWAYS_TRUE,ALWAYS_TRUE), tags=[]], loginUser=ec2-user, userMetadata={Name=zk-amazon-linux-174d9771}, tags=[]]}], configuration={}} You can log into instances using the following ssh commands: 'ssh -i /Users/andreisavu/.ssh/id_rsa -o "UserKnownHostsFile /dev/null" -o StrictHostKeyChecking=no andreisavu@23.22.94.145'
      Hide
      Ioannis Canellos added a comment -

      This is actually a duplicate and I think its already fixed.

      Show
      Ioannis Canellos added a comment - This is actually a duplicate and I think its already fixed.
      Hide
      Andrei Savu added a comment -

      Ioannis have you tested with Amazon Linux AMI or custom one based on CentOS?

      Show
      Andrei Savu added a comment - Ioannis have you tested with Amazon Linux AMI or custom one based on CentOS?
      Hide
      Frank Scholten added a comment -

      Ioannis, if you can have some details to reproduce this failure I can have a look at this.

      Show
      Frank Scholten added a comment - Ioannis, if you can have some details to reproduce this failure I can have a look at this.

        People

        • Assignee:
          Andrei Savu
          Reporter:
          Ioannis Canellos
        • Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development