fix(core): VPP startup sequence 71/42271/4
authorPeter Mikus <[email protected]>
Fri, 31 Jan 2025 07:44:49 +0000 (08:44 +0100)
committerPeter Mikus <[email protected]>
Fri, 31 Jan 2025 08:43:11 +0000 (08:43 +0000)
Signed-off-by: Peter Mikus <[email protected]>
Change-Id: I37899c45bf8d87f24cb67cdd120837a833955a3b

fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-90:e2:ba:49:db:b4
fdio.infra/pxe/docker-dnsmasq/tftpboot/grub/grub.cfg-90:e2:ba:55:be:32
resources/libraries/bash/function/gather_dpdk.sh
resources/libraries/python/ContainerUtils.py
resources/libraries/python/DPDK/DPDKTools.py
resources/libraries/python/VPPUtil.py
resources/libraries/python/VppConfigGenerator.py

index dbe510e..445f524 100644 (file)
@@ -1,4 +1,4 @@
 menuentry "Install s73-t34-sut2" {
-    linux    /casper/ubuntu-noble-arm64/vmlinuz ip=:::::eno1:dhcp url=http://10.30.51.24:8081/ubuntu_noble_arm64/ubuntu-24.04.1-live-server-arm64.iso autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_noble_arm64/90:e2:ba:49:db:b4/ ---
+    linux    /casper/ubuntu-noble-arm64/vmlinuz ip=dhcp url=http://10.30.51.24:8081/ubuntu_noble_arm64/ubuntu-24.04.1-live-server-arm64.iso autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_noble_arm64/90:e2:ba:49:db:b4/ ---
     initrd   /casper/ubuntu-noble-arm64/initrd
 }
\ No newline at end of file
index 2f55b12..e2af022 100644 (file)
@@ -1,4 +1,4 @@
 menuentry "Install s72-t34-sut1" {
-    linux    /casper/ubuntu-noble-arm64/vmlinuz ip=::::eno1::dhcp url=https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04-live-server-arm64.iso autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_noble_arm64/90:e2:ba:55:be:32/ ---
+    linux    /casper/ubuntu-noble-arm64/vmlinuz ip=dhcp url=http://10.30.51.24:8081/ubuntu_noble_arm64/ubuntu-24.04.1-live-server-arm64.iso autoinstall ds=nocloud-net\;s=http://10.30.51.24:8081/ubuntu_noble_arm64/90:e2:ba:55:be:32/ ---
     initrd   /casper/ubuntu-noble-arm64/initrd
 }
\ No newline at end of file
index da3fa93..ead1079 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (c) 2024 Cisco and/or its affiliates.
-# Copyright (c) 2024 PANTHEON.tech and/or its affiliates.
+# Copyright (c) 2025 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -57,7 +56,6 @@ function gather_dpdk () {
             die "Failed to read DPDK VPP version!"
         }
     fi
-    # TODO: Use "wget -N" instead checking for file presence?
     if [[ ! -f "${dpdk_stable_ver}" ]]; then
         wget -nv --no-check-certificate "${dpdk_repo}/${dpdk_stable_ver}" || {
             die "Failed to get DPDK package from: ${dpdk_repo}"
index 7d6d4d8..887c869 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2024 Cisco and/or its affiliates.
+# Copyright (c) 2025 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -580,7 +580,6 @@ class ContainerManager:
 
     def stop_all_containers(self):
         """Stop all containers."""
-        # TODO: Rework if containers can be affected outside ContainerManager.
         self._disconnect_papi_to_all_containers()
         for container in self.containers:
             self.engine.container = self.containers[container]
@@ -588,7 +587,6 @@ class ContainerManager:
 
     def destroy_all_containers(self):
         """Destroy all containers."""
-        # TODO: Rework if containers can be affected outside ContainerManager.
         self._disconnect_papi_to_all_containers()
         for container in self.containers:
             self.engine.container = self.containers[container]
index cf5f6fc..12800ba 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2024 Cisco and/or its affiliates.
+# Copyright (c) 2025 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -94,7 +94,6 @@ class DPDKTools:
         command = f"cat {Constants.REMOTE_FW_DIR}/dpdk*/VERSION"
         message = u"Get DPDK version failed!"
         stdout, _ = exec_cmd_no_error(node, command, message=message)
-        # TODO: PAL should already tolerate stripped value in the log.
         logger.info(f"DPDK Version: {stdout}")
         return stdout.strip()
 
index 1ede76c..29138da 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2025 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -280,7 +280,6 @@ class VPPUtil:
             if_dump[u"sub_if_flags"] = if_dump[u"sub_if_flags"].value \
                 if hasattr(if_dump[u"sub_if_flags"], u"value") \
                 else int(if_dump[u"sub_if_flags"])
-        # TODO: return only base data
         logger.trace(f"Interface data of host {node[u'host']}:\n{details}")
 
     @staticmethod
index ea523b7..384964e 100644 (file)
@@ -790,7 +790,6 @@ class VppInitConfig:
                 vpp_config.add_unix_log()
                 vpp_config.add_unix_cli_listen()
                 vpp_config.add_unix_cli_no_pager()
-                vpp_config.add_unix_coredump()
                 vpp_config.add_socksvr(socket=Constants.SOCKSVR_PATH)
                 vpp_config.add_main_heap_size("2G")
                 vpp_config.add_main_heap_page_size(huge_size)