"Unable to get API token: None/latest/api/token" reported in "cloud-init" after updating "python2-urllib3" package

Solution Unverified - Updated -

Issue

  • After updating the package python2-urllib3 (repository rhel-7-server-ose-3.11-rpms) from 1.24.3 to 1.26.2, we see errors in cloud-init:

    -- Unit cloud-init.service has begun starting up.
    Jan 26 18:09:55 example.compute.internal cloud-init[1024]: /usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.2) or chardet (3.0.4) doesn't match a supported version!
    Jan 26 18:09:55 example.compute.internal cloud-init[1024]: RequestsDependencyWarning)
    Jan 26 18:09:55 example.compute.internal cloud-init[1024]: Cloud-init v. 19.4 running 'init' at Tue, 26 Jan 2021 17:09:55 +0000. Up 174.68 seconds.
    [..]
    Jan 26 18:09:56 example.compute.internal cloud-init[1024]: 2021-01-26 17:09:55,954 - DataSourceEc2.py[WARNING]: Calling 'http://168.230.155.254/latest/api/token' failed [0/1s]: request error [Failed to parse: http://168.230.155.254/latest/api/token]
    Jan 26 18:09:56 example.compute.internal cloud-init[1024]: 2021-01-26 17:09:56,956 - DataSourceEc2.py[WARNING]: Unable to get API token: None/latest/api/token raised exception Failed to parse: http://None/latest/api/token
    Jan 26 18:09:56 example.compute.internal cloud-init[1024]: 2021-01-26 17:09:56,957 - url_helper.py[WARNING]: Calling 'http://168.230.155.254/2009-04-04/meta-data/instance-id' failed [0/120s]: request error [Failed to parse: http://168.230.155.254/2009-04-04/meta-data/instance-id]
    Jan 26 18:09:57 example.compute.internal cloud-init[1024]: 2021-01-26 17:09:57,958 - DataSourceEc2.py[WARNING]: Unable to get API token: None/latest/api/token raised exception Failed to parse: http://None/latest/api/token
    Jan 26 18:09:57 example.compute.internal cloud-init[1024]: 2021-01-26 17:09:57,960 - url_helper.py[WARNING]: Calling 'http://168.230.155.254/2009-04-04/meta-data/instance-id' failed [1/120s]: request error [Failed to parse: http://168.230.155.254/2009-04-04/meta-data/instance-id]
    [..]
    

Environment

  • Red Hat OpenShift Container Platform (OCP) 3.11
  • Red Hat Enterprise Linux (RHEL) 7.9
  • Package python2-urllib3-1.26.2-1.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content