[
https://issues.apache.org/jira/browse/CLOUDSTACK-2458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655896#comment-13655896
]
Sowmya Krishnan commented on CLOUDSTACK-2458:
---------------------------------------------
Logs from managment server while creating LB:
2013-05-13 15:49:25,069 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-22:null) submit async job-20, details: AsyncJobVO {id:20,
userId: 2, accountId
: 2, sessionKey: null, instanceType: FirewallRule, instanceId: 1, cmd:
org.apache.cloudstack.api.command.user.loadbalancer.CreateLoadBalancerRuleCmd,
cmdOrig
inator: null, cmdInfo:
{"sessionkey":"Xe+KSREjpYzZdN5lEFHNpHtwGq4\u003d","ctxUserId":"2","httpmethod":"GET","openfirewall":"false","publicipid":"d479ccdd-c56
3-420c-819a-6f944f474eee","algorithm":"roundrobin","privateport":"22","response":"json","id":"1","name":"lbtier1","publicport":"22","_":"1368440350732","ctxA
ccountId":"2","networkid":"56049aa2-b466-4e69-9c81-80da3c691b9e","ctxStartEventId":"74"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, p
rocessStatus: 0, resultCode: 0, result: null, initMsid: 222771523617711,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-05-13 15:49:25,071 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null)
===END=== 10.151.138.80 -- GET command=createLoadBalancerRule&response=json&se
ssionkey=Xe%2BKSREjpYzZdN5lEFHNpHtwGq4%3D&algorithm=roundrobin&name=lbtier1&privateport=22&publicport=22&openfirewall=false&networkid=56049aa2-b466-4e69-9c81
-80da3c691b9e&publicipid=d479ccdd-c563-420c-819a-6f944f474eee&_=1368440350732
2013-05-13 15:49:25,073 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-5:job-20) Executing
org.apache.cloudstack.api.command.user.loadbalancer.CreateLoadBalancerRuleCmd
for job-20
2013-05-13 15:49:25,121 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-5:job-20) Complete async job-20, jobStatus: 1, resultCode: 0,
result: org.apache.cloudstack.api.response.LoadBalancerResponse@1982902f
2013-05-13 15:49:25,125 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null)
===START=== 10.151.138.80 -- GET
command=assignToLoadBalancerRule&response=json&sessionkey=Xe%2BKSREjpYzZdN5lEFHNpHtwGq4%3D&id=9140e2fc-9025-41d7-8210-90b79a4ebc96&virtualmachineids=3e06a98a-79f7-401a-ba45-03f37bc685fa%2C92247922-1080-4429-8a53-34bff7747eef&_=1368440351022
2013-05-13 15:49:25,136 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-5:job-20) Done executing
org.apache.cloudstack.api.command.user.loadbalancer.CreateLoadBalancerRuleCmd
for job-20
2013-05-13 15:49:25,180 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-23:null) submit async job-21, details: AsyncJobVO {id:21,
userId: 2, accountId: 2, sessionKey: null, instanceType: None, instanceId:
null, cmd:
org.apache.cloudstack.api.command.user.loadbalancer.AssignToLoadBalancerRuleCmd,
cmdOriginator: null, cmdInfo:
{"id":"9140e2fc-9025-41d7-8210-90b79a4ebc96","response":"json","sessionkey":"Xe+KSREjpYzZdN5lEFHNpHtwGq4\u003d","virtualmachineids":"3e06a98a-79f7-401a-ba45-03f37bc685fa,92247922-1080-4429-8a53-34bff7747eef","ctxUserId":"2","httpmethod":"GET","_":"1368440351022","ctxAccountId":"2","ctxStartEventId":"75"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 222771523617711,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-05-13 15:49:25,183 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null)
===END=== 10.151.138.80 -- GET
command=assignToLoadBalancerRule&response=json&sessionkey=Xe%2BKSREjpYzZdN5lEFHNpHtwGq4%3D&id=9140e2fc-9025-41d7-8210-90b79a4ebc96&virtualmachineids=3e06a98a-79f7-401a-ba45-03f37bc685fa%2C92247922-1080-4429-8a53-34bff7747eef&_=1368440351022
2013-05-13 15:49:25,184 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-6:job-21) Executing
org.apache.cloudstack.api.command.user.loadbalancer.AssignToLoadBalancerRuleCmd
for job-21
2013-05-13 15:49:25,203 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-6:job-21) Sync job-21 execution on object network.204
2013-05-13 15:49:25,227 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-6:job-21) job
org.apache.cloudstack.api.command.user.loadbalancer.AssignToLoadBalancerRuleCmd
for job-21 was queued, processing the queue.
2013-05-13 15:49:25,240 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-6:job-21) Executing sync queue item: SyncQueueItemVO {id:1,
queueId: 1, contentType: AsyncJob, contentId: 21, lastProcessMsid:
222771523617711, lastprocessNumber: 1, lastProcessTime: Mon May 13 15:49:25 IST
2013, created: Mon May 13 15:49:25 IST 2013}
2013-05-13 15:49:25,242 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-6:job-21) Schedule queued job-21
2013-05-13 15:49:25,248 DEBUG [cloud.async.SyncQueueManagerImpl]
(Job-Executor-6:job-21) There is a pending process in sync queue(id: 1)
2013-05-13 15:49:25,249 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-7:job-21) Executing
org.apache.cloudstack.api.command.user.loadbalancer.AssignToLoadBalancerRuleCmd
for job-21
2013-05-13 15:49:25,289 DEBUG [network.lb.LoadBalancingRulesManagerImpl]
(Job-Executor-7:job-21) Adding VM[User|3e06a98a-79f7-401a-ba45-03f37bc685fa] to
the load balancer pool
2013-05-13 15:49:25,294 DEBUG [network.lb.LoadBalancingRulesManagerImpl]
(Job-Executor-7:job-21) Adding VM[User|92247922-1080-4429-8a53-34bff7747eef] to
the load balancer pool
2013-05-13 15:49:25,379 DEBUG [network.lb.LoadBalancingRulesManagerImpl]
(Job-Executor-7:job-21) LB rule 1 state is set to Active
2013-05-13 15:49:25,399 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-7:job-21) Complete async job-21, jobStatus: 1, resultCode: 0,
result: org.apache.cloudstack.api.response.SuccessResponse@2e35f726
2013-05-13 15:49:25,423 DEBUG [cloud.async.SyncQueueManagerImpl]
(Job-Executor-7:job-21) Sync queue (1) is currently empty
2013-05-13 15:49:25,425 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-7:job-21) Done executing
org.apache.cloudstack.api.command.user.loadbalancer.AssignToLoadBalancerRuleCmd
for job-21
2013-05-13 15:49:25,664 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-9:null) Ping from 4
2013-05-13 15:49:25,698 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-10:null) Ping from 3
2013-05-13 15:49:28,245 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null)
===START=== 10.151.138.80 -- GET
command=queryAsyncJobResult&jobId=f64a1a32-ecf5-4a80-80b8-35a19b960130&response=json&sessionkey=Xe%2BKSREjpYzZdN5lEFHNpHtwGq4%3D&_=1368440354135
2013-05-13 15:49:28,259 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-24:null) Async job-21 completed
> Unable to create LB rule in VPC using NS: vpc_service_map table does not have
> NS as service provider for LB
> -----------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-2458
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2458
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Network Controller
> Affects Versions: 4.2.0
> Environment: Master branch, commit id:
> df39196bf77ac67129d8026075f7a71249f137e1
> Hypervisor: Xen Server
> Reporter: Sowmya Krishnan
> Priority: Blocker
> Fix For: 4.2.0
>
>
> Failing to create LB rule with NS as external LB provider in a VPC
> Steps:
> Add NS as a dedicated NS provider
> Create VPC with "Default Offering with NS"
> Create VPC enabled Network offering and add Netscaler as the LB in the
> offering
> Create a network tier with the above network offering and try to add LB rule
> Observations:
> Fails to create LB rule in NS
> Also find that after VPC is created with "Default Offering as NS",
> vpc_service_map is not updated with service provider as NS. I find only
> InternalLB as the provider for LB:
> mysql> select * from vpc_service_map;
> +----+--------+----------------+------------------+---------------------+
> | id | vpc_id | service | provider | created |
> +----+--------+----------------+------------------+---------------------+
> | 1 | 1 | Dns | VpcVirtualRouter | 2013-05-13 09:41:51 |
> | 2 | 1 | SourceNat | VpcVirtualRouter | 2013-05-13 09:41:51 |
> | 3 | 1 | StaticNat | VpcVirtualRouter | 2013-05-13 09:41:51 |
> | 4 | 1 | NetworkACL | VpcVirtualRouter | 2013-05-13 09:41:51 |
> | 5 | 1 | Gateway | VpcVirtualRouter | 2013-05-13 09:41:51 |
> | 6 | 1 | Dhcp | VpcVirtualRouter | 2013-05-13 09:41:51 |
> | 7 | 1 | UserData | VpcVirtualRouter | 2013-05-13 09:41:51 |
> | 8 | 1 | Vpn | VpcVirtualRouter | 2013-05-13 09:41:51 |
> | 9 | 1 | Lb | InternalLbVm | 2013-05-13 09:41:51 |
> | 10 | 1 | PortForwarding | VpcVirtualRouter | 2013-05-13 09:41:51 |
> +----+--------+----------------+------------------+---------------------+
> 10 rows in set (0.00 sec)
> mysql> select * from vpc;
> +----+--------------------------------------+------+--------------+--------------+-----------------+---------+---------+-----------+------------+-------------------+---------+---------------------+------------------+
> | id | uuid | name | display_text | cidr
> | vpc_offering_id | zone_id | state | domain_id | account_id |
> network_domain | removed | created | restart_required |
> +----+--------------------------------------+------+--------------+--------------+-----------------+---------+---------+-----------+------------+-------------------+---------+---------------------+------------------+
> | 1 | 4f5402b8-b108-4d87-a3dc-3e523097eaa2 | VPC1 | VPC1 |
> 10.10.1.0/24 | 2 | 1 | Enabled | 1 | 1 |
> cs1cloud.internal | NULL | 2013-05-13 09:41:51 | 0 |
> +----+--------------------------------------+------+--------------+--------------+-----------------+---------+---------+-----------+------------+-------------------+---------+---------------------+------------------+
> 1 row in set (0.00 sec)
> mysql> select * from vpc_offerings;
> +----+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+---------+---------+---------+---------------------+---------------------+
> | id | uuid | unique_name
> | name | display_text
> | state | default | removed | created |
> service_offering_id |
> +----+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+---------+---------+---------+---------------------+---------------------+
> | 1 | 439946b1-511b-465e-ae10-bd44d9b57a1d | Default VPC offering
> | Default VPC offering | Default VPC offering
> | Enabled | 1 | NULL | 2013-05-13 09:24:46 |
> NULL |
> | 2 | 7ad9249c-31b5-4e1d-b99c-acbefa9c5995 | Default VPC offering with
> Netscaler | Default VPC offering with Netscaler | Default VPC offering with
> Netscaler | Enabled | 0 | NULL | 2013-05-13 09:24:46 |
> NULL |
> +----+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+---------+---------+---------+---------------------+---------------------+
> 2 rows in set (0.00 sec)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira