Error 'Importerror: Cannot Import Name Rhnserver' on RHEL5 Server After Converting to ULN (Doc ID 1168067.1)

Last updated on MARCH 08, 2017

Applies to:

Linux OS - Version: 2.6.18-92.el5 and later   [Release: RHEL5U2 and later ]
Linux x86-64

Symptoms

After converting to ULN on a RHEL5 server, the root account has been receiving the following email every 2 minutes:
Message 1:
From root@xxx xxx
Date: xxx
From: root@xxx
To: root@xxx
Subject: Cron <root@xxx> python /usr/share/rhn/virtualization/poller.py
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

Traceback (most recent call last):
File "/usr/share/rhn/virtualization/poller.py", line 38, in ?
from virtualization.notification import Plan, \
File "/usr/share/rhn/virtualization/notification.py", line 28, in ?
from up2date_client import rhnserver
ImportError: cannot import name rhnserver


The email is coming from cron job /etc/cron.d/rhn-virtualization.cron

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