Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9310

vpn user creation throwing error , but showing entry for the same user in VR console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.6.0, 4.7.1
    • Future
    • KVM, Virtual Router
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None
    • centos 6.7

    Description

      I enabled vpn access to one of my network created in both cloudstack versions 4.6.0 and 4.7.1 .Its got enabled and when I tried to add vpn user its throwing error as : add vpn user failed . In management server error log , I got error as below ,

      2016-03-17 18:09:20,881 DEBUG [c.c.n.v.RemoteAccessVpnManagerImpl] (API-Job-Executor-78:ctx-d46bb041 job-1270 ctx-84f2718d) (logid:77b8f498) Applying vpn access to VpcVirtualRouter
      2016-03-17 18:09:20,881 DEBUG [c.c.n.v.RemoteAccessVpnManagerImpl] (API-Job-Executor-78:ctx-d46bb041 job-1270 ctx-84f2718d) (logid:77b8f498) Applying vpn access to VirtualRouter
      2016-03-17 18:09:20,884 DEBUG [o.a.c.n.t.BasicNetworkTopology] (API-Job-Executor-78:ctx-d46bb041 job-1270 ctx-84f2718d) (logid:77b8f498) APPLYING BASIC VPN RULES
      2016-03-17 18:09:20,884 WARN [o.a.c.n.t.BasicNetworkTopology] (API-Job-Executor-78:ctx-d46bb041 job-1270 ctx-84f2718d) (logid:77b8f498) Failed to add/remove VPN users: router not in running state
      2016-03-17 18:09:20,885 WARN [c.c.n.v.RemoteAccessVpnManagerImpl] (API-Job-Executor-78:ctx-d46bb041 job-1270 ctx-84f2718d) (logid:77b8f498) Unable to apply vpn users
      com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1] is unreachable: Unable to assign ip addresses, domR is not in right state Stopped
      at org.apache.cloudstack.network.topology.BasicNetworkTopology.applyVpnUsers(BasicNetworkTopology.java:283)
      at com.cloud.network.element.VirtualRouterElement.applyVpnUsers(VirtualRouterElement.java:441)
      at com.cloud.network.vpn.RemoteAccessVpnManagerImpl.applyVpnUsers(RemoteAccessVpnManagerImpl.java:529)
      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:606)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at com.sun.proxy.$Proxy232.applyVpnUsers(Unknown Source)
      at org.apache.cloudstack.api.command.user.vpn.AddVpnUserCmd.execute(AddVpnUserCmd.java:122)
      at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
      at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
      at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:554)
      at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
      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 org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
      at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:502)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      2016-03-17 18:09:20,888 DEBUG [o.a.c.n.t.BasicNetworkTopology] (API-Job-Executor-78:ctx-d46bb041 job-1270 ctx-84f2718d) (logid:77b8f498) APPLYING BASIC VPN RULES
      2016-03-17 18:09:20,892 DEBUG [c.c.a.t.Request] (API-Job-Executor-78:ctx-d46bb041 job-1270 ctx-84f2718d) (logid:77b8f498) Seq 1-98516241848738091: Sending { Cmd , MgmtId: 246744086697988, via: 1(acstest.assistanz.com), Ver: v1, Flags: 100101, [{"com.cloud.agent.api.routing.VpnUsersCfgCommand":{"userpwds":[

      {"username":"sibin","add":true}

      ],"accessDetails":

      {"account.id":"5","zone.network.type":"Advanced","router.ip":"169.254.2.99","router.name":"r-55-VM"}

      ,"wait":0}}] }

      But the router is in running state and when I tried to restart the service in VR console : /etc/init.d/cloud-early-config . It is showing entry for the added user in the logs . Is there any fix available for this issue ?..

      Attachments

        Activity

          People

            Unassigned Unassigned
            sibinjohn Sibin John
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: