Repository navigation
Host KVM Installation, Who is responsible for configuration files? #4393
Description
Activity
- changed the title
[-]Host KVM Installation, Who is responsible?[/-][+]Host KVM Installation, Who is responsible for configuration files?[/+]on Oct 9, 2020 ... it looks like ACS is automatically doing the changes requests in the documentation by itself.
at least that is how it looks on Ubuntu 18.04...running some tests of my deployment playbooks wihtout configuring libvirt/qemu at all.
@rvalle cloudstack makes some basic changes on network/libvirt/system when setup cloudstack agent.
services
https://github.com/apache/cloudstack/blob/master/python/lib/cloudutils/syscfg.py#L157-L167
for libvirt
https://github.com/apache/cloudstack/blob/master/python/lib/cloudutils/serviceConfig.py#L559@weizhouapache thanks for pointing out.
I tried to deploy an ACS test cluster from scratch without touching these files:
TASK [privazio.vdc.cloudstack-node : Install Cloudstack agent packages in Debian derivatives] *** changed: [compute2] changed: [compute1] TASK [privazio.vdc.cloudstack-node : Configure Cloudstack node firewall rules] *** changed: [compute1] changed: [compute2] TASK [privazio.vdc.cloudstack-node : Configure qemu] *************************** skipping: [compute1] skipping: [compute2] TASK [privazio.vdc.cloudstack-node : Configure libvirtd] *********************** skipping: [compute1] skipping: [compute2] TASK [privazio.vdc.cloudstack-node : Configure libvirtd defaults] ************** skipping: [compute1] skipping: [compute2] TASK [privazio.vdc.cloudstack-node : Start Cloudstack node services] *********** ok: [compute1] => (item=libvirtd) ok: [compute2] => (item=libvirtd)And it turns out the cluster is fully functional.
I guess the installation documentation is out of date, at least for Ubuntu, with initial libvirt configuration fully performed by ACS.
@andrijapanicsb helped me before with another similar issue related to Firewall rules, where the documentation lists all the required rules but some rules for the link-local came from somewhere else... when placing the firewall under configuration management a similar problem came up.
@DaanHoogland I am following up with this issue.
@weizhouapache the changes that you mention are they triggered when the host is added?
I think we should include a mention on the documentation that the installation, but I am not sure what to, perhaps:
Please note that Cloudstack will automatically perform basic configuration of the agent and libvirt when the host is added. This is relevant if you are planning to automate the deployment of your KVM hosts.
@DaanHoogland I am following up with this issue.
@weizhouapache the changes that you mention are they triggered when the host is added?
@rvalle yes. it is part of cloudstack-setup-agent. more details at
https://github.com/apache/cloudstack/blob/master/python/lib/cloudutils/syscfg.py
https://github.com/apache/cloudstack/blob/master/python/lib/cloudutils/serviceConfig.pyIf there are two physical networks, you have to configure cloudbr0 and cloudbr1 manually, as it only configures the cloudbr0.
It does not work for ubuntu 20.04I think we should include a mention on the documentation that the installation, but I am not sure what to, perhaps:
Please note that Cloudstack will automatically perform basic configuration of the agent and libvirt when the host is added. This is relevant if you are planning to automate the deployment of your KVM hosts.
@rvalle wil you send a PR to the docs repo?
@DaanHoogland yes, I will do.
Reacted by dahnclosing this @rvalle
@DaanHoogland sorry for the delay, I was implementing the new inventory plugin for ansible modules.
Can you point me where the documentation source is?
OK I see is a different project...
better late than never... it surprises me to be the #1 pull request,
@DaanHoogland is this supposed to be how you address doc changes?@rvalle you created a pull request to your own fork of the repo.
thanks! no idea how it happened. first time I edit a file inside github.

ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 18.04
SUMMARY
According to the documentation it is admins responsibility to configure libvirt and qemu, I have written Ansible playbooks to do so. However, I believe the agent is also configuring them, now ansible and cloudstack agent compete for changing those files.
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS