-
-
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 6 support #60
PVE 6 support #60
Conversation
Unfortunately i can't achieve to make this works with a debian 10 machine. I found that in proxmox VE 6.X you need to specify --linkX and not -bindnetX_addr and ringX_addr Let me know what you think about it EDIT: Need to specify that the role seems to fails only when you try to configure it in a cluster as pvecm will only be called in that state |
Posts 5 and 6 are the relevant posts in the linked thread (post 5 permalink: https://forum.proxmox.com/threads/separate-cluster-network-wiki-bindnet0_addr-command.25342/#post-259509) Reading through the above, and given the fact
link* parameters, templated via a new role variable of the same name, with a when condition (distribution == buster) might be more maintainable. The README would then just have a note saying the bindnet/ringnet parameters are for PVE 5.x.
Thoughts? |
@lae Yeah I think to duplicating and making task distribution specific would be more clear. Also I am experiencing another task failing in the following:
Again I think the solution would be duplicating the task and making it distribution specific |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I forgot to do a quick search for ring addr too.
@trickert76 what do you think? if you're fine with it, could you make the changes, too?
tasks/pve_add_node.yml
Outdated
@@ -5,7 +5,7 @@ | |||
|
|||
- name: Add node to Proxmox cluster | |||
command: "pvecm add {{ hostvars[groups[pve_group][0]]['ansible_default_ipv4']['address'] }}\ | |||
{{ ' -use_ssh' if ansible_distribution_release == 'stretch' else '' }} \ | |||
{{ ' -use_ssh' if (ansible_distribution_release == 'stretch' || ansible_distribution_release == 'buster') else '' }} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conditional here can be removed entirely - I missed this when removing support for 4.x.
Great - I'll change that too and make a new PR. I would make two tasks of it and add a when condition |
@trickert76 that change should be in this PR, not a separate one (it's a required change for the role to continue working in clusters for PVE 6 as far as I can tell?) |
I don't understand that error in Travis. |
How could I define the distribution version in the test - I only see in tests/install.yml a profile - but it should be a second test for Buster too. Also I don't understand - if it is a Stretch test, why should it be changed, when the "when" condition is working. |
@trickert76 this is a tricky one - the space before As for adding tests for PVE 6, the following steps are needed:
But right now there isn't a debian-buster test profile in the test suite yet, so it won't work. Let me get to updating the test suite and I'll add a commit for PVE 6 tests. |
@AleRousse Could I have you try to deploy this a PVE 6 cluster with this branch and report back if you have any other issues? |
@trickert76 and @lae I confirm that it works well for a PVE6's cluster
Thanks all! |
and add a new property
Proxmox v6 Support - in my environment it works on a fresh Debian Buster.