Re: VMWare 5.1 errors with 4.1

2013-03-27 Thread Francois Gaudreault
Hi Kirk,

Thanks for the pointers.  We manage to get it done without giving full top
level permissions.  So far, giving only "set" and "modify custom
attributes" rights seems to be sufficient.  We will see with future usage :)

Thanks!

Francois


On Tue, Mar 26, 2013 at 6:34 PM, Kirk Kosinski wrote:

> Hi, Francois.  CloudStack needs admin rights at the vCenter server
> level, not just at the datacenter level.  The "Unable to setup custom
> field facility" error indicates a lack of needed permissions.
>
> Best regards,
> Kirk
>
> On 03/26/2013 01:36 PM, Francois Gaudreault wrote:
> > I should give a bit more details here.  Our vCenter contains other
> > DataCenter, and we give administrative rights to the cloudstack user only
> > to a specific DC.  Is that sufficient?  Do we need top-level privileges
> for
> > adding custom fields?
> >
> > Francois
> >
> >
> > On Tue, Mar 26, 2013 at 4:17 PM, Francois Gaudreault <
> > fgaudrea...@cloudops.com> wrote:
> >
> >>  Hi,
> >>
> >> We compiled the 4.1 latest code today, and when we try to add a zone
> with
> >> a VMWare cluster, we end up with this error:
> >>
> >> INFO  [network.vpc.VpcManagerImpl] (VpcChecker-1:) Found 0 removed VPCs
> to
> >> cleanup
> >> INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-14:)
> >> Discover host. dc: 2, pod: 2, cluster: 6, uri host: 10.0.22.12
> >> INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-14:)
> >> Detected private network label : vSwitch0
> >> Started
> >> INFO  [vmware.manager.VmwareManagerImpl] (catalina-exec-14:) Preparing
> >> network on host
> com.cloud.hypervisor.vmware.util.VmwareContext@184cdd35for vSwitch0
> >> INFO  [vmware.mo.HypervisorHostHelper] (catalina-exec-14:) Network
> >> cloud.private.untagged.0.1-vSwitch0 is ready on vSwitch vSwitch0
> >> INFO  [vmware.manager.VmwareManagerImpl] (catalina-exec-14:) Preparing
> >> network on host
> com.cloud.hypervisor.vmware.util.VmwareContext@184cdd35for vSwitch0
> >> INFO  [vmware.mo.HypervisorHostHelper] (catalina-exec-14:) Network
> >> cloud.private.untagged.0.1-vSwitch0 is ready on vSwitch vSwitch0
> >> Started
> >> ERROR [vmware.resource.VmwareResource] (catalina-exec-14:) Unexpected
> >> Exception
> >> java.lang.Exception: Unable to setup custom field facility for
> >> Datastore:cloud.uuid
> >> at com.cloud.hypervisor.vmware.mo.CustomFieldsManagerMO.
> >> ensureCustomFieldDef(CustomFieldsManagerMO.java:80)
> >> at com.cloud.hypervisor.vmware.resource.VmwareResource.
> >> configure(VmwareResource.java:4804)
> >> at com.cloud.hypervisor.vmware.VmwareServerDiscoverer.find(
> >> VmwareServerDiscoverer.java:268)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke(
> >> NativeMethodAccessorImpl.java:57)
> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> DelegatingMethodAccessorImpl.java:43)
> >> at java.lang.reflect.Method.invoke(Method.java:616)
> >> at org.springframework.aop.support.AopUtils.
> >> invokeJoinpointUsingReflection(AopUtils.java:319)
> >> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> >> invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> >> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> >> proceed(ReflectiveMethodInvocation.java:150)
> >> at
> org.springframework.aop.aspectj.MethodInvocationProceedingJoin
> >> Point.proceed(MethodInvocationProceedingJoinPoint.java:80)
> >> at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(
> >> TransactionContextBuilder.java:45)
> >> at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> DelegatingMethodAccessorImpl.java:43)
> >> at java.lang.reflect.Method.invoke(Method.java:616)
> >> at org.springframework.aop.aspectj.AbstractAspectJAdvice.
> >> invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> >> at org.springframework.aop.aspectj.AbstractAspectJAdvice.
> >> invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> >> at org.springframework.aop.aspectj.AspectJAroundAdvice.
> >> invoke(AspectJAroundAdvice.java:65)
> >> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> >> proceed(ReflectiveMethodInvocation.java:172)
> >> at org.springframework.aop.interceptor.
> >> ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> >> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> >> proceed(ReflectiveMethodInvocation.java:172)
> >> at org.springframework.aop.framework.JdkDynamicAopProxy.
> >> invoke(JdkDynamicAopProxy.java:202)
> >> at sun.proxy.$Proxy238.find(Unknown Source)
> >> at com.cloud.resource.ResourceManagerImpl.discoverCluster(
> >> ResourceManagerImpl.java:521)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native

Re: VMWare 5.1 errors with 4.1

2013-03-26 Thread Kirk Kosinski
Hi, Francois.  CloudStack needs admin rights at the vCenter server
level, not just at the datacenter level.  The "Unable to setup custom
field facility" error indicates a lack of needed permissions.

Best regards,
Kirk

On 03/26/2013 01:36 PM, Francois Gaudreault wrote:
> I should give a bit more details here.  Our vCenter contains other
> DataCenter, and we give administrative rights to the cloudstack user only
> to a specific DC.  Is that sufficient?  Do we need top-level privileges for
> adding custom fields?
> 
> Francois
> 
> 
> On Tue, Mar 26, 2013 at 4:17 PM, Francois Gaudreault <
> fgaudrea...@cloudops.com> wrote:
> 
>>  Hi,
>>
>> We compiled the 4.1 latest code today, and when we try to add a zone with
>> a VMWare cluster, we end up with this error:
>>
>> INFO  [network.vpc.VpcManagerImpl] (VpcChecker-1:) Found 0 removed VPCs to
>> cleanup
>> INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-14:)
>> Discover host. dc: 2, pod: 2, cluster: 6, uri host: 10.0.22.12
>> INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-14:)
>> Detected private network label : vSwitch0
>> Started
>> INFO  [vmware.manager.VmwareManagerImpl] (catalina-exec-14:) Preparing
>> network on host com.cloud.hypervisor.vmware.util.VmwareContext@184cdd35for 
>> vSwitch0
>> INFO  [vmware.mo.HypervisorHostHelper] (catalina-exec-14:) Network
>> cloud.private.untagged.0.1-vSwitch0 is ready on vSwitch vSwitch0
>> INFO  [vmware.manager.VmwareManagerImpl] (catalina-exec-14:) Preparing
>> network on host com.cloud.hypervisor.vmware.util.VmwareContext@184cdd35for 
>> vSwitch0
>> INFO  [vmware.mo.HypervisorHostHelper] (catalina-exec-14:) Network
>> cloud.private.untagged.0.1-vSwitch0 is ready on vSwitch vSwitch0
>> Started
>> ERROR [vmware.resource.VmwareResource] (catalina-exec-14:) Unexpected
>> Exception
>> java.lang.Exception: Unable to setup custom field facility for
>> Datastore:cloud.uuid
>> at com.cloud.hypervisor.vmware.mo.CustomFieldsManagerMO.
>> ensureCustomFieldDef(CustomFieldsManagerMO.java:80)
>> at com.cloud.hypervisor.vmware.resource.VmwareResource.
>> configure(VmwareResource.java:4804)
>> at com.cloud.hypervisor.vmware.VmwareServerDiscoverer.find(
>> VmwareServerDiscoverer.java:268)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at org.springframework.aop.support.AopUtils.
>> invokeJoinpointUsingReflection(AopUtils.java:319)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.
>> invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.
>> proceed(ReflectiveMethodInvocation.java:150)
>> at org.springframework.aop.aspectj.MethodInvocationProceedingJoin
>> Point.proceed(MethodInvocationProceedingJoinPoint.java:80)
>> at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(
>> TransactionContextBuilder.java:45)
>> at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at org.springframework.aop.aspectj.AbstractAspectJAdvice.
>> invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
>> at org.springframework.aop.aspectj.AbstractAspectJAdvice.
>> invokeAdviceMethod(AbstractAspectJAdvice.java:610)
>> at org.springframework.aop.aspectj.AspectJAroundAdvice.
>> invoke(AspectJAroundAdvice.java:65)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.
>> proceed(ReflectiveMethodInvocation.java:172)
>> at org.springframework.aop.interceptor.
>> ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.
>> proceed(ReflectiveMethodInvocation.java:172)
>> at org.springframework.aop.framework.JdkDynamicAopProxy.
>> invoke(JdkDynamicAopProxy.java:202)
>> at sun.proxy.$Proxy238.find(Unknown Source)
>> at com.cloud.resource.ResourceManagerImpl.discoverCluster(
>> ResourceManagerImpl.java:521)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:616)
>> at org.springframework.aop.support.AopUtils.
>> invokeJoinpointUsingReflection(AopUtils.java:319)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.
>> invokeJoinpoint(R

Re: VMWare 5.1 errors with 4.1

2013-03-26 Thread Francois Gaudreault
I should give a bit more details here.  Our vCenter contains other
DataCenter, and we give administrative rights to the cloudstack user only
to a specific DC.  Is that sufficient?  Do we need top-level privileges for
adding custom fields?

Francois


On Tue, Mar 26, 2013 at 4:17 PM, Francois Gaudreault <
fgaudrea...@cloudops.com> wrote:

>  Hi,
>
> We compiled the 4.1 latest code today, and when we try to add a zone with
> a VMWare cluster, we end up with this error:
>
> INFO  [network.vpc.VpcManagerImpl] (VpcChecker-1:) Found 0 removed VPCs to
> cleanup
> INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-14:)
> Discover host. dc: 2, pod: 2, cluster: 6, uri host: 10.0.22.12
> INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-14:)
> Detected private network label : vSwitch0
> Started
> INFO  [vmware.manager.VmwareManagerImpl] (catalina-exec-14:) Preparing
> network on host com.cloud.hypervisor.vmware.util.VmwareContext@184cdd35for 
> vSwitch0
> INFO  [vmware.mo.HypervisorHostHelper] (catalina-exec-14:) Network
> cloud.private.untagged.0.1-vSwitch0 is ready on vSwitch vSwitch0
> INFO  [vmware.manager.VmwareManagerImpl] (catalina-exec-14:) Preparing
> network on host com.cloud.hypervisor.vmware.util.VmwareContext@184cdd35for 
> vSwitch0
> INFO  [vmware.mo.HypervisorHostHelper] (catalina-exec-14:) Network
> cloud.private.untagged.0.1-vSwitch0 is ready on vSwitch vSwitch0
> Started
> ERROR [vmware.resource.VmwareResource] (catalina-exec-14:) Unexpected
> Exception
> java.lang.Exception: Unable to setup custom field facility for
> Datastore:cloud.uuid
> at com.cloud.hypervisor.vmware.mo.CustomFieldsManagerMO.
> ensureCustomFieldDef(CustomFieldsManagerMO.java:80)
> at com.cloud.hypervisor.vmware.resource.VmwareResource.
> configure(VmwareResource.java:4804)
> at com.cloud.hypervisor.vmware.VmwareServerDiscoverer.find(
> VmwareServerDiscoverer.java:268)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.support.AopUtils.
> invokeJoinpointUsingReflection(AopUtils.java:319)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> proceed(ReflectiveMethodInvocation.java:150)
> at org.springframework.aop.aspectj.MethodInvocationProceedingJoin
> Point.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(
> TransactionContextBuilder.java:45)
> at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.
> invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
> at org.springframework.aop.aspectj.AbstractAspectJAdvice.
> invokeAdviceMethod(AbstractAspectJAdvice.java:610)
> at org.springframework.aop.aspectj.AspectJAroundAdvice.
> invoke(AspectJAroundAdvice.java:65)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.interceptor.
> ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> proceed(ReflectiveMethodInvocation.java:172)
> at org.springframework.aop.framework.JdkDynamicAopProxy.
> invoke(JdkDynamicAopProxy.java:202)
> at sun.proxy.$Proxy238.find(Unknown Source)
> at com.cloud.resource.ResourceManagerImpl.discoverCluster(
> ResourceManagerImpl.java:521)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.springframework.aop.support.AopUtils.
> invokeJoinpointUsingReflection(AopUtils.java:319)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> invokeJoinpoint(ReflectiveMethodInvocation.java:183)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> proceed(ReflectiveMethodInvocation.java:150)
> at org.springframework.aop.aspectj.MethodInvocationProceedingJoin
> Point.proceed(MethodInvocationProceedingJoinPoint.java:80)
> at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(
> T

VMWare 5.1 errors with 4.1

2013-03-26 Thread Francois Gaudreault

Hi,

We compiled the 4.1 latest code today, and when we try to add a zone 
with a VMWare cluster, we end up with this error:


INFO  [network.vpc.VpcManagerImpl] (VpcChecker-1:) Found 0 removed VPCs 
to cleanup
INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-14:) 
Discover host. dc: 2, pod: 2, cluster: 6, uri host: 10.0.22.12
INFO  [hypervisor.vmware.VmwareServerDiscoverer] (catalina-exec-14:) 
Detected private network label : vSwitch0

Started
INFO  [vmware.manager.VmwareManagerImpl] (catalina-exec-14:) Preparing 
network on host com.cloud.hypervisor.vmware.util.VmwareContext@184cdd35 
for vSwitch0
INFO  [vmware.mo.HypervisorHostHelper] (catalina-exec-14:) Network 
cloud.private.untagged.0.1-vSwitch0 is ready on vSwitch vSwitch0
INFO  [vmware.manager.VmwareManagerImpl] (catalina-exec-14:) Preparing 
network on host com.cloud.hypervisor.vmware.util.VmwareContext@184cdd35 
for vSwitch0
INFO  [vmware.mo.HypervisorHostHelper] (catalina-exec-14:) Network 
cloud.private.untagged.0.1-vSwitch0 is ready on vSwitch vSwitch0

Started
ERROR [vmware.resource.VmwareResource] (catalina-exec-14:) Unexpected 
Exception
java.lang.Exception: Unable to setup custom field facility for 
Datastore:cloud.uuid
at 
com.cloud.hypervisor.vmware.mo.CustomFieldsManagerMO.ensureCustomFieldDef(CustomFieldsManagerMO.java:80)
at 
com.cloud.hypervisor.vmware.resource.VmwareResource.configure(VmwareResource.java:4804)
at 
com.cloud.hypervisor.vmware.VmwareServerDiscoverer.find(VmwareServerDiscoverer.java:268)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at 
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
at 
com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:45)

at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
at 
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

at sun.proxy.$Proxy238.find(Unknown Source)
at 
com.cloud.resource.ResourceManagerImpl.discoverCluster(ResourceManagerImpl.java:521)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at 
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
at 
com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionContextBuilder.java:39)

at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
at 
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(Abstrac