EM: Host Patching with Custom Channels in Enterprise Manager Cloud Control Fails with Error: Directory Location Is Not A Valid RPM Repository (Doc ID 1938766.1)

Last updated on FEBRUARY 22, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.0.4.0 version, Target Host

When attempting to create a new RPM repository (via copying an existing RPM repository to a new location, and then by finishing setup via running createrepo command),
the following error occurs.

ERROR
-----------------------
 "Directory location is not a valid RPM Repository. Verify whether yum-arch or createrepo commands were successfully run."

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Copy existing RPM directory to a new, timestamped location
2. run 'createrepo -v' on the directory
3. # ll x86_64/
  total 512
  drwxr-xr-x 2 root root 520192 Aug 8 09:12 getPackage
  drwxr-xr-x 2 root root 4096 Aug 8 09:34 repodata
4. Attempts to create custom channels as seen in:
  http://docs.oracle.com/cd/E24628_01/em.121/e27046/pat_linux_patch.htm "34.7.4.1 Prerequisites for Registering a Custom Channel"
  Results in the noted error.
  "Directory location is not a valid RPM Repository. Verify whether yum-arch or createrepo commands were successfully run."

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot utilize their newly configured RPM repository.

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms