Cloud Bursting Amazon EC2

Hi,

I have 2 KVM node running and one EC2 connected.
OpenNebula can monitor wild VM on EC2.

While I try to launch a instance from OpenNebula to EC2, it stays pending forever.
Can you show me some light where to debug? Thanks.

Below is template file
I am trying to launch ami-7ea24a17, which equals to public CentOS image on Amazon.

CONTEXT = [
NETWORK = “YES”,
SSH_PUBLIC_KEY = “$USER[SSH_PUBLIC_KEY]” ]
CPU = "0.1"
DISK = [
IMAGE_ID = “0” ]
GRAPHICS = [
LISTEN = “0.0.0.0”,
TYPE = “vnc” ]
LOGO = "images/logos/linux.png"
MEMORY = "128"
PUBLIC_CLOUD = [
AMI = “ami-7ea24a17”,
INSTANCETYPE = “t2.micro”,
KEYPAIR = “gsg-keypair”,
TYPE = “EC2” ]
SCHED_REQUIREMENTS = “PUBLIC_CLOUD = YES”

VM20 should burst to Amazon EC2, It shows pending forever.

The system have 3 host, node1, node2 and EC2.
VM20 is unable to burst to EC2, nelow error message.

Thu Jul 28 11:37:23 2016 [Z0][VM][D]: Found 1 pending/rescheduling VMs.
Thu Jul 28 11:37:23 2016 [Z0][HOST][D]: Discovered 3 enabled hosts.
Thu Jul 28 11:37:23 2016 [Z0][SCHED][D]: Match-making results for VM 20:
Cannot schedule VM, there is no suitable host.

Thu Jul 28 11:37:23 2016 [Z0][SCHED][D]: Dispatching VMs to hosts:
VMID Host System DS
-------------------------

Got below error message from 22.log

Thu Jul 28 12:10:23 2016 [Z0][VM][I]: New state is ACTIVE
Thu Jul 28 12:10:23 2016 [Z0][VM][I]: New LCM state is PROLOG
Thu Jul 28 12:10:23 2016 [Z0][VM][I]: New LCM state is BOOT
Thu Jul 28 12:10:23 2016 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/22/deployment.0
Thu Jul 28 12:10:23 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/ec2/deploy ‘/var/lib/one/vms/22/deployment.0’ ‘ec2’ 22 ec2
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Deploy of VM 22 on host ec2 with /var/lib/one/vms/22/deployment.0 failed due to "#<REXML::ParseException: Missing end tag for ‘INSTANCETYPE’ (got “PUBLIC_CLOUD”)
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Line: 35
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Position: 1816
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Last 80 unconsumed characters:
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: >
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/parsers/baseparser.rb:338:in pull_event' Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/parsers/baseparser.rb:183:inpull’
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/parsers/treeparser.rb:22:in parse' Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/document.rb:287:inbuild’
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/document.rb:43:in initialize' Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/lib/one/ruby/ec2_driver.rb:636:innew’
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/lib/one/ruby/ec2_driver.rb:636:in load_default_template_values' Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/lib/one/ruby/ec2_driver.rb:249:indeploy’
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /var/lib/one/remotes/vmm/ec2/deploy:48:in `'
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: …
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Missing end tag for ‘INSTANCETYPE’ (got “PUBLIC_CLOUD”)
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Line: 35
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Position: 1816
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Last 80 unconsumed characters:
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]:
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Line: 35
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Position: 1816
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Last 80 unconsumed characters:
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: "
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: ExitCode: 255
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Thu Jul 28 12:10:26 2016 [Z0][VMM][E]: Error deploying virtual machine
Thu Jul 28 12:10:26 2016 [Z0][VM][I]: New LCM state is BOOT_FAILURE

Hi,

Can you share the contents on the vm (onevm show -x) and the deployment.0 file?

Hi Martin.

I have create a new EC2 VM, VMID 23
I do not notice deployment.0 for VMID23, can you point me to the path. Thanks.

<![CDATA[
[oneadmin@node1 root]$ onevm show 23 -x

  23
  0
  0
  oneadmin
  oneadmin
  EC2_CentOS-23
  
    1
    1
    0
    0
    0
    0
    0
    0
    0
  
  0
  3
  36
  3
  36
  0
  1474427108
  0
  
  
  
    
    
    
      
      
      
      
    
    
    
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    
    
      
      
      
    
    
    
    
  
  
    
    
      
      
      
      
    
  
  
    
      23
      0
      ec2
      11
      0
      1474427119
      0
      
      
      -1
      1474427119
      1474427119
      1474427119
      0
      0
      0
      0
      0
    
  

[oneadmin@node1 root]$
]]>

Hi Martin

I found below log message in Sunstone UI, It seem not meet scheduler requirements, Can you show me how to fix it. Thanks.

LOGO = "images/logos/linux.png"
PUBLIC_CLOUD = [
AMI = “ami-bd3ba0aa”,
INSTANCETYPE = “t2.micro”,
KEYPAIR = “gsg-keypair”,
TYPE = “EC2” ]
SCHED_MESSAGE = "Wed Sep 21 16:31:42 2016 : No host meets capacity and SCHED_REQUIREMENTS: (CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) | (PUBLIC_CLOUD = YES & (HYPERVISOR = EC2)) & ( PUBLIC_CLOUD = YES )"
SCHED_REQUIREMENTS = “PUBLIC_CLOUD = YES”