Ask Your Question

RHOSP Newton: IPAddress() does not support netmasks or subnet prefixes!

asked 2018-06-07 05:35:34 -0500

Hi all,

I am trying to launch a Red Hat OpenStack installation by following the steps on

The undercloud is deployed on a single VM created by virt-manager (I am using Ubuntu). OpenStack roles would be then deployed on other VMs. I am running this on my Laptop with Ubuntu 16.04 LTS. The Undercloud VM is using RHEL7.3 and 2vCPUs, 4GB RAM and 2 virtual NICs.

I've been able to complete all preparation steps like:

  1. Istantiation of networks
  2. Creation of nodes

When trying to launch the installation I obtain the following output:

[stack@ospd ~]$ openstack undercloud install
Logging to /home/stack/.instack/install-undercloud.log
Checking for a FQDN hostname...
Static hostname detected as
Transient hostname detected as
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/", line 1239, in install
  File "/usr/lib/python2.7/site-packages/instack_undercloud/", line 654, in _validate_configuration
  File "/usr/lib/python2.7/site-packages/instack_undercloud/", line 611, in _validate_network
    validator.validate_config(params, error_handler)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/", line 32, in validate_config
    _validate_value_formats(local_params, error_callback)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/", line 47, in _validate_value_formats
    local_ip = netaddr.IPNetwork(params['local_ip'])
  File "/usr/lib/python2.7/site-packages/netaddr/ip/", line 923, in __init__
    implicit_prefix, flags)
  File "/usr/lib/python2.7/site-packages/netaddr/ip/", line 805, in parse_ip_network
    mask = IPAddress(val2, module.version, flags=INET_PTON)
  File "/usr/lib/python2.7/site-packages/netaddr/ip/", line 280, in __init__
    % self.__class__.__name__)
ValueError: IPAddress() does not support netmasks or subnet prefixes! See documentation for details.
Command 'instack-install-undercloud' returned non-zero exit status 1

I checked the undercloud.conf file I previously created:

 local_ip =
 undercloud_public_vip =
 undercloud_admin_vip =
 local_interface = eth1
 masquerade_network =
 dhcp_start =
 dhcp_end =
 network_cidr =
 network_gateway =
 inspection_iprange =,
 generate_service_certificate = true
 certificate_generation_ca = local

This seems actually fine to me. Where this IPAddress() is coming from ? Thank you in advance for helping!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-06-07 05:47:15 -0500

Currently solved a formatting error. There was a leading space on every line after the [DEFAULT] row!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-06-07 05:35:34 -0500

Seen: 546 times

Last updated: Jun 07 '18