[k8s] Save gateway node ip before its release for proper reporting
During scaling gateways down, reporter was trying to get ip of the instance which was already released and that caused index error. This patch saves this ip for report before releasing resourses. Change-Id: I9310a423b1ad8c488c1cc7400844ae5d8767879c Closes-bug: #1590728
This commit is contained in:
@ -83,8 +83,9 @@ Methods:
|
||||
nodeId => $.getIp()
|
||||
))
|
||||
- $.instance.agent.call($template, $resources)
|
||||
- $ip: $.getIp(true)
|
||||
- $.instance.releaseResources()
|
||||
- $._environment.reporter.report($this, 'Gateway {0} at {1} was deleted'.format($.instance.name, $.getIp(true)))
|
||||
- $._environment.reporter.report($this, 'Gateway {0} at {1} was deleted'.format($.instance.name, $ip))
|
||||
- $.setAttr(nodeConfigured, false)
|
||||
- $.setAttr(etcdConfigured, false)
|
||||
- $.setAttr(instanceDeployed, false)
|
||||
|
Reference in New Issue
Block a user