cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Angus <paul.an...@shapeblue.com>
Subject RE: Hyper-v via the UI drops the password
Date Thu, 13 Feb 2014 10:39:56 GMT
I picked up the agent from Jenkins yesterday, looking today I see that the job hadn't been
run for a couple of weeks. I'd assumed that it ran on a regular basis and that it would have
be run automatically whenever new code was checked in.

I got Jenkins to do a new build and now I can add the primary storage.

Regards

Paul Angus
Cloud Architect
S: +44 20 3603 0540 | M: +447711418784 | T: CloudyAngus
paul.angus@shapeblue.com<mailto:paul.angus@shapeblue.com>

From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
Sent: 13 February 2014 02:10
To: Paul Angus; dev@cloudstack.apache.org
Cc: Devdeep Singh
Subject: RE: Hyper-v via the UI drops the password

We don't log the password as it is sensitive. As Devdeep told can you update the agent and
try it.

From: Paul Angus [mailto:paul.angus@shapeblue.com]
Sent: Wednesday, February 12, 2014 9:46 PM
To: dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>
Cc: Rajesh Battala; Devdeep Singh
Subject: Hyper-v via the UI drops the password

Hi,

So trying to add storage to hyper-v via the ui as I can't figure out how to do it via cloudmonkey
- the password appears to get dropped when the api call is made - details[2] is truncated
to just .

I assume this is why I can't add primary storage via the UI.


2014-02-12 16:08:27,458 DEBUG [c.c.a.ApiServlet] (catalina-exec-25:ctx-875ce97f) ===START===
 10.0.0.28 -- GET  command=createStoragePool&scope=cluster&zoneid=dfe5c3fa-cbfc-4d18-a978-5f8dfcfc39b8&podid=367cdf41-f2fd-431c-97f8-4df30601c8d0&clusterid=d94e2346-7e93-4501-8a25-b3706b8639ae&name=hyperv-pri&details[0].user=hyperv&details[1].&details[2].domain=angusnet.local&url=cifs%3A%2F%2F10.0.1.27%2FhypervPri%2Fstor%2FPrimary&response=json&sessionkey=nBZHGWLcZWehJSQRX3rEznDFnBc%3D&_=1392221298237
2014-02-12 16:08:27,469 DEBUG [o.a.c.s.d.l.CloudStackPrimaryDataStoreLifeCycleImpl] (catalina-exec-25:ctx-875ce97f
ctx-bd4cc9d0) createPool Params @ scheme - cifs storageHost - 10.0.1.27 hostPath - /hypervPri/stor/Primary
port - -1
2014-02-12 16:08:27,483 DEBUG [o.a.c.s.d.l.CloudStackPrimaryDataStoreLifeCycleImpl] (catalina-exec-25:ctx-875ce97f
ctx-bd4cc9d0) creating pool null on  host 2
2014-02-12 16:08:27,487 DEBUG [c.c.a.t.Request] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Seq 2-48889885: Sending  { Cmd , MgmtId: 345049353548, via: 2(10.0.0.24), Ver: v1, Flags:
100011, [{"com.cloud.agent.api.CreateStoragePoolCommand":{"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","wait":0}}]
}
2014-02-12 16:08:27,487 DEBUG [c.c.a.t.Request] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Seq 2-48889885: Executing:  { Cmd , MgmtId: 345049353548, via: 2(10.0.0.24), Ver: v1, Flags:
100011, [{"com.cloud.agent.api.CreateStoragePoolCommand":{"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","wait":0}}]
}
2014-02-12 16:08:27,488 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-140:ctx-64f8ef58)
Seq 2-48889885: Executing request
2014-02-12 16:08:27,488 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-140:ctx-64f8ef58)
POST request to https://10.0.0.24:8250/api/HypervResource/com.cloud.agent.api.CreateStoragePoolCommand
with contents {"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","contextMap":{},"wait":0}
2014-02-12 16:08:27,498 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-140:ctx-64f8ef58)
Sending cmd to https://10.0.0.24:8250/api/HypervResource/com.cloud.agent.api.CreateStoragePoolCommand
cmd data:{"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","contextMap":{},"wait":0}
2014-02-12 16:08:27,572 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-140:ctx-64f8ef58)
POST response is [{"com.cloud.agent.api.Answer":{"result":true,"details":"success - NOP","contextMap":{}}}]
2014-02-12 16:08:27,573 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-140:ctx-64f8ef58)
executeRequest received response [Lcom.cloud.agent.api.Answer;@7756d39
2014-02-12 16:08:27,573 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-140:ctx-64f8ef58)
Seq 2-48889885: Response Received:
2014-02-12 16:08:27,573 DEBUG [c.c.a.t.Request] (DirectAgent-140:ctx-64f8ef58) Seq 2-48889885:
Processing:  { Ans: , MgmtId: 345049353548, via: 2, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":true,"details":"success
- NOP","wait":0}}] }
2014-02-12 16:08:27,573 DEBUG [c.c.a.t.Request] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Seq 2-48889885: Received:  { Ans: , MgmtId: 345049353548, via: 2, Ver: v1, Flags: 10, { Answer
} }
2014-02-12 16:08:27,574 DEBUG [c.c.a.m.AgentManagerImpl] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Details from executing class com.cloud.agent.api.CreateStoragePoolCommand: success - NOP
2014-02-12 16:08:27,574 DEBUG [o.a.c.s.d.l.CloudStackPrimaryDataStoreLifeCycleImpl] (catalina-exec-25:ctx-875ce97f
ctx-bd4cc9d0) In createPool Adding the pool to each of the hosts
2014-02-12 16:08:27,575 DEBUG [c.c.s.StorageManagerImpl] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Adding pool null to  host 2
2014-02-12 16:08:27,579 DEBUG [c.c.a.t.Request] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Seq 2-48889886: Sending  { Cmd , MgmtId: 345049353548, via: 2(10.0.0.24), Ver: v1, Flags:
100011, [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","wait":0}}]
}
2014-02-12 16:08:27,580 DEBUG [c.c.a.t.Request] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Seq 2-48889886: Executing:  { Cmd , MgmtId: 345049353548, via: 2(10.0.0.24), Ver: v1, Flags:
100011, [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","wait":0}}]
}
2014-02-12 16:08:27,580 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-424:ctx-34a9b406)
Seq 2-48889886: Executing request
2014-02-12 16:08:27,580 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-424:ctx-34a9b406)
POST request to https://10.0.0.24:8250/api/HypervResource/com.cloud.agent.api.ModifyStoragePoolCommand
with contents {"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","contextMap":{},"wait":0}
2014-02-12 16:08:27,589 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-424:ctx-34a9b406)
Sending cmd to https://10.0.0.24:8250/api/HypervResource/com.cloud.agent.api.ModifyStoragePoolCommand
cmd data:{"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","contextMap":{},"wait":0}
2014-02-12 16:08:27,653 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-424:ctx-34a9b406)
POST response is [{"com.cloud.agent.api.Answer":{"result":false,"details":"Request to create
/ modify unsupported pool type: SMBin cmd {"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","contextMap":{},"wait":0}","contextMap":{}}}]
2014-02-12 16:08:27,654 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-424:ctx-34a9b406)
executeRequest received response [Lcom.cloud.agent.api.Answer;@7554f6ba
2014-02-12 16:08:27,654 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-424:ctx-34a9b406)
Seq 2-48889886: Response Received:
2014-02-12 16:08:27,654 DEBUG [c.c.a.t.Request] (DirectAgent-424:ctx-34a9b406) Seq 2-48889886:
Processing:  { Ans: , MgmtId: 345049353548, via: 2, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":false,"details":"Request
to create / modify unsupported pool type: SMBin cmd {\"add\":true,\"pool\":{\"id\":5,\"uuid\":\"522b4ee5-8398-3255-976d-206505fcf0bb\",\"host\":\"10.0.1.27\",\"path\":\"/hypervPri/stor/Primary?user=hyperv&domain=angusnet.local\",\"port\":445,\"type\":\"SMB\"},\"localPath\":\"/mnt//fab86018-8819-32c6-9c98-3a28c378442a\",\"contextMap\":{},\"wait\":0}","wait":0}}]
}
2014-02-12 16:08:27,655 DEBUG [c.c.a.t.Request] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Seq 2-48889886: Received:  { Ans: , MgmtId: 345049353548, via: 2, Ver: v1, Flags: 10, { Answer
} }
2014-02-12 16:08:27,655 DEBUG [c.c.a.m.AgentManagerImpl] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
Details from executing class com.cloud.agent.api.ModifyStoragePoolCommand: Request to create
/ modify unsupported pool type: SMBin cmd {"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&password=hyperv13%21&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","contextMap":{},"wait":0}
2014-02-12 16:08:27,655 WARN  [o.a.c.alerts] (catalina-exec-25:ctx-875ce97f ctx-bd4cc9d0)
 alertType:: 7 // dataCenterId:: 1 // podId:: 1 // clusterId:: null // message:: Unable to
