Skip to content

Commit 2c1a0d8

Browse files
author
gitlab
committed
Merge branch 'helix' into 'master'
Helix feature See merge request zstackio/zstack-utility!3280
2 parents e116cc2 + 9e0c46a commit 2c1a0d8

File tree

21 files changed

+81
-20
lines changed

21 files changed

+81
-20
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: 2 additions & 2 deletions
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

@@ -127,7 +127,7 @@
127127

128128
# name: check and mount /opt/zstack-dvd
129129
command = """
130-
archRelease='x86_64/c72 x86_64/c74 x86_64/c76 x86_64/c79 x86_64/ky10sp1 x86_64/ky10sp2 x86_64/ky10sp3 aarch64/ky10sp1 aarch64/ky10sp2 aarch64/ky10sp3 mips64el/ky10sp1 loongarch64/ky10sp1 loongarch64/ky10sp3'
130+
archRelease='x86_64/c72 x86_64/c74 x86_64/c76 x86_64/c79 x86_64/h76c x86_64/h79c x86_64/ky10sp1 x86_64/ky10sp2 x86_64/ky10sp3 aarch64/ky10sp1 aarch64/ky10sp2 aarch64/ky10sp3 mips64el/ky10sp1 loongarch64/ky10sp1 loongarch64/ky10sp3'
131131
mkdir -p /var/lib/zstack/baremetal/{dnsmasq,ftp/{ks,zstack-dvd/{x86_64,aarch64,mips64el,loongarch64},scripts},tftpboot/{zstack/{x86_64,aarch64,mips64el,loongarch64},pxelinux.cfg,EFI/BOOT},vsftpd} /var/log/zstack/baremetal/;
132132
rm -rf /var/lib/zstack/baremetal/tftpboot/{grubaa64.efi,grub.cfg-01-*};
133133
is_repo_exist='false'

cephbackupstorage/ansible/cephb.py

Lines changed: 2 additions & 2 deletions
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

@@ -131,7 +131,7 @@
131131
# c74 do not apply the change. Therefore, if ceph bs host is c74 and
132132
# mn is c76 or c79 and qemu-kvm not installed, using qemu-kvm instead
133133
# qemu-kvm-ev
134-
if releasever == 'c74' and get_mn_release() in ['c76', 'c79']:
134+
if releasever == 'c74' and get_mn_release() in ['c76', 'c79', 'h76c', 'h79c']:
135135
install_rpm_list += " qemu-kvm"
136136

137137
if zstack_repo != 'false':

cephprimarystorage/ansible/cephp.py

Lines changed: 2 additions & 1 deletion
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

@@ -113,7 +114,7 @@
113114
# c74 do not apply the change. Therefore, if ceph bs host is c74 and
114115
# mn is c76 or c79 and qemu-kvm not installed, using qemu-kvm instead
115116
# qemu-kvm-ev
116-
if releasever == 'c74' and get_mn_release() in ['c76', 'c79']:
117+
if releasever == 'c74' and get_mn_release() in ['c76', 'c79', 'h76c', 'h79c']:
117118
install_rpm_list += " qemu-kvm"
118119

119120
if zstack_repo != 'false':

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: 2 additions & 1 deletion
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

@@ -107,7 +108,7 @@
107108

108109
if not remote_bin_installed(host_post_info, "qemu-img", return_status=True):
109110
pkg = 'qemu-img-ev' if releasever in ['c74'] else 'qemu-img'
110-
if releasever == 'c74' and get_mn_release() in ['c76', 'c79']:
111+
if releasever == 'c74' and get_mn_release() in ['c76', 'c79', 'h76c', 'h79c']:
111112
pkg = 'qemu-img'
112113
qemu_pkg += ' %s' % pkg
113114

installation/install.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export TERM=xterm
3333

3434
OS=''
3535
IS_UBUNTU='n'
36-
REDHAT_OS="CENTOS6 CENTOS7 RHEL7 ALIOS7 ISOFT4 KYLIN10 EULER20 UOS1020A NFS4 ROCKY8"
36+
REDHAT_OS="CENTOS6 CENTOS7 RHEL7 HELIX7 ALIOS7 ISOFT4 KYLIN10 EULER20 UOS1020A NFS4 ROCKY8"
3737
DEBIAN_OS="UBUNTU14.04 UBUNTU16.04 UBUNTU KYLIN4.0.2 DEBIAN9 UOS20"
3838
KYLIN_V10_OS="ky10sp1 ky10sp2 ky10sp3"
3939
XINCHUANG_OS="$KYLIN10_OS uos20"
@@ -663,7 +663,7 @@ cs_check_hostname_zstack(){
663663
hostname $CHANGE_HOSTNAME
664664
echo $MANAGEMENT_IP $CHANGE_HOSTNAME >> /etc/hosts
665665
666-
or following commands in CentOS7:
666+
or following commands in CentOS7 or Helix7:
667667
hostnamectl set-hostname $CHANGE_HOSTNAME
668668
hostname $CHANGE_HOSTNAME
669669
echo $MANAGEMENT_IP $CHANGE_HOSTNAME >> /etc/hosts
@@ -690,7 +690,7 @@ or following commands in CentOS7:
690690

691691
# current hostname is same with IP
692692
echo "Your OS hostname is set as $current_hostname, which is same with your IP address. It will cause some problem.
693-
Please fix it by running following commands in CentOS7:
693+
Please fix it by running following commands in CentOS7 or Helix7:
694694
695695
hostnamectl set-hostname MY_REAL_HOSTNAME
696696
hostname MY_REAL_HOSTNAME
@@ -808,7 +808,7 @@ check_system(){
808808
echo_title "Check System"
809809
echo ""
810810
trap 'traplogger $LINENO "$BASH_COMMAND" $?' DEBUG
811-
cat /etc/*-release |egrep -i -h "centos |Red Hat Enterprise|Alibaba|NeoKylin|Kylin Linux Advanced Server release V10|openEuler|UnionTech OS Server release 20 \(kongzi\)|NFSChina Server release 4.0.220727 \(RTM3\)|Rocky Linux" >>$ZSTACK_INSTALL_LOG 2>&1
811+
cat /etc/*-release |egrep -i -h "centos |Helix|Red Hat Enterprise|Alibaba|NeoKylin|Kylin Linux Advanced Server release V10|openEuler|UnionTech OS Server release 20 \(kongzi\)|NFSChina Server release 4.0.220727 \(RTM3\)|Rocky Linux" >>$ZSTACK_INSTALL_LOG 2>&1
812812
if [ $? -eq 0 ]; then
813813
grep -qi 'CentOS release 6' /etc/system-release && OS="CENTOS6"
814814
grep -qi 'CentOS Linux release 7' /etc/system-release && OS="CENTOS7"
@@ -821,6 +821,7 @@ check_system(){
821821
grep -qi 'UnionTech OS Server release 20 (kongzi)' /etc/system-release && OS="UOS1020A"
822822
grep -qi 'NFSChina Server release 4.0.220727 (RTM3)' /etc/system-release && OS="NFS4"
823823
grep -qi 'Rocky Linux release 8.4 (Green Obsidian)' /etc/system-release && OS="ROCKY8"
824+
grep -qi 'Helix release 7' /etc/system-release && OS="HELIX7"
824825
if [[ -z "$OS" ]];then
825826
fail2 "Host OS checking failure: your system is: `cat /etc/redhat-release`, $PRODUCT_NAME management node only supports $SUPPORTED_OS currently"
826827
elif [[ $OS == "CENTOS7" ]];then
@@ -905,7 +906,7 @@ cs_check_epel(){
905906
trap 'traplogger $LINENO "$BASH_COMMAND" $?' DEBUG
906907
[ -z $YUM_ONLINE_REPO ] && return
907908
[ ! -z $ZSTACK_PKG_MIRROR ] && return
908-
if [ "$OS" = "CENTOS7" -o "$OS" = "CENTOS6" ]; then
909+
if [ x"$OS" = x"CENTOS7" -o x"$OS" = x"CENTOS6" -o x"$OS" = x"HELIX7" ]; then
909910
if [ ! -f /etc/yum.repos.d/epel.repo ]; then
910911
if [ x"$UPGRADE" != x'n' ]; then
911912
[ ! -z $ZSTACK_YUM_REPOS ] && return
@@ -2389,7 +2390,10 @@ install_sds(){
23892390

23902391
install_zops(){
23912392
[[ x"$BASEARCH" != x"x86_64" ]] && return
2392-
[[ x"$OS" != x"CENTOS7" ]] && return
2393+
[[ x"$OS" != x"CENTOS7" && x"$OS" != x"HELIX7" ]] && return
2394+
mkdir -p /usr/local/zops
2395+
chmod o+r /usr/local/zops
2396+
echo "true" > /usr/local/zops/cloud_integration
23932397
[[ x"$SKIP_ZOPS_INSTALL" = x"y" ]] && return
23942398
echo_title "Install or upgrade ZOps"
23952399
echo ""

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: 4 additions & 1 deletion
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

@@ -208,6 +209,8 @@ def rpm_based_install():
208209
'c74': 'qemu-kvm-ev ',
209210
'c76': 'qemu-kvm libvirt-admin seabios-bin nping elfutils-libelf-devel',
210211
'c79': 'qemu-kvm libvirt-admin seabios-bin nping elfutils-libelf-devel',
212+
'h76c': 'qemu-kvm libvirt-admin seabios-bin nping elfutils-libelf-devel',
213+
'h79c': 'qemu-kvm libvirt-admin seabios-bin nping elfutils-libelf-devel',
211214
'rl84': 'qemu-kvm libvirt-daemon libvirt-daemon-kvm seabios-bin elfutils-libelf-devel',
212215
'euler20': 'vconfig open-iscsi OpenIPMI-modalias qemu python2-pyudev collectd-disk',
213216
'nfs4': 'vconfig iscsi-initiator-utils OpenIPMI nettle libselinux-devel iptables iptables-services qemu-kvm python2-pyudev collectd-disk'
@@ -428,7 +431,7 @@ def rpm_based_deprecated():
428431

429432
rpm_deprecated_list = rpm_deprecated.get(host_info.host_arch + releasever, "")
430433
# new-add host
431-
if releasever in ['c76', 'c79'] and "qemu-kvm" not in skip_packages:
434+
if releasever in ['c76', 'c79', 'h76c', 'h79c'] and "qemu-kvm" not in skip_packages:
432435
rpm_deprecated_list += " qemu-img-ev qemu-kvm-ev qemu-kvm-common-ev"
433436

434437
for rpm in rpm_deprecated_list.split():

0 commit comments

Comments
 (0)