-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Missing python3 libvirt bindings #4124
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
Conversation
|
Not sure how this was not tested during 4.14 👎 |
wido
left a comment
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.
Super weird that this was missed.
LGTM
|
in 4.14 we are still on python2 why are you expecting this to be tested? |
|
@DaanHoogland The Security Grouping part has already moved to Python 3. The scripts inside the VR for example are still Py2. security_group.py is a standalone script outside all the other scripts. |
|
@NuxRo can you rebase and edit the PR for 4.14? |
yadvr
left a comment
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.
Change LGTM, but we should address this in 4.14.1.0
|
It'd be great if in such instances we'd get some sort of clue in the UI or somehow get an idea that SGs are not working, or fail adding the hypervisor altogether. It took me a while to catch the problem, idiotically assuming it works. Ended up with a stupid CentOS 5 VM IP spoofing the hell out of it. At least tc was doing its job, so the perpetrators only had 200 Mbps :-D |
|
@NuxRo |
|
@weizhouapache yes. python36-libvirt.x86_64 is a valid package from EPEL. :/ there is no python3-libvirt although it sounds better :) |
thanks @svenvogel |
|
installing this package will install python3-* (a few of these) - worth testing this thoroughly... |
|
FWIW: just did an install of master on centos7; I don't know if it is significant, but it seems to ask for python 3.7. (not libvirt related management server install. |
|
Daan, it looks like those RPMs were built on Fedora 31 which probably comes with python 3.7. |
We should definitely do that, EPEL is pretty safe. |
Missing python3 libvirt bindings on CentOS7 effectively break security groups. There are 0 firewall rules added. The agent logs report: ```2020-06-02 10:58:34,346 DEBUG [kvm.resource.LibvirtComputingResource] (main:null) (logid:) Traceback (most recent call last): File "/usr/share/cloudstack-common/scripts/vm/network/security_group.py", line 26, in <module> import libvirtModuleNotFoundError: No module named 'libvirt' ``` Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
|
@NuxRo changing just the base branch is not enough, I've taken the liberty to fix it for you and do a force push. Now the PR can be merged for 4.14.1.0 and fwd merged to master. @blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
This requires a docs (also branch 4.14) update to add Epel as the pre-requisite on KVM hosts. Potentially - this whole work here in this PR, could be moved to the docs, instead of package dependency - i.e. dependency will NOT work if Epel is not installed... and making epel-release a dependency is too "bold" on the user... Opinions? |
|
Packaging result: ✔centos7 ✔debian. JID-1272 |
|
I don't see requiring epel as a problem, it's very widely used. |
|
Me neither. Adding this to the docs will only confuse people. RPM and DEB packages should depend on everything you need to run CloudStack. |
|
ok, then let's leave it as it is. |
|
Smoketests are not necessary as change is in the centos7 package. I tested in the Doc change requested @andrijapanicsb |
|
Doc PR raised apache/cloudstack-documentation#135 cc @andrijapanicsb |
Missing python3 libvirt bindings on CentOS7 effectively break security groups.
There are 0 firewall rules added. The agent logs report:
2020-06-02 10:58:34,346 DEBUG [kvm.resource.LibvirtComputingResource] (main:null) (logid:) Traceback (most recent call last): File "/usr/share/cloudstack-common/scripts/vm/network/security_group.py", line 26, in import libvirtModuleNotFoundError: No module named 'libvirt'
Description
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?