Skip to content

Commit b26006e

Browse files
committed
<fix>[ansible]: Support agent deploy on Helix OS
Support agent deploy on Helix OS Resolves: ZSTAC-55822 Change-Id: I796e70657a646f6f766e79756b65657979677978
1 parent 38e0b3c commit b26006e

File tree

12 files changed

+25
-11
lines changed

12 files changed

+25
-11
lines changed

baremetalpxeserver/ansible/baremetalpxeserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
# c74 do not apply the change. Therefore, if ceph bs host is c74 and
114114
# mn is c76 or c79 and qemu-kvm not installed, using qemu-kvm instead
115115
# qemu-kvm-ev
116-
if releasever == 'c74' and get_mn_release() in ['c76', 'c79']:
116+
if releasever == 'c74' and get_mn_release() in ['c76', 'c79', 'h76c', 'h79c']:
117117
install_rpm_list += " qemu-kvm"
118118

119119
if zstack_repo != 'false':

imagestorebackupstorage/ansible/imagestorebackupstorage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
if not remote_bin_installed(host_post_info, "qemu-img", return_status=True):
109109
pkg = 'qemu-img-ev' if releasever in ['c74'] else 'qemu-img'
110-
if releasever == 'c74' and get_mn_release() in ['c76', 'c79']:
110+
if releasever == 'c74' and get_mn_release() in ['c76', 'c79', 'h76c', 'h79c']:
111111
pkg = 'qemu-img'
112112
qemu_pkg += ' %s' % pkg
113113

installation/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ check_system(){
809809
echo ""
810810
trap 'traplogger $LINENO "$BASH_COMMAND" $?' DEBUG
811811
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
812+
if [ $? -eq 0 ]; then
812813
grep -qi 'CentOS release 6' /etc/system-release && OS="CENTOS6"
813814
grep -qi 'CentOS Linux release 7' /etc/system-release && OS="CENTOS7"
814815
grep -qi 'Red Hat Enterprise Linux Server release 7' /etc/system-release && OS="RHEL7"

kvmagent/ansible/kvm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ def rpm_based_install():
208208
'c74': 'qemu-kvm-ev ',
209209
'c76': 'qemu-kvm libvirt-admin seabios-bin nping elfutils-libelf-devel',
210210
'c79': 'qemu-kvm libvirt-admin seabios-bin nping elfutils-libelf-devel',
211+
'h76c': 'qemu-kvm libvirt-admin seabios-bin nping elfutils-libelf-devel',
212+
'h79c': 'qemu-kvm libvirt-admin seabios-bin nping elfutils-libelf-devel',
211213
'rl84': 'qemu-kvm libvirt-daemon libvirt-daemon-kvm seabios-bin elfutils-libelf-devel',
212214
'euler20': 'vconfig open-iscsi OpenIPMI-modalias qemu python2-pyudev collectd-disk',
213215
'nfs4': 'vconfig iscsi-initiator-utils OpenIPMI nettle libselinux-devel iptables iptables-services qemu-kvm python2-pyudev collectd-disk'
@@ -428,7 +430,7 @@ def rpm_based_deprecated():
428430

429431
rpm_deprecated_list = rpm_deprecated.get(host_info.host_arch + releasever, "")
430432
# new-add host
431-
if releasever in ['c76', 'c79'] and "qemu-kvm" not in skip_packages:
433+
if releasever in ['c76', 'c79', 'h76c', 'h79c'] and "qemu-kvm" not in skip_packages:
432434
rpm_deprecated_list += " qemu-img-ev qemu-kvm-ev qemu-kvm-common-ev"
433435

434436
for rpm in rpm_deprecated_list.split():

kvmagent/kvmagent/plugins/host_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ def update_os(self, req):
14891489
yum_cmd = "export YUM0={};echo {}>/etc/yum/vars/YUM0;yum --enablerepo=* clean all && yum --disablerepo=* --enablerepo=zstack-mn,qemu-kvm-ev-mn{} {} update {} -y"
14901490
yum_cmd = yum_cmd.format(releasever, releasever, ',zstack-experimental-mn' if cmd.enableExpRepo else '', exclude, updates)
14911491
#support update qemu-kvm and update OS
1492-
if releasever in ['c74', 'c76', 'c79']:
1492+
if releasever in ['c74', 'c76', 'c79', 'h76c', 'h79c']:
14931493
if "qemu-kvm" in updates or cmd.releaseVersion is not None:
14941494
update_qemu_cmd = "export YUM0={};yum --disablerepo=* --enablerepo=zstack-mn,qemu-kvm-ev-mn swap -y -- remove qemu-img-ev -- install qemu-img " \
14951495
"&& yum remove qemu-kvm-ev qemu-kvm-common-ev -y && yum --disablerepo=* --enablerepo=zstack-mn,qemu-kvm-ev-mn install qemu-kvm qemu-kvm-common -y && "
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../ansible_core-2.11.12.3-py2.py3-none-any.whl
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<a href='ansible_core-2.11.12.2-py2.py3-none-any.whl'>ansible_core-2.11.12.1-py2.py3-none-any.whl</a><br />
1+
<a href='ansible_core-2.11.12.3-py2.py3-none-any.whl'>ansible_core-2.11.12.3-py2.py3-none-any.whl</a><br />

0 commit comments

Comments
 (0)