adoptium / adoptium/infrastructure

Various errors found in the aix playbook

Open
#3,086 10 comments 0 reactions 1 assignee Claimed by @Haroon-Khel View on GitHub
os:aix
Dominant language
Python
Stars
96
Forks
106
Avg merge
1d 23h
Merged PRs (30d)
13

Description

**Yum** `yum update` dependency error. Most machines

```
--> Finished Dependency Resolution
Error: Package: openldap-2.5.12-1.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: sudo-1.9.13p2-1.ppc (AIX_Toolbox)
Requires: libssl.a(libssl.so.1.1)
Error: Package: curl-8.0.1-1.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: python3-3.7.15-2.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: python-pycurl-7.43.0.5-1.ppc (AIX_Toolbox)
Requires: libssl.a(libssl.so.1.1)
Error: Package: krb5-libs-1.20.1-1.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: python-2.7.18-4.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: curl-8.0.1-1.ppc (AIX_Toolbox)
Requires: libssl.a(libssl.so.1.1)
Error: Package: git-core-2.38.3-1.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: libssh2-1.10.0-2.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: git-core-2.38.3-1.ppc (AIX_Toolbox)
Requires: libssl.a(libssl.so.1.1)
Error: Package: sudo-1.9.13p2-1.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: python3-3.7.15-2.ppc (AIX_Toolbox)
Requires: libssl.a(libssl.so.1.1)
Error: Package: rsync-3.2.7-1.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: python-pycurl-7.43.0.5-1.ppc (AIX_Toolbox)
Requires: libcrypto.a(libcrypto.so.1.1)
Error: Package: krb5-libs-1.20.1-1.ppc (AIX_Toolbox)
Requires: libssl.a(libssl.so.1.1)
Error: Package: python-2.7.18-4.ppc (AIX_Toolbox)
Requires: libssl.a(libssl.so.1.1)
Error: Package: openldap-2.5.12-1.ppc (AIX_Toolbox)
Requires: libssl.a(libssl.so.1.1)
```

**rbac** ✅
https://github.com/adoptium/infrastructure/blob/e9c555980680e72a4ecb748d254fec942761ef8f/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/rbac/tasks/setsecattr.yml#L15 fails for `/usr/bin/ksh`

```
TASK [rbac : Add authorization to command /usr/bin/ksh] ************************
fatal: [test-osuosl-aix72-ppc64-2]: FAILED! => {"changed": true, "cmd": "setsecattr -c accessauths=ojdk.rtclk,ojdk.proccore innateprivs=PV_PROC_RTCLK,PV_PROC_CORE inheritprivs=PV_PROC_RTCLK,PV_PROC_CORE secflags=FSF_EPS
\"/usr/bin/ksh\"", "delta": "0:00:00.063116", "end": "2023-05-25 17:20:23.736530", "msg": "non-zero return code", "rc": 22,
"start": "2023-05-25 17:20:23.673414", "stderr": "1420-001 Authorization \"ojdk.proccore\" does not exist.\n1420-016 Attribute
\"accessauths\" has an invalid value \"ojdk.rtclk,ojdk.proccore\".", "stderr_lines": ["1420-001 Authorization \"ojdk.proccore\"
does not exist.", "1420-016 Attribute \"accessauths\" has an invalid value \"ojdk.rtclk,ojdk.proccore\"."], "stdout": "",
"stdout_lines": []}
```

**Users** ✅
https://github.com/adoptium/infrastructure/blob/e9c555980680e72a4ecb748d254fec942761ef8f/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/users/tasks/jenkins.yml#L12

```
TASK [users : Set authorized key for jenkins user] *****************************
fatal: [test-osuosl-aix715-ppc64-1 -> localhost]: FAILED! => {"changed": false, "msg": "Failed to lookup user jenkins:
\"getpwnam(): name not found: 'jenkins'\""}
```

**disable_sendmail** ✅
https://github.com/adoptium/infrastructure/blob/e9c555980680e72a4ecb748d254fec942761ef8f/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/disable_sendmail/tasks/main.yml#L5

```
TASK [disable_sendmail : Ensure sendmail is stopped] ***************************
fatal: [test-osuosl-aix72-ppc64-4]: FAILED! => {"changed": false, "msg": "0513-086 The sendmail Group is not on file.\n"}
```
**aixfs**
In https://github.com/adoptium/infrastructure/blob/master/ansible/playbooks/AdoptOpenJDK_AIX_Playbook/roles/aixfs/tasks/main.yml, if ansible detects that the filesystems are larger than the desired amount it should not shrink it. I feel like this will cause loss of data

```
failed: [test-osuosl-aix715-ppc64-1] (item={'mount': '/var', 'size': 4}) => {"ansible_loop_var": "item", "changed": true, "cmd":
["/usr/sbin/chfs", "-a", "size=4G", "/var"], "delta": "0:00:00.098215", "end": "2023-05-25 12:44:26.555219", "item": {"mount":
"/var", "size": 4}, "msg": "non-zero return code", "rc": 28, "start": "2023-05-25 12:44:26.457004", "stderr": "", "stderr_lines":
[], "stdout": "chfs: There is not enough free space to shrink the file system.", "stdout_lines": ["chfs: There is not enough free
space to shrink the file system."]}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.