undercloud install fails if devices exist with no dhcp

Bug #1587656 reported by Derek Higgins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Won't Fix
High
Unassigned

Bug Description

On a baremetal host with multiple wired nic's

when running the undercloud install 20-os-net-config writes out /etc/os-net-config/dhcp_all_interfaces.yaml containing "use_dhcp: true" for each nic.
If any of them do not have dhcp configured then "os-net-config -c /etc/os-net-config/dhcp_all_interfaces.yaml -v --detailed-exit-codes --cleanup" fails

> openstack undercloud install
...
[2016/05/25 08:55:16 AM] [INFO] Writing config /etc/sysconfig/network-scripts/ifcfg-em1
[2016/05/25 08:55:16 AM] [INFO] Writing config /etc/sysconfig/network-scripts/route-em1
[2016/05/25 08:55:16 AM] [INFO] running ifup on interface: em2
Traceback (most recent call last):
  File "/bin/os-net-config", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/os_net_config/cli.py", line 187, in main
    activate=not opts.no_activate)
  File "/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py", line 572, in apply
    self.ifup(interface)
  File "/usr/lib/python2.7/site-packages/os_net_config/__init__.py", line 164, in ifup
    self.execute(msg, '/sbin/ifup', interface)
  File "/usr/lib/python2.7/site-packages/os_net_config/__init__.py", line 144, in execute
    processutils.execute(cmd, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 371, in execute
    cmd=sanitized_cmd)
oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: /sbin/ifup em2
Exit code: 1
Stdout: u'\nDetermining IP information for em2... failed.\n'
Stderr: u''
+ RETVAL=1
+ [[ 1 == 2 ]]
+ [[ 1 != 0 ]]
+ echo 'ERROR: configuration of safe defaults failed.'
ERROR: configuration of safe defaults failed.
[2016-05-25 08:56:17,994] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 1]

[2016-05-25 08:56:17,995] (os-refresh-config) [ERROR] Aborting...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 840, in install
    _run_orc(instack_env)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 730, in _run_orc
    _run_live_command(args, instack_env, 'os-refresh-config')
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 401, in _run_live_command
    raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: os-refresh-config failed. See log for details.
Command 'instack-install-undercloud' returned non-zero exit status 1

Steven Hardy (shardy)
Changed in tripleo:
milestone: newton-2 → newton-3
Steven Hardy (shardy)
Changed in tripleo:
milestone: newton-3 → newton-rc1
Revision history for this message
Brent Eagles (beagles) wrote :

Is it possible to use net_config_override in undercloud.conf to workaround this issue?

Changed in tripleo:
milestone: newton-rc1 → newton-rc2
Changed in tripleo:
milestone: newton-rc2 → none
Revision history for this message
Derek Higgins (derekh) wrote :

Closed this, the environment where I had this happen can't now be used to reproduce, will reopen again if its seen again.

Changed in tripleo:
status: Triaged → Incomplete
status: Incomplete → Won't Fix
Revision history for this message
Simon Wright (simon-ocf) wrote :

In case it helps someone.
I managed to replicate this failure by setting local_interface in undercloud.conf to bridge name (eg br-ctlplane), whereas it should be NIC name (eg eth0).

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.