Heat assumes that Python on booted servers is 2.6+
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Zane Bitter | ||
Icehouse |
Fix Released
|
Undecided
|
Unassigned | ||
Juno |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Heat assumes that the system Python is 2.6+, which breaks on RHEL 5 (it has Python 2.4 as the system python).
When trying to deploy a VM with heat, /var/log/
---------------
File "/var/lib/
os.
SyntaxError: invalid syntax
/var/lib/
2014-09-30 14:06:57,296 - cc_scripts_
2014-09-30 14:06:57,625 - __init_
File "/usr/lib/
cc.handle(name, run_args, freq=freq)
File "/usr/lib/
[name, self.cfg, self.cloud, cloudinit.log, args])
File "/usr/lib/
func(*args)
File "/usr/lib/
util.
File "/usr/lib/
raise RuntimeError(
RuntimeError: runparts: 1 failures
2014-09-30 14:06:57,625 - __init__.py[ERROR]: config handling of scripts-user, None, [] failed
------------------
loguserdata.py was introduced in January 2013: https:/
and I believe it can be fixed by changing the first line to:
#!/usr/bin/env python2.6
since Python 2.6 is available on RHEL 5, just not the default.
summary: |
- Heat assumes that Python is 2.6+ + Heat assumes that Python on booted servers is 2.6+ |
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in heat: | |
status: | In Progress → Fix Released |
I do not think that would be an appropriate fix, as RHEL 5 is not the only guest supported by OpenStack and some other quite popular distros don't even have py26 installed by default.