You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by nitin-maharana <gi...@git.apache.org> on 2016/01/13 11:07:57 UTC

[GitHub] cloudstack pull request: CLOUDSTACK-9229: Autoscale policy creatio...

GitHub user nitin-maharana opened a pull request:

    https://github.com/apache/cloudstack/pull/1334

    CLOUDSTACK-9229: Autoscale policy creation failing in VPC due to zone id missing in createAutoScaleVmProfile

    Autoscale policy creation is failing on VPC while creating autoscalevmprofile since zoneid parameter is missing.
    
    Steps to Reproduce:
    ================
    1. Create VPC Network offering with NS as service provider for LB
    2. Create VPC using offering which has NetScaler as LB provider
    3. Add a tier using the network offering created in Step1
    4. Launch a VM
    5. Acquire a public IP
    6. Create an auto scale policy with all required parameters on an LB rule
    
    Result:
    ======
    Fails during autoscalevmprofile creation with the following error:
    
    GET  command=createAutoScaleVmProfile&response=json&serviceofferingid=05ac866f-604c-43e2-a48b-47e83ef7c4f1&templateid=3cdd83c4-ad27-11e5-9eaf-42407779c24b&destroyvmgraceperiod=30&counterparam%5B0%5D.name=snmpcommunity&counterparam%5B0%5D.value=public&counterparam%5B1%5D.name=snmpport&counterparam%5B1%5D.value=161&_=1451458073663
    DEBUG [o.a.c.a.BaseCmd] (catalina-exec-10:ctx-58bcf6cf ctx-f5123e30) (logid:ae6742c8) Ignoring paremeter fordisplay as the caller is not authorized to pass it in
    INFO  [c.c.a.ApiServer] (catalina-exec-10:ctx-58bcf6cf ctx-f5123e30) (logid:ae6742c8) Unable to execute API command autoscalevmprofile due to missing parameter zoneid
    
    Expected Result:
    =============
    Autoscale policy creation should be successful and the "min" number of VMs specified in the policy should be deployed.
    
    Following should be the params for autoscalevmprofile creation:
    command=createAutoScaleVmProfile&response=json&zoneid=0b43fff3-c069-417b-ac0c-e4dc46b407ea&serviceofferingid=0
    5ac866f-604c-43e2-a48b-47e83ef7c4f1&templateid=3cdd83c4-ad27-11e5-9eaf-42407779c24b&destroyvmgraceperiod=30&counterparam%5B0%5D
    .name=snmpcommunity&counterparam%5B0%5D.value=public&counterparam%5B1%5D.name=snmpport&counterparam%5B1%5D.value=161
    
    Fix:
    ===
    Added a conditon to check whether the zoneid in networks is undefined,
    If that is undefined, it gets the zoneid from ipaddresses argument.
    Fixed a localization issue.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nitin-maharana/CloudStack CloudStack-Nitin17_4.7

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1334.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1334
    
----
commit 8e778151e1cc6064ea46b457be266a8ec3afc7d7
Author: Nitin Kumar Maharana <ni...@gmail.com>
Date:   2016-01-07T11:27:54Z

    CLOUDSTACK-9229: Autoscale policy creation failing in VPC due to zoneid missing in createAutoScaleVmProfile
    
    Added a conditon to check whether the zoneid in networks is undefined,
    If that is undefined, it gets the zoneid from ipaddresses argument.
    Fixed a localization issue.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-9229: Autoscale policy creatio...

Posted by borisroman <gi...@git.apache.org>.
Github user borisroman commented on the pull request:

    https://github.com/apache/cloudstack/pull/1334#issuecomment-173364778
  
    LGTM :+1: 
    
    Based on code review and screenshot from remi


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-9229: Autoscale policy creatio...

Posted by remibergsma <gi...@git.apache.org>.
Github user remibergsma commented on the pull request:

    https://github.com/apache/cloudstack/pull/1334#issuecomment-172539609
  
    LGTM, not tested actual Netscaler integration as I don't have such a setup.
    
    I did check the syntax and saw the UI still renders properly.
    
    ![screen shot 2016-01-18 at 15 24 26](https://cloud.githubusercontent.com/assets/1630096/12393696/9afbd25e-bdf7-11e5-92c7-101cbf1f3fc7.png)
    
    ![screen shot 2016-01-18 at 15 21 56](https://cloud.githubusercontent.com/assets/1630096/12393657/5a8333b6-bdf7-11e5-9f23-2f12cfbc0e97.png)
    
    
    ![screen shot 2016-01-18 at 15 19 56](https://cloud.githubusercontent.com/assets/1630096/12393652/548dd6fa-bdf7-11e5-90ac-925ee73029d0.png)



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-9229: Autoscale policy creatio...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cloudstack/pull/1334


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---