You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Joshua Schaeffer <js...@harmonywave.com> on 2020/09/08 21:52:47 UTC

Unable to build first zone

I'm having trouble getting my first zone to build. I'm going through "Add Zone" wizard and choosing "Advanced". After providing all the data I try to build the zone and wizard errors out on "Creating pod". It also says something went wrong, but gives no additional information:



If I click on "Fix errors" it takes me to the pod setup page, but i'm not sure if anything is actually wrong. If I click on "Save changes" it just does the same thing.



I'm not really seeing anything obvious in the logs either, but would be happy to provide them.

Thanks,
Joshua Schaeffer


Re: Unable to build first zone

Posted by Joshua Schaeffer <js...@harmonywave.com>.
On 9/11/20 9:49 AM, Pearl d'Silva wrote:
> Hi Joshua,
>
> Could you try setting the following Global setting value ca.plugin.root.auth.strictness to false and restart the services.
>
> Thanks,
> Pearl
> ________________________________
>
Thanks for everyone's help, I was able to the host after changing this.

-- 
Thanks,
Joshua Schaeffer


Re: Unable to build first zone

Posted by Pearl d'Silva <pe...@shapeblue.com>.
Hi Joshua,

Could you try setting the following Global setting value ca.plugin.root.auth.strictness to false and restart the services.

Thanks,
Pearl
________________________________
From: Joshua Schaeffer <js...@harmonywave.com>
Sent: Friday, September 11, 2020 8:24 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to build first zone



On 9/10/20 9:29 AM, David Jumani wrote:
> Glad to hear it!
>
> The reason for the next error could be when bridges are not configured on the host. Could you check the bridge config as mentioned here :
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.11/hypervisor/kvm.html
>
>
> Thanks,
> David
> ________________________________
>
Thanks David for all your help, my bridge configurations on the compute host were incorrect. I think I've fixed those.

I am getting an SSL error now when trying to connect to to the management server:

2020-09-11 14:43:22,606 INFO  [utils.nio.NioClient] (main:null) (logid:) Connecting to 10.2.88.3:8250
2020-09-11 14:43:22,618 INFO  [utils.nio.Link] (main:null) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties
2020-09-11 14:43:22,730 WARN  [utils.nio.Link] (main:null) (logid:) Failed to load keystore, using trust all manager
2020-09-11 14:43:23,577 ERROR [utils.nio.Link] (main:null) (logid:) SSL error caught during unwrap data: Received fatal alert: bad_certificate, for local address=/10.2.20.129:58948, remote address=/10.2.88.3:8250. The client may have invalid ca-certificates.
2020-09-11 14:43:23,581 ERROR [utils.nio.NioClient] (main:null) (logid:) SSL Handshake failed while connecting to host: 10.2.88.3 port: 8250
2020-09-11 14:43:23,585 ERROR [utils.nio.NioConnection] (main:null) (logid:) Unable to initialize the threads.
java.io.IOException: SSL Handshake failed while connecting to host: 10.2.88.3 port: 8250
    at com.cloud.utils.nio.NioClient.init(NioClient.java:67)
    at com.cloud.utils.nio.NioConnection.start(NioConnection.java:95)
    at com.cloud.agent.Agent.start(Agent.java:282)
    at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:455)
    at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:422)
    at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:406)
    at com.cloud.agent.AgentShell.start(AgentShell.java:512)
    at com.cloud.agent.AgentShell.main(AgentShell.java:547)
2020-09-11 14:43:23,595 WARN  [cloud.agent.Agent] (main:null) (logid:) NIO Connection Exception  com.cloud.utils.exception.NioConnectionException: SSL Handshake failed while connecting to host: 10.2.88.3 port: 8250
2020-09-11 14:43:23,595 INFO  [cloud.agent.Agent] (main:null) (logid:) Attempted to connect to the server, but received an unexpected exception, trying again...

I can see that my management server is listening on port 8250, but I don't see any keystores under /etc/cloudstack/management on the management server or /etc/cloudstack/agent on the compute host. I reviewed the docs here [1] which talks about running the keystore-setup and keystore-cert-import scripts. Should I be configuring my own certificate chain before trying to connect hosts or should this have been setup automatically?

[1] https://docs.cloudstack.apache.org/en/4.14.0.0/adminguide/hosts.html#security

--
Thanks,
Joshua Schaeffer


pearl.dsilva@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue
  
 


Re: Unable to build first zone

Posted by Joshua Schaeffer <js...@harmonywave.com>.

On 9/10/20 9:29 AM, David Jumani wrote:
> Glad to hear it!
>
> The reason for the next error could be when bridges are not configured on the host. Could you check the bridge config as mentioned here :
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.11/hypervisor/kvm.html
>
>
> Thanks,
> David
> ________________________________
>
Thanks David for all your help, my bridge configurations on the compute host were incorrect. I think I've fixed those.

I am getting an SSL error now when trying to connect to to the management server:

2020-09-11 14:43:22,606 INFO  [utils.nio.NioClient] (main:null) (logid:) Connecting to 10.2.88.3:8250
2020-09-11 14:43:22,618 INFO  [utils.nio.Link] (main:null) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties
2020-09-11 14:43:22,730 WARN  [utils.nio.Link] (main:null) (logid:) Failed to load keystore, using trust all manager
2020-09-11 14:43:23,577 ERROR [utils.nio.Link] (main:null) (logid:) SSL error caught during unwrap data: Received fatal alert: bad_certificate, for local address=/10.2.20.129:58948, remote address=/10.2.88.3:8250. The client may have invalid ca-certificates.
2020-09-11 14:43:23,581 ERROR [utils.nio.NioClient] (main:null) (logid:) SSL Handshake failed while connecting to host: 10.2.88.3 port: 8250
2020-09-11 14:43:23,585 ERROR [utils.nio.NioConnection] (main:null) (logid:) Unable to initialize the threads.
java.io.IOException: SSL Handshake failed while connecting to host: 10.2.88.3 port: 8250
    at com.cloud.utils.nio.NioClient.init(NioClient.java:67)
    at com.cloud.utils.nio.NioConnection.start(NioConnection.java:95)
    at com.cloud.agent.Agent.start(Agent.java:282)
    at com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:455)
    at com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:422)
    at com.cloud.agent.AgentShell.launchAgent(AgentShell.java:406)
    at com.cloud.agent.AgentShell.start(AgentShell.java:512)
    at com.cloud.agent.AgentShell.main(AgentShell.java:547)
2020-09-11 14:43:23,595 WARN  [cloud.agent.Agent] (main:null) (logid:) NIO Connection Exception  com.cloud.utils.exception.NioConnectionException: SSL Handshake failed while connecting to host: 10.2.88.3 port: 8250
2020-09-11 14:43:23,595 INFO  [cloud.agent.Agent] (main:null) (logid:) Attempted to connect to the server, but received an unexpected exception, trying again...

I can see that my management server is listening on port 8250, but I don't see any keystores under /etc/cloudstack/management on the management server or /etc/cloudstack/agent on the compute host. I reviewed the docs here [1] which talks about running the keystore-setup and keystore-cert-import scripts. Should I be configuring my own certificate chain before trying to connect hosts or should this have been setup automatically?

[1] https://docs.cloudstack.apache.org/en/4.14.0.0/adminguide/hosts.html#security

-- 
Thanks,
Joshua Schaeffer


Re: Unable to build first zone

Posted by David Jumani <Da...@shapeblue.com>.
Glad to hear it!

The reason for the next error could be when bridges are not configured on the host. Could you check the bridge config as mentioned here :
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.11/hypervisor/kvm.html


Thanks,
David
________________________________
From: Joshua Schaeffer <js...@harmonywave.com>
Sent: Thursday, September 10, 2020 8:50 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to build first zone

Hi Joshua,
> I don't think it's an issue trying to reach the gateway provided in the API
>
> Could you try and run the command via cloudmonkey ?
>
> cmk create pod zoneid=9d7004b7-c129-412c-8d8f-7f6f65319604 name=POD1 gateway=10.2.20.1 netmask=255.255.252.0 startip=10.2.21.65 endip=10.2.21.80
>
>
Okay, I figured out the first issue. The 504 error was because my load balancer was timing out before the pod creation finished. If I run the wizard directly on one of the controller nodes it gets past that step. I'll adjust the timeout settings in HAProxy. However, I'm getting a different error when it gets to the step to add the host. It is throwing an HTTP 530 now. I'm pretty sure it is because the agent is not running properly on the host. When I try to start the agent I get this:

