Comment 1 for bug 1583596

Revision history for this message
Roman Sokolkov (rsokolkov) wrote :

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))
=============