Ask Your Question
1

Heat resource OS::Heat::SoftwareDeployment - create in progress

asked 2015-01-28 10:03:56 -0500

agti gravatar image

updated 2015-01-30 04:30:21 -0500

Hi, I'm trying to build a heat template with SoftwareConfig and SoftwareDeployment resources; it correctly creates all resources but SoftwareDeployment stays on a 'Create in progress' status; I could not see any relevant error on heat logs on controller node.

Here a sample heat template illustrating my case:

  dns:
    type: OS::Nova::Server
    properties:
      name: dns
      image: vm-base
      flavor: m1.small
      key_name: { get_param: KeyName }
      networks: 
        - port: { get_resource: dns_port }
  dns_port:
    type: OS::Neutron::Port
    properties:
      network_id: { get_param: PrivateNetworkId }
      security_groups: [get_resource: total_sg]
      fixed_ips:
        - subnet_id: { get_param: PrivateSubNetworkId }
  vm:
    type: OS::Nova::Server
    properties:
      name: vm
      image: cw-base
      flavor: m1.small
      key_name: { get_param: KeyName }
      user_data_format: SOFTWARE_CONFIG
      networks: 
        - port: { get_resource: vm_port }
  vm_port:
    type: OS::Neutron::Port
    properties:
      network_id: { get_param: PrivateNetworkId }
      security_groups: [get_resource: total_sg]
      fixed_ips:
        - subnet_id: { get_param: PrivateSubNetworkId }
  vm_config:
    type: OS::Heat::SoftwareConfig
    properties:
      inputs:
      - name: previous
        default: 'NONE'
      - name: dns_ip
        default: {get_attr: [dns, first_address]}
      group: script
      config: |
        #!/bin/bash
        echo "DNS_IP = $dns_ip" >> /home/ubuntu/dns_ip_software_config
        echo "Previous: $previous"
        echo "${deploy_resource_name} is running on $(hostname) at $(date)"
  deployment_vm:
    type: OS::Heat::SoftwareDeployment
    properties:
      config:
        get_resource: vm_config
      server:
        get_resource: vm

Where could I find any interesting log showing me why the process does not complete? Am I wrong in template creation?

ISSUE UPDATE

No way to let it work... is it available a reference guide on how to use it? Could it be a problem on my infrastructure? Do I have to use a particular cloud image?

ISSUE UPDATE 2

I'm trying with a new stack, directly cloned from Github. I have the same problem with this stack, so I imagine I am missing something. Is there any special configuration of heat I need to switch on? Does the image I use need a special package/heat-handler/whatsoever ?

Thanks in advance!

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
2

answered 2015-02-02 15:47:53 -0500

Steve Baker gravatar image

See this answer for hints on debugging software deployments. Also take a look at the official hot-guide software-deployment section.

edit flag offensive delete link more
1

answered 2015-02-08 06:34:13 -0500

I got the very similar problem as "SoftwareDeployment stays on a 'Create in progress' status". But I have many "yum install", "wget", and "tar zxvf". After I added "-q" to have yum and wget be quite, I got it completed.

Not very sure what's going wrong. It wasted my whole afternoon.

edit flag offensive delete link more
1

answered 2015-01-30 07:23:24 -0500

zaneb gravatar image

updated 2015-01-30 07:25:41 -0500

The template looks fine; the resource remaining in progress is because it's not receiving a signal back from the VM to indicate that the software deployment is complete. That could be due to many things, but the most likely ones are:

  1. The image you're booting does not contain the necessary tools (cloud-init, the appropriate software-config hook); or
  2. Network configuration problems preventing the server being able to contact the Heat API.
edit flag offensive delete link more
1

answered 2016-06-26 00:43:22 -0500

Wan Deng Ren gravatar image

updated 2016-06-26 01:03:30 -0500

I have resolved the problem.

Firstly, you should use cloud image. The image can be downloaded from offical website(see http://docs.openstack.org/image-guide/obtain-images.html (http://docs.openstack.org/image-guide...) for more information.), or you can make it by yourself(It`s very complex to make. suggest using official cloud image.)

Secondly, The image should install os-collect-config, os-refresh-config, os-apply-config, heat-config, heat-config-script using diskimage-builder. see http://docs.openstack.org/developer/diskimage-builder/ (http://docs.openstack.org/developer/d...) (http://docs.openstack.org/developer/d...) for more information.

If you hava interest on how to make cloud image all by yourself, u can contract me by e-mail: wandengren@126.com.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-01-28 10:03:56 -0500

Seen: 3,816 times

Last updated: Jun 26 '16