I've found out that it doesn't work for 6.1 also (not only for 6.0).
Function below assumes that [upgrade_levels] already in place, which is not true.
=============
def add_compute_upgrade_levels(node, version):
sftp = ssh.sftp(node)
with ssh.update_file(sftp, '/etc/nova/nova.conf') as (old, new):
for line in old: new.write(line)
if line.startswith("[upgrade_levels]"): new.write("compute={0}\n".format(version))
=============
I've found out that it doesn't work for 6.1 also (not only for 6.0).
Function below assumes that [upgrade_levels] already in place, which is not true. upgrade_ levels( node, version): file(sftp, '/etc/nova/ nova.conf' ) as (old, new):
new. write(line) ("[upgrade_ levels] "):
new.write( "compute= {0}\n". format( version) )
=============
def add_compute_
sftp = ssh.sftp(node)
with ssh.update_
for line in old:
if line.startswith
=============