Re: ACS 4.9 Basic Networking on XEN 6.5 - Cannot create instances anymore

2016-09-18 Thread Sergey Levitskiy
It seems the allocator can't find any hosts with enough capacity. Check if all 
your hosts are in green state , host tag in service offering matches tags of 
your hosts and if you have enough free capacity.

2016-09-18 14:55:37,279 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) Trying 
to allocate a host and storage pools from dc:1, pod:null,cluster:null, 
requested cpu: 1000, requested ram: 1073741824
2016-09-18 14:55:37,279 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) Is 
ROOT volume READY (pool already allocated)?: No
2016-09-18 14:55:37,279 DEBUG [c.c.d.FirstFitPlanner] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) 
Searching all possible resources under this Zone: 1
2016-09-18 14:55:37,279 DEBUG [c.c.d.FirstFitPlanner] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) 
Listing clusters in order of aggregate capacity, that have (atleast one host 
with) enough CPU and RAM capacity under this Zone: 1
2016-09-18 14:55:37,282 DEBUG [c.c.d.FirstFitPlanner] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) 
Removing from the clusterId list these clusters from avoid set: []
2016-09-18 14:55:37,288 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) 
Checking resources in Cluster: 1 under Pod: 1
2016-09-18 14:55:37,288 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50 
FirstFitRoutingAllocator) (logid:c69c1ccd) Looking for hosts in dc: 1  pod:1  
cluster:1
2016-09-18 14:55:37,290 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50 
FirstFitRoutingAllocator) (logid:c69c1ccd) FirstFitAllocator has 0 hosts to 
check for allocation: []
2016-09-18 14:55:37,292 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50 
FirstFitRoutingAllocator) (logid:c69c1ccd) Found 0 hosts for allocation after 
prioritization: []
2016-09-18 14:55:37,292 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50 
FirstFitRoutingAllocator) (logid:c69c1ccd) Looking for speed=1000Mhz, Ram=1024
2016-09-18 14:55:37,292 DEBUG [c.c.a.m.a.i.FirstFitAllocator] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50 
FirstFitRoutingAllocator) (logid:c69c1ccd) Host Allocator returning 0 suitable 
hosts
2016-09-18 14:55:37,292 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) No 
suitable hosts found
2016-09-18 14:55:37,292 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) No 
suitable hosts found under this Cluster: 1
2016-09-18 14:55:37,294 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-27:ctx-4b92f4ea job-135 ctx-fac5dc50) (logid:c69c1ccd) Could 
not find suitable Deployment Destination for this VM under any clusters, 
returning.

Sent from my iPhone

On Sep 18, 2016, at 6:08 AM, Jeroen Keerl 
> wrote:

Hi,

I can’t create new instances anymore on my ACS 4.9 on XEN, with basic 
networking.
Last Thursday, this was possible without any issues.

Since then, I have tested 2 things:

-  Creating domains and accounts

-  Adding SSH auth to one VM I had created with an ISO
(So, no real issues, I’d assume)

However, after I destroyed the one VM mentioned above, I tried to set up a new 
one, so I could create a base template.

But alas: All methods I tried fail (API and Web)
To me it looks, like it is looking “in the wrong direction”, as it can’t seem 
to see my cluster, hosts etc.
However, looking under “Infrastructure” – all seems to be fine.

First “solution”: Reboot mgmt server and system vms: No success.


2016-09-18 14:55:37,115 DEBUG [c.c.a.ApiServlet] (catalina-exec-3:ctx-a5945e12) 
(logid:3dd43961) ===START===  192.168.254.142 -- GET  
command=deployVirtualMachine=json=baee96f3-fee4-4e18-9f44-428206d1b3f3=7662eb72-791c-11e6-9aa7-00155dfa0a0e=XenServer=083d3f86-4b95-44c8-8361-0e571890ae2a=07265180-791d-11e6-9aa7-00155dfa0a0e&_=1474203217288
2016-09-18 14:55:37,132 DEBUG [c.c.u.AccountManagerImpl] 
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Access granted to 
Acct[07261698-791d-11e6-9aa7-00155dfa0a0e-admin] to 
org.apache.cloudstack.quota.vo.ServiceOfferingVO$$EnhancerByCGLIB$$7f648b5a@5724d0d6
 by AffinityGroupAccessChecker
2016-09-18 14:55:37,133 DEBUG [c.c.u.AccountManagerImpl] 
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Access granted to 
Acct[07261698-791d-11e6-9aa7-00155dfa0a0e-admin] to null by 
AffinityGroupAccessChecker
2016-09-18 14:55:37,158 DEBUG [c.c.v.UserVmManagerImpl] 
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) 

ACS 4.9 Basic Networking on XEN 6.5 - Cannot create instances anymore

2016-09-18 Thread Jeroen Keerl
Hi,

 

I can't create new instances anymore on my ACS 4.9 on XEN, with basic
networking.

Last Thursday, this was possible without any issues.

 

Since then, I have tested 2 things:

-  Creating domains and accounts

-  Adding SSH auth to one VM I had created with an ISO

