Bug 1282332 - Undercloud failed because vlan interface is specified as local_ip
Summary: Undercloud failed because vlan interface is specified as local_ip
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 10.0 (Newton)
Assignee: Hugh Brock
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-16 07:01 UTC by Chen
Modified: 2019-09-12 09:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 16:12:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chen 2015-11-16 07:01:59 UTC
Description of problem:

Undercloud failed because vlan interface is specified as local_ip

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

OSP 7.0 director

How reproducible:

100%

Steps to Reproduce:

1. Specify a vlan interface as local_ip
2. Do the undercloud install

So that the network configuration is something following:

              +------------------------------+
              |    PXE switch                |
              |                              |
              +---+------------+-----------+-+
                  ^            ^           ^
+---------+   +---+-------+  +-+-----+   +-+-----+
| vlan197 |   | vlan4000  |  |deploy |   |deploy |
+-------+-+   +--+--------+  |node0  |   |node1  |
        ^        ^           |       |   |       |
        |        |           +-------+   +-------+
       ++--------++
       |   bond0  |
       +----------+



Actual results:

The undercloud will fail with the following error message:

015-11-12 13:57:42,192 INFO: [2015/11/12 01:57:42 PM] [ERROR] Unable to read mac address: vlan4000
2015-11-12 13:57:42,193 INFO: Traceback (most recent call last):
2015-11-12 13:57:42,193 INFO:   File "/bin/os-net-config", line 10, in <module>
2015-11-12 13:57:42,194 INFO:     sys.exit(main())
2015-11-12 13:57:42,194 INFO:   File "/usr/lib/python2.7/site-packages/os_net_config/cli.py", line 185, in main
2015-11-12 13:57:42,195 INFO:     provider.add_object(obj)
2015-11-12 13:57:42,196 INFO:   File "/usr/lib/python2.7/site-packages/os_net_config/__init__.py", line 52, in add_object
2015-11-12 13:57:42,197 INFO:     self.add_bridge(obj)
2015-11-12 13:57:42,197 INFO:   File "/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py", line 218, in add_bridge
2015-11-12 13:57:42,206 INFO:     data = self._add_common(bridge)
2015-11-12 13:57:42,206 INFO:   File "/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py", line 104, in _add_common
2015-11-12 13:57:42,207 INFO:     mac = utils.interface_mac(base_opt.primary_interface_name)
2015-11-12 13:57:42,208 INFO:   File "/usr/lib/python2.7/site-packages/os_net_config/utils.py", line 45, in interface_mac
2015-11-12 13:57:42,209 INFO:     with open('/sys/class/net/%s/address' % name, 'r') as f:
2015-11-12 13:57:42,209 INFO: IOError: [Errno 2] No such file or directory: '/sys/class/net/vlan4000/address'
2015-11-12 13:57:42,210 INFO: + RETVAL=1
2015-11-12 13:57:42,210 INFO: + [[ 1 == 2 ]]
2015-11-12 13:57:42,211 INFO: + [[ 1 != 0 ]]
2015-11-12 13:57:42,211 INFO: + echo 'ERROR: os-net-config configuration failed.'
2015-11-12 13:57:42,212 INFO: ERROR: os-net-config configuration failed.
2015-11-12 13:57:42,213 INFO: + exit 1
2015-11-12 13:57:42,213 INFO: [2015-11-12 13:57:42,199] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit statu
s 1]

Expected results:

The ifcfg-vlan4000 file should be configured correctly and it should be able to start after undercloud install.

Additional info:

Comment 4 Mike Burns 2016-04-07 20:57:01 UTC
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.

Comment 6 Dan Sneddon 2016-10-14 16:12:18 UTC
For OSP version 7 a dedicated provisioning interface is required for the automated setup. After running "openstack undercloud install", it should be possible to modify the br-ctlplane manually to use a bond instead of a single interface.

I have opened up a feature request for newer versions of OSP-Director to support this via automation in the future.


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