[Bug 2112346] [NEW] Crash on passing None-type address to netaddr

Myles Penner 2112346 at bugs.launchpad.net
Mon Jun 2 23:07:04 UTC 2025


Public bug reported:

Address-parsing functions in netaddr no longer accept a None-type object
and throw a TypeError:

unit-glance-0: File "/usr/lib/python3/dist-packages/netaddr/strategy/ipv4.py", line 118, in str_to_int
unit-glance-0:      if ':' in addr:
unit-glance-0:         ^^^^^^^^^^^
unit-glance-0: TypeError: argument of type 'NoneType' is not iterable

This may have been introduced recently as previous versions of netaddr
used with OpenStack allowed this behavior.

** Affects: python-netaddr (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-netaddr in Ubuntu.
https://bugs.launchpad.net/bugs/2112346

Title:
  Crash on passing None-type address to netaddr

Status in python-netaddr package in Ubuntu:
  New

Bug description:
  Address-parsing functions in netaddr no longer accept a None-type
  object and throw a TypeError:

  unit-glance-0: File "/usr/lib/python3/dist-packages/netaddr/strategy/ipv4.py", line 118, in str_to_int
  unit-glance-0:      if ':' in addr:
  unit-glance-0:         ^^^^^^^^^^^
  unit-glance-0: TypeError: argument of type 'NoneType' is not iterable

  This may have been introduced recently as previous versions of netaddr
  used with OpenStack allowed this behavior.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-netaddr/+bug/2112346/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list