simulator: formatting changes

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
init: Explicitly set the HOME variable to the homedir of the user cloud

We have to explicitly set the HOME variable to the homedir from the user "cloud"

This is because various scripts run by the management server read the HOME variable
and fail when this init script is run manually.

For example the injectkeys.sh script reads the HOME variable
ApiServer: Fix apidiscovery fail case, fix comment

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiDispatcher: Remove unused methods which were for acl processing

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
CLOUDSTACK-932: Fix incorrect param that caused casting error while processing api
Reported-by: Kishan Kavala <kishan.kavala@citrix.com>
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
plugins: Fix getPropertiesFiles() for pluggable service plugins, CiscoNexusVSMEElement

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
api: Re-add deleted addProxyObject method on CloudException

- This was removed part of the response work
- Re-adding as this kind of method definition is available in several other
  exception classes and is used in a lot of cmd classes and in service layer
- TODO: We need to find a way to replace old code and refactor method with the
  new definition that gets only uuid.
- FIXME: Some tables don't have uuid for ex. ClusterVSMMapVO, in this case
  we should keep the method until we find a way to fix this issue

Partially reverting a88ce6bb7f495dddeb954d1fc7826176646b3590

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
commit 3a3cb60e85c0254ebceff55d0b210ca1ff5386a6
Author: Likitha Shetty <likitha.shetty@citrix.com>
Date:   Wed Jan 9 11:54:25 2013 +0530

    CLOUDSTACK-614: ListTemplates API is not returning "Enable SSH Key" attribute for any given template. Update the TemplateResponse by adding 'sshkeyenabled' attribute to it. This attribute is set to the value that the user passes as input for parameter 'sshkeyenabled' while registering the template.

Signed-off-by: Min Chen <min.chen@citrix.com>
plugins: Fix pluggable service getPropertiesFiles() on f5, srx and netscaler

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
netapp: Fix String conversion method of long id

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
plugins: Import and @Parameter fixes

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
Improvements to AWS installation, configuration and use in installation guide
CLOUDSTACK-605: Host physical CPU is incorrectly calculated for Vmware hosts Fixed logic to compute Vmware host cpu

Signed-off-by: Koushik Das <koushik.das@citrix.com>
Fix CLOUDSTACK-936: fix nonoss build due to CloudException IdentityProxy
removal.
server: Fix ApiServer init method, we won't use cfg files and it's not used there

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
api: Comment out @APICommand annotation for api cmd classes that are unknown

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiServer: Don't depend on plugin for apiname:cmd class mapping

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiDiscoveryService: Use only as pluggable service

Remove usage and impl as adapter.
We have duplicate code that generates apiname:cmd class maps which is
unavoidable right now as:

- Plugin should not depend on ApiServer or any other component
- cloud-utils cannot depend on cloud-api for the APICommand annotation
- Use java reflect to create a static method in cloud-utils that does the job
  would be unsafe.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
Remove IdentityProxy and IdentityTypeAdapter class.

Signed-off-by: Min Chen <min.chen@citrix.com>
CLOUDSTACK-721: Fixed network usage. Send network usage command for isolated guest nic of non VPC VR. Send network usage command for public nic in VPC VR.