utils: Fix getByUuid to accept string arg, it's not gonna be anything else

Due to generic programming, most classes declare Daos with ID as Long, so they
get the getUuid(Long) definition, it has to be getUuid(String), uuid is not
gonna be anything else. Fix GenericDaoBase and GenericDao.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
DomainService: Fix getDomain by uuid string

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiServer: Get rid of IdentityDao, reuse domain manager to get domain id

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
NetworkManagerImpl: Add method to getNetwork by uuid

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
DeployVmCmd: Remove usage of IdentityDao, use Network to get by id or uuid

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
NetworkService: Add method to interface to get network by uuid

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiDispatcher: Remove helper method that proxies via ApiResponseHelper to get entity by IdentityDao

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ConsoleProxyManagerImpl: Get rid of IdentityDao

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
StaticRoleBasedAPIAccessChecker: Fix acl cfg processing error messages

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ExtractVolumeCmd: Fix regression, use Zone Id for getting zone

Fixes regression introduced in b14b39a69fa295d1d20484170b95b97fe310af28

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
ApiServer: Debug messages, don't spam with info, remove identity helper in ResponseGenerator

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
StaticRoleBasedAPIAccessChecker: Throw exception on failed check

Plugin should not be responsible for existence of checking an API, this was wrong.
Throw exception boldly when checkAccess fails.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
marvin: fixes for handling multiple phy. networks

zones do not qualify for vlans but phy networks should carry the
underlying vlan information. moving the vlan down to physical_network
in configGenerator.py.

also the sandbox example has been corrected to reflect this change
and includes an illustration of using traffic types with labels.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
Reported-By: Marcus Sorenson <mlsorenson@apache.org>
devcloud-kvm: marvin deployment config generator for devcloud-kvm

The devcloud-kvm.py script will take the kvm.properties file to generate
an advanced zone configuration with two physical networks with traffic
labels for 'guest' and 'public' traffic going on 'eth0' and 'eth1'
respectively.

To generate config:
$ python devcloud-kvm.py -i kvm.properties -o devcloud-kvm-advanced.cfg

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
Improved handling of unknown OS, Distribution

Introduce UnknownSystemExcpetion to indicate that the system is
is unknonwn. Catch said exception in cloud-setup-management,
print an error and exit.

CLOUDSTACK-966: Improve error reporting when running on unknown OS / version

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-971:Error Dialog is empty
Summary: Allow passing 'storagetype' to DiskOffering.create in marvin base.py

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1358185899 -0700
Summary: Adding devcloud-advanced.cfg marvin config for advanced network testing

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1358193432 -0700
APIChecker: Make interface generic, pass user and not just role

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
Summary: Updated devcloud-advanced.cfg and devcloud-kvm-advanced.cfg

Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1358208922 -0700