You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/06/20 13:15:00 UTC
[1/2] git commit: updated refs/heads/master to 694391a
Updated Branches:
refs/heads/master 2e0abccd3 -> 694391ad0
add required provider for NFS storage
Changing the sandbox scripts and the marvin-checkin-test configurations
to include the required 'provider' argument when adding an image store
(secondary storage)
Signed-off-by: Prasanna Santhanam <ts...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/694391ad
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/694391ad
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/694391ad
Branch: refs/heads/master
Commit: 694391ad042dad9f3a363b4bd2cd664f579a9fd8
Parents: c295341
Author: Prasanna Santhanam <ts...@apache.org>
Authored: Thu Jun 20 15:50:48 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Thu Jun 20 16:44:49 2013 +0530
----------------------------------------------------------------------
setup/dev/advanced.cfg | 3 ++-
setup/dev/advancedsg.cfg | 3 ++-
setup/dev/basic.cfg | 3 ++-
tools/marvin/marvin/configGenerator.py | 4 ++--
tools/marvin/marvin/deployDataCenter.py | 7 ++-----
tools/marvin/marvin/sandbox/advanced/advanced_env.py | 1 +
tools/marvin/marvin/sandbox/advancedsg/advancedsg_env.py | 1 +
tools/marvin/marvin/sandbox/basic/basic_env.py | 1 +
8 files changed, 13 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/694391ad/setup/dev/advanced.cfg
----------------------------------------------------------------------
diff --git a/setup/dev/advanced.cfg b/setup/dev/advanced.cfg
index 3d0854d..4a48399 100644
--- a/setup/dev/advanced.cfg
+++ b/setup/dev/advanced.cfg
@@ -125,7 +125,8 @@
"internaldns1": "10.147.28.6",
"secondaryStorages": [
{
- "url": "nfs://10.147.28.6:/export/home/sandbox/secondary"
+ "url": "nfs://10.147.28.6:/export/home/sandbox/secondary",
+ "provider" : "NFS"
}
]
}
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/694391ad/setup/dev/advancedsg.cfg
----------------------------------------------------------------------
diff --git a/setup/dev/advancedsg.cfg b/setup/dev/advancedsg.cfg
index e6922b6..c6a1f59 100644
--- a/setup/dev/advancedsg.cfg
+++ b/setup/dev/advancedsg.cfg
@@ -94,7 +94,8 @@
"internaldns1": "10.147.28.6",
"secondaryStorages": [
{
- "url": "nfs://10.147.28.6:/export/home/sandbox/sstor"
+ "url": "nfs://10.147.28.6:/export/home/sandbox/sstor",
+ "provider" : "NFS"
}
]
}
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/694391ad/setup/dev/basic.cfg
----------------------------------------------------------------------
diff --git a/setup/dev/basic.cfg b/setup/dev/basic.cfg
index 326874d..e91c87a 100644
--- a/setup/dev/basic.cfg
+++ b/setup/dev/basic.cfg
@@ -90,7 +90,8 @@
"internaldns1": "8.8.8.8",
"secondaryStorages": [
{
- "url": "nfs://nfsstor:/export/home/sandbox/secondary"
+ "url": "nfs://nfsstor:/export/home/sandbox/secondary",
+ "provider" : "NFS"
}
]
}
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/694391ad/tools/marvin/marvin/configGenerator.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/configGenerator.py b/tools/marvin/marvin/configGenerator.py
index 7f6776a..b53c46e 100644
--- a/tools/marvin/marvin/configGenerator.py
+++ b/tools/marvin/marvin/configGenerator.py
@@ -181,13 +181,13 @@ class primaryStorage():
class secondaryStorage():
def __init__(self):
self.url = None
- self.providerName = None
+ self.provider = None
self.details = None
class cacheStorage():
def __init__(self):
self.url = None
- self.providerName = None
+ self.provider = None
self.details = None
class s3():
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/694391ad/tools/marvin/marvin/deployDataCenter.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/deployDataCenter.py b/tools/marvin/marvin/deployDataCenter.py
index 66b3e32..d6f19b0 100644
--- a/tools/marvin/marvin/deployDataCenter.py
+++ b/tools/marvin/marvin/deployDataCenter.py
@@ -140,7 +140,7 @@ class deployDataCenters():
for secondary in secondaryStorages:
secondarycmd = addImageStore.addImageStoreCmd()
secondarycmd.url = secondary.url
- secondarycmd.provider = secondary.providerName
+ secondarycmd.provider = secondary.provider
secondarycmd.details = []
if isinstance(secondary.details, list):
@@ -156,7 +156,7 @@ class deployDataCenters():
for cache in cacheStorages:
cachecmd = createCacheStore.createCacheStoreCmd()
cachecmd.url = cache.url
- cachecmd.provider = cache.providerName
+ cachecmd.provider = cache.provider
cachecmd.zoneid = zoneId
cachecmd.details = []
for item in cache.details:
@@ -507,14 +507,11 @@ class deployDataCenters():
def configureS3(self, s3):
-
if s3 is None:
return
command = addS3.addS3Cmd()
-
self.copyAttributesToCommand(s3, command)
-
self.apiClient.addS3(command)
def deploy(self):
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/694391ad/tools/marvin/marvin/sandbox/advanced/advanced_env.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/sandbox/advanced/advanced_env.py b/tools/marvin/marvin/sandbox/advanced/advanced_env.py
index 6343293..1728e61 100644
--- a/tools/marvin/marvin/sandbox/advanced/advanced_env.py
+++ b/tools/marvin/marvin/sandbox/advanced/advanced_env.py
@@ -113,6 +113,7 @@ def describeResources(config):
secondary = secondaryStorage()
secondary.url = config.get('cloudstack', 'secondary.pool')
+ secondary.provider = "NFS"
z.secondaryStorages.append(secondary)
'''Add zone'''
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/694391ad/tools/marvin/marvin/sandbox/advancedsg/advancedsg_env.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/sandbox/advancedsg/advancedsg_env.py b/tools/marvin/marvin/sandbox/advancedsg/advancedsg_env.py
index f9edf4d..9cf4a0a 100644
--- a/tools/marvin/marvin/sandbox/advancedsg/advancedsg_env.py
+++ b/tools/marvin/marvin/sandbox/advancedsg/advancedsg_env.py
@@ -97,6 +97,7 @@ def describeResources(config):
secondary = secondaryStorage()
secondary.url = config.get('cloudstack', 'secondary.pool')
+ secondary.provider = "NFS"
z.secondaryStorages.append(secondary)
'''Add zone'''
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/694391ad/tools/marvin/marvin/sandbox/basic/basic_env.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/sandbox/basic/basic_env.py b/tools/marvin/marvin/sandbox/basic/basic_env.py
index cf1869f..bf106fc 100644
--- a/tools/marvin/marvin/sandbox/basic/basic_env.py
+++ b/tools/marvin/marvin/sandbox/basic/basic_env.py
@@ -95,6 +95,7 @@ def describeResources(config):
secondary = secondaryStorage()
secondary.url = config.get('cloudstack', 'secondary.pool')
+ secondary.provider = "NFS"
z.secondaryStorages.append(secondary)
'''Add zone'''
[2/2] git commit: updated refs/heads/master to 694391a
Posted by ts...@apache.org.
image_data_store is not part of vm_template anymore
Revert "CLOUDSTACK-1744: It's due to db upgrade issue. On master,
deploydb will upgrade db to 4.2, which will update vm_template's
image_data_store_id, while deploydb-simulator adds a new column in
vm_template table, which doesn't set image_data_store_id, thus causing
NPE."
This reverts commit 33937c980eaae5f2e8dbb5b21f59bdb1a89a70be.
Conflicts:
setup/db/templates.simulator.sql
Signed-off-by: Prasanna Santhanam <ts...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c295341c
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c295341c
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c295341c
Branch: refs/heads/master
Commit: c295341cbd5ff08cbeda187aca019575d1812a71
Parents: 2e0abcc
Author: Prasanna Santhanam <ts...@apache.org>
Authored: Thu Jun 20 14:56:35 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Thu Jun 20 16:44:49 2013 +0530
----------------------------------------------------------------------
setup/db/templates.simulator.sql | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c295341c/setup/db/templates.simulator.sql
----------------------------------------------------------------------
diff --git a/setup/db/templates.simulator.sql b/setup/db/templates.simulator.sql
index bd7ce59..5f9b67d 100755
--- a/setup/db/templates.simulator.sql
+++ b/setup/db/templates.simulator.sql
@@ -16,7 +16,7 @@
-- under the License.
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, created, type, hvm, bits, account_id, url, checksum, enable_password, display_text, format, guest_os_id, featured, cross_zones, hypervisor_type, image_data_store_id)
- VALUES (100, UUID(), 'simulator-domR', 'SystemVM Template (simulator)', 0, now(), 'SYSTEM', 0, 64, 1, 'http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2', '', 0, 'SystemVM Template (simulator)', 'VHD', 15, 0, 1, 'Simulator', 1);
-INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, created, type, hvm, bits, account_id, url, checksum, enable_password, display_text, format, guest_os_id, featured, cross_zones, hypervisor_type, image_data_store_id)
- VALUES (111, UUID(), 'simulator-Centos', 'CentOS 5.3(64-bit) no GUI (Simulator)', 1, now(), 'BUILTIN', 0, 64, 1, 'http://download.cloud.com/templates/builtin/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2', '', 0, 'CentOS 5.3(64-bit) no GUI (Simulator)', 'VHD', 12, 1, 1, 'Simulator', 1);
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, created, type, hvm, bits, account_id, url, checksum, enable_password, display_text, format, guest_os_id, featured, cross_zones, hypervisor_type)
+ VALUES (100, UUID(), 'simulator-domR', 'SystemVM Template (simulator)', 0, now(), 'SYSTEM', 0, 64, 1, 'http://nfs1.lab.vmops.com/templates/routing/debian/latest/systemvm.vhd.bz2', '', 0, 'SystemVM Template (simulator)', 'VHD', 15, 0, 1, 'Simulator');
+INSERT INTO `cloud`.`vm_template` (id, uuid, unique_name, name, public, created, type, hvm, bits, account_id, url, checksum, enable_password, display_text, format, guest_os_id, featured, cross_zones, hypervisor_type)
+ VALUES (111, UUID(), 'simulator-Centos', 'CentOS 5.3(64-bit) no GUI (Simulator)', 1, now(), 'BUILTIN', 0, 64, 1, 'http://nfs1.lab.vmops.com/templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2', '', 0, 'CentOS 5.3(64-bit) no GUI (Simulator)', 'VHD', 11, 1, 1, 'Simulator');