attach storage pool5 to the host2
2014-02-12 16:08:27,661 WARN  [o.a.c.s.d.l.CloudStackPrimaryDataStoreLifeCycleImpl] (catalina-exec-25:ctx-875ce97f
ctx-bd4cc9d0) Unable to establish a connection between Host[-2-Routing] and org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@17ec2b5e<mailto:org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@17ec2b5e>
com.cloud.utils.exception.CloudRuntimeException: Unable establish connection from storage
head to storage pool 5 due to Request to create / modify unsupported pool type: SMBin cmd
{"add":true,"pool":{"id":5,"uuid":"522b4ee5-8398-3255-976d-206505fcf0bb","host":"10.0.1.27","path":"/hypervPri/stor/Primary?user=hyperv&password=hyperv13%21&domain=angusnet.local","port":445,"type":"SMB"},"localPath":"/mnt//fab86018-8819-32c6-9c98-3a28c378442a","contextMap":{},"wait":0}5
       at org.apache.cloudstack.storage.datastore.provider.DefaultHostListener.hostConnect(DefaultHostListener.java:66)
       at com.cloud.storage.StorageManagerImpl.connectHostToSharedPool(StorageManagerImpl.java:861)
       at org.apache.cloudstack.storage.datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl.attachCluster(CloudStackPrimaryDataStoreLifeCycleImpl.java:411)
       at com.cloud.storage.StorageManagerImpl.createPool(StorageManagerImpl.java:662)
       at com.cloud.storage.StorageManagerImpl.createPool(StorageManagerImpl.java:176)
       at org.apache.cloudstack.api.command.admin.storage.CreateStoragePoolCmd.execute(CreateStoragePoolCmd.java:168)

Regards

Paul Angus
Senior Consultant / Cloud Architect

[cid:image002.png@01CE1071.C6CC9C10]

S: +44 20 3603 0540<tel:+442036030540> | M: +4<tel:+447968161581>47711418784 |
T: @CloudyAngus
paul.angus@shapeblue.com<mailto:paul.angus@shapeblue.com> | www.shapeblue.com<http://www.shapeblue.com/>
| Twitter:@shapeblue<https://twitter.com/>
ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS

Need Enterprise Grade Support for Apache CloudStack?
Our CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
offers the best 24/7 SLA for CloudStack Environments.

Apache CloudStack Bootcamp training courses

**NEW!** CloudStack 4.2.1 training<http://shapeblue.com/cloudstack-training/>
18th-19th February 2014, Brazil. Classroom<http://shapeblue.com/cloudstack-training/>
17th-23rd March 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
24th-28th March 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
16th-20th June 2014, Region A. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>
23rd-27th June 2014, Region B. Instructor led, On-line<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use
of the individual to whom it is addressed. Any views or opinions expressed are solely those
of the author and do not necessarily represent those of Shape Blue Ltd or related companies.
If you are not the intended recipient of this email, you must neither take any action based
upon its contents, nor copy or show it to anyone. Please contact the sender if you believe
you have received this email in error. Shape Blue Ltd is a company incorporated in England
& Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated
under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated
in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
This email and any attachments to it may be confidential and are intended solely for the use
of the individual to whom it is addressed. Any views or opinions expressed are solely those
of the author and do not necessarily represent those of Shape Blue Ltd or related companies.
If you are not the intended recipient of this email, you must neither take any action based
upon its contents, nor copy or show it to anyone. Please contact the sender if you believe
you have received this email in error. Shape Blue Ltd is a company incorporated in England
& Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated
under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated
in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

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