using standalone role deployed via an undercloud with network-isolation results in failure

Bug #1832043 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Alex Schultz

Bug Description

When deploying a standalone node via an undercloud with network isolation, the deployment fails due to the missing network definitions in the standalone role. These were removed as part of https://review.opendev.org/#/c/628265/ because they became optional.

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:

Changed in tripleo:
milestone: train-1 → train-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/664049
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=da1827f7d348fd90e00f8381347febe01b6f7239
Submitter: Zuul
Branch: master

commit da1827f7d348fd90e00f8381347febe01b6f7239
Author: Alex Schultz <email address hidden>
Date: Fri Jun 7 13:44:14 2019 -0600

    Add networks to Standalone role

    The standalone role can be used with and without an undercloud. If you
    deploy it with an undercloud and use network-isolation, then the
    deployment will fail because the networks aren't defined in the role.
    Since it doesn't hurt to have them on in the non-undercloud version,
    lets add them back in. They were previously removed as part of
    https://review.opendev.org/#/c/628265/

    Change-Id: I366631cb6ecd39595c00204a02408beb431af70e
    Closes-Bug: #1832043

Changed in tripleo:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/664590

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/stein)

Reviewed: https://review.opendev.org/664590
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=e5e7fea6914378977cd6b51ad8af92473fdddd23
Submitter: Zuul
Branch: stable/stein

commit e5e7fea6914378977cd6b51ad8af92473fdddd23
Author: Alex Schultz <email address hidden>
Date: Fri Jun 7 13:44:14 2019 -0600

    Add networks to Standalone role

    The standalone role can be used with and without an undercloud. If you
    deploy it with an undercloud and use network-isolation, then the
    deployment will fail because the networks aren't defined in the role.
    Since it doesn't hurt to have them on in the non-undercloud version,
    lets add them back in. They were previously removed as part of
    https://review.opendev.org/#/c/628265/

    Change-Id: I366631cb6ecd39595c00204a02408beb431af70e
    Closes-Bug: #1832043
    (cherry picked from commit da1827f7d348fd90e00f8381347febe01b6f7239)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.6.0

This issue was fixed in the openstack/tripleo-heat-templates 10.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 11.1.0

This issue was fixed in the openstack/tripleo-heat-templates 11.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.