cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murali Reddy (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-6827) Can't enable VR service provider in case of multiple physical networks
Date Mon, 13 Oct 2014 03:31:34 GMT

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

Murali Reddy resolved CLOUDSTACK-6827.
--------------------------------------
    Resolution: Not a Problem

Before updating you need to add VR as NetworkServiceProvider into physical network. Its seems,
adding VR is not exposed through UI, But if you try with api call, before invoking updateNetworkServiceProvider
to enable the provider in physical network it should work.

> Can't enable VR service provider in case of multiple physical networks
> ----------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6827
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6827
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server, Network Controller
>    Affects Versions: 4.4.0
>         Environment: Latest build from 4.4 with commit 32bbc84db99d0e5f7f9b2a3fb41e4e783a2de350
>            Reporter: Sanjeev N
>            Assignee: Murali Reddy
>            Priority: Critical
>             Fix For: 4.4.0
>
>         Attachments: management-server.rar
>
>
> Can't enable VR service provider in case of multiple physical networks
> Steps to reproduce:
> ==============
> 1.Bring up CS in advanced zone with xen cluster
> 2.Once the system is up disable the zone and add another physical network and add only
guest traffic into it.
> 3.Go to network service providers in the physical network 
> 4.All the providers are disabled by default. Try to enable Virtual Router
> http://10.147.59.119:8096/client/api?command=updateNetworkServiceProvider&id=beb30cda-7e3a-44e9-b179-c1c6fd605b47&state=Enabled
> Result:
> =====
> Enabling VR service provider failed and observed following exception:
> 2014-06-03 06:13:54,846 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (ApiServer-8:ctx-8602d969
ctx-e30c2238) submit async job-82, details: AsyncJobVO {id:82, userId: 1, accountId: 1, instanceType:
PhysicalNetworkServiceProvider, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd,
cmdInfo: {"id":"beb30cda-7e3a-44e9-b179-c1c6fd605b47","ctxDetails":"{\"PhysicalNetworkServiceProvider\":\"beb30cda-7e3a-44e9-b179-c1c6fd605b47\",\"com.cloud.network.PhysicalNetworkServiceProvider\":6}","cmdEventType":"SERVICE.PROVIDER.UPDATE","ctxUserId":"1","state":"Enabled","httpmethod":"GET","uuid":"beb30cda-7e3a-44e9-b179-c1c6fd605b47","ctxAccountId":"1","ctxStartEventId":"218"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
7332683579487, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2014-06-03 06:13:54,853 INFO  [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-45:ctx-4f22f44a
job-82) Add job-82 into job monitoring
> 2014-06-03 06:13:54,853 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-45:ctx-4f22f44a
job-82) Executing AsyncJobVO {id:82, userId: 1, accountId: 1, instanceType: PhysicalNetworkServiceProvider,
instanceId: null, cmd: org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd,
cmdInfo: {"id":"beb30cda-7e3a-44e9-b179-c1c6fd605b47","ctxDetails":"{\"PhysicalNetworkServiceProvider\":\"beb30cda-7e3a-44e9-b179-c1c6fd605b47\",\"com.cloud.network.PhysicalNetworkServiceProvider\":6}","cmdEventType":"SERVICE.PROVIDER.UPDATE","ctxUserId":"1","state":"Enabled","httpmethod":"GET","uuid":"beb30cda-7e3a-44e9-b179-c1c6fd605b47","ctxAccountId":"1","ctxStartEventId":"218"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid:
7332683579487, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2014-06-03 06:13:54,860 WARN  [c.c.a.d.ParamGenericValidationWorker] (API-Job-Executor-45:ctx-4f22f44a
job-82 ctx-f118a929) Received unknown parameters for command updateNetworkServiceProvider.
Unknown parameters : ctxdetails
> 2014-06-03 06:13:54,871 DEBUG [c.c.n.NetworkServiceImpl] (API-Job-Executor-45:ctx-4f22f44a
job-82 ctx-f118a929) trying to update the state of the service provider id=6 on physical network:
201 to state: Enabled
> 2014-06-03 06:13:54,878 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-e6a2a82e)
HostStatsCollector is running...
> 2014-06-03 06:13:54,885 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-45:ctx-4f22f44a
job-82) Unexpected exception while executing org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd
> com.cloud.utils.exception.CloudRuntimeException: Provider is not ready, cannot Enable
the provider, please configure the provider first
>         at com.cloud.network.NetworkServiceImpl.updateNetworkServiceProvider(NetworkServiceImpl.java:3425)
>         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.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
>         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.$Proxy154.updateNetworkServiceProvider(Unknown Source)
>         at org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd.execute(UpdateNetworkServiceProviderCmd.java:94)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>         at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
>         at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
>         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:460)
>         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:744)
> 2014-06-03 06:13:54,891 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-45:ctx-4f22f44a
job-82) Complete async job-82, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Provider
is not ready, cannot Enable the provider, please configure the provider first"}
> 2014-06-03 06:13:54,897 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-276:ctx-09ed98fe)
Seq 1-8504203471359067054: Executing request
> 2014-06-03 06:13:54,907 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-45:ctx-4f22f44a
job-82) Done executing org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd
for job-82
> mysql> select * from physical_network;
> +-----+--------------------------------------+--------------------+----------------+----------+-------+-----------+------------------------+---------+---------------------+---------+
> | id  | uuid                                 | name               | data_center_id |
vnet     | speed | domain_id | broadcast_domain_range | state   | created             | removed
|
> +-----+--------------------------------------+--------------------+----------------+----------+-------+-----------+------------------------+---------+---------------------+---------+
> | 200 | a1476a68-e86e-4650-9016-1f20348b50ab | Physical Network 1 |              1 |
981-1000 | NULL  |      NULL | ZONE                   | Enabled | 2014-05-30 16:45:51 | NULL
   |
> | 201 | 8716a0a8-4196-424e-a7f2-d89a2b3dda29 | Physical Network2  |              1 |
NULL     | NULL  |         1 | ZONE                   | Enabled | 2014-06-02 17:44:47 | NULL
   |
> +-----+--------------------------------------+--------------------+----------------+----------+-------+-----------+------------------------+---------+---------------------+---------+
> 2 rows in set (0.00 sec)
> mysql> select * from physical_network_service_providers where physical_network_id=201;
> +----+--------------------------------------+---------------------+-----------------------+----------+---------------------------------+----------------------+-----------------------+----------------------+--------------------------+---------------------------+-----------------------------+-------------------------------+-----------------------------+----------------------------------+----------------------------+---------------------------------+-----------------------------+---------+
> | id | uuid                                 | physical_network_id | provider_name   
     | state    | destination_physical_network_id | vpn_service_provided | dhcp_service_provided
| dns_service_provided | gateway_service_provided | firewall_service_provided | source_nat_service_provided
| load_balance_service_provided | static_nat_service_provided | port_forwarding_service_provided
| user_data_service_provided | security_group_service_provided | networkacl_service_provided
| removed |
> +----+--------------------------------------+---------------------+-----------------------+----------+---------------------------------+----------------------+-----------------------+----------------------+--------------------------+---------------------------+-----------------------------+-------------------------------+-----------------------------+----------------------------------+----------------------------+---------------------------------+-----------------------------+---------+
> |  6 | beb30cda-7e3a-44e9-b179-c1c6fd605b47 |                 201 | VirtualRouter   
     | Disabled |                               0 |                    1 |               
     1 |                    1 |                        1 |                         1 |   
                       1 |                             1 |                           1 | 
                              1 |                          1 |                           
   0 |                           0 | NULL    |
> |  7 | 492606fc-9edc-4e65-9dcd-f49818ec3eeb |                 201 | Ovs             
     | Enabled  |                               0 |                    0 |               
     0 |                    0 |                        0 |                         0 |   
                       0 |                             1 |                           1 | 
                              1 |                          0 |                           
   0 |                           0 | NULL    |
> |  8 | e6c335cb-2155-47d5-8ba6-01bf48b7e970 |                 201 | SecurityGroupProvider
| Disabled |                               0 |                    0 |                    
0 |                    0 |                        0 |                         0 |        
                  0 |                             0 |                           0 |      
                         0 |                          0 |                               1
|                           0 | NULL    |
> |  9 | 2419167e-bacf-4966-86ad-66da4591dc63 |                 201 | VpcVirtualRouter
     | Disabled |                               0 |                    1 |               
     1 |                    1 |                        1 |                         0 |   
                       1 |                             1 |                           1 | 
                              1 |                          1 |                           
   0 |                           1 | NULL    |
> | 10 | 00f76b14-f3a4-405e-9296-d070d797a6b3 |                 201 | InternalLbVm    
     | Disabled |                               0 |                    0 |               
     0 |                    0 |                        0 |                         0 |   
                       0 |                             1 |                           0 | 
                              0 |                          0 |                           
   0 |                           0 | NULL    |
> +----+--------------------------------------+---------------------+-----------------------+----------+---------------------------------+----------------------+-----------------------+----------------------+--------------------------+---------------------------+-----------------------------+-------------------------------+-----------------------------+----------------------------------+----------------------------+---------------------------------+-----------------------------+---------+
> 5 rows in set (0.00 sec)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message