2020-09-10 15:02:54,724 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Agent started
2020-09-10 15:02:54,748 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Implementation Version is 4.14.0.0
2020-09-10 15:02:54,757 INFO  [cloud.agent.AgentShell] (main:null) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
2020-09-10 15:02:54,824 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to using properties file for storage
2020-09-10 15:02:54,828 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to the constant time backoff algorithm
2020-09-10 15:02:54,901 INFO  [cloud.utils.LogUtils] (main:null) (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2020-09-10 15:02:54,919 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Using default Java settings for IPv6 preference for agent connection
2020-09-10 15:02:55,061 INFO  [cloud.agent.Agent] (main:null) (logid:) id is
2020-09-10 15:02:55,066 WARN  [cloud.resource.ServerResourceBase] (main:null) (logid:) Nics are not specified in properties file/db, will try to autodiscover
2020-09-10 15:02:55,073 INFO  [cloud.resource.ServerResourceBase] (main:null) (logid:) Designating private to be nic bond-storage
2020-09-10 15:02:55,081 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) uefi properties file not found due to: Unable to find file uefi.properties.
2020-09-10 15:02:55,155 INFO  [kvm.resource.LibvirtConnection] (main:null) (logid:) No existing libvirtd connection found. Opening a new one
2020-09-10 15:02:55,659 INFO  [org.reflections.Reflections] (main:null) (logid:) Reflections took 234 ms to scan 1 urls, producing 9 keys and 11 values
2020-09-10 15:02:55,701 INFO  [kvm.resource.LibvirtComputingResource] (main:null) (logid:) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2020-09-10 15:02:55,718 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) Failed to get private nic name
2020-09-10 15:02:55,719 ERROR [cloud.agent.AgentShell] (main:null) (logid:) Unable to start agent: Failed to get private nic name

I just turned on DEBUG and am going through those logs now. Should I manually be setting the public.network.device and private.network.device? If so, what should these be set to? I'm not seeing a lot of references to these settings in the documentation.

--
Thanks,
Joshua Schaeffer


David.Jumani@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue
  
 


Re: Unable to build first zone

Posted by Joshua Schaeffer <js...@harmonywave.com>.
Hi Joshua,
> I don't think it's an issue trying to reach the gateway provided in the API
>
> Could you try and run the command via cloudmonkey ?
>
> cmk create pod zoneid=9d7004b7-c129-412c-8d8f-7f6f65319604 name=POD1 gateway=10.2.20.1 netmask=255.255.252.0 startip=10.2.21.65 endip=10.2.21.80
>
>
Okay, I figured out the first issue. The 504 error was because my load balancer was timing out before the pod creation finished. If I run the wizard directly on one of the controller nodes it gets past that step. I'll adjust the timeout settings in HAProxy. However, I'm getting a different error when it gets to the step to add the host. It is throwing an HTTP 530 now. I'm pretty sure it is because the agent is not running properly on the host. When I try to start the agent I get this:

2020-09-10 15:02:54,724 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Agent started
2020-09-10 15:02:54,748 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Implementation Version is 4.14.0.0
2020-09-10 15:02:54,757 INFO  [cloud.agent.AgentShell] (main:null) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
2020-09-10 15:02:54,824 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to using properties file for storage
2020-09-10 15:02:54,828 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to the constant time backoff algorithm
2020-09-10 15:02:54,901 INFO  [cloud.utils.LogUtils] (main:null) (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2020-09-10 15:02:54,919 INFO  [cloud.agent.AgentShell] (main:null) (logid:) Using default Java settings for IPv6 preference for agent connection
2020-09-10 15:02:55,061 INFO  [cloud.agent.Agent] (main:null) (logid:) id is
2020-09-10 15:02:55,066 WARN  [cloud.resource.ServerResourceBase] (main:null) (logid:) Nics are not specified in properties file/db, will try to autodiscover
2020-09-10 15:02:55,073 INFO  [cloud.resource.ServerResourceBase] (main:null) (logid:) Designating private to be nic bond-storage
2020-09-10 15:02:55,081 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) uefi properties file not found due to: Unable to find file uefi.properties.
2020-09-10 15:02:55,155 INFO  [kvm.resource.LibvirtConnection] (main:null) (logid:) No existing libvirtd connection found. Opening a new one
2020-09-10 15:02:55,659 INFO  [org.reflections.Reflections] (main:null) (logid:) Reflections took 234 ms to scan 1 urls, producing 9 keys and 11 values
2020-09-10 15:02:55,701 INFO  [kvm.resource.LibvirtComputingResource] (main:null) (logid:) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2020-09-10 15:02:55,718 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) Failed to get private nic name
2020-09-10 15:02:55,719 ERROR [cloud.agent.AgentShell] (main:null) (logid:) Unable to start agent: Failed to get private nic name

