Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1509640 - The network-environment.yaml validator hangs with IPv6 addresses
The network-environment.yaml validator hangs with IPv6 addresses
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations (Show other bugs)
12.0 (Pike)
Unspecified Unspecified
high Severity urgent
: beta
: 13.0 (Queens)
Assigned To: Florian Fuchs
nlevinki
: Triaged
Depends On:
Blocks: 1513624 1301549
  Show dependency treegraph
 
Reported: 2017-11-05 06:45 EST by Udi
Modified: 2018-06-27 09:39 EDT (History)
6 users (show)

See Also:
Fixed In Version: openstack-tripleo-validations-8.3.1-0.20180304031640.d5546cd.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-06-27 09:39:00 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 529593 None master: MERGED tripleo-validations: Improve netenv validation and add IPv6 tests (Icbd2e6483c991835d62429d06b5745742186b5c5) 2018-03-21 09:31 EDT
Red Hat Product Errata RHEA-2018:2086 None None None 2018-06-27 09:39 EDT

  None (edit)
Description Udi 2017-11-05 06:45:33 EST
Description of problem:
I uploaded a network-environment.yaml file with IPv6 addresses to the plan:

parameter_defaults:
  InternalApiNetCidr: 'fd00:fd00:fd00:2000::/64'
  InternalApiAllocationPools: [{'start': 'fd00:fd00:fd00:2000::10', 'end': 'fd00:fd00:fd00:2000:ffff:ffff:ffff:fffe'}]
  InternalApiNetworkVlanID: 200

  StorageNetCidr: 'fd00:fd00:fd00:3000::/64'
  StorageAllocationPools: [{'start': 'fd00:fd00:fd00:3000::10', 'end': 'fd00:fd00:fd00:3000:ffff:ffff:ffff:fffe'}]
  StorageNetworkVlanID: 300

  StorageMgmtNetCidr: 'fd00:fd00:fd00:4000::/64'
  StorageMgmtAllocationPools: [{'start': 'fd00:fd00:fd00:4000::10', 'end': 'fd00:fd00:fd00:4000:ffff:ffff:ffff:fffe'}]
  StorageMgmtNetworkVlanID: 301

  ExternalNetCidr: '2001:db8:ca2:4::/64'
  ExternalAllocationPools: [{'start': '2001:db8:ca2:4::0100', 'end': '2001:db8:ca2:4:ffff:ffff:ffff:ff00'}]
  ExternalInterfaceDefaultRoute: 2001:db8:ca2:4::1
  ExternalNetworkVlanID: 10

  TenantNetCidr: 10.0.1.128/25
  TenantAllocationPools: [{'start': '10.0.1.138', 'end': '10.0.1.200'}]

  ControlPlaneSubnetCidr: "25"
  ControlPlaneDefaultRoute: 192.0.2.1
  # ControlPlaneDefaultRoute: 192.168.0.1

  EC2MetadataIp: 192.0.2.1
  # EC2MetadataIp: 192.168.0.1
  DnsServers: ["10.16.36.29","8.8.8.8"]
  NtpServer: ["clock.redhat.com","clock.redhat.com"]


When I ran the validator, it hanged.


Version-Release number of selected component (if applicable):
openstack-tripleo-validations-7.4.2-0.20171016115241.c2c9bf2.el7ost.noarch


How reproducible:
100%


Steps to Reproduce:
1. Edit your network-environment.yaml file with the above changes.
2. Upload the file to the plan:
openstack object create overcloud environments/network-environment.yaml
3. Run the validator:
ansible-playbook -i /usr/bin/tripleo-ansible-inventory /usr/share/openstack-tripleo-validations/validations/network-environment.yaml


Actual results:
It hangs forever
Comment 3 Florian Fuchs 2018-01-08 08:46:19 EST
The reason why the validation hangs is that it test *all* IPs in a range defined in *AllocationPools against the corresponding *NetCidr subnet. If the range is as large as in the example the validation runs for a *very* long time.

The fix attached to the report uses the IPRange python object to check the validity of the range instead of testing every IP separately.
Comment 6 Udi 2018-04-18 03:17:06 EDT
Verified: openstack-tripleo-validations-8.4.0-1.el7ost.noarch

A new problem was found, where if the network-environment.yaml file is missing, the GUI doesn't show the failure and the spinner spins forever: https://bugzilla.redhat.com/show_bug.cgi?id=1568706
Comment 8 errata-xmlrpc 2018-06-27 09:39:00 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:2086

Note You need to log in before you can comment on or make changes to this bug.