(So, no real issues, I'd assume)

 

However, after I destroyed the one VM mentioned above, I tried to set up a
new one, so I could create a base template.

 

But alas: All methods I tried fail (API and Web)

To me it looks, like it is looking "in the wrong direction", as it can't
seem to see my cluster, hosts etc.

However, looking under "Infrastructure" - all seems to be fine.

 

First "solution": Reboot mgmt server and system vms: No success.

 

 

2016-09-18 14:55:37,115 DEBUG [c.c.a.ApiServlet]
(catalina-exec-3:ctx-a5945e12) (logid:3dd43961) ===START===  192.168.254.142
-- GET
command=deployVirtualMachine=json=baee96f3-fee4-4e18-9f44-42
8206d1b3f3=7662eb72-791c-11e6-9aa7-00155dfa0a0e=XenSer
ver=083d3f86-4b95-44c8-8361-0e571890ae2a=
07265180-791d-11e6-9aa7-00155dfa0a0e&_=1474203217288

2016-09-18 14:55:37,132 DEBUG [c.c.u.AccountManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Access granted
to Acct[07261698-791d-11e6-9aa7-00155dfa0a0e-admin] to
org.apache.cloudstack.quota.vo.ServiceOfferingVO$$EnhancerByCGLIB$$7f648b5a@
5724d0d6 by AffinityGroupAccessChecker

2016-09-18 14:55:37,133 DEBUG [c.c.u.AccountManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Access granted
to Acct[07261698-791d-11e6-9aa7-00155dfa0a0e-admin] to null by
AffinityGroupAccessChecker

2016-09-18 14:55:37,158 DEBUG [c.c.v.UserVmManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Allocating in
the DB for vm

2016-09-18 14:55:37,165 DEBUG [c.c.v.VirtualMachineManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Allocating
entries for VM: VM[User|i-2-15-VM]

2016-09-18 14:55:37,165 DEBUG [c.c.v.VirtualMachineManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Allocating nics
for VM[User|i-2-15-VM]

2016-09-18 14:55:37,166 DEBUG [o.a.c.e.o.NetworkOrchestrator]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Allocating nic
for vm VM[User|i-2-15-VM] in network Ntwk[204|Guest|6] with requested
profile NicProfile[0-0-null-null-null

2016-09-18 14:55:37,171 DEBUG [c.c.v.VirtualMachineManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Allocating
disks for VM[User|i-2-15-VM]

2016-09-18 14:55:37,180 DEBUG [c.c.v.VirtualMachineManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Allocation
completed for VM: VM[User|i-2-15-VM]

2016-09-18 14:55:37,180 DEBUG [c.c.v.UserVmManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) Successfully
allocated DB entry for VM[User|i-2-15-VM]

2016-09-18 14:55:37,221 INFO  [o.a.c.f.j.i.AsyncJobMonitor]
(API-Job-Executor-27:ctx-4b92f4ea job-135) (logid:1f41919b) Add job-135 into
job monitoring

2016-09-18 14:55:37,231 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) submit async
job-135, details: AsyncJobVO {id:135, userId: 2, accountId: 2, instanceType:
VirtualMachine, instanceId: 15, cmd:
org.apache.cloudstack.api.command.admin.vm.DeployVMCmdByAdmin, cmdInfo:
{"id":"15","response":"json","serviceofferingid":"083d3f86-4b95-44c8-8361-0e
571890ae2a","ctxDetails":"{\"interface
com.cloud.vm.VirtualMachine\":\"d483480a-fa2d-47d2-ab9d-4355015f829e\",\"int
erface
com.cloud.template.VirtualMachineTemplate\":\"7662eb72-791c-11e6-9aa7-00155d
fa0a0e\",\"interface
com.cloud.network.security.SecurityGroup\":\"07265180-791d-11e6-9aa7-00155df
a0a0e\",\"interface
com.cloud.offering.ServiceOffering\":\"083d3f86-4b95-44c8-8361-0e571890ae2a\
",\"interface
com.cloud.dc.DataCenter\":\"baee96f3-fee4-4e18-9f44-428206d1b3f3\"}","cmdEve
ntType":"VM.CREATE","ctxUserId":"2","zoneid":"baee96f3-fee4-4e18-9f44-428206
d1b3f3","hypervisor":"XenServer","templateid":"7662eb72-791c-11e6-9aa7-00155
dfa0a0e","httpmethod":"GET","_":"1474203217288","securitygroupids":"07265180
-791d-11e6-9aa7-00155dfa0a0e","uuid":"d483480a-fa2d-47d2-ab9d-4355015f829e",
"ctxAccountId":"2","ctxStartEventId":"279"}, cmdVersion: 0, status:
IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
91770980878, completeMsid: null, lastUpdated: null, lastPolled: null,
created: null}

2016-09-18 14:55:37,232 DEBUG [c.c.a.ApiServlet]
(catalina-exec-3:ctx-a5945e12 ctx-a27aa791) (logid:3dd43961) ===END===
192.168.254.142 -- GET
command=deployVirtualMachine=json=baee96f3-fee4-4e18-9f44-42
8206d1b3f3=7662eb72-791c-11e6-9aa7-00155dfa0a0e=XenSer
ver=083d3f86-4b95-44c8-8361-0e571890ae2a=
07265180-791d-11e6-9aa7-00155dfa0a0e&_=1474203217288

2016-09-18 14:55:37,236 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-27:ctx-4b92f4ea job-135) (logid:c69c1ccd) Executing
AsyncJobVO {id:135, userId: 2, accountId: 2, instanceType: