Ask Your Question

rmarrine's profile - activity

2017-05-11 13:17:40 -0500 received badge  Nice Answer (source)
2016-05-05 12:17:03 -0500 received badge  Teacher (source)
2015-02-05 16:20:01 -0500 received badge  Supporter (source)
2015-01-29 12:35:01 -0500 received badge  Enthusiast
2015-01-27 13:20:12 -0500 answered a question heat circular exception - get server ip in user_data

In Icehouse I have used the following with success:

heat_template_version: 2013-05-23
parameters:
  node_hostname:
    type: string
  image:
    type: string
  flavor:
    type: string
  keypair:
    type: string
  private_net:
    type: string
  floating_net:
    type: string
resources:
  theNode:
    type: OS::Nova::Server
    properties:
      name: {get_param: node_hostname}
      key_name: {get_param: keypair}
      image: {get_param: image}
      flavor: {get_param: flavor}
      networks:
        - port : { get_resource: node_server_port }
      user_data:
        str_replace:
          template:  |
            #!/bin/sh
            echo MYIP `uname -n` >> /etc/hosts
          params:
            MYIP : {get_attr: [node_server_port, fixed_ips, 0, ip_address]}
  node_server_port:
    type: OS::Neutron::Port
    properties:
      network_id: {get_param: private_net}
  node_floating_ip:
    type: OS::Neutron::FloatingIP
    properties:
       floating_network_id: {get_param: floating_net}
       port_id: { get_resource: node_server_port }
2014-02-27 13:18:37 -0500 answered a question heat fetching remote template via proxy

I have no idea if this is the "proper" way or not, but putting your export http_proxy=blah export https_proxy=blah export no_proxy=blah into a file called /etc/sysconfig/openstack-heat-engine and then restarting heat-engine worked for me. I found this by looking at /etc/rc3.d/S98openstack-heat-engine To get it to allow loading of local files (using the file:// scheme in TemplateURL) I had to go and modify /usr/lib/python2.6/site-packages/heat/common/urlfetch.py which for some reason specifically only allows http and https schemes, with a frustrating comment that you can allow file scheme by overriding allowed_schemes. Again I have know idea if that is the "proper" way, but it worked for me.