I just turned on DEBUG and am going through those logs now. Should I manually be setting the public.network.device and private.network.device? If so, what should these be set to? I'm not seeing a lot of references to these settings in the documentation.

-- 
Thanks,
Joshua Schaeffer


Re: Unable to build first zone

Posted by David Jumani <Da...@shapeblue.com>.
Hi Joshua,

I don't think it's an issue trying to reach the gateway provided in the API

Could you try and run the command via cloudmonkey ?

cmk create pod zoneid=9d7004b7-c129-412c-8d8f-7f6f65319604 name=POD1 gateway=10.2.20.1 netmask=255.255.252.0 startip=10.2.21.65 endip=10.2.21.80

Thanks,
David
________________________________
From: Joshua Schaeffer <js...@harmonywave.com>
Sent: Thursday, September 10, 2020 12:11 AM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: Unable to build first zone



On 9/9/20 12:17 PM, Joshua Schaeffer wrote:
>>>> Perhaps you could check the API being called, via the networks tab in the
>>>> browser developer tools. The failed request generally responds with whats
>>>> wrong.
>>>> Another reason it could fail is a missing or invalid parameter. It doesn't
>>>> throw an exception in the logs but is more of a one-liner like this :
>>>>
>>>> 2020-09-09 01:53:00,858 INFO  [c.c.a.ApiServer]
>>>> (qtp1136419747-3235:ctx-be37c54f ctx-5a9ade88) (logid:ec603079) Unable to
>>>> execute API command createpod due to missing parameter name
>>>>
>>>> The logs would be helpful.
>>>>
>>>> Thanks,
>>>> David
>>>> ________________________________
>>>>
>>>>
David, sorry I didn't realize you meant to get the API request from the browser. Yes this gives me more information. When it is trying to create the pod it returns a 504 gateway timeout response to this API call:

http://bllcloudlb01.harmonywave.cloud/client/api/?zoneId=9d7004b7-c129-412c-8d8f-7f6f65319604&name=POD1&gateway=10.2.20.1&netmask=255.255.252.0&startIp=10.2.21.65&endIp=10.2.21.80&command=createPod&response=json

That network is reachable from the controller node:

jschaeffer@bllcloudctl01:~$ ping -c 4 10.2.20.1
PING 10.2.20.1 (10.2.20.1) 56(84) bytes of data.
64 bytes from 10.2.20.1: icmp_seq=1 ttl=255 time=14.4 ms
64 bytes from 10.2.20.1: icmp_seq=2 ttl=255 time=22.2 ms
64 bytes from 10.2.20.1: icmp_seq=3 ttl=255 time=63.2 ms
64 bytes from 10.2.20.1: icmp_seq=4 ttl=255 time=49.6 ms

--- 10.2.20.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 14.367/37.332/63.156/19.841 ms

--
Thanks,
Joshua Schaeffer


David.Jumani@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue
  
 


Re: Unable to build first zone

Posted by Joshua Schaeffer <js...@harmonywave.com>.

On 9/9/20 12:17 PM, Joshua Schaeffer wrote:
>>>> Perhaps you could check the API being called, via the networks tab in the
>>>> browser developer tools. The failed request generally responds with whats
>>>> wrong.
>>>> Another reason it could fail is a missing or invalid parameter. It doesn't
>>>> throw an exception in the logs but is more of a one-liner like this :
>>>>
>>>> 2020-09-09 01:53:00,858 INFO  [c.c.a.ApiServer]
>>>> (qtp1136419747-3235:ctx-be37c54f ctx-5a9ade88) (logid:ec603079) Unable to
>>>> execute API command createpod due to missing parameter name
>>>>
>>>> The logs would be helpful.
>>>>
>>>> Thanks,
>>>> David
>>>> ________________________________
>>>>
>>>>
David, sorry I didn't realize you meant to get the API request from the browser. Yes this gives me more information. When it is trying to create the pod it returns a 504 gateway timeout response to this API call:

http://bllcloudlb01.harmonywave.cloud/client/api/?zoneId=9d7004b7-c129-412c-8d8f-7f6f65319604&name=POD1&gateway=10.2.20.1&netmask=255.255.252.0&startIp=10.2.21.65&endIp=10.2.21.80&command=createPod&response=json

