OCI: YUM Commands Fail with KeyError: 'X-RHN-Auth-Expire-Offset' — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: YUM Commands Fail with KeyError: 'X-RHN-Auth-Expire-Offset'

Applies to:

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64

Symptoms:

When attempting to execute yum commands such as 'yum update -y', the following error is encountered:

Loaded plugins: langpacks, osmh_msg, rhnplugin       
Traceback (most recent call last):
 File "/bin/yum", line 29, in <module>
   yummain.user_main(sys.argv[1:], exit_code=True)
 File "/usr/share/yum-cli/yummain.py", line 375, in user_main
   errcode = main(args)
 File "/usr/share/yum-cli/yummain.py", line 170, in main
   base.getOptionsConfig(args)
:
:
:
 File "/usr/lib/python2.7/site-packages/up2date_client/up2dateAuth.py", line 229, in getLoginInfo
   login(timeout=timeout)
 File "/usr/lib/python2.7/site-packages/up2date_client/up2dateAuth.py", line 201, in login
   writeCachedLogin() #pickle global loginInfo
 File "/usr/lib/python2.7/site-packages/up2date_client/up2dateAuth.py", line 107, in writeCachedLogin
   expireTime = data['time'] + float(loginInfo['X-RHN-Auth-Expire-Offset'])
KeyError: 'X-RHN-Auth-Expire-Offset'

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!