cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vivek Kumar <vivek.ku...@indiqus.com.INVALID>
Subject Re: Not able to see Public IP Range
Date Wed, 25 Aug 2021 07:25:23 GMT
Hey Guys, 

So I was able to figure out and resolved the issue so I thought to share with you guys as
well.  This setup has 3 public IP pool added through the ACS. So operation guys they use PFsense
and L2 network inside the ACS. Whenever they deploy any PFsense machine a public IP is required
to configure on the PFsense interface as a WAN interface, So operations guys were using DB
to allocate the public IP  ( Typically change state from free to Allocated, put date in Allocation_date,
but they were doing a additional change as well, which is putting the date in “Removed”
Field). The moment all IPs has date in removed field, it was not able to fetch the active
IP range. So if we put date in removed field ACS will think that all IPs has been permanently
deleted but that VLAN entry were there in VLAN table. 

So as per VLAN table, A Public IP range are supposed to be there in user_ip_address tables,
 but due to the date in removed row  it was not able get the list of IPs and it was throwing
the “java.lang.NullPointerException". So we removed the date from removed row and it has
started working. 






Vivek Kumar
Sr. Manager - Cloud & DevOps 
IndiQus Technologies
M +91 7503460090 
www.indiqus.com




> On 16-Aug-2021, at 11:34 PM, Vivek Kumar <vivek.kumar@indiqus.com> wrote:
> 
> Hey guys..!
> 
> I am so sorry for multiple followup..! But If anyone has any idea how to address below
mentioned issue.!  Please help me out.! 
> 
> 
> 
> Vivek Kumar
> Sr. Manager - Cloud & DevOps 
> IndiQus Technologies
> M +91 7503460090 
> www.indiqus.com <http://www.indiqus.com/>
> 
> 
> 
> 
>> On 13-Aug-2021, at 2:55 PM, Vivek Kumar <vivek.kumar@indiqus.com <mailto:vivek.kumar@indiqus.com>>
wrote:
>> 
>> Hey Guys, 
>> 
>> Any help on this will be highly appreciated.! Please help if anyone ever came across
the below issue. 
>> 
>> 
>> Vivek Kumar
>> Sr. Manager - Cloud & DevOps 
>> IndiQus Technologies
>> M +91 7503460090 
>> www.indiqus.com <http://www.indiqus.com/>
>> 
>> 
>> 
>> 
>>> On 13-Aug-2021, at 12:26 AM, Vivek Kumar <vivek.kumar@indiqus.com <mailto:vivek.kumar@indiqus.com>>
wrote:
>>> 
>>> Hello Guys, 
>>> 
>>> So I have ACS 4.11.2 with KVM and VMware Zone. I am facing a weird issue while
clicking on public IP range - It’s showing blank. So if I go deeper and found that some
how the API - “listVlanIpRange” is not executing. It’s giving below Error - 
>>> 
>>> 
>>> 2021-08-12 11:34:37,456 DEBUG [c.c.a.ApiServlet] (qtp510113906-42840:ctx-40b971e9)
(logid:b327c8d2) ===START===  198.18.4.50 -- GET  command=listVlanIpRanges&zoneid=1e830804-3d18-4cf7-b371-9cfc4574b877&networkId=a1e43fdf-3cd7-46d5-8dcc-244789ce478f&response=json&_=1628778877473
>>> 2021-08-12 11:34:37,458 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-589c2cf2)
(logid:4b339585) Found 2 VM, not running on host 131
>>> 2021-08-12 11:34:37,466 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-589c2cf2)
(logid:4b339585) No need to calibrate cpu capacity, host:131 usedCpuCore: 0 reservedCpuCore:
0
>>> 2021-08-12 11:34:37,467 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-589c2cf2)
(logid:4b339585) No need to calibrate cpu capacity, host:131 usedCpu: 0 reservedCpu: 0
>>> 2021-08-12 11:34:37,467 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-589c2cf2)
(logid:4b339585) No need to calibrate memory capacity, host:131 usedMem: 0 reservedMem: 0
>>> 2021-08-12 11:34:37,467 DEBUG [c.c.a.ApiServer] (qtp510113906-42840:ctx-40b971e9
ctx-fb92ca90) (logid:b327c8d2) CIDRs from which account 'Acct[c76bb5dd-90f1-11e8-8be7-000c29372a8b-admin]'
is allowed to perform API calls: 0.0.0.0/0,::/0
>>> 2021-08-12 11:34:37,500 DEBUG [c.c.c.CapacityManagerImpl] (Thread-25:null) (logid:)
Found 23 VMs on host 160
>>> 2021-08-12 11:34:37,525 DEBUG [c.c.c.CapacityManagerImpl] (CapacityChecker:ctx-589c2cf2)
(logid:4b339585) Found 28 VMs on host 156
>>> 2021-08-12 11:34:37,529 ERROR [c.c.a.ApiServer] (qtp510113906-42840:ctx-40b971e9
ctx-fb92ca90) (logid:b327c8d2) unhandled exception executing api command: [Ljava.lang.String;@5d1ade57
>>> java.lang.NullPointerException
>>>         at com.cloud.api.ApiResponseHelper.isForSystemVms(ApiResponseHelper.java:772)
>>>         at com.cloud.api.ApiResponseHelper.createVlanIpRangeResponse(ApiResponseHelper.java:753)
>>>         at com.cloud.api.ApiResponseHelper.createVlanIpRangeResponse(ApiResponseHelper.java:672)
>>>         at org.apache.cloudstack.api.command.admin.vlan.ListVlanIpRangesCmd.execute(ListVlanIpRangesCmd.java:149)
>>>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
>>>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:732)
>>>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:556)
>>>         at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:310)
>>>         at com.cloud.api.ApiServlet$1.run(ApiServlet.java:130)
>>>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>>>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>>>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>>>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:127)
>>>         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:89)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:686)
>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:791)
>>>         at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852)
>>>         at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
>>>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>>>         at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
>>>         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>>>         at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
>>>         at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
>>>         at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
>>>         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
>>>         at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
>>>         at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
>>>         at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
>>>         at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
>>>         at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
>>>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>>>         at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:527)
>>>         at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
>>>         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>>>         at org.eclipse.jetty.server.Server.handle(Server.java:530)
>>>         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)
                                                                                         
                                                                                         
     
>>>         at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)
>>>         at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
>>>         at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
>>>         at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
>>>         at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)
>>>         at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)
>>>         at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
>>>         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)
>>>         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
>>>         at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
>>>         at java.lang.Thread.run(Thread.java:748)
>>> 2021-08-12 11:34:37,534 DEBUG [c.c.a.ApiServlet] (qtp510113906-42840:ctx-40b971e9
ctx-fb92ca90) (logid:b327c8d2) ===END===  198.18.4.50 -- GET  command=listVlanIpRanges&zoneid=1e830804-3d18-4cf7-b371-9cfc4574b877&networkId=a1e43fdf-3cd7-46d5-8dcc-244789ce478f&response=json&_=1628778877473
>>> 
>>> 
>>> Can someone help me in the right direction ?
>>> 
>>> 
>>> Vivek Kumar
>>> Sr. Manager - Cloud & DevOps 
>>> IndiQus Technologies
>>> M +91 7503460090 
>>> www.indiqus.com <http://www.indiqus.com/>
>>> 
>>> 
>>> 
>>> 
>> 
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message