You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "ffslcschools (via GitHub)" <gi...@apache.org> on 2024/10/28 10:02:38 UTC

[D] Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" [cloudstack]

GitHub user ffslcschools created a discussion: Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)"

<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->

##### ISSUE TYPE
 * Bug Report

##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Host agent processing script.
~~~

##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->

~~~
CloudStack 4.19.1.1
~~~

##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
-->
Advanced networking

##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

##### SUMMARY
<!-- Explain the problem/feature briefly -->
When adding a kvm host to Cloudstack, the agent configuration automatically adds the option libvirtd_opts='-l' to /etc/default/libvirtd. This creates failures for live migrations between cluster hosts. Documentation here https://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html is correct, stating that Ubuntu 20.04 and newer should use the option LIBVIRTD_ARGS="--listen".
The documentation is confusing in that it seems to tell you to make these changes manually, but the host provisioning process modifies all of the files referenced.

##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.

For new features, show how the feature would be used.
-->
Simply adding a host via the web interface will do this at least when the host os version is Ubuntu 24.04.1 LTS.

<!-- Paste example playbooks or commands between quotes below -->
~~~

~~~

<!-- You can also paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->

~~~
The proper existing settings to be uncommented or at least added to the end of the config files as the documentation states.
~~~

##### ACTUAL RESULTS
<!-- What actually happened? -->
Agent configuration process automatically adds the option libvirtd_opts='-l' to /etc/default/libvirtd when the os version is newer than 20.04.
<!-- Paste verbatim command output between quotes below -->
~~~

~~~


GitHub link: https://github.com/apache/cloudstack/discussions/9864

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)"

Good !

GitHub link: https://github.com/apache/cloudstack/discussions/9864#discussioncomment-11333129

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" [cloudstack]

Posted by "bwcxyk (via GitHub)" <gi...@apache.org>.
GitHub user bwcxyk added a comment to the discussion: Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)"

After using LIBVIRTD_ARGS=‘--listen’ option on Ubuntu22, libvirtd does not start. After running `systemctl mask libvirtd.socket libvirtd-ro.socket libvirtd-admin.socket libvirtd-tls.socket libvirtd-tcp.socket` libvirtd can be started.

GitHub link: https://github.com/apache/cloudstack/discussions/9864#discussioncomment-11332385

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" [cloudstack]

Posted by "ffslcschools (via GitHub)" <gi...@apache.org>.
GitHub user ffslcschools closed a discussion: Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)"

<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->

##### ISSUE TYPE
 * Bug Report

##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Host agent processing script.
~~~

##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->

~~~
CloudStack 4.19.1.1
~~~

##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
-->
Advanced networking

##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

##### SUMMARY
<!-- Explain the problem/feature briefly -->
When adding a kvm host to Cloudstack, the agent configuration automatically adds the option libvirtd_opts='-l' to /etc/default/libvirtd. This creates failures for live migrations between cluster hosts. Documentation here https://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html is correct, stating that Ubuntu 20.04 and newer should use the option LIBVIRTD_ARGS="--listen".
The documentation is confusing in that it seems to tell you to make these changes manually, but the host provisioning process modifies all of the files referenced.

##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.

For new features, show how the feature would be used.
-->
Simply adding a host via the web interface will do this at least when the host os version is Ubuntu 24.04.1 LTS.

<!-- Paste example playbooks or commands between quotes below -->
~~~

~~~

<!-- You can also paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->

~~~
The proper existing settings to be uncommented or at least added to the end of the config files as the documentation states.
~~~

##### ACTUAL RESULTS
<!-- What actually happened? -->
Agent configuration process automatically adds the option libvirtd_opts='-l' to /etc/default/libvirtd when the os version is newer than 20.04.
<!-- Paste verbatim command output between quotes below -->
~~~

~~~


GitHub link: https://github.com/apache/cloudstack/discussions/9864

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)"

If network/bridges have already been configured, ACS will not configure the host again.

The automatic configuration on kvm host is out of date, it does not work on some new distributions, due to libvirtd/netplan/nmcli etc.
Users are suggested to configure libvirtd, linux bridge or ovs manually before adding the host to cloudstack. 

GitHub link: https://github.com/apache/cloudstack/discussions/9864#discussioncomment-11073042

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)"

> Is there a way to disable the automatic configuration during host provisioning?

@ffslcschools 
yes
if the network (linux bridges) have been configured correctly, the node is considered as preconfigured, ACS will not reconfigure it

GitHub link: https://github.com/apache/cloudstack/discussions/9864#discussioncomment-11073044

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" [cloudstack]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
GitHub user boring-cyborg[bot] added a comment to the discussion: Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)"

Thanks for opening your first issue here! Be sure to follow the issue template!


GitHub link: https://github.com/apache/cloudstack/discussions/9864#discussioncomment-11073041

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)" [cloudstack]

Posted by "ffslcschools (via GitHub)" <gi...@apache.org>.
GitHub user ffslcschools added a comment to the discussion: Add host process results in incorrect libvirtd settings for Ubuntu VERSION="24.04.1 LTS (Noble Numbat)"

Is there a way to disable the automatic configuration during host provisioning?

GitHub link: https://github.com/apache/cloudstack/discussions/9864#discussioncomment-11073043

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org