mirror of https://github.com/apache/cloudstack.git
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 <tsp@apache.org>
This commit is contained in:
parent
c295341cbd
commit
694391ad04
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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():
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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'''
|
||||
|
|
|
|||
|
|
@ -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'''
|
||||
|
|
|
|||
|
|
@ -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'''
|
||||
|
|
|
|||
Loading…
Reference in New Issue