Add api call to trigger creation of gnp
Creating an oam network was not correctly setting the flag to trigger the runtime puppet manifest to create the default globalnetwork policy and hostendpoint resources. This change adds the correct api call to ensure that the flag is set when an oam network is created. This ensures that the default globalnetworkpolicy and hostendpoint kubernetes resources are created as intended. This issue was previously masked by the fact that the relevant runtime manifest was being run on every single unlock. This behaviour was changed and revealed that the required flag was not being set upon oam creation. Closes-Bug: https://bugs.launchpad.net/starlingx/+bug/1911213 Signed-off-by: Cole Walker <cole.walker@windriver.com> Change-Id: I5b570e82246d82a4243ee68a871333876d231c85
This commit is contained in:
parent
243e269835
commit
cd344669d3
|
@ -16,7 +16,7 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
# Copyright (c) 2013-2018 Wind River Systems, Inc.
|
||||
# Copyright (c) 2013-2021 Wind River Systems, Inc.
|
||||
#
|
||||
|
||||
import os
|
||||
|
@ -194,6 +194,9 @@ class InterfaceNetworkController(rest.RestController):
|
|||
cutils.perform_distributed_cloud_config(pecan.request.dbapi,
|
||||
interface_id)
|
||||
|
||||
if network_type == constants.NETWORK_TYPE_OAM:
|
||||
pecan.request.rpcapi.update_oam_config(pecan.request.context)
|
||||
|
||||
return InterfaceNetwork.convert_with_links(result)
|
||||
|
||||
def _get_interface_network_collection(
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
# Copyright (c) 2013-2020 Wind River Systems, Inc.
|
||||
# Copyright (c) 2013-2021 Wind River Systems, Inc.
|
||||
#
|
||||
|
||||
"""Conduct all activity related system inventory.
|
||||
|
@ -6175,6 +6175,9 @@ class ConductorManager(service.PeriodicService):
|
|||
if utils.get_system_mode(self.dbapi) != constants.SYSTEM_MODE_SIMPLEX:
|
||||
cutils.touch(
|
||||
self._get_oam_runtime_apply_file(standby_controller=True))
|
||||
else:
|
||||
cutils.touch(
|
||||
self._get_oam_runtime_apply_file(standby_controller=False))
|
||||
|
||||
def update_user_config(self, context):
|
||||
"""Update the user configuration"""
|
||||
|
|
Loading…
Reference in New Issue