From 7f112f1aea65ac5ccad97e9ab00e2c0c669bb02b Mon Sep 17 00:00:00 2001 From: Zvckkk Date: Thu, 5 Mar 2026 14:57:25 +0800 Subject: [PATCH 1/4] Fixed url generated path for branch release downloader Signed-off-by: Zvckkk --- nebula/downloader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nebula/downloader.py b/nebula/downloader.py index 711129ad..b17c914e 100644 --- a/nebula/downloader.py +++ b/nebula/downloader.py @@ -195,7 +195,11 @@ def gen_url(ip, branch, folder, filename, addl, url_template, source="artifactor release_folder = branch.upper() url = url_template.format(ip, release_folder, "", "") # folder = BUILD_DATE/PROJECT_FOLDER - folder = get_newest_folder(listFD(url[:-1])) + "/" + str(folder) + folder = ( + get_newest_folder(listFD(url[:-1])) + + "/boot_partition/" + + str(folder) + ) return url_template.format(ip, release_folder, folder, filename) From b3b299f6d768356a0070c46ae0a69662bb929e00 Mon Sep 17 00:00:00 2001 From: Zvckkk Date: Thu, 5 Mar 2026 16:44:33 +0800 Subject: [PATCH 2/4] update file verification to skip properties.yaml Signed-off-by: Zvckkk --- nebula/manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nebula/manager.py b/nebula/manager.py index 5526305e..0d93fd21 100644 --- a/nebula/manager.py +++ b/nebula/manager.py @@ -753,6 +753,8 @@ def _find_boot_files(self, folder): files = os.listdir(folder) res = [] for file in files: + if file == "properties.yaml": #to skip checking of properties.yaml file + continue path = os.path.join(folder, file) filesize = os.stat(path).st_size if filesize <= 80: @@ -963,3 +965,4 @@ def verify_checksum(self, folder): self.net.verify_checksum( file_path=os.path.join("/boot", fname), reference=hash ) + From 64da0a6a5089d34570dac7a490059bce634835b6 Mon Sep 17 00:00:00 2001 From: Zvckkk Date: Thu, 5 Mar 2026 16:54:58 +0800 Subject: [PATCH 3/4] fixed lints Signed-off-by: Zvckkk --- nebula/downloader.py | 6 ++---- nebula/manager.py | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/nebula/downloader.py b/nebula/downloader.py index b17c914e..20f593c3 100644 --- a/nebula/downloader.py +++ b/nebula/downloader.py @@ -196,10 +196,8 @@ def gen_url(ip, branch, folder, filename, addl, url_template, source="artifactor url = url_template.format(ip, release_folder, "", "") # folder = BUILD_DATE/PROJECT_FOLDER folder = ( - get_newest_folder(listFD(url[:-1])) - + "/boot_partition/" - + str(folder) - ) + get_newest_folder(listFD(url[:-1])) + "/boot_partition/" + str(folder) + ) return url_template.format(ip, release_folder, folder, filename) diff --git a/nebula/manager.py b/nebula/manager.py index 0d93fd21..c6ea5fae 100644 --- a/nebula/manager.py +++ b/nebula/manager.py @@ -753,7 +753,7 @@ def _find_boot_files(self, folder): files = os.listdir(folder) res = [] for file in files: - if file == "properties.yaml": #to skip checking of properties.yaml file + if file == "properties.yaml": # to skip checking of properties.yaml file continue path = os.path.join(folder, file) filesize = os.stat(path).st_size @@ -965,4 +965,3 @@ def verify_checksum(self, folder): self.net.verify_checksum( file_path=os.path.join("/boot", fname), reference=hash ) - From 4cad51df6ae024b73a5411f84ea1ecbc522bf84a Mon Sep 17 00:00:00 2001 From: Ace Alexander Ilog Date: Fri, 6 Mar 2026 10:03:58 +0800 Subject: [PATCH 4/4] update ssh python command in checksum verification files Signed-off-by: Ace Alexander Ilog --- nebula/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebula/network.py b/nebula/network.py index d6afb9bb..5708dc4f 100644 --- a/nebula/network.py +++ b/nebula/network.py @@ -412,7 +412,7 @@ def run_diagnostics(self): def verify_checksum(self, file_path, reference, algo="sha256"): if algo == "sha256": - ssh_command = 'python -c "import hashlib;' + ssh_command = 'python3 -c "import hashlib;' ssh_command += f" print(hashlib.sha256(open('{file_path}', 'rb').read()).hexdigest())\"" result = self.run_ssh_command( command=ssh_command, print_result_to_file=False, show_log=False