Re: [openstack-dev] penstack Heat- OS::Heat::MultipartMime cannot be used as user_data for OS::Nova::Server

2015-01-23 Thread Lars Kellogg-Stedman
On Thu, Jan 22, 2015 at 04:09:09PM -0700, Vignesh Kumar wrote:
 I am new to heat orchestration and am trying to create a coreOS cluster
 with it. I have a OS::Heat::SoftwareConfig resource and a
 OS::Heat::CloudConfig resource and I have joined them both in a
 OS::Heat::MultipartMime resource which is then used as a user_data for a
 OS::Nova::Server resource. Unfortunately I am not able to see the
 configurations happening in my server resource using cloud-init...

If I take your template and use it to boot a Fedora system instead of
a CoreOS system, it works as intended.  Note that CoreOS does *not*
use the same cloud-init that everyone else uses, and it is entirely
possible that the CoreOS cloud-init does not support multipart MIME
user-data.

-- 
Lars Kellogg-Stedman l...@redhat.com | larsks @ {freenode,twitter,github}
Cloud Engineering / OpenStack  | http://blog.oddbit.com/



pgpIRZErym0lL.pgp
Description: PGP signature
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] penstack Heat- OS::Heat::MultipartMime cannot be used as user_data for OS::Nova::Server

2015-01-22 Thread Vignesh Kumar
Hi all,



I am new to heat orchestration and am trying to create a coreOS cluster
with it. I have a OS::Heat::SoftwareConfig resource and a
OS::Heat::CloudConfig resource and I have joined them both in a
OS::Heat::MultipartMime resource which is then used as a user_data for a
OS::Nova::Server resource. Unfortunately I am not able to see the
configurations happening in my server resource using cloud-init. When I
give the OS::Heat::SoftwareConfig resource and the OS::Heat::CloudConfig
resource individually to the user_data of server resource it is working
fine. Any inputs are appreciated.





These are my resources



  coreOS_cloudconfig:

type: OS::Heat::CloudConfig

properties:

  cloud_config:

write_files:

- path: /etc/sysconfig/docker

  owner: core:core

  permissions: 0644

  content: |

   ulimit -l unlimited

   ulimit -n 10240

   ulimit -c unlimited

coreos:

  etcd:

discovery: { get_param: Tokenurl }

addr: $private_ipv4:4001

peer-addr: $private_ipv4:7001

#peer-heartbeat-interval: 100

#peer-election-timeout: 500

  fleet:

public-ip: $private_ipv4

etcd-request-timeout: 15

  units:

- name: etcd.service

  command: start

- name: fleet.service

  command: start



sample_shscript:

type: OS::Heat::SoftwareConfig

properties:

  group: ungrouped

  config: |

#!/bin/bash

echo The three is bar  /tmp/three





server_init:

type: OS::Heat::MultipartMime

properties:

  parts:

  - config: {get_resource: coreOS_cloudconfig}

  - config: {get_resource: sample_shscript}





tvecoreos01:

type: OS::Nova::Server

properties:

  key_name: newkey

  image: { get_param: ImageID }

  flavor: m1.medium

  networks:

- network: { get_param: NetID }

  security_groups: [default]

  user_data_format: RAW

  user_data:

get_resource: server_init



Thanks and Regards,

Vignesh Kumar Kathiresan
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev