Skip to content

Commit 1faa8c7

Browse files
committed
<fix>[zstacklib]: Support upgrade from c76/c79 to h76c/h79c
Support upgrade from c76/c79 to h76c/h79c, there are two scenarios: 1. mn is h76c/h79c, host needs to upgrade from c76/c79 to h76c/h79c 2. mn is other distro, but hash h76c/h79c repo, and host is c76/c79, need to upgrade to h76c/h79c The upgrade process is as follow: 1. copy hexli-release to host and install it 2. copy zstack-release to host and install it Resolves: ZSTAC-55827 Change-Id: I69757a6c6962726166626a66616f676c7a796366
1 parent b26006e commit 1faa8c7

File tree

14 files changed

+45
-3
lines changed

14 files changed

+45
-3
lines changed

appbuildsystem/ansible/appbuild.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
# include zstacklib.py
5656
host_info = get_remote_host_info_obj(host_post_info)
57+
host_info = upgrade_to_helix(host_info, host_post_info)
5758
releasever = get_host_releasever(host_info)
5859
host_post_info.releasever = releasever
5960

appliancevm/ansible/appliancevm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
host_post_info.remote_port = remote_port
5353
if remote_pass is not None and remote_user != 'root':
5454
host_post_info.become = True
55-
5655
# include zstacklib.py
5756
host_info = get_remote_host_info_obj(host_post_info)
57+
host_info = upgrade_to_helix(host_info, host_post_info)
5858
releasever = get_host_releasever(host_info)
5959
host_post_info.releasever = releasever
6060

baremetalpxeserver/ansible/baremetalpxeserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
host_post_info.remote_port = remote_port
5858
if remote_pass is not None and remote_user != 'root':
5959
host_post_info.become = True
60-
6160
# include zstacklib.py
6261
host_info = get_remote_host_info_obj(host_post_info)
62+
host_info = upgrade_to_helix(host_info, host_post_info)
6363
releasever = get_host_releasever(host_info)
6464
host_post_info.releasever = releasever
6565

cephbackupstorage/ansible/cephb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
host_post_info.remote_port = remote_port
5959
if remote_pass is not None and remote_user != 'root':
6060
host_post_info.become = True
61-
6261
# include zstacklib.py
6362
host_info = get_remote_host_info_obj(host_post_info)
63+
host_info = upgrade_to_helix(host_info, host_post_info)
6464
releasever = get_host_releasever(host_info)
6565
host_post_info.releasever = releasever
6666

cephprimarystorage/ansible/cephp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060

6161
# include zstacklib.py
6262
host_info = get_remote_host_info_obj(host_post_info)
63+
host_info = upgrade_to_helix(host_info, host_post_info)
6364
releasever = get_host_releasever(host_info)
6465
host_post_info.releasever = releasever
6566

consoleproxy/ansible/consoleproxy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151

5252
# include zstacklib.py
5353
host_info = get_remote_host_info_obj(host_post_info)
54+
host_info = upgrade_to_helix(host_info, host_post_info)
5455
releasever = get_host_releasever(host_info)
5556
host_post_info.releasever = releasever
5657

imagestorebackupstorage/ansible/imagestorebackupstorage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464

6565
# include zstacklib.py
6666
host_info = get_remote_host_info_obj(host_post_info)
67+
host_info = upgrade_to_helix(host_info, host_post_info)
6768
releasever = get_host_releasever(host_info)
6869
host_post_info.releasever = releasever
6970

iscsifilesystemagent/ansible/iscsi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
# include zstacklib.py
5656
host_info = get_remote_host_info_obj(host_post_info)
57+
host_info = upgrade_to_helix(host_info, host_post_info)
5758
releasever = get_host_releasever(host_info)
5859
host_post_info.releasever = releasever
5960

kvmagent/ansible/kvm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
host_post_info.become = True
8181

8282
host_info = get_remote_host_info_obj(host_post_info)
83+
host_info = upgrade_to_helix(host_info, host_post_info)
8384
releasever = get_host_releasever(host_info)
8485
host_post_info.releasever = releasever
8586

sftpbackupstorage/ansible/sftpbackupstorage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
# include zstacklib.py
5959
host_info = get_remote_host_info_obj(host_post_info)
60+
host_info = upgrade_to_helix(host_info, host_post_info)
6061
releasever = get_host_releasever(host_info)
6162
host_post_info.releasever = releasever
6263

0 commit comments

Comments
 (0)