ansible-test - Remove AIX provisioning support. (#76747)

* ansible-test - Remove AIX provisioning support.
* Remove `skip/aix` integration test aliases.
* Remove build for AIX binary module.
pull/76751/head
Matt Clay 3 years ago committed by GitHub
parent bab315b780
commit 3a891827b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Remove support for provisioning remote AIX instances.

@ -1,3 +1,2 @@
shippable/posix/group1 shippable/posix/group1
skip/aix
context/target context/target

@ -4,4 +4,3 @@ skip/freebsd
skip/osx skip/osx
skip/macos skip/macos
skip/rhel skip/rhel
skip/aix

@ -3,4 +3,3 @@ skip/freebsd
skip/osx skip/osx
skip/macos skip/macos
skip/rhel skip/rhel
skip/aix

@ -4,4 +4,3 @@ skip/freebsd
skip/osx skip/osx
skip/macos skip/macos
skip/rhel skip/rhel
skip/aix

@ -1,4 +1,3 @@
async_status async_status
async_wrapper async_wrapper
shippable/posix/group2 shippable/posix/group2
skip/aix

@ -1,4 +1,3 @@
destructive destructive
shippable/posix/group1 shippable/posix/group1
skip/aix
context/target context/target

@ -7,7 +7,6 @@ all:
cd library; \ cd library; \
GOOS=linux GOARCH=amd64 go build -o helloworld_linux_x86_64 helloworld.go; \ GOOS=linux GOARCH=amd64 go build -o helloworld_linux_x86_64 helloworld.go; \
GOOS=linux GOARCH=ppc64le go build -o helloworld_linux_ppc64le helloworld.go; \ GOOS=linux GOARCH=ppc64le go build -o helloworld_linux_ppc64le helloworld.go; \
GOOS=aix GOARCH=ppc64 go build -o helloworld_aix_chrp helloworld.go; \
GOOS=windows GOARCH=amd64 go build -o helloworld_win32nt_64-bit.exe helloworld.go; \ GOOS=windows GOARCH=amd64 go build -o helloworld_win32nt_64-bit.exe helloworld.go; \
GOOS=darwin GOARCH=amd64 go build -o helloworld_darwin_x86_64 helloworld.go; \ GOOS=darwin GOARCH=amd64 go build -o helloworld_darwin_x86_64 helloworld.go; \
GOOS=freebsd GOARCH=amd64 go build -o helloworld_freebsd_amd64 helloworld.go GOOS=freebsd GOARCH=amd64 go build -o helloworld_freebsd_amd64 helloworld.go

@ -1,4 +1,3 @@
command command
shippable/posix/group2 shippable/posix/group2
shell shell
skip/aix

@ -1,4 +1,3 @@
needs/root needs/root
shippable/posix/group2 shippable/posix/group2
destructive destructive
skip/aix

@ -1,5 +1,4 @@
destructive destructive
shippable/posix/group4 shippable/posix/group4
skip/aix
skip/osx skip/osx
skip/macos skip/macos

@ -1,2 +1 @@
shippable/posix/group1 shippable/posix/group1
skip/aix

@ -1,6 +1,5 @@
destructive destructive
shippable/posix/group4 shippable/posix/group4
skip/aix
skip/power/centos skip/power/centos
skip/freebsd skip/freebsd
skip/osx skip/osx

@ -1,6 +1,5 @@
shippable/posix/group1 shippable/posix/group1
destructive destructive
skip/aix
skip/freebsd skip/freebsd
skip/osx skip/osx
skip/macos skip/macos

@ -1,3 +1,2 @@
shippable/posix/group2 shippable/posix/group2
needs/root needs/root
skip/aix

@ -1,4 +1,3 @@
destructive destructive
shippable/posix/group1 shippable/posix/group1
needs/httptester needs/httptester
skip/aix

@ -1,2 +1 @@
shippable/posix/group1 shippable/posix/group1
skip/aix

@ -1,2 +1 @@
shippable/posix/group4 shippable/posix/group4
skip/aix

@ -1,2 +1 @@
shippable/posix/group1 shippable/posix/group1
skip/aix

@ -1,3 +1,2 @@
shippable/posix/group1 shippable/posix/group1
destructive destructive
skip/aix # currently unsupported by hostname module

@ -1,3 +1,2 @@
shippable/posix/group1 shippable/posix/group1
destructive destructive
skip/aix

@ -1,4 +1,3 @@
shippable/posix/group3 shippable/posix/group3
skip/aix
skip/osx skip/osx
skip/macos skip/macos

@ -1,3 +1,2 @@
destructive destructive
shippable/posix/group5 shippable/posix/group5
skip/aix

@ -1,4 +1,3 @@
shippable/posix/group3 shippable/posix/group3
skip/aix
context/target context/target
needs/target/setup_remote_tmp_dir needs/target/setup_remote_tmp_dir

@ -1,3 +1,2 @@
destructive destructive
shippable/posix/group1 shippable/posix/group1
skip/aix

@ -1,5 +1,4 @@
destructive destructive
shippable/posix/group1 shippable/posix/group1
skip/aix
skip/osx skip/osx
skip/macos skip/macos

@ -1,5 +1,4 @@
shippable/posix/group3 shippable/posix/group3
skip/aix
skip/freebsd skip/freebsd
skip/osx skip/osx
skip/macos skip/macos

@ -1,6 +1,5 @@
setup/always/setup_passlib setup/always/setup_passlib
shippable/posix/group2 shippable/posix/group2
skip/aix
skip/osx skip/osx
skip/macos skip/macos
skip/rhel/9.0b # svn checkout hangs skip/rhel/9.0b # svn checkout hangs

@ -1,2 +1 @@
shippable/posix/group1 shippable/posix/group1
skip/aix

@ -1,4 +1,3 @@
needs/root needs/root
shippable/posix/group2 shippable/posix/group2
destructive destructive
skip/aix

@ -3,6 +3,5 @@ needs/root
skip/freebsd skip/freebsd
skip/osx skip/osx
skip/macos skip/macos
skip/aix
shippable/posix/group3 shippable/posix/group3
needs/target/setup_remote_tmp_dir needs/target/setup_remote_tmp_dir

@ -1,4 +1,3 @@
destructive destructive
shippable/posix/group4 shippable/posix/group4
needs/httptester needs/httptester
skip/aix

@ -1,3 +1,2 @@
destructive destructive
shippable/posix/group1 shippable/posix/group1
skip/aix

@ -1,6 +1,5 @@
destructive destructive
shippable/posix/group4 shippable/posix/group4
skip/aix
skip/freebsd skip/freebsd
skip/osx skip/osx
skip/macos skip/macos

@ -1,3 +1,2 @@
shippable/posix/group1 shippable/posix/group1
destructive destructive
skip/aix

@ -9,5 +9,3 @@ rhel/7.9 python=2.7 provider=aws
rhel/8.5 python=3.6,3.8,3.9 provider=aws rhel/8.5 python=3.6,3.8,3.9 provider=aws
rhel/9.0b python=3.9 provider=aws rhel/9.0b python=3.9 provider=aws
rhel provider=aws rhel provider=aws
aix/7.2 python=2.7,3.7 python_dir=/opt/freeware/bin provider=ibmps
aix python_dir=/opt/freeware/bin provider=ibmps

@ -58,8 +58,6 @@ class Connection(metaclass=abc.ABCMeta):
src, # type: t.IO[bytes] src, # type: t.IO[bytes]
): ):
"""Extract the given archive file stream in the specified directory.""" """Extract the given archive file stream in the specified directory."""
# This will not work on AIX.
# However, AIX isn't supported as a controller, which is where this would be needed.
tar_cmd = ['tar', 'oxzf', '-', '-C', chdir] tar_cmd = ['tar', 'oxzf', '-', '-C', chdir]
retry(lambda: self.run(tar_cmd, stdin=src)) retry(lambda: self.run(tar_cmd, stdin=src))
@ -75,13 +73,11 @@ class Connection(metaclass=abc.ABCMeta):
gzip_cmd = ['gzip'] gzip_cmd = ['gzip']
if exclude: if exclude:
# This will not work on AIX.
# However, AIX isn't supported as a controller, which is where this would be needed.
tar_cmd += ['--exclude', exclude] tar_cmd += ['--exclude', exclude]
tar_cmd.append(name) tar_cmd.append(name)
# Using gzip to compress the archive allows this to work on all POSIX systems we support, including AIX. # Using gzip to compress the archive allows this to work on all POSIX systems we support.
commands = [tar_cmd, gzip_cmd] commands = [tar_cmd, gzip_cmd]
sh_cmd = ['sh', '-c', ' | '.join(' '.join(shlex.quote(cmd) for cmd in command) for command in commands)] sh_cmd = ['sh', '-c', ' | '.join(' '.join(shlex.quote(cmd) for cmd in command) for command in commands)]

@ -77,36 +77,6 @@ pip_install() {
done done
} }
bootstrap_remote_aix()
{
chfs -a size=1G /
chfs -a size=4G /usr
chfs -a size=1G /var
chfs -a size=1G /tmp
chfs -a size=2G /opt
if [ "${python_version}" = "2.7" ]; then
python_package_version=""
else
python_package_version="3"
fi
packages="
gcc
python${python_package_version}
python${python_package_version}-devel
python${python_package_version}-pip
"
while true; do
# shellcheck disable=SC2086
yum install -q -y ${packages} \
&& break
echo "Failed to install packages. Sleeping before trying again..."
sleep 10
done
}
bootstrap_remote_freebsd() bootstrap_remote_freebsd()
{ {
if [ "${python_version}" = "2.7" ]; then if [ "${python_version}" = "2.7" ]; then
@ -321,7 +291,6 @@ bootstrap_remote()
python_package_version="$(echo "${python_version}" | tr -d '.')" python_package_version="$(echo "${python_version}" | tr -d '.')"
case "${platform}" in case "${platform}" in
"aix") bootstrap_remote_aix ;;
"freebsd") bootstrap_remote_freebsd ;; "freebsd") bootstrap_remote_freebsd ;;
"macos") bootstrap_remote_macos ;; "macos") bootstrap_remote_macos ;;
"rhel") bootstrap_remote_rhel ;; "rhel") bootstrap_remote_rhel ;;

Loading…
Cancel
Save