@@ -143,9 +143,9 @@ var (
143
143
"https://activation.dev.grid.tf/activation/activate" ,
144
144
"https://activation.02.dev.grid.tf/activation/activate" ,
145
145
},
146
- FlistURL : defaultFlistURL ,
147
146
HubURL : defaultHubURL ,
148
147
V4HubURL : defaultV4HubURL ,
148
+ FlistURL : defaultFlistURL ,
149
149
HubStorage : defaultHubStorage ,
150
150
BinRepo : "tf-zos-v3-bins.dev" ,
151
151
GraphQL : []string {
@@ -171,9 +171,9 @@ var (
171
171
"https://activation.test.grid.tf/activation/activate" ,
172
172
"https://activation.02.test.grid.tf/activation/activate" ,
173
173
},
174
- FlistURL : defaultFlistURL ,
175
174
HubURL : defaultHubURL ,
176
175
V4HubURL : defaultV4HubURL ,
176
+ FlistURL : defaultFlistURL ,
177
177
HubStorage : defaultHubStorage ,
178
178
BinRepo : "tf-zos-v3-bins.test" ,
179
179
GraphQL : []string {
@@ -199,9 +199,9 @@ var (
199
199
"https://activation.qa.grid.tf/activation/activate" ,
200
200
"https://activation.02.qa.grid.tf/activation/activate" ,
201
201
},
202
- FlistURL : defaultFlistURL ,
203
202
HubURL : defaultHubURL ,
204
203
V4HubURL : defaultV4HubURL ,
204
+ FlistURL : defaultFlistURL ,
205
205
HubStorage : defaultHubStorage ,
206
206
BinRepo : "tf-zos-v3-bins.qanet" ,
207
207
GraphQL : []string {
@@ -231,9 +231,9 @@ var (
231
231
"https://activation.02.grid.tf/activation/activate" ,
232
232
"https://activation.grid.threefold.me/activation/activate" ,
233
233
},
234
- FlistURL : defaultFlistURL ,
235
234
HubURL : defaultHubURL ,
236
235
V4HubURL : defaultV4HubURL ,
236
+ FlistURL : defaultFlistURL ,
237
237
HubStorage : defaultHubStorage ,
238
238
BinRepo : "tf-zos-v3-bins" ,
239
239
GraphQL : []string {
@@ -368,14 +368,15 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
368
368
if geoip := config .GeoipURLs ; len (geoip ) > 0 {
369
369
env .GeoipURLs = geoip
370
370
}
371
-
372
- if flist := config .FlistURL ; len (flist ) > 0 {
373
- env .FlistURL = flist
374
- }
375
-
376
- if storage := config .HubStorage ; len (storage ) > 0 {
377
- env .HubStorage = storage
378
- }
371
+ // flist url and hub urls shouldn't listen to changes in config as long as we can't change it at run time.
372
+ // it would cause breakage in vmd that needs a reboot to be recovered.
373
+ // if flist := config.FlistURL; len(flist) > 0 {
374
+ // env.FlistURL = flist
375
+ // }
376
+ //
377
+ // if storage := config.HubStorage; len(storage) > 0 {
378
+ // env.HubStorage = storage
379
+ // }
379
380
380
381
if hub := config .HubURL ; len (hub ) > 0 {
381
382
env .HubURL = hub
@@ -389,14 +390,14 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
389
390
// if the node running v4 chage urls to use v4 hub
390
391
if params .IsV4 () {
391
392
env .FlistURL = defaultV4FlistURL
392
- if flist := config .V4FlistURL ; len (flist ) > 0 {
393
- env .FlistURL = flist
394
- }
393
+ // if flist := config.V4FlistURL; len(flist) > 0 {
394
+ // env.FlistURL = flist
395
+ // }
395
396
396
397
env .HubStorage = defaultV4HubStorage
397
- if storage := config .V4HubStorage ; len (storage ) > 0 {
398
- env .HubStorage = storage
399
- }
398
+ // if storage := config.V4HubStorage; len(storage) > 0 {
399
+ // env.HubStorage = storage
400
+ // }
400
401
401
402
}
402
403
0 commit comments