Skip to content

msg": "[orapatch] module fail: Required \"pexpect\" (RPM) library not found", #19

Description

@gaurav78foru

Getting following error while executing even we installed pexpect on both nodes.

failed: [db3s11.shared.musw1-ep01-core.np.norton.com] (item={u'patch_db_list': u'DB3S1', u'patch_ojvm': True, u'skip': False, u'run_only_checks': True, u'host': u'db3s11.shared.musw1-ep01-core.np.norton.com', u'patch_only_oh': True, u'oratab_file': u'/etc/oratab', u'oracle_owner': u'oracle', u'patch_db_all': True, u'oracle_home_path': u'/apps/oh/19c/odb', u'build_client_only': False, u'debug': True, u'build_client': False, u'patch_id': 34773489, u'backup_oh': False}) => {
"ansible_loop_var": "item",
"changed": false,
"invocation": {
"module_args": {
"ansible_hostname": "db3s11",
"debug": true,
"function": "CHECK_OPATCH_MIN_VERSION",
"only_prereq": true,
"oracle_home": "/apps/oh/19c/odb",
"orapatch_logfile": "/tmp/orapatch_alert.log",
"oratab_file": "/etc/oratab",
"patch_db_all": true,
"patch_db_list": "DB3S1",
"patch_id": 34773489,
"patch_item": {
"desc": "Patch 34773489 - Combo of OJVM Component Release Update 19.18.0.0.230117 (34786990)+ Database Jan 2023 Release Update 19.18.0.0.230117 (34765931) ",
"file": "p34773489_190000_Linux-x86-64.zip",
"only_oh": false,
"patch_acfs_id": null,
"patch_db_id": 34765931,
"patch_dbwlm_id": null,
"patch_dir": 34773489,
"patch_gi_id": null,
"patch_id": 34773489,
"patch_ocw_id": null,
"patch_ojvm_id": 34786990,
"patch_proactive_bp_id": null
},
"patch_ojvm": true,
"patch_only_oh": true,
"root_password": "",
"swlib_path": "/apps/stage/ANSIBLE_AUTOMATION"
}
},
"item": {
"backup_oh": false,
"build_client": false,
"build_client_only": false,
"debug": true,
"host": "db3s11.shared.musw1-ep01-core.np.norton.com",
"oracle_home_path": "/apps/oh/19c/odb",
"oracle_owner": "oracle",
"oratab_file": "/etc/oratab",
"patch_db_all": true,
"patch_db_list": "DB3S1",
"patch_id": 34773489,
"patch_ojvm": true,
"patch_only_oh": true,
"run_only_checks": true,
"skip": false
},
"msg": "[orapatch] module fail: Required "pexpect" (RPM) library not found",
"rc": 245
}

Target:

[root@db3s11 ~]# yum install pexpect
Failed to set locale, defaulting to C
Loaded plugins: langpacks, ulninfo, versionlock
Excluding 8 updates due to versionlock (use "yum versionlock status" to show them)
Resolving Dependencies
--> Running transaction check
---> Package pexpect.noarch 0:2.3-11.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================
Package Arch Version Repository Size

Installing:
pexpect noarch 2.3-11.el7 Artifactory-yum.oracle7.latest 141 k

Transaction Summary

Install 1 Package

Total download size: 141 k
Installed size: 784 k
Is this ok [y/d/N]: y
Downloading packages:
pexpect-2.3-11.el7.noarch.rpm | 141 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : pexpect-2.3-11.el7.noarch 1/1
Verifying : pexpect-2.3-11.el7.noarch 1/1

Installed:
pexpect.noarch 0:2.3-11.el7

Complete!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions