Skip to content

Commit 694391a

Browse files
author
Prasanna Santhanam
committed
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>
1 parent c295341 commit 694391a

8 files changed

Lines changed: 13 additions & 10 deletions

File tree

setup/dev/advanced.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
"internaldns1": "10.147.28.6",
126126
"secondaryStorages": [
127127
{
128-
"url": "nfs://10.147.28.6:/export/home/sandbox/secondary"
128+
"url": "nfs://10.147.28.6:/export/home/sandbox/secondary",
129+
"provider" : "NFS"
129130
}
130131
]
131132
}

setup/dev/advancedsg.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@
9494
"internaldns1": "10.147.28.6",
9595
"secondaryStorages": [
9696
{
97-
"url": "nfs://10.147.28.6:/export/home/sandbox/sstor"
97+
"url": "nfs://10.147.28.6:/export/home/sandbox/sstor",
98+
"provider" : "NFS"
9899
}
99100
]
100101
}

setup/dev/basic.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
"internaldns1": "8.8.8.8",
9191
"secondaryStorages": [
9292
{
93-
"url": "nfs://nfsstor:/export/home/sandbox/secondary"
93+
"url": "nfs://nfsstor:/export/home/sandbox/secondary",
94+
"provider" : "NFS"
9495
}
9596
]
9697
}

tools/marvin/marvin/configGenerator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ def __init__(self):
181181
class secondaryStorage():
182182
def __init__(self):
183183
self.url = None
184-
self.providerName = None
184+
self.provider = None
185185
self.details = None
186186

187187
class cacheStorage():
188188
def __init__(self):
189189
self.url = None
190-
self.providerName = None
190+
self.provider = None
191191
self.details = None
192192

193193
class s3():

tools/marvin/marvin/deployDataCenter.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def createSecondaryStorages(self, secondaryStorages, zoneId):
140140
for secondary in secondaryStorages:
141141
secondarycmd = addImageStore.addImageStoreCmd()
142142
secondarycmd.url = secondary.url
143-
secondarycmd.provider = secondary.providerName
143+
secondarycmd.provider = secondary.provider
144144
secondarycmd.details = []
145145

146146
if isinstance(secondary.details, list):
@@ -156,7 +156,7 @@ def createCacheStorages(self, cacheStorages, zoneId):
156156
for cache in cacheStorages:
157157
cachecmd = createCacheStore.createCacheStoreCmd()
158158
cachecmd.url = cache.url
159-
cachecmd.provider = cache.providerName
159+
cachecmd.provider = cache.provider
160160
cachecmd.zoneid = zoneId
161161
cachecmd.details = []
162162
for item in cache.details:
@@ -507,14 +507,11 @@ def copyAttributesToCommand(self, source, command):
507507

508508

509509
def configureS3(self, s3):
510-
511510
if s3 is None:
512511
return
513512

514513
command = addS3.addS3Cmd()
515-
516514
self.copyAttributesToCommand(s3, command)
517-
518515
self.apiClient.addS3(command)
519516

520517
def deploy(self):

tools/marvin/marvin/sandbox/advanced/advanced_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def describeResources(config):
113113

114114
secondary = secondaryStorage()
115115
secondary.url = config.get('cloudstack', 'secondary.pool')
116+
secondary.provider = "NFS"
116117
z.secondaryStorages.append(secondary)
117118

118119
'''Add zone'''

tools/marvin/marvin/sandbox/advancedsg/advancedsg_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def describeResources(config):
9797

9898
secondary = secondaryStorage()
9999
secondary.url = config.get('cloudstack', 'secondary.pool')
100+
secondary.provider = "NFS"
100101
z.secondaryStorages.append(secondary)
101102

102103
'''Add zone'''

tools/marvin/marvin/sandbox/basic/basic_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def describeResources(config):
9595

9696
secondary = secondaryStorage()
9797
secondary.url = config.get('cloudstack', 'secondary.pool')
98+
secondary.provider = "NFS"
9899
z.secondaryStorages.append(secondary)
99100

100101
'''Add zone'''

0 commit comments

Comments
 (0)