[Rdo-list] TripleO - undercloud deployment failing network configuration
Qasim Sarfraz
qasims at plumgrid.com
Mon May 2 04:45:35 UTC 2016
Hi Laporte,
Yes, this is an issue with your undercloud.conf. Set the appropriate PXE
interface in undercloud.conf using following and retry:
Network interface on the Undercloud that will be handling the PXE
# boots and DHCP for Overcloud instances. (string value)
#local_interface = eth1
On Monday, May 2, 2016, Laporte, Laurent [CTO] <Laurent.Laporte at sprint.com>
wrote:
> Hello,
>
>
>
> I hope that this is the correct forum to post this message.
>
> I am in the process of deploying TripleO. My undercloud machine is a
> DL360G7 (36GB RAM) and I’m using CentOS 7. The undercloud installation is
> failing while os-refresh-config is running. It appears that the error is:
> [ERROR] Unable to read mac address: eth1. On this machine, I have four
> interfaces, and they are enp3s0f0, enp3s0f1, enp4s0f0, and enp4s0f1. It
> looks like the script is searching for the interface information in
> /sys/class/eth<x>, and when I check there, I see links to the ifcfg-xxx
> files in /etc/sysconfig/network-scripts and not the eth<x> that the script
> is expecting. Has anyone ran into this issue (or something similar)?
>
>
>
> Thanks,
>
>
>
> Larry
>
>
>
>
>
> [2016-04-28 10:54:23,615] (os-refresh-config) [INFO] Starting phase
> configure
>
> dib-run-parts Thu Apr 28 10:54:23 CDT 2016 Running
> /usr/libexec/os-refresh-config/configure.d/00-apply-selinux-policy
>
> + set -o pipefail
>
> + '[' -x /usr/sbin/semanage ']'
>
> + semodule -i /opt/stack/selinux-policy/ipxe.pp
>
> dib-run-parts Thu Apr 28 10:54:36 CDT 2016 00-apply-selinux-policy
> completed
>
> dib-run-parts Thu Apr 28 10:54:36 CDT 2016 Running
> /usr/libexec/os-refresh-config/configure.d/20-os-apply-config
>
> [2016/04/28 10:54:36 AM] [WARNING] DEPRECATED: falling back to
> /var/run/os-collect-config/os_config_files.json
>
> [2016/04/28 10:54:36 AM] [INFO] writing /etc/os-net-config/config.json
>
> [2016/04/28 10:54:36 AM] [INFO] writing /root/stackrc
>
> [2016/04/28 10:54:36 AM] [INFO] writing /etc/puppet/hiera.yaml
>
> [2016/04/28 10:54:36 AM] [INFO] writing
> /mnt/state/var/lib/ironic/virtual-power-key
>
> [2016/04/28 10:54:36 AM] [INFO] writing
> /var/opt/undercloud-stack/masquerade
>
> [2016/04/28 10:54:36 AM] [INFO] writing /etc/puppet/hieradata/RedHat.yaml
>
> [2016/04/28 10:54:36 AM] [INFO] writing /root/tripleo-undercloud-passwords
>
> [2016/04/28 10:54:36 AM] [INFO] success
>
> dib-run-parts Thu Apr 28 10:54:36 CDT 2016 20-os-apply-config completed
>
> dib-run-parts Thu Apr 28 10:54:36 CDT 2016 Running
> /usr/libexec/os-refresh-config/configure.d/20-os-net-config
>
> ++ os-apply-config --key os_net_config --type raw --key-default ''
>
> [2016/04/28 10:54:36 AM] [WARNING] DEPRECATED: falling back to
> /var/run/os-collect-config/os_config_files.json
>
> + NET_CONFIG='{"network_config": [{"ovs_extra": ["br-set-external-id
> br-ctlplane bridge-id br-ctlplane"], "type": "ovs_bridge", "addresses":
> [{"ip_netmask": "10.0.40.11/24"}], "members": [{"type": "interface",
> "primary": "true", "name": "eth1"}], "name": "br-ctlplane"}]}'
>
> + '[' -n '{"network_config": [{"ovs_extra": ["br-set-external-id
> br-ctlplane bridge-id br-ctlplane"], "type": "ovs_bridge", "addresses":
> [{"ip_netmask": "10.0.40.11/24"}], "members": [{"type": "interface",
> "primary": "true", "name": "eth1"}], "name": "br-ctlplane"}]}' ']'
>
> + trap configure_safe_defaults EXIT
>
> + os-net-config -c /etc/os-net-config/config.json -v --detailed-exit-codes
>
> [2016/04/28 10:54:36 AM] [INFO] Using config file at:
> /etc/os-net-config/config.json
>
> [2016/04/28 10:54:36 AM] [INFO] Using mapping file at:
> /etc/os-net-config/mapping.yaml
>
> [2016/04/28 10:54:36 AM] [INFO] Ifcfg net config provider created.
>
> [2016/04/28 10:54:36 AM] [INFO] nic1 mapped to: enp3s0f0
>
> [2016/04/28 10:54:36 AM] [INFO] nic2 mapped to: enp3s0f1
>
> [2016/04/28 10:54:36 AM] [INFO] nic3 mapped to: enp4s0f0
>
> [2016/04/28 10:54:36 AM] [INFO] nic4 mapped to: enp4s0f1
>
> [2016/04/28 10:54:36 AM] [INFO] adding bridge: br-ctlplane
>
> [2016/04/28 10:54:36 AM] [ERROR] Unable to read mac address: eth1
>
> 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 185,
> in main
>
> provider.add_object(obj)
>
> File "/usr/lib/python2.7/site-packages/os_net_config/__init__.py", line
> 55, in add_object
>
> self.add_bridge(obj)
>
> File "/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py",
> line 305, in add_bridge
>
> data = self._add_common(bridge)
>
> File "/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py",
> line 135, in _add_common
>
> mac = utils.interface_mac(base_opt.primary_interface_name)
>
> File "/usr/lib/python2.7/site-packages/os_net_config/utils.py", line 46,
> in interface_mac
>
> with open('/sys/class/net/%s/address' % name, 'r') as f:
>
> IOError: [Errno 2] No such file or directory: '/sys/class/net/eth1/address'
>
> + RETVAL=1
>
> + [[ 1 == 2 ]]
>
> + [[ 1 != 0 ]]
>
> + echo 'ERROR: os-net-config configuration failed.'
>
> ERROR: os-net-config configuration failed.
>
> + exit 1
>
> + configure_safe_defaults
>
> + [[ 1 == 0 ]]
>
> + cat
>
> ++ ls /sys/class/net
>
> ++ grep -v '^lo$'
>
> + for iface in '$(ls /sys/class/net | grep -v ^lo$)'
>
> ++ cat /sys/class/net/enp3s0f0/addr_assign_type
>
> + local mac_addr_type=0
>
> + '[' 0 '!=' 0 ']'
>
> + ip link set dev enp3s0f0 up
>
> ++ cat /sys/class/net/enp3s0f0/carrier
>
> + HAS_LINK=1
>
> + TRIES=10
>
> + '[' 1 == 0 -a 10 -gt 0 ']'
>
> + '[' 1 == 1 ']'
>
> + cat
>
> + for iface in '$(ls /sys/class/net | grep -v ^lo$)'
>
> ++ cat /sys/class/net/enp3s0f1/addr_assign_type
>
> + local mac_addr_type=0
>
> + '[' 0 '!=' 0 ']'
>
> + ip link set dev enp3s0f1 up
>
> ++ cat /sys/class/net/enp3s0f1/carrier
>
> + HAS_LINK=1
>
> + TRIES=10
>
> + '[' 1 == 0 -a 10 -gt 0 ']'
>
> + '[' 1 == 1 ']'
>
> + cat
>
> + for iface in '$(ls /sys/class/net | grep -v ^lo$)'
>
> ++ cat /sys/class/net/enp4s0f0/addr_assign_type
>
> + local mac_addr_type=0
>
> + '[' 0 '!=' 0 ']'
>
> + ip link set dev enp4s0f0 up
>
> ++ cat /sys/class/net/enp4s0f0/carrier
>
> + HAS_LINK=1
>
> + TRIES=10
>
> + '[' 1 == 0 -a 10 -gt 0 ']'
>
> + '[' 1 == 1 ']'
>
> + cat
>
> + for iface in '$(ls /sys/class/net | grep -v ^lo$)'
>
> ++ cat /sys/class/net/enp4s0f1/addr_assign_type
>
> + local mac_addr_type=0
>
> + '[' 0 '!=' 0 ']'
>
> + ip link set dev enp4s0f1 up
>
> ++ cat /sys/class/net/enp4s0f1/carrier
>
> + HAS_LINK=1
>
> + TRIES=10
>
> + '[' 1 == 0 -a 10 -gt 0 ']'
>
> + '[' 1 == 1 ']'
>
> + cat
>
> + for iface in '$(ls /sys/class/net | grep -v ^lo$)'
>
> ++ cat /sys/class/net/virbr0/addr_assign_type
>
> + local mac_addr_type=1
>
> + '[' 1 '!=' 0 ']'
>
> + echo 'Device has generated MAC, skipping.'
>
> Device has generated MAC, skipping.
>
> + for iface in '$(ls /sys/class/net | grep -v ^lo$)'
>
> ++ cat /sys/class/net/virbr0-nic/addr_assign_type
>
> + local mac_addr_type=3
>
> + '[' 3 '!=' 0 ']'
>
> + echo 'Device has generated MAC, skipping.'
>
> Device has generated MAC, skipping.
>
> + os-net-config -c /etc/os-net-config/dhcp_all_interfaces.yaml -v
> --detailed-exit-codes --cleanup
>
> [2016/04/28 10:54:37 AM] [INFO] Using config file at:
> /etc/os-net-config/dhcp_all_interfaces.yaml
>
> [2016/04/28 10:54:37 AM] [INFO] Using mapping file at:
> /etc/os-net-config/mapping.yaml
>
> [2016/04/28 10:54:37 AM] [INFO] Ifcfg net config provider created.
>
> [2016/04/28 10:54:37 AM] [INFO] nic1 mapped to: enp3s0f0
>
> [2016/04/28 10:54:37 AM] [INFO] nic2 mapped to: enp3s0f1
>
> [2016/04/28 10:54:37 AM] [INFO] nic3 mapped to: enp4s0f0
>
> [2016/04/28 10:54:37 AM] [INFO] nic4 mapped to: enp4s0f1
>
> [2016/04/28 10:54:37 AM] [INFO] adding interface: enp3s0f0
>
> [2016/04/28 10:54:37 AM] [INFO] adding interface: enp3s0f1
>
> [2016/04/28 10:54:37 AM] [INFO] adding interface: enp4s0f0
>
> [2016/04/28 10:54:37 AM] [INFO] adding interface: enp4s0f1
>
> [2016/04/28 10:54:37 AM] [INFO] applying network configs...
>
> [2016/04/28 10:54:37 AM] [INFO] No changes required for interface: enp3s0f1
>
> [2016/04/28 10:54:37 AM] [INFO] No changes required for interface: enp3s0f0
>
> [2016/04/28 10:54:37 AM] [INFO] No changes required for interface: enp4s0f0
>
> [2016/04/28 10:54:37 AM] [INFO] No changes required for interface: enp4s0f1
>
> + RETVAL=0
>
> + [[ 0 == 2 ]]
>
> + [[ 0 != 0 ]]
>
> [2016-04-28 10:54:37,229] (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-04-28 10:54:37,229] (os-refresh-config) [ERROR] Aborting...
>
>
>
>
>
>
>
> ------------------------------
>
> *Learn more on how to switch to Sprint and save 50% on most Verizon, AT&T
> or T-Mobile rates. See sprint.com/50off <http://sprint.com/50off> for
> details. *
> ------------------------------
>
> This e-mail may contain Sprint proprietary information intended for the
> sole use of the recipient(s). Any use by others is prohibited. If you are
> not the intended recipient, please contact the sender and delete all copies
> of the message.
>
--
Regards,
Qasim Sarfraz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20160502/fee830e9/attachment.html>
More information about the dev
mailing list