Hi apmuthu,
I tested to day the upgrade script from 1.9 and 2.0 with my test cluster, and saw one caveat with this post lenny retirement configuration. The script does not handle correctly the changes with 'archives' in sources.list, and ends with an incorrect file.
So, I saw these errors when running the script ./pve-upgrade-1.9-to-2.0 :
Code:
Err [URL]http://ftp.debian.org[/URL] squeeze/updates/main Packages
404 Not Found [IP: 130.89.148.12 80]
Err [URL]http://ftp.debian.org[/URL] squeeze/updates/contrib Packages
404 Not Found [IP: 130.89.148.12 80]
W: Failed to fetch [URL]http://ftp.debian.org/debian-security/dists/squeeze/updates/main/binary-amd64/Packages[/URL] 404 Not Found [IP: 130.89.148.12 80]
W: Failed to fetch [URL]http://ftp.debian.org/debian-security/dists/squeeze/updates/contrib/binary-amd64/Packages[/URL] 404 Not Found [IP: 130.89.148.12 80]
It is due to the fact that the script replace 'archive' by 'debian' in the path, and 'lenny' by 'squeeze' (correct.
First I have :
Code:
deb [URL]http://archive.debian.org/debian[/URL] lenny main contrib
(and similar for security updates). Then the script is doing some search and replace with sed :
Code:
sed -i -e "s/archive\.debian\.org/ftp\.debian\.org/" -e "s/lenny/squeeze/" /etc/apt/sources.list
and this ends with :
Code:
deb [URL]http://ftp.debian.org/debian[/URL] squeeze main contrib
And this is incorrect, because, in my case, I am in France, you need to add .fr in the path :
Code:
deb [URL]http://ftp.fr.debian.org/debian[/URL] squeeze main contrib
and the same for security updates :
Code:
# security updates
deb [URL]http://ftp.fr.debian.org/debian-security/[/URL] squeeze/updates main contrib
I don't know if I add something on the wiki to warn of this caveat, or if the upgrade script can be changed to care of this case ?
In any case, after fixing these paths manually, the upgrade script completed correctly. I had then to setup again the cluster, reimport old parameters (VMs), and at the end (with a few other caveats), it worked.
Alain