Add LB id to the worker archive API for Swift.
Swift archiving requires the load balancer ID to create the container name. Change-Id: I2d4a57f2aa50b7a2f65c52de727e1469d35b0987
This commit is contained in:
parent
d4397cc2f9
commit
f781ee9350
@ -313,6 +313,7 @@ class LBaaSController(object):
|
||||
|
||||
lb_list = self.msg[self.LBLIST_FIELD]
|
||||
params['protocol'] = lb_list[0]['protocol']
|
||||
params['lbid'] = lb_list[0]['id']
|
||||
params['basepath'] = self.msg[self.OBJ_STORE_BASEPATH_FIELD]
|
||||
params['endpoint'] = self.msg[self.OBJ_STORE_ENDPOINT_FIELD]
|
||||
params['token'] = self.msg[self.OBJ_STORE_TOKEN_FIELD]
|
||||
|
@ -171,7 +171,7 @@ class TestWorkerController(testtools.TestCase):
|
||||
c.OBJ_STORE_TYPE_FIELD: 'Swift',
|
||||
c.OBJ_STORE_ENDPOINT_FIELD: "https://example.com",
|
||||
c.OBJ_STORE_TOKEN_FIELD: "XXXX",
|
||||
c.LBLIST_FIELD: [{'protocol': 'http'}]
|
||||
c.LBLIST_FIELD: [{'protocol': 'http', 'id': '123'}]
|
||||
}
|
||||
controller = c(self.logger, null_driver, msg)
|
||||
response = controller.run()
|
||||
@ -183,7 +183,7 @@ class TestWorkerController(testtools.TestCase):
|
||||
c.OBJ_STORE_TYPE_FIELD: 'Swift',
|
||||
c.OBJ_STORE_BASEPATH_FIELD: "/lbaaslogs",
|
||||
c.OBJ_STORE_TOKEN_FIELD: "XXXX",
|
||||
c.LBLIST_FIELD: [{'protocol': 'http'}]
|
||||
c.LBLIST_FIELD: [{'protocol': 'http', 'id': '123'}]
|
||||
}
|
||||
controller = c(self.logger, null_driver, msg)
|
||||
response = controller.run()
|
||||
@ -195,7 +195,7 @@ class TestWorkerController(testtools.TestCase):
|
||||
c.OBJ_STORE_TYPE_FIELD: 'Swift',
|
||||
c.OBJ_STORE_BASEPATH_FIELD: "/lbaaslogs",
|
||||
c.OBJ_STORE_ENDPOINT_FIELD: "https://example.com",
|
||||
c.LBLIST_FIELD: [{'protocol': 'http'}]
|
||||
c.LBLIST_FIELD: [{'protocol': 'http', 'id': '123'}]
|
||||
}
|
||||
controller = c(self.logger, null_driver, msg)
|
||||
response = controller.run()
|
||||
@ -220,7 +220,7 @@ class TestWorkerController(testtools.TestCase):
|
||||
c.OBJ_STORE_BASEPATH_FIELD: "/lbaaslogs",
|
||||
c.OBJ_STORE_ENDPOINT_FIELD: "https://example.com",
|
||||
c.OBJ_STORE_TOKEN_FIELD: "XXXX",
|
||||
c.LBLIST_FIELD: [{'protocol': 'http'}]
|
||||
c.LBLIST_FIELD: [{'protocol': 'http', 'id': '123'}]
|
||||
}
|
||||
null_driver = LoadBalancerDriver()
|
||||
controller = c(self.logger, null_driver, msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user