You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sanjeev N (JIRA)" <ji...@apache.org> on 2013/12/04 10:32:35 UTC

[jira] [Updated] (CLOUDSTACK-5362) [Hyper-v] System vms does not come up with CIFS as the shared primary storage

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-5362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjeev N updated CLOUDSTACK-5362:
----------------------------------

    Labels: hyper-V,  (was: )

> [Hyper-v] System vms does not come up with CIFS as the shared primary storage
> -----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5362
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5362
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Hypervisor Controller, Management Server
>    Affects Versions: 4.3.0
>         Environment: Latest build from 4.3
> Storage: CIFS for both primary and secondary storage
> Hypervisor: Hyperv
>            Reporter: Sanjeev N
>            Priority: Blocker
>              Labels: hyper-V,
>             Fix For: 4.3.0
>
>
> [Hyper-v] System vms does not come up with CIFS as the shared primary storage
> Steps to Reproduce:
> ================
> 1.Bring up CS in advanced zone using CIFS as the storage for both primary and secondary with latest build from 4.3
> 2.Enable zone
> Expected Result:
> ==============
> System vms (SSVM,CPVM) should come up without any issues
> Actual Result:
> ===========
> System vms failed to come up
> Observations:
> ============
> Root disks for both ssvm and cpvm got created in the shared primary storage. However vms start failed with the following error:
> 2013-12-04 07:50:47,399 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-26:ctx-50ca2fd8) Sending cmd to http://10.147.40.14:8250/api/HypervResource/com.cloud.agent.api.StartCommand cmd data:{"vm":{"id":2,"name":"v-2-VM","type":"ConsoleProxy","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":1073741824,"maxRam":1073741824,"arch":"i686","os":"Debian GNU/Linux 5.0 (32-bit)","bootArgs":" template\u003ddomP type\u003dconsoleproxy host\u003d10.147.59.119 port\u003d8250 name\u003dv-2-VM premium\u003dtrue zone\u003d1 pod\u003d1 guid\u003dProxy.2 proxy_vm\u003d2 disable_rp_filter\u003dtrue eth2ip\u003d10.147.48.22 eth2mask\u003d255.255.255.0 gateway\u003d10.147.48.1 eth0ip\u003d169.254.3.44 eth0mask\u003d255.255.0.0 eth1ip\u003d10.147.40.233 eth1mask\u003d255.255.254.0 mgmtcidr\u003d10.147.59.0/24 localgw\u003d10.147.40.1 internaldns1\u003d10.140.50.6 dns1\u003d10.140.50.6","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"60432484c5722fb2","params":{},"uuid":"f22fa132-7b2e-4fc2-aadc-f679ff5bc848","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"2a7f9126-5115-4d29-aade-b45bdc4eefba","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"fdd42fec-0e2e-32fe-adff-0d09bc73e8af","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/sanjeev-pri?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/sanjeev-pri?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR/?ROLE\u003dPrimary\u0026STOREUUID\u003dfdd42fec-0e2e-32fe-adff-0d09bc73e8af"}},"name":"ROOT-2","size":0,"volumeId":2,"vmName":"v-2-VM","accountId":1,"id":2,"deviceId":0,"hypervisorType":"Hyperv"}},"diskSeq":0,"type":"ROOT","_details":{"managed":"false","storagePort":"445","storageHost":"10.102.192.19","volumeSize":"0"}}],"nics":[{"deviceId":2,"networkRateMbps":-1,"defaultNic":true,"uuid":"c3cfb829-8964-4efd-b52c-da029d5ce326","ip":"10.147.48.22","netmask":"255.255.255.0","gateway":"10.147.48.1","mac":"06:8f:72:00:00:0c","dns1":"10.140.50.6","broadcastType":"Vlan","type":"Public","broadcastUri":"vlan://48","isolationUri":"vlan://48","isSecurityGroupEnabled":false},{"deviceId":0,"networkRateMbps":-1,"defaultNic":false,"uuid":"6f3a7adf-c403-4503-85b3-5b4d349f0579","ip":"169.254.3.44","netmask":"255.255.0.0","gateway":"169.254.0.1","mac":"0e:00:a9:fe:03:2c","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":false},{"deviceId":1,"networkRateMbps":-1,"defaultNic":false,"uuid":"e70d802c-0844-4fc7-89dc-66d1d4aa82d8","ip":"10.147.40.233","netmask":"255.255.254.0","gateway":"10.147.40.1","mac":"06:f4:8e:00:00:03","broadcastType":"Native","type":"Management","isSecurityGroupEnabled":false}]},"hostIp":"10.147.40.14","executeInSequence":false,"contextMap":{},"wait":0}
> 2013-12-04 07:50:50,929 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-12:ctx-c9224f52) POST response is[{"com.cloud.agent.api.StartAnswer":{"result":false,"details":"com.cloud.agent.api.StartCommand fail on exceptionHyper-V Job failed, Error Code:32768, Description: 's-4-VM' failed to add device 'Virtual Hard Disk'. (Virtual machine ID 7224DA02-67DF-46A7-9425-3DE9D6BAD26E)\n\nFailed to open attachment '\\\\10.102.192.19\\HYPERV-SMB\\sanjeev-pri\\ROOT-4.vhd'. Error: 'The user name or password is incorrect.'.","vm":{"id":4,"name":"s-4-VM","type":"SecondaryStorageVm","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":268435456,"maxRam":268435456,"arch":"i686","os":"Debian GNU/Linux 5.0 (32-bit)","bootArgs":" template=domP type=secstorage host=10.147.59.119 port=8250 name=s-4-VM zone=1 pod=1 guid=s-4-VM resource=com.cloud.storage.resource.PremiumSecondaryStorageResource instance=SecStorage sslcopy=true role=templateProcessor mtu=1500 eth2ip=10.147.48.21 eth2mask=255.255.255.0 gateway=10.147.48.1 public.network.device=eth2 eth0ip=169.254.2.134 eth0mask=255.255.0.0 eth1ip=10.147.40.232 eth1mask=255.255.254.0 mgmtcidr=10.147.59.0/24 localgw=10.147.40.1 private.network.device=eth1 eth3ip=10.147.40.235 eth3mask=255.255.254.0 storageip=10.147.40.235 storagenetmask=255.255.254.0 storagegateway=10.147.40.1 internaldns1=10.140.50.6 dns1=10.140.50.6","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"51aa4c9ea44b4a5e","params":{},"uuid":"d76bfe2f-f00f-47b7-b783-e59b009f4eaf","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"19022c25-21ba-47ec-8cef-f3eb2c57fb89","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"fdd42fec-0e2e-32fe-adff-0d09bc73e8af","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/sanjeev-pri?user=abhinav&password=freebsd@123&domain=BLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/sanjeev-pri?user=abhinav&password=freebsd@123&domain=BLR/?ROLE=Primary&STOREUUID=fdd42fec-0e2e-32fe-adff-0d09bc73e8af"}},"name":"ROOT-4","size":0,"volumeId":4,"vmName":"s-4-VM","accountId":1,"id":4,"deviceId":0,"hypervisorType":"Hyperv"}},"diskSeq":0,"type":"ROOT","_details":{"managed":"false","storagePort":"445","storageHost":"10.102.192.19","volumeSize":"0"}}],"nics":[{"deviceId":2,"networkRateMbps":-1,"defaultNic":true,"uuid":"7779c3cd-26b6-4e1c-9064-840dbe88929a","ip":"10.147.48.21","netmask":"255.255.255.0","gateway":"10.147.48.1","mac":"06:2a:36:00:00:0b","dns1":"10.140.50.6","broadcastType":"Vlan","type":"Public","broadcastUri":"vlan://48","isolationUri":"vlan://48","isSecurityGroupEnabled":false},{"deviceId":0,"networkRateMbps":-1,"defaultNic":false,"uuid":"e58cdd90-b4cc-481a-baff-6ba710bb4801","ip":"169.254.2.134","netmask":"255.255.0.0","gateway":"169.254.0.1","mac":"0e:00:a9:fe:02:86","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":false},{"deviceId":1,"networkRateMbps":-1,"defaultNic":false,"uuid":"6a0a1738-02ad-4460-9bad-8e7aa585f20b","ip":"10.147.40.232","netmask":"255.255.254.0","gateway":"10.147.40.1","mac":"06:5a:ac:00:00:02","broadcastType":"Native","type":"Management","isSecurityGroupEnabled":false},{"deviceId":3,"networkRateMbps":-1,"defaultNic":false,"uuid":"3c60d9c9-6673-46ee-ab7c-bd92356a6d29","ip":"10.147.40.235","netmask":"255.255.254.0","gateway":"10.147.40.1","mac":"06:d9:6e:00:00:05","broadcastType":"Native","type":"Storage","isSecurityGroupEnabled":false}]},"contextMap":{}}}]
> 2013-12-04 07:50:50,947 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-12:ctx-c9224f52) executeRequest received response [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":4,"name":"s-4-VM","type":"SecondaryStorageVm","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":268435456,"maxRam":268435456,"arch":"i686","os":"Debian GNU/Linux 5.0 (32-bit)","bootArgs":" template\u003ddomP type\u003dsecstorage host\u003d10.147.59.119 port\u003d8250 name\u003ds-4-VM zone\u003d1 pod\u003d1 guid\u003ds-4-VM resource\u003dcom.cloud.storage.resource.PremiumSecondaryStorageResource instance\u003dSecStorage sslcopy\u003dtrue role\u003dtemplateProcessor mtu\u003d1500 eth2ip\u003d10.147.48.21 eth2mask\u003d255.255.255.0 gateway\u003d10.147.48.1 public.network.device\u003deth2 eth0ip\u003d169.254.2.134 eth0mask\u003d255.255.0.0 eth1ip\u003d10.147.40.232 eth1mask\u003d255.255.254.0 mgmtcidr\u003d10.147.59.0/24 localgw\u003d10.147.40.1 private.network.device\u003deth1 eth3ip\u003d10.147.40.235 eth3mask\u003d255.255.254.0 storageip\u003d10.147.40.235 storagenetmask\u003d255.255.254.0 storagegateway\u003d10.147.40.1 internaldns1\u003d10.140.50.6 dns1\u003d10.140.50.6","rebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"51aa4c9ea44b4a5e","params":{},"uuid":"d76bfe2f-f00f-47b7-b783-e59b009f4eaf","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"19022c25-21ba-47ec-8cef-f3eb2c57fb89","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"fdd42fec-0e2e-32fe-adff-0d09bc73e8af","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.19","path":"/HYPERV-SMB/sanjeev-pri?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","port":445,"url":"NetworkFilesystem://10.102.192.19//HYPERV-SMB/sanjeev-pri?user\u003dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR/?ROLE\u003dPrimary\u0026STOREUUID\u003dfdd42fec-0e2e-32fe-adff-0d09bc73e8af"}},"name":"ROOT-4","size":0,"volumeId":4,"vmName":"s-4-VM","accountId":1,"id":4,"deviceId":0,"hypervisorType":"Hyperv"}},"diskSeq":0,"type":"ROOT","_details":{"managed":"false","storagePort":"445","storageHost":"10.102.192.19","volumeSize":"0"}}],"nics":[{"deviceId":2,"networkRateMbps":-1,"defaultNic":true,"uuid":"7779c3cd-26b6-4e1c-9064-840dbe88929a","ip":"10.147.48.21","netmask":"255.255.255.0","gateway":"10.147.48.1","mac":"06:2a:36:00:00:0b","dns1":"10.140.50.6","broadcastType":"Vlan","type":"Public","broadcastUri":"vlan://48","isolationUri":"vlan://48","isSecurityGroupEnabled":false},{"deviceId":0,"networkRateMbps":-1,"defaultNic":false,"uuid":"e58cdd90-b4cc-481a-baff-6ba710bb4801","ip":"169.254.2.134","netmask":"255.255.0.0","gateway":"169.254.0.1","mac":"0e:00:a9:fe:02:86","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":false},{"deviceId":1,"networkRateMbps":-1,"defaultNic":false,"uuid":"6a0a1738-02ad-4460-9bad-8e7aa585f20b","ip":"10.147.40.232","netmask":"255.255.254.0","gateway":"10.147.40.1","mac":"06:5a:ac:00:00:02","broadcastType":"Native","type":"Management","isSecurityGroupEnabled":false},{"deviceId":3,"networkRateMbps":-1,"defaultNic":false,"uuid":"3c60d9c9-6673-46ee-ab7c-bd92356a6d29","ip":"10.147.40.235","netmask":"255.255.254.0","gateway":"10.147.40.1","mac":"06:d9:6e:00:00:05","broadcastType":"Native","type":"Storage","isSecurityGroupEnabled":false}]},"result":false,"details":"com.cloud.agent.api.StartCommand fail on exceptionHyper-V Job failed, Error Code:32768, Description: \u0027s-4-VM\u0027 failed to add device \u0027Virtual Hard Disk\u0027. (Virtual machine ID 7224DA02-67DF-46A7-9425-3DE9D6BAD26E)\n\nFailed to open attachment \u0027\\\\10.102.192.19\\HYPERV-SMB\\sanjeev-pri\\ROOT-4.vhd\u0027. Error: \u0027The user name or password is incorrect.\u0027.","contextMap":{},"wait":0}}]
> 2013-12-04 07:50:50,947 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-12:ctx-c9224f52) Seq 1-494338090: Cancelling because one of the answers is false and it is stop on error.
> 2013-12-04 07:50:50,970 INFO  [c.c.v.VirtualMachineManagerImpl] (secstorage-1:ctx-4bb4c75c) Unable to start VM on Host[-1-Routing] due to com.cloud.agent.api.StartCommand fail on exceptionHyper-V Job failed, Error Code:32768, Description: 's-4-VM' failed to add device 'Virtual Hard Disk'. (Virtual machine ID 7224DA02-67DF-46A7-9425-3DE9D6BAD26E)
> Failed to open attachment '\\10.102.192.19\HYPERV-SMB\sanjeev-pri\ROOT-4.vhd'. Error: 'The user name or password is incorrect.'.
> mysql> select id,name,instance_id,volume_type,disk_offering_id,template_id,recreatable,removed,state from volumes where id=2;
> +----+--------+-------------+-------------+------------------+-------------+-------------+---------+-------+
> | id | name   | instance_id | volume_type | disk_offering_id | template_id | recreatable | removed | state |
> +----+--------+-------------+-------------+------------------+-------------+-------------+---------+-------+
> |  2 | ROOT-2 |           2 | ROOT        |               10 |           9 |           1 | NULL    | Ready |
> +----+--------+-------------+-------------+------------------+-------------+-------------+---------+-------+
> 1 row in set (0.00 sec)
> mysql> select id,name,instance_name,state from vm_instance where id=2;
> +----+--------+---------------+---------+
> | id | name   | instance_name | state   |
> +----+--------+---------------+---------+
> |  2 | v-2-VM | v-2-VM        | Stopped |
> +----+--------+---------------+---------+
> 1 row in set (0.00 sec)



--
This message was sent by Atlassian JIRA
(v6.1#6144)