You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by CYBER PUNK <br...@gmail.com> on 2022/09/03 05:29:21 UTC

issue connecting cloudstack v4.17.0.1 to xcp-ng vs 8.2.1

hello everyone

im testing out cloudstack and am having issues importing a fresh install of
xcpng into my cloudstack environment  the errors iget when tailing the
server log file are as follows

com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
status with event AgentDisconnected for host 4, mangement server id is
218056027868365,Unable to transition to a new state from Creating via
AgentDisconnected

and

2022-09-03 05:23:04,871 WARN  [c.c.r.ResourceManagerImpl]
(AgentTaskPool-5:ctx-4621c5b0) (logid:1505281a) Unable to connect due to
com.cloud.exception.ConnectionException: Reinitialize agent after setup.

but before then i would get errors related to storage that it can not find
any on the network but individually and globally ive enabled local storage.

Im still new to cloudstack so please let me know if you need more detail

Re: issue connecting cloudstack v4.17.0.1 to xcp-ng vs 8.2.1

Posted by CYBER PUNK <br...@gmail.com>.
Hello everyone

I found out the issue I was having and it was my fault. Sorry

The issue I was having was the host would not connect so I went back to
basics.

I created a XCP-ng vm and a fresh install of cloudstack. I created a basic
zone and went through all the steps normally.
Since I was working with XCP-ng a fork of Citrix Hypervisor, I had to match
the name of the networks letter for letter and space by space.
I knew I had to do that thanks to the shape blue youtube video on how to
add  XCP-ng to cloudstack.

The errors I encountered was due to me not setting up the storage
incorrectly and enabling the zone to early
With the storage i enabled local storage on the zone then used XenOrchestra
and XCP-ng center to get the uuid of the local storage and
changed the name of the storage to the uuid.SO when adding primary storage
in the Zone creation i used the Presetup option then addid the uuid
to the name and SR name-label.

Now with the network like i said i had to set the xenmanagmnet label to the
network name created by XCP-ng. The network label is the network name e.g.
Network 0.
I thought that would be it but when i continued with the creation of the
Zone i tailed the logs of the management server with

tail -f /var/log/cloudstack/management/management-server.log

The error I got was that the Guest network label was not specified on
Network 0. The names mached in the label and in the XCP-ng center and cloud
stack so after going through the adding a Xenserver to cloudstack i came
across this command

xe network-param-set uuid=NETWORKUUID name-label=Network 0

Where the NETWORKUUID uuid is derived from the command line input

xe network-list

and the name-label is the network name eg Network 0

after running the "xe network-param-set uuid=NETWORKUUID name-label=Network
0" command with the correct uuid value and the correct network name
the zone setup still failed BUT when I exited the Zone setup the host and
zone were added and the host was up. I failed at first as i changed the
name on Xen from Network 0 to Guest but once i understood what happened i
changed it back with the same command just substituted Guest with Network 0

From what I can tell and correct me if I'm wrong the label must be
specified in cloudstack and then in the command stated specified on the
xenserver.

So label specified in cloudstack and in xcpng

That's my story.
Thanks

Brodie


On Sat, Sep 3, 2022 at 7:29 AM CYBER PUNK <br...@gmail.com> wrote:

> hello everyone
>
> im testing out cloudstack and am having issues importing a fresh install
> of xcpng into my cloudstack environment  the errors iget when tailing the
> server log file are as follows
>
> com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
> status with event AgentDisconnected for host 4, mangement server id is
> 218056027868365,Unable to transition to a new state from Creating via
> AgentDisconnected
>
> and
>
> 2022-09-03 05:23:04,871 WARN  [c.c.r.ResourceManagerImpl]
> (AgentTaskPool-5:ctx-4621c5b0) (logid:1505281a) Unable to connect due to
> com.cloud.exception.ConnectionException: Reinitialize agent after setup.
>
> but before then i would get errors related to storage that it can not find
> any on the network but individually and globally ive enabled local storage.
>
> Im still new to cloudstack so please let me know if you need more detail
>
>
>