-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PVE 7 support #143
Comments
I have created a feature branch for this work 'feature/pve7' |
Ah, great. I've started to think about the migration process yesterday and now I see - there is already an open ticket. In production I'm waiting for Debian Bullseye to be official released - just to be sure. Some questions. I see, you already did added the most necessary changes to the repo for PVE7. I think, most of it is the same I did last time with PVE6. Did you tested the installation process? Main question is: I'm not 100% sure - do you think, this steps are also useful in case of "upgrade". I've always installed new major versions in the past. After reading the upgrade guide I think your changes are enough (adding key, switching apt-source-list, apt dist-upgrade). But I'm not sure. I'm thinking about some kind of "upgrade detection" during a play. Is the existing installation older then run pve6to7 (or later pve7to8), check that and then stop all VMs if configured and upgrade. I can try to run the play on two single servers, but I don't have a test-cluster at the moment. Only a productive cluster (upgrading it will be fun). |
Ah, sorry - the last commit was wrong - I wanted to merge the pve7 branch to my local branch - but it was commited vice verse. |
I have been testing the installation process as fresh install using my test servers and i have also tested a partial update so far where i upgrade the OS to bullseye manually and then use Ansible to upgrade pve6to7. My next stage is to try and upgrade from 6to7 fully using just this ansible but before then i am experiencing some excessive performance issues of VMs on PVE7 so i would advise against upgrading at the moment. The other thing to consider if doing an ansible upgrade is the highlighted issue of potential mac address changes when going from 6 to 7. |
Upgrading OS, later Proxmox works? Based on the upgrade guide, the PVE repo must be switched too. I'm trying that at the moment manually on a test machine, to have a look of the changes. I've started to add some tasks for an explicit upgrade from x to bullseye like:
This would be a new file that is called at start of main.yml with
And the new default vars:
For that |
Hmm, I'm getting a file not found ... I've added |
That's because the file does not exist and needs to be created. diff -u /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
--- /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
+++ /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
@@ -493,7 +493,8 @@ utilities: {
},
checked_command: function(orig_cmd) {
- Proxmox.Utils.API2Request(
+ orig_cmd()
+ false && Proxmox.Utils.API2Request(
{
url: '/nodes/localhost/subscription',
method: 'GET', Basically the same as buster, but different lines. |
Thanks for highlighting this, i didn't have that flag set to remove so hadn't checked it as of yet! Now fixed. |
Did a fresh install with PVE 7.0 yesterday and pull requested some fixes and updates. |
We just tested this and it works fine. Thank you @zenntrix Curious when will this merge to master so we can do something like specifying pve=7 as an argument? I am happy to help if needed! |
Afternoon @penguin02007, glad it works for you. Out of interest are you using CEPH with your installation? |
I also tested it earlier last week (manually did a dist-upgrade beforehand) and it was working fine, but for a single node install. At the moment I'm waiting for Richard to make the call and open a PR when he feels the branch is ready, since I don't know if there's anything missing (haven't personally read through PVE changelog myself to know what all needs changes). |
No Ceph. This was tested on (1) Dell R7515 via local disk. We do have few old R630 and supermicros in the lab that can help test if needed. |
Good to know, so although these changes have worked for me, it had an immense impact on my CEPH performance which i am still debugging and so have held off PR'ing in case it is related. If anyone else has / will test this with CEPH and have no issues, i will PR it :-) |
Is there a ticket open with Proxmox? Sounds like this is related to the Proxmox/ceph than install problem, i believe we can still PR it and allow users to toggle between 6/7? |
A toggle isn't necessary, unless further work is done to actually support upgrades. The working branch doesn't upgrade PVE 6 installs to PVE 7. The end user makes that decision when they decide which Debian version to install or upgrade to (PVE 7 is for Debian 11/PVE 6 for Debian 10). |
I've started to implement a "toggle" - which is at least a change to the sources.list. Please have a look at https://github.com/acoby/ansible-role-proxmox/blob/develop/tasks/upgrade_system_bullseye.yml I didn't add this to this branch yet, because I didn't test it yet and I'm not sure about other sources in apt. I don't know a "general best practice" way to switch all sources to a new debian distribution (except using "stable" at all). |
So, these are just my thoughts on the matter and probably not everyone agrees with me, but I think trying to support upgrades, at least via something simple like a "switch/toggle", for something with many moving parts that I doubt are all tracked by this role in many environments isn't really a straightforward feat and prone to getting things wrong. I'm not sure if we should add that to the scope of our role. In any case, if we want to do that I think we should open a new thread to discuss, so we can capture the various upgrade paths/procedures and figure out an optimal course of action. At the very least I think it might be more appropriate to provide separate "administrative" playbooks that a sysadmin can apply? Similar to what Ceph does here: https://github.com/ceph/ceph-ansible/blob/master/infrastructure-playbooks/rolling_update.yml Anyway, one issue in the |
From my point of view, I think a separate playbook would be ok for that (as I wrote, this toggle can really be a hugh problem when the sources are not completly managed by "this" role, maybe because you've added other repositories (like Icinga or so)). Good point regarding Ceph update - I don't use Ceph because of the cost of harddisc - Gluster is a much "easier" solution with nearly the same bandwith (I've tested both solution on my "reduced" hardware. Maybe add a new issue about that playbook for a "rolling update". |
Ok, good news, the ceph issue is now resolved and was not related to the changes on this piece of work! I shall now continue... |
Am not using ceph here. Just tried to deploy this to Dell R630 for single node install. Was unsuccessful. I am also able/willing to help test to get this finished up. |
@Jakkerus New install? Or are you upgrading? Please provide a copy of your role variables+playbook and further details about the issue and how you reproduced it. Is a task failing? Provide the failing task's output if so. |
New install on scratch Debian machine. downloaded local copy of PVE 7 branch. Followed setup exactly from your readme. TASK [ansible-role-proxmox-feature-pve7 : Install Proxmox VE and related packages] ********************************************************************************************************** PLAY RECAP ********************************************************************************************************************************************************************************** I make it to this stage and then fail... ...as a side note. I tried to join the discord server, but it keeps dropping on me. Is the invite link in the readme only temporary? Thanks. |
for those having the same issue: |
I think I recall seeing an email saying PVE 7 was released (or at least an RC came out), so I'd like to work on supporting it in this role. However, per current circumstances (which I also alluded to in lae/ansible-role-netbox#132) I probably won't be able to get to this for several months. I also haven't been gainfully employed/haven't had access to bare metal environments since 2018, so I can't really experiment/test a few things effectively (Ceph being one) without using something expensive like Packet.
Also with PVE 7, I think we can sunset support for PVE 5/Debian Stretch since they're EOL (but I don't think this means much code cleanup like we had with PVE 4).
Anyway, if there is anyone who wants to get a headstart and work on getting this role working with 7, please feel free to start a branch (if I've already made you a collaborator) or fork this repo+create a new feature branch and open a PR. If discussion is needed, you can use this thread.
The text was updated successfully, but these errors were encountered: