cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishan Kavala (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-2429) NTier: Management Server Code doesnt check for the existance of a duplicate Static Route on a different Private Gateway to the same VPC. Fails on the VPC VR.
Date Tue, 09 Jul 2013 12:05:48 GMT

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

Kishan Kavala resolved CLOUDSTACK-2429.
---------------------------------------

    Resolution: Fixed
    
> NTier: Management Server Code doesnt check for the existance of a duplicate Static Route
on a different Private Gateway to the same VPC. Fails on the VPC VR.
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2429
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2429
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>            Reporter: Chandan Purushothama
>            Assignee: Kishan Kavala
>             Fix For: 4.2.0
>
>
> ===============
> Steps to Reproduce:
> ===============
> 1. Create a VPC.
> 2. Create a Private Gateway to the VPC.
> 3. Create a Static Route on the Private Gateway.
> 4. Create a New Private Gateway (belonging to a different network) to the same VPC.
> 5. Create the same Static Route specified in Step 3 on the new Private Gateway
> ==========
> Observations:
> ==========
> "Failed to Create Static Route" message is thrown to the Admin
> ------
> Job:
> ------
> 2013-05-09 17:25:25,531 DEBUG [network.vpc.VpcManagerImpl] (catalina-exec-8:null) Adding
static route StaticRoute[f1ab8435-3927-4b97-af0b-4bf3b528c825|10.223.59.0/26|2]
> 2013-05-09 17:25:25,556 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null)
submit async job-20, details: AsyncJobVO {id:20, userId: 2, accountId: 2, sessionKey: null,
instanceType: StaticRoute, instanceId: 2, cmd: org.apache.cloudstack.api.command.user.vpc.CreateStaticRouteCmd,
cmdOriginator: null, cmdInfo: {"id":"2","response":"json","sessionkey":"mVbz4t50wjrJYpDOI5oGEAi16GU\u003d","ctxUserId":"2","gatewayid":"6297b0db-be41-4032-8081-9fe3c5f5ae40","httpmethod":"GET","_":"1368145563076","ctxAccountId":"2","ctxStartEventId":"90","cidr":"10.223.59.0/26"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 7508777239729, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
> 2013-05-09 17:25:25,558 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END===
 10.216.132.104 -- GET  command=createStaticRoute&response=json&sessionkey=mVbz4t50wjrJYpDOI5oGEAi16GU%3D&gatewayid=6297b0db-be41-4032-8081-9fe3c5f5ae40&cidr=10.223.59.0%2F26&_=1368145563076
> 2013-05-09 17:25:25,560 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-12:job-20)
Executing org.apache.cloudstack.api.command.user.vpc.CreateStaticRouteCmd for job-20
> 2013-05-09 17:25:25,567 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-12:job-20)
Sync job-20 execution on object vpc.2
> 2013-05-09 17:25:25,574 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-12:job-20)
job org.apache.cloudstack.api.command.user.vpc.CreateStaticRouteCmd for job-20 was queued,
processing the queue.
> 2013-05-09 17:25:25,580 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-12:job-20)
Executing sync queue item: SyncQueueItemVO {id:6, queueId: 3, contentType: AsyncJob, contentId:
20, lastProcessMsid: 7508777239729, lastprocessNumber: 4, lastProcessTime: Thu May 09 17:25:25
PDT 2013, created: Thu May 09 17:25:25 PDT 2013}
> 2013-05-09 17:25:25,582 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-12:job-20)
Schedule queued job-20
> 2013-05-09 17:25:25,590 DEBUG [cloud.async.SyncQueueManagerImpl] (Job-Executor-12:job-20)
There is a pending process in sync queue(id: 3)
> 2013-05-09 17:25:25,591 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-13:job-20)
Executing org.apache.cloudstack.api.command.user.vpc.CreateStaticRouteCmd for job-20
> 2013-05-09 17:25:25,603 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-13:job-20) Applying
static routes for vpc [VPC [2-Atoms-VPC-2]
> 2013-05-09 17:25:25,612 DEBUG [agent.transport.Request] (Job-Executor-13:job-20) Seq
1-1403650117: Sending  { Cmd , MgmtId: 7508777239729, via: 1, Ver: v1, Flags: 100001, [{"routing.SetStaticRouteCommand":{"staticRoutes":[{"id":1,"uuid":"c3db326c-5c90-400b-a06f-3c9b50f5bb66","targetCidr":"10.223.59.0/26","accountId":3,"domainId":1,"gatewayId":1,"state":"Active","vpcId":2,"vlanTag":"600","gateway":"10.223.60.1","netmask":"255.255.255.192","ipAddress":"10.223.60.30"},{"id":2,"uuid":"f1ab8435-3927-4b97-af0b-4bf3b528c825","targetCidr":"10.223.59.0/26","accountId":3,"domainId":1,"gatewayId":2,"state":"Add","vpcId":2,"vlanTag":"601","gateway":"10.223.60.65","netmask":"255.255.255.192","ipAddress":"10.223.60.66"}],"accessDetails":{"zone.network.type":"Advanced","router.ip":"169.254.2.129","router.name":"r-4-NTIER"},"wait":0}}]
}
> 2013-05-09 17:25:25,851 DEBUG [agent.transport.Request] (AgentManager-Handler-2:null)
Seq 1-1403650117: Processing:  { Ans: , MgmtId: 7508777239729, via: 1, Ver: v1, Flags: 0,
[{"routing.SetStaticRouteAnswer":{"results":["Failed","Failed"],"result":false,"wait":0}}]
}
> 2013-05-09 17:25:25,851 DEBUG [agent.transport.Request] (Job-Executor-13:job-20) Seq
1-1403650117: Received:  { Ans: , MgmtId: 7508777239729, via: 1, Ver: v1, Flags: 0, { SetStaticRouteAnswer
} }
> 2013-05-09 17:25:25,853 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-13:job-20) Revoking
static route StaticRoute[f1ab8435-3927-4b97-af0b-4bf3b528c825|10.223.59.0/26|2]
> 2013-05-09 17:25:25,858 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-13:job-20) Marked
static route StaticRoute[f1ab8435-3927-4b97-af0b-4bf3b528c825|10.223.59.0/26|2] with state
Revoke
> 2013-05-09 17:25:25,861 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-13:job-20) Applying
static routes for vpc [VPC [2-Atoms-VPC-2]
> 2013-05-09 17:25:25,869 DEBUG [agent.transport.Request] (Job-Executor-13:job-20) Seq
1-1403650118: Sending  { Cmd , MgmtId: 7508777239729, via: 1, Ver: v1, Flags: 100001, [{"routing.SetStaticRouteCommand":{"staticRoutes":[{"id":1,"uuid":"c3db326c-5c90-400b-a06f-3c9b50f5bb66","targetCidr":"10.223.59.0/26","accountId":3,"domainId":1,"gatewayId":1,"state":"Active","vpcId":2,"vlanTag":"600","gateway":"10.223.60.1","netmask":"255.255.255.192","ipAddress":"10.223.60.30"},{"id":2,"uuid":"f1ab8435-3927-4b97-af0b-4bf3b528c825","targetCidr":"10.223.59.0/26","accountId":3,"domainId":1,"gatewayId":2,"state":"Revoke","vpcId":2,"vlanTag":"601","gateway":"10.223.60.65","netmask":"255.255.255.192","ipAddress":"10.223.60.66"}],"accessDetails":{"zone.network.type":"Advanced","router.ip":"169.254.2.129","router.name":"r-4-NTIER"},"wait":0}}]
}
> 2013-05-09 17:25:26,070 DEBUG [agent.transport.Request] (AgentManager-Handler-3:null)
Seq 1-1403650118: Processing:  { Ans: , MgmtId: 7508777239729, via: 1, Ver: v1, Flags: 0,
[{"routing.SetStaticRouteAnswer":{"results":[null,null],"result":true,"wait":0}}] }
> 2013-05-09 17:25:26,071 DEBUG [agent.transport.Request] (Job-Executor-13:job-20) Seq
1-1403650118: Received:  { Ans: , MgmtId: 7508777239729, via: 1, Ver: v1, Flags: 0, { SetStaticRouteAnswer
} }
> 2013-05-09 17:25:26,071 DEBUG [network.element.VpcVirtualRouterElement] (Job-Executor-13:job-20)
Applied static routes on vpc [VPC [2-Atoms-VPC-2]
> 2013-05-09 17:25:26,071 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-13:job-20) Applied
static routes for vpc [VPC [2-Atoms-VPC-2]
> 2013-05-09 17:25:26,077 DEBUG [network.vpc.VpcManagerImpl] (Job-Executor-13:job-20) Removed
route StaticRoute[f1ab8435-3927-4b97-af0b-4bf3b528c825|10.223.59.0/26|2] from the DB
> 2013-05-09 17:25:26,082 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-13:job-20)
Complete async job-20, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
Failed to create static route
> 2013-05-09 17:25:26,105 DEBUG [cloud.async.SyncQueueManagerImpl] (Job-Executor-13:job-20)
Sync queue (3) is currently empty
> mysql> select * from vpc_gateways;
> +----+--------------------------------------+--------------+-----------------+--------------+----------+---------+------------+--------+---------+---------------------+------------+-----------+-------+---------+------------+
> | id | uuid                                 | ip4_address  | netmask         | gateway
     | vlan_tag | type    | network_id | vpc_id | zone_id | created             | account_id
| domain_id | state | removed | source_nat |
> +----+--------------------------------------+--------------+-----------------+--------------+----------+---------+------------+--------+---------+---------------------+------------+-----------+-------+---------+------------+
> |  1 | 29b621cc-d91f-4634-9f03-699c3ee6405c | 10.223.60.30 | 255.255.255.192 | 10.223.60.1
 | 600      | Private |        208 |      2 |       1 | 2013-05-10 00:20:42 |          3 |
        1 | Ready | NULL    |          0 |
> |  2 | 6297b0db-be41-4032-8081-9fe3c5f5ae40 | 10.223.60.66 | 255.255.255.192 | 10.223.60.65
| 601      | Private |        210 |      2 |       1 | 2013-05-10 00:23:09 |          3 |
        1 | Ready | NULL    |          0 |
> +----+--------------------------------------+--------------+-----------------+--------------+----------+---------+------------+--------+---------+---------------------+------------+-----------+-------+---------+------------+
> 2 rows in set (0.00 sec)
> mysql> select * from static_routes;
> +----+--------------------------------------+----------------+----------------+--------+--------+------------+-----------+---------------------+
> | id | uuid                                 | vpc_gateway_id | cidr           | state
 | vpc_id | account_id | domain_id | created             |
> +----+--------------------------------------+----------------+----------------+--------+--------+------------+-----------+---------------------+
> |  1 | c3db326c-5c90-400b-a06f-3c9b50f5bb66 |              1 | 10.223.59.0/26 | Active
|      2 |          3 |         1 | 2013-05-10 00:21:12 |
> +----+--------------------------------------+----------------+----------------+--------+--------+------------+-----------+---------------------+
> 1 row in set (0.00 sec)
> -------------------------
> On the VPC VR:
> -------------------------
> May  9 23:31:59 r-4-NTIER cloud: vpc_staticroute.sh: static route: public ip=10.223.60.30
  #011gateway=10.223.60.1 cidr=10.223.59.0/26
> May  9 23:31:59 r-4-NTIER cloud: vpc_staticroute.sh: done static route: public ip=10.223.60.30
  #011gateway=10.223.60.1 cidr=10.223.59.0/26
> May  9 23:31:59 r-4-NTIER cloud: vpc_staticroute.sh: successful in applying fw rules
for guest network:
> May  9 23:31:59 r-4-NTIER cloud: vpc_staticroute.sh: static route: public ip=10.223.60.66
  #011gateway=10.223.60.65 cidr=10.223.59.0/26
> May  9 23:31:59 r-4-NTIER cloud: vpc_staticroute.sh: done static route: public ip=10.223.60.66
  #011gateway=10.223.60.65 cidr=10.223.59.0/26
> May  9 23:31:59 r-4-NTIER cloud: vpc_staticroute.sh: failure to apply fw rules for guest
network:
> May  9 23:31:59 r-4-NTIER cloud: vpc_staticroute.sh: restoring from backup for guest
network:
> May  9 23:31:59 r-4-NTIER cloud: vpc_staticroute.sh: static route: public ip=10.223.60.30
  #011gateway=10.223.60.1 cidr=10.223.59.0/26
> May  9 23:32:00 r-4-NTIER cloud: vpc_staticroute.sh: done static route: public ip=10.223.60.30
  #011gateway=10.223.60.1 cidr=10.223.59.0/26
> May  9 23:32:00 r-4-NTIER cloud: vpc_staticroute.sh: successful in applying fw rules
for guest network:
> May  9 23:32:00 r-4-NTIER cloud: vpc_staticroute.sh: successful in applying fw rules
for guest network:
> May  9 23:32:00 r-4-NTIER cloud: vpc_staticroute.sh: deleting backup for guest network:

--
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

Mime
View raw message