You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "sadhu suresh (JIRA)" <ji...@apache.org> on 2013/07/09 10:54:20 UTC

[jira] [Closed] (CLOUDSTACK-2649) createLoadBalancerRule API:both ports getting same value(public port value assigned to private port)

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

sadhu suresh closed CLOUDSTACK-2649.
------------------------------------


verified the issue and found to be OK.now both ports getting proper values.

                
> createLoadBalancerRule API:both ports getting same value(public port value assigned to private port)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2649
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2649
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.2.0
>            Reporter: sadhu suresh
>            Assignee: Mice Xia
>         Attachments: screenshot.jpg
>
>
> private port is getting public port value even both port values are different during creation off lB rule
> steps:
> 1.configure the LB rule by providing public port as 234 and private port 22
> 2.once its successful,check the displayed lb rules 
> Actual:
> Both public and private ports getting same values i.e  in this case its shows  value "234" for both public and private range instead  showing  public port value as 234 and private port value as 22.
> triggered api:
> http://10.147.59.194:8080/client/api?command=createLoadBalancerRule&response=json&sessionkey=YEn4JREMKjkpNlHmkFXtvKhQX6U%3D&algorithm=roundrobin&name=sss&privateport=22&publicport=234&openfirewall=false&networkid=9825ddd8-7f5b-4d84-9387-062238cc4dab&publicipid=c1286e16-d121-48e2-bf4f-74509768b345&_=1369310475074
> GET http://10.147.59.194:8080/client/api?command=lis...2-bf4f-74509768b345&listAll=true&_=1369310481630
> 	
> 200 OK
> { "listloadbalancerrulesresponse" : { "count":1 ,"loadbalancerrule" : [  {"id":"a8cfb313-e7da-4b48-87cd-9eecd10a562c","name":"sss","publicipid":"c1286e16-d121-48e2-bf4f-74509768b345","publicip":"10.147.44.91","publicport":"234","privateport":"234","algorithm":"roundrobin","cidrlist":"","account":"sadhu","domainid":"5cbd5522-c12d-11e2-8a66-069f2c0000aa","domain":"ROOT","state":"Active","zoneid":"f9e6b4ba-7169-473b-9111-397f340d9a46","tags":[]} ] } }
> mysql> select * from load_balancing_rules where id=46;
> +----+------+-------------+--------------------+------------------+------------+-------------------+------------------------------+--------+
> | id | name | description | default_port_start | default_port_end | algorithm  | source_ip_address | source_ip_address_network_id | scheme |
> +----+------+-------------+--------------------+------------------+------------+-------------------+------------------------------+--------+
> | 46 | sss  | NULL        |                234 |              234 | roundrobin | NULL              |                         NULL | Public |
> +----+------+-------------+--------------------+------------------+------------+-------------------+------------------------------+--------+
> 1 row in set (0.00 sec)
> mysql> select * from firewall_rules where id=46;
> +----+--------------------------------------+---------------+------------+----------+--------+----------+---------------+------------+-----------+------------+--------------------------------------+---------------------+-----------+-----------+---------+------+--------+--------------+
> | id | uuid                                 | ip_address_id | start_port | end_port | state  | protocol | purpose       | account_id | domain_id | network_id | xid                                  | created             | icmp_code | icmp_type | related | type | vpc_id | traffic_type |
> +----+--------------------------------------+---------------+------------+----------+--------+----------+---------------+------------+-----------+------------+--------------------------------------+---------------------+-----------+-----------+---------+------+--------+--------------+
> | 46 | a8cfb313-e7da-4b48-87cd-9eecd10a562c |            63 |        234 |      234 | Active | tcp      | LoadBalancing |          8 |         1 |        221 | f12b0cbf-87df-4b4c-aa3e-754ae3bccf9c | 2013-05-23 17:30:12 |      NULL |      NULL |    NULL | User |   NULL | NULL         |
> +----+--------------------------------------+---------------+------------+----------+--------+----------+---------------+------------+-----------+------------+--------------------------------------+---------------------+-----------+-----------+---------+------+--------+--------------+
> 1 row 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