That network is reachable from the controller node:

jschaeffer@bllcloudctl01:~$ ping -c 4 10.2.20.1
PING 10.2.20.1 (10.2.20.1) 56(84) bytes of data.
64 bytes from 10.2.20.1: icmp_seq=1 ttl=255 time=14.4 ms
64 bytes from 10.2.20.1: icmp_seq=2 ttl=255 time=22.2 ms
64 bytes from 10.2.20.1: icmp_seq=3 ttl=255 time=63.2 ms
64 bytes from 10.2.20.1: icmp_seq=4 ttl=255 time=49.6 ms

--- 10.2.20.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 14.367/37.332/63.156/19.841 ms

-- 
Thanks,
Joshua Schaeffer


Re: Unable to build first zone

Posted by Joshua Schaeffer <js...@harmonywave.com>.
>>> Perhaps you could check the API being called, via the networks tab in the
>>> browser developer tools. The failed request generally responds with whats
>>> wrong.
>>> Another reason it could fail is a missing or invalid parameter. It doesn't
>>> throw an exception in the logs but is more of a one-liner like this :
>>>
>>> 2020-09-09 01:53:00,858 INFO  [c.c.a.ApiServer]
>>> (qtp1136419747-3235:ctx-be37c54f ctx-5a9ade88) (logid:ec603079) Unable to
>>> execute API command createpod due to missing parameter name
>>>
>>> The logs would be helpful.
>>>
>>> Thanks,
>>> David
>>> ________________________________
>>>
>>>
I tried creating the zone again and this is what I'm seeing in the API log. The UI reported starting the pod creation around 2020 05:58:44 PM UTC and it reported the error around 2020 05:59:14 PM UTC

2020-09-09 17:58:43,789 INFO  [a.c.c.a.ApiServer] (qtp1984975621-521:ctx-6447166c ctx-ef2b62b9) (logid:1b2dca03) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET jobId=e1490fe7-aabd-436c-ad0d-7776a374de79&command=queryAsyncJobResult&response=json 200 {"queryasyncjobresultresponse":{"accountid":"98b877a6-e0b9-11ea-b3a7-525400cadf4e","userid":"98bb271a-e0b9-11ea-b3a7-525400cadf4e","cmd":"org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"networkserviceprovider":{"name":"InternalLbVm","physicalnetworkid":"7b1eff21-425e-451a-89e2-94f7c2128f9e","state":"Enabled","id":"6c25618d-b64e-4a6a-89a9-b30ad1a42f72","servicelist":["Lb"],"canenableindividualservice":true}},"created":"2020-09-09T17:58:42+0000","completed":"2020-09-09T17:58:42+0000","jobid":"e1490fe7-aabd-436c-ad0d-7776a374de79"}}

2020-09-09 17:58:43,848 INFO  [a.c.c.a.ApiServer] (qtp1984975621-474:ctx-754fb2aa ctx-d89d3c6b) (logid:493ef4f9) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET jobId=dcd1e698-1134-4cc9-8d24-291a1884f9f2&command=queryAsyncJobResult&response=json 200
{"queryasyncjobresultresponse":{"accountid":"98b877a6-e0b9-11ea-b3a7-525400cadf4e","userid":"98bb271a-e0b9-11ea-b3a7-525400cadf4e","cmd":"org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"networkserviceprovider":{"name":"VpcVirtualRouter","physicalnetworkid":"7b1eff21-425e-451a-89e2-94f7c2128f9e","state":"Enabled","id":"b781fe6e-57ae-45b8-9a08-575f616d2af5","servicelist":["Vpn","Dhcp","Dns","Gateway","Lb","SourceNat","StaticNat","PortForwarding","UserData"],"canenableindividualservice":true}},"created":"2020-09-09T17:58:42+0000","completed":"2020-09-09T17:58:43+0000","jobid":"dcd1e698-1134-4cc9-8d24-291a1884f9f2"}}

2020-09-09 18:00:17,323 INFO  [a.c.c.a.ApiServer] (qtp1984975621-499:ctx-57c32f54 ctx-57989bcd) (logid:76a262cc) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET name=sdn.ovs.controller&command=listConfigurations&response=json 200 {"listconfigurationsresponse":{"count":1,"configuration":[{"category":"Network","name":"sdn.ovs.controller.default.label","value":"cloud-public","description":"Default network label to be used when fetching interface for GRE endpoints","isdynamic":false}]}}

2020-09-09 18:00:22,155 INFO  [a.c.c.a.ApiServer] (qtp1984975621-476:ctx-e8338538 ctx-0e36fba5) (logid:2223a11e) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET zoneId=0bf0afee-1bce-4840-9283-e090ccdefdb9&name=POD1&gateway=10.2.20.1&netmask=255.255.252.0&startIp=10.2.21.65&endIp=10.2.21.80&command=createPod&response=json 200 {"createpodresponse":{"pod":{"id":"fcb7d090-d29b-4bab-8b6d-ca7db008e387","name":"POD1","zoneid":"0bf0afee-1bce-4840-9283-e090ccdefdb9","zonename":"BL1","gateway":"10.2.20.1","netmask":"255.255.252.0","startip":["10.2.21.65"],"endip":["10.2.21.80"],"forsystemvms":["0"],"vlanid":["vlan://untagged"],"allocationstate":"Enabled"}}}
2020-09-09 18:00:31,824 INFO  [a.c.c.a.ApiServer] (qtp1984975621-512:ctx-b0c3fb79 ctx-f9d2b41a) (logid:28023bad) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET listall=true&page=1&pagesize=10&command=listSystemVms&response=json 200 {"listsystemvmsresponse":{}}

2020-09-09 18:00:40,222 INFO  [a.c.c.a.ApiServer] (qtp1984975621-476:ctx-4b638a90 ctx-d49c860a) (logid:fbffa4f6) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET command=listZones&response=json 200 {"listzonesresponse":{"count":1,"zone":[{"id":"0bf0afee-1bce-4840-9283-e090ccdefdb9","name":"BL1","dns1":"8.8.8.8","dns2":"8.8.4.4","ip6dns1":"2001:4860:4860::8888","ip6dns2":"2001:4860:4860::8888","internaldns1":"10.2.81.1","internaldns2":"10.2.81.2","guestcidraddress":"192.168.0.0/24","networktype":"Advanced","securitygroupsenabled":false,"allocationstate":"Disabled","zonetoken":"4f4f38e0-1f72-3a59-b15b-3d7e7389cec4","dhcpprovider":"VirtualRouter","localstorageenabled":false,"tags":[]}]}}

2020-09-09 18:00:40,272 INFO  [a.c.c.a.ApiServer] (qtp1984975621-474:ctx-222c137e ctx-89a6547d) (logid:44f5fcac) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET page=1&pagesize=6&listall=true&command=listEvents&response=json 200 {"listeventsresponse":{"count":375,"event":[{"id":"0bfee4b7-2b72-414a-a418-be7ab4883756","username":"admin","type":"SERVICE.PROVIDER.UPDATE","level":"INFO","description":"Updating physical network ServiceProvider: 106","account":"system","domainid":"76a00e1c-daa0-11ea-b3a7-525400cadf4e","domain":"ROOT","created":"2020-09-09T17:58:42+0000","state":"Scheduled"},{"id":"2c8d237a-b85d-4776-bc65-7c4b15261d16","username":"admin","type":"SERVICE.PROVIDER.UPDATE","level":"INFO","description":"Updating physical network ServiceProvider:
108","account":"system","domainid":"76a00e1c-daa0-11ea-b3a7-525400cadf4e","domain":"ROOT","created":"2020-09-09T17:58:42+0000","state":"Scheduled"},{"id":"762a9b71-43d4-48fa-ac90-fe0dfbb3628b","username":"admin","type":"SERVICE.PROVIDER.UPDATE","level":"INFO","description":"Updating physical network ServiceProvider","account":"admin","domainid":"76a00e1c-daa0-11ea-b3a7-525400cadf4e","domain":"ROOT","created":"2020-09-09T17:58:42+0000","state":"Started","parentid":"2c8d237a-b85d-4776-bc65-7c4b15261d16"},{"id":"c6c59730-d0c0-428d-a4a0-99a662751318","username":"admin","type":"SERVICE.PROVIDER.UPDATE","level":"INFO","description":"Updating physical network
ServiceProvider","account":"admin","domainid":"76a00e1c-daa0-11ea-b3a7-525400cadf4e","domain":"ROOT","created":"2020-09-09T17:58:42+0000","state":"Started","parentid":"0bfee4b7-2b72-414a-a418-be7ab4883756"},{"id":"30e4bcf6-df08-402e-8e56-df9eaffbf001","username":"admin","type":"SERVICE.PROVIDER.UPDATE","level":"INFO","description":"Successfully completed Updating physical network ServiceProvider","account":"admin","domainid":"76a00e1c-daa0-11ea-b3a7-525400cadf4e","domain":"ROOT","created":"2020-09-09T17:58:42+0000","state":"Completed","parentid":"2c8d237a-b85d-4776-bc65-7c4b15261d16"},{"id":"add1db88-bd07-45f5-91ed-ec5e12ad2c78","username":"admin","type":"SERVICE.PROVIDER.UPDATE","level":"INFO","description":"Successfully completed Updating physical network ServiceProvider","account":"admin","domainid":"76a00e1c-daa0-11ea-b3a7-525400cadf4e","domain":"ROOT","created":"2020-09-09T17:58:42+0000","state":"Completed","parentid":"0bfee4b7-2b72-414a-a418-be7ab4883756"}]}}

2020-09-09 18:00:40,462 INFO  [a.c.c.a.ApiServer] (qtp1984975621-512:ctx-b76c3e22 ctx-f6908bc6) (logid:5265e7a5) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET zoneid=0bf0afee-1bce-4840-9283-e090ccdefdb9&fetchlatest=false&command=listCapacity&response=json 200 {"listcapacityresponse":{"count":3,"capacity":[{"type":2,"name":"STORAGE","zoneid":"0bf0afee-1bce-4840-9283-e090ccdefdb9","zonename":"BL1","capacityused":0,"capacitytotal":0,"percentused":"0"},{"type":6,"name":"SECONDARY_STORAGE","zoneid":"0bf0afee-1bce-4840-9283-e090ccdefdb9","zonename":"BL1","capacityused":0,"capacitytotal":0,"percentused":"0"},{"type":19,"name":"GPU","zoneid":"0bf0afee-1bce-4840-9283-e090ccdefdb9","zonename":"BL1","capacityused":0,"capacitytotal":0,"percentused":"0"}]}}

2020-09-09 18:00:43,610 INFO  [a.c.c.a.ApiServer] (qtp1984975621-499:ctx-25cca7c4 ctx-ef843394) (logid:8cee0b72) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET command=listInfrastructure&response=json 200 {"listinfrastructureresponse":{"infrastructure":{"zones":1,"pods":1,"clusters":0,"hosts":0,"storagepools":0,"imagestores":0,"systemvms":0,"routers":0,"ilbvms":0,"cpusockets":0,"managementservers":2,"alerts":7}}}

2020-09-09 18:00:49,710 INFO  [a.c.c.a.ApiServer] (qtp1984975621-512:ctx-8b1d1c63 ctx-6a8e54a6) (logid:34939e81) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET listall=true&page=1&pagesize=10&command=listZonesMetrics&response=json 200 {"listzonesmetricsresponse":{"count":1,"zone":[{"state":"Disabled","clusters":"0 / 0","cputotal":"0.00 Ghz","memorytotal":"0.00 GB","id":"0bf0afee-1bce-4840-9283-e090ccdefdb9","name":"BL1","dns1":"8.8.8.8","dns2":"8.8.4.4","ip6dns1":"2001:4860:4860::8888","ip6dns2":"2001:4860:4860::8888","internaldns1":"10.2.81.1","internaldns2":"10.2.81.2","guestcidraddress":"192.168.0.0/24","networktype":"Advanced","securitygroupsenabled":false,"allocationstate":"Disabled","zonetoken":"4f4f38e0-1f72-3a59-b15b-3d7e7389cec4","dhcpprovider":"VirtualRouter","localstorageenabled":false,"tags":[]}]}}

2020-09-09 18:00:57,136 INFO  [a.c.c.a.ApiServer] (qtp1984975621-499:ctx-53a62fb1 ctx-9c860007) (logid:0cd6a3a6) (userId=2 accountId=2 sessionId=node01xmngwypx9ttd196tkm74q241j13) 172.16.44.18 -- GET listall=true&page=1&pagesize=10&command=listManagementServers&response=json 200 {"listmanagementserversresponse":{"count":2,"managementserver":[{"id":"0c9c71a5-776f-4fad-be53-31a86ca6e18d","name":"bllcloudctl01.harmonywave.cloud","state":"Up","version":"4.14.0.0"},{"id":"642b3206-e131-4c20-be72-981dcb6dfafe","name":"bllcloudctl02.harmonywave.cloud","state":"Down","version":"4.14.0.0"}]}}

It looks like the pod is created successfully. When I exit the wizard I do see the pod listed in the infrastructure, but no system VM's are created. Is there a way to try and force the system VM's to be created/started to see if I can diagnose if there is a problem with them?

-- 
Thanks,
Joshua Schaeffer


Re: Unable to build first zone

Posted by Joshua Schaeffer <js...@harmonywave.com>.

On 9/8/20 8:21 PM, Hean Seng wrote:
> Try using primate to do . not the old interface
>
> On Wed, Sep 9, 2020 at 9:58 AM David Jumani <Da...@shapeblue.com>
> wrote:
>
>> Hi Joshua,
>>
>> Perhaps you could check the API being called, via the networks tab in the
>> browser developer tools. The failed request generally responds with whats
>> wrong.
>> Another reason it could fail is a missing or invalid parameter. It doesn't
>> throw an exception in the logs but is more of a one-liner like this :
>>
>> 2020-09-09 01:53:00,858 INFO  [c.c.a.ApiServer]
>> (qtp1136419747-3235:ctx-be37c54f ctx-5a9ade88) (logid:ec603079) Unable to
>> execute API command createpod due to missing parameter name
>>
>> The logs would be helpful.
>>
>> Thanks,
>> David
>> ________________________________
>>
Thanks I will try these.

-- 
Thanks,
Joshua Schaeffer


Re: Unable to build first zone

Posted by Hean Seng <he...@gmail.com>.
Try using primate to do . not the old interface

On Wed, Sep 9, 2020 at 9:58 AM David Jumani <Da...@shapeblue.com>
wrote:

> Hi Joshua,
>
> Perhaps you could check the API being called, via the networks tab in the
> browser developer tools. The failed request generally responds with whats
> wrong.
> Another reason it could fail is a missing or invalid parameter. It doesn't
> throw an exception in the logs but is more of a one-liner like this :
>
> 2020-09-09 01:53:00,858 INFO  [c.c.a.ApiServer]
> (qtp1136419747-3235:ctx-be37c54f ctx-5a9ade88) (logid:ec603079) Unable to
> execute API command createpod due to missing parameter name
>
> The logs would be helpful.
>
> Thanks,
> David
> ________________________________
> From: Joshua Schaeffer <js...@harmonywave.com>
> Sent: Wednesday, September 9, 2020 3:22 AM
> To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
> Subject: Unable to build first zone
>
> I'm having trouble getting my first zone to build. I'm going through "Add
> Zone" wizard and choosing "Advanced". After providing all the data I try to
> build the zone and wizard errors out on "Creating pod". It also says
> something went wrong, but gives no additional information:
>
>
>
> If I click on "Fix errors" it takes me to the pod setup page, but i'm not
> sure if anything is actually wrong. If I click on "Save changes" it just
> does the same thing.
>
>
>
> I'm not really seeing anything obvious in the logs either, but would be
> happy to provide them.
>
> Thanks,
> Joshua Schaeffer
>
>
> David.Jumani@shapeblue.com
> www.shapeblue.com
> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
> @shapeblue
>
>
>
>

-- 
Regards,
Hean Seng

Re: Unable to build first zone

Posted by David Jumani <Da...@shapeblue.com>.
Hi Joshua,

Perhaps you could check the API being called, via the networks tab in the browser developer tools. The failed request generally responds with whats wrong.
Another reason it could fail is a missing or invalid parameter. It doesn't throw an exception in the logs but is more of a one-liner like this :

2020-09-09 01:53:00,858 INFO  [c.c.a.ApiServer] (qtp1136419747-3235:ctx-be37c54f ctx-5a9ade88) (logid:ec603079) Unable to execute API command createpod due to missing parameter name

The logs would be helpful.

Thanks,
David
________________________________
From: Joshua Schaeffer <js...@harmonywave.com>
Sent: Wednesday, September 9, 2020 3:22 AM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Unable to build first zone

I'm having trouble getting my first zone to build. I'm going through "Add Zone" wizard and choosing "Advanced". After providing all the data I try to build the zone and wizard errors out on "Creating pod". It also says something went wrong, but gives no additional information:



If I click on "Fix errors" it takes me to the pod setup page, but i'm not sure if anything is actually wrong. If I click on "Save changes" it just does the same thing.



I'm not really seeing anything obvious in the logs either, but would be happy to provide them.

Thanks,
Joshua Schaeffer


David.Jumani@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue