[Openstack] Unable to do software configuration in heat
Vijay Baskar
vijay.baskar47 at gmail.com
Wed Jun 29 09:56:18 UTC 2016
Ignore the last update. The issue is still there.
Regards,
Vijayabhaskar
On Tue, Jun 28, 2016 at 5:55 PM, Vijay Baskar <vijay.baskar47 at gmail.com>
wrote:
> I fixed this issue by changing auth_version to v3.0 in keystone_authtoken
> section. I also noticed that heat-cfn was not installed and so installed
> it. I did these 2 and issue is now fixed. Though I am not clear which one
> fixed the issue.
>
> Regards,
> Vijayabhaskar
>
> On Thu, Jun 23, 2016 at 6:11 PM, Vijay Baskar <vijay.baskar47 at gmail.com>
> wrote:
>
>> I am running a private cloud in openstack kilo version. I want to do
>> software deployments with heat. I can create stacks without any issues, but
>> when I try to deploy a stack with - user_data_format: SOFTWARE_CONFIG
>> while creating a server(OS::Nova::Server), the configuration script fails
>> with error:
>>
>> [ 40.912057] cloud-init[805]: 2016-06-23 12:00:46,861 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/userdata [-]
>> [ 40.927560] cloud-init[805]: 2016-06-23 12:00:46,875 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
>> [ 40.930312] cloud-init[805]: 2016-06-23 12:00:46,875 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
>>
>> Taken from boot logs of ubuntu 14.04 cloud server.
>>
>> Template:
>>
>> heat_template_version: 2013-05-23
>>
>>
>> parameters:
>> file_content:
>> type: string
>> description: The contents of the file /tmp/file
>>
>> resources:
>> boot_config:
>> type: OS::Heat::CloudConfig
>> properties:
>> cloud_config:
>> write_files:
>> - path: /tmp/file
>> content: {get_param: file_content}
>>
>> server_with_cloud_config:
>> type: OS::Nova::Server
>> properties:
>> # flavor, image etc
>> flavor: m1.mini
>> image: d7f70692-48c1-4d42-adc4-213a9c7cdb35
>> networks:
>> - network: 397f1cc4-5368-41d9-a02e-1d1d89003dd7
>> key_name: my-key
>> user_data_format: SOFTWARE_CONFIG
>> user_data: {get_resource: boot_config}
>>
>>
>> If I change the user_data_format: to "RAW" the configuration works.
>> user_data_format needs to be SOFTWARE_CONFIG if software deployments are to
>> be done(OS::Heat::SoftwareDeployment).
>>
>>
>> Regards,
>> Vijayabhaskar
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160629/e7803e2e/attachment.html>
More information about the Openstack
mailing list