Ask Your Question
1

Heat software_deployment is not working in juno

asked 2015-01-20 07:04:04 -0500

rajshivage gravatar image

updated 2015-01-20 07:12:23 -0500

Hi,

I'm orchestrating the deployment of application using Heat. For this deployment I am using the SoftwareDeployment resource of Heat and the template format is HOT.

The example template is as below.

heat_template_version: 2013-05-23
description: first template

parameters:
  server_flavor:
    default: m1.small
    type: string
  server_image:
    default: ubuntu1
    type: string
  key:
    type: string
    default: proj1-key
  public_network:
    type: string
    default: ext-net
  security_group:
    type: string
    default: default
  tenant_network:
    type: string
    default: proj1-net1

resources:
  config:
    type: OS::Heat::SoftwareConfig
    properties:
      group: script
      inputs:
      - name: foo
      - name: bar
      outputs:
      - name: result
      config:
        get_file: config-scripts/example-script.sh

  deployment:
    type: OS::Heat::SoftwareDeployment
    properties:
      config:
        get_resource: config
      server:
        get_resource: server
      input_values:
        foo: fooooo
        bar: baaaaa

  server:
    type: OS::Nova::Server
    properties:
      flavor: { get_param: server_flavor }
      image: { get_param: server_image }
      key_name: { get_param: key }
      name: stack-vm1
      networks:
      - network: { get_param: tenant_network }
      security_groups: [{ get_param: security_group }]
      user_data_format: SOFTWARE_CONFIG

outputs:
  result:
    value:
      get_attr: [deployment, result]
  stdout:
    value:
      get_attr: [deployment, deploy_stdout]
  stderr:
    value:
      get_attr: [deployment, deploy_stderr]
  status_code:
    value:
      get_attr: [deployment, deploy_status_code]

And I getting below warnings in /var/log/os-collect-config.log file Jan 20 12:04:45 stack-vm1 os-collect-config: 2015-01-20 12:04:44.578 1174 WARNING os_collect_config.cfn [-] No metadata_url configured.

WARNING os_collect_config.heat [-] No auth_url configured.
WARNING os_collect_config.request [-] No metadata_url configured.
WARNING os-collect-config [-] Source [request] Unavailable.
WARNING os_collect_config.local [-] /var/lib/os-collect-config/local-data not found. Skipping
WARNING os_collect_config.local [-] No local metadata found (['/var/lib/os-collect-config/local-data'])

The os-collect-config file.

root@stack-vm1:/var/lib/cloud/instance# vim /etc/os-collect-config.conf
[DEFAULT]
command = os-refresh-config

[cfn]
metadata_url = http://192.168.56.11:8000/v1/
stack_name = stack-ubuntu
secret_access_key = xxxx
access_key_id = xxxxx
path = server.Metadata

I tried this template with Ubuntu 14.04 and Fedora 21, and every time I am getting the same error.

in /var/log/cloud-init-output.log file, I am getting below error.

util.py[WARNING]: Running seed_random (<module 'cloudinit.config.cc_seed_random' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_seed_random.pyc'>) failed

Will appreciate any help to resolve this.

edit retag flag offensive close merge delete

Comments

heat version is 0.2.12

rajshivage gravatar imagerajshivage ( 2015-01-20 07:05:27 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-02-03 07:00:17 -0500

rajshivage gravatar image

I am using Devstack with Neutron and I did not find any documentation to allow the instances to access the heat-api and heat-api-cfn services. If you have any pointers for documentation please let me know.

edit flag offensive delete link more
0

answered 2015-02-02 15:53:33 -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

Comments

triggered the os-collect-config from instance and got below errors.

WARNING os_collect_config.cfn [-] ('Connection aborted.', error(113, 'No route to host'))
WARNING os-collect-config [-] Source [cfn] Unavailable.
WARNING os_collect_config.heat [-] No auth_url configured.
rajshivage gravatar imagerajshivage ( 2015-02-03 06:58:07 -0500 )edit

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

1 follower

Stats

Asked: 2015-01-20 06:53:36 -0500

Seen: 1,713 times

Last updated: Feb 02 '15