Ask Your Question

Revision history [back]

What Linux distribution versions does openstack support with heat?

I've set up an openstack host on RHEL 6. I want to run VMs of RHEL 5.

I can spin up instances without any problem, but using heat templates doesn't work. As soon as I add a user_data script:

    type: OS::Nova::Server
          template: |
            #!/bin/bash -v

            echo 'hello'

My script does not end up running. /var/log/cloud-init-output.log shows:

  File "/var/lib/cloud/instance/scripts/", line 39
    os.chmod(fh.baseFilename, 0o600)
SyntaxError: invalid syntax
/var/lib/cloud/instance/scripts/ failed; code 1
2014-09-16 10:19:47,655 -[WARNING]: failed to run-parts in /var/lib/cloud/instance/scripts
2014-09-16 10:19:47,879 -[WARNING]: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/cloudinit/CloudConfig/", line 118, in run_cc_modules
    cc.handle(name, run_args, freq=freq)
  File "/usr/lib/python2.6/site-packages/cloudinit/CloudConfig/", line 79, in handle
    [name, self.cfg,, cloudinit.log, args])
  File "/usr/lib/python2.6/site-packages/cloudinit/", line 324, in sem_and_run
  File "/usr/lib/python2.6/site-packages/cloudinit/CloudConfig/", line 31, in handle
  File "/usr/lib/python2.6/site-packages/cloudinit/", line 222, in runparts
    raise RuntimeError('runparts: %i failures' % failed)
RuntimeError: runparts: 1 failures

2014-09-16 10:19:47,879 -[ERROR]: config handling of scripts-user, None, [] failed

2014-09-16 10:19:48,332 - cloud-init-cfg[ERROR]: errors running cloud_config [final]: ['scripts-user']
errors running cloud_config [final]: ['scripts-user']

This looks like heat is trying to run, but contains syntax that requires Python 2.6 or later. RHEL 5 has Python 2.4 as its default Python version (and yum depends upon this).

Can I use heat on RHEL 5? Is there are list of supported distributions anywhere?