Bug 1710503 - all-in-one missing network configuration for network-isolation
Summary: all-in-one missing network configuration for network-isolation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 15.0 (Stein)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 15.0 (Stein)
Assignee: Alex Schultz
QA Contact: Victor Voronkov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-15 16:18 UTC by Victor Voronkov
Modified: 2019-09-26 10:50 UTC (History)
4 users (show)

Fixed In Version: openstack-tripleo-heat-templates-10.5.1-0.20190612140413.fdcfc30.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-21 11:22:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1832043 0 None None None 2019-06-07 19:43:28 UTC
OpenStack gerrit 664049 0 None MERGED Add networks to Standalone role 2020-06-07 15:31:56 UTC
OpenStack gerrit 664590 0 None MERGED Add networks to Standalone role 2020-06-07 15:31:56 UTC
Red Hat Product Errata RHEA-2019:2811 0 None None None 2019-09-21 11:22:23 UTC

Description Victor Voronkov 2019-05-15 16:18:15 UTC
Description of problem:
All-in-one with undercloud fails during the network deployment of the overcloud

Version-Release number of selected component (if applicable):


How reproducible:
Deploy All-in-one with Undercloud 

Steps to Reproduce:
1. Install undercloud
2. make all preparations for Overcloud deployment
3. run overcloud_deploy.sh

Actual results:

Traceback (most recent call last):\\\\n  File \"/bin/os-net-config\", line 10, in <module>\\\\n    sys.exit(main())\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/cli.py\", line 270, in main\\\\n    obj = objects.object_from_json(iface_json)\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/objects.py\", line 51, in object_from_json\\\\n    return OvsBridge.from_json(json)\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/objects.py\", line 667, in from_json\\\\n    members = _update_members(json, nic_mapping, persist_mapping)\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/objects.py\", line 121, in _update_members\\\\n    members.append(object_from_json(member))\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/objects.py\", line 49, in object_from_json\\\\n    return Vlan.from_json(json)\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/objects.py\", line 521, in from_json\\\\n    opts = _BaseOpts.base_opts_from_json(json)\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/objects.py\", line 416, in base_opts_from_json\\\\n    addresses.append(Address.from_json(address))\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/objects.py\", line 275, in from_json\\\\n    ip_netmask = _get_required_field(json, \\\\\\'ip_netmask\\\\\\', \\\\\\'Address\\\\\\')\\\\n  File \"/usr/lib/python3.6/site-packages/os_net_config/objects.py\", line 99, in _get_required_field\\\\n    raise InvalidConfigException(msg)\\\\nos_net_config.objects.InvalidConfigException: Address JSON objects
require \\\\\\'ip_netmask\\\\\\' to be configured.\\\\n+ RETVAL=1\\\\n+ set -e\\\\n+ [[ 1 == 2 ]]\\\\n+ [[ 1 != 0 ]]\\\\n+ echo \\\\\\'ERROR: os-net-config configuration failed.\\\\\\'\\\\nERROR: os-net-config c
onfiguration failed.\\\\n+ exit 1

Expected results:
Overcloud deployed successfully

Additional info:

Comment 1 Alex Schultz 2019-05-15 16:25:26 UTC
It turns out that with network-isolation we now need to define the networks on the role themselves or it fails in this fashion. Currently the standalone role[0] does not have any network information associated with it because it can also be shared with a undercloud-less deployment.  We'll need to see if we can get away with adding the network config (like on the controllers[1]) for both scenarios or we'll need to create a new role for this deployment architecture.

[0] https://opendev.org/openstack/tripleo-heat-templates/src/branch/master/roles/Standalone.yaml
[1] https://opendev.org/openstack/tripleo-heat-templates/src/branch/master/roles/Controller.yaml#L12-L22

Comment 2 Alex Schultz 2019-05-15 16:42:25 UTC
https://review.opendev.org/#/c/628265/ actually removed them, i guess we'll need to investigate re-adding them or handling this in a different fashion

Comment 3 Alex Schultz 2019-05-15 16:51:23 UTC
Not a blocker as the workaround can be to not use network isolation or add the network information to the role being used.

Comment 7 Victor Voronkov 2019-06-25 20:53:43 UTC
Verified on compose RHOS_TRUNK-15.0-RHEL-8-20190619.n.1

Comment 11 errata-xmlrpc 2019-09-21 11:22:03 UTC
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-2019:2811


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