You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/04/29 12:43:49 UTC

[GitHub] [cloudstack] rvalle opened a new issue #4050: Quick Guide Install: Cannot Add host

rvalle opened a new issue #4050:
URL: https://github.com/apache/cloudstack/issues/4050


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    * Documentation Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   KVM Agent/Host
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   4.13 / Latest
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   CentOS Linux release 7.8.2003 (Core)
   
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### 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.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   Follow the quick install guide, add a kvm host as explained:
   ~~~
   
   Quick install [guide](http://docs.cloudstack.apache.org/projects/archived-cloudstack-installation/en/4.11/qig.html)
   
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Host should be added to the UI
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   The host addition process is failing. Looks like the Agent and Libvirtd cannot talk as per exception:
   
   2020-04-29 12:25:32,753 ERROR [kvm.resource.LibvirtConnection] (AgentShutdownThread:null) (logid:) Connection with libvirtd is broken: invalid connection pointer in virConnectGetVersion
   
   It also looks like my changes to /etc/libvirt/libvirt.conf are been wiped out each time I try to add the host.
   
   I wonder if the quick install guide is up-to-date or the Agent is now trying to do the libvirt configuration itself. 
   
   ~~~
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rvalle commented on issue #4050: Quick Guide Install: Cannot Add host

Posted by GitBox <gi...@apache.org>.
rvalle commented on issue #4050:
URL: https://github.com/apache/cloudstack/issues/4050#issuecomment-760208030


   Yes it is now working.
   
   I think my problem was related to firewall. My firewall policy was to close all, and only add the rules specified in the documentation, but it was not enough, or there was conflict between my firewall rules and rules managed by the agent.
   
   are you having this problem too?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] lizeyun commented on issue #4050: Quick Guide Install: Cannot Add host

Posted by GitBox <gi...@apache.org>.
lizeyun commented on issue #4050:
URL: https://github.com/apache/cloudstack/issues/4050#issuecomment-760124246


   Have you solve this problem


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rvalle commented on issue #4050: Quick Guide Install: Cannot Add host

Posted by GitBox <gi...@apache.org>.
rvalle commented on issue #4050:
URL: https://github.com/apache/cloudstack/issues/4050#issuecomment-621188981


   On the manager I can see these logs, which suggest adding the host workied:
   
   ```
   2020-04-29 12:58:32,191 DEBUG [c.c.u.s.SSHCmdHelper] (qtp504527234-11:ctx-0c0f0ea3 ctx-a68ce474) (logid:ac899dd7) SSH command: cloudstack-setup-agent  -m 10.71.0.254 -z 1 -p 1 -c 1 -g ef861baa-8f7c-38fe-9b6a-981df48ac7ac -a -s  --pubNic=cloudbr0 --prvNic=cloudbr0 --guestNic=cloudbr0 --hypervisor=kvm
   SSH command output:Starting to configure your system:
   Configure SElinux ...         [OK]
   Configure Network ...         [OK]
   Configure Libvirt ...         [OK]
   Configure Firewall ...        [OK]
   Configure Nfs ...             [OK]
   Configure cloudAgent ...      [OK]
   CloudStack Agent setup is done!
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rvalle commented on issue #4050: Quick Guide Install: Cannot Add host

Posted by GitBox <gi...@apache.org>.
rvalle commented on issue #4050:
URL: https://github.com/apache/cloudstack/issues/4050#issuecomment-621227326


   Ok, I just noticed issue #3509
   
   This seems to be the same thing I am experimenting. And there is a bunch of other users there.
   
   I still have not worked out my problem but the consensus there seems to be that the error message "invalid connection pointer in virConnectGetVersion"... can be discarded
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rvalle commented on issue #4050: Quick Guide Install: Cannot Add host

Posted by GitBox <gi...@apache.org>.
rvalle commented on issue #4050:
URL: https://github.com/apache/cloudstack/issues/4050#issuecomment-621250613


   I can see that the agent is not capable to connect to libvirt
   I can also see that the Agent confiruration has modified my network setup in ways that I did not expect or anticipate, has created a bridge on eth0 despite me having a dedicated interface for the cloud... that does not seem to be in use.
   
   I guess my setup is not just like in the quick install guide, and also cloudstack is fairly intrusive in the network configuraiton. I need to better understand how it owrks. I leave this log in case anybody else finds the same situation.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org