Ask Your Question
0

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

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

Hi all,

I am trying to launch a Red Hat OpenStack installation by following the steps on https://keithtenzer.com/2017/04/20/re...

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 ospd.lab.com
Transient hostname detected as ospd.lab.com
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1239, in install
    _validate_configuration()
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 654, in _validate_configuration
    _validate_network()
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 611, in _validate_network
    validator.validate_config(params, error_handler)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/validator.py", line 32, in validate_config
    _validate_value_formats(local_params, error_callback)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/validator.py", line 47, in _validate_value_formats
    local_ip = netaddr.IPNetwork(params['local_ip'])
  File "/usr/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 923, in __init__
    implicit_prefix, flags)
  File "/usr/lib/python2.7/site-packages/netaddr/ip/__init__.py", line 805, in parse_ip_network
    mask = IPAddress(val2, module.version, flags=INET_PTON)
  File "/usr/lib/python2.7/site-packages/netaddr/ip/__init__.py", 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:

[DEFAULT]
 local_ip = 192.168.126.1/24
 undercloud_public_vip = 192.168.126.2
 undercloud_admin_vip = 192.168.126.3
 local_interface = eth1
 masquerade_network = 192.168.126.0/24
 dhcp_start = 192.168.126.100
 dhcp_end = 192.168.126.150
 network_cidr = 192.168.126.0/24
 network_gateway = 192.168.126.1
 inspection_iprange = 192.168.126.130,192.168.126.99
 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
0

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

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 46 times

Last updated: Jun 07