Bug 1513945
Summary: | Ironic trying to contact IPA agent using its link local address during IPv6 deployment | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Derek Higgins <derekh> |
Component: | openstack-ironic-python-agent | Assignee: | Derek Higgins <derekh> |
Status: | CLOSED ERRATA | QA Contact: | mlammon |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 12.0 (Pike) | CC: | bfournie, dyasny, jschluet, mburns, racedoro, slinaber |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 12.0 (Pike) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-ironic-python-agent-2.2.2-3.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-12-13 22:20:31 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1335964 |
Description
Derek Higgins
2017-11-16 10:39:38 UTC
Running some commands on a running IPA agent shows how this can happen if the fd00:1101.... hasn't been assigned to eth0 $ ip -o addr 1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever 1: lo inet6 ::1/128 scope host \ valid_lft forever preferred_lft forever 2: eth0 inet6 fd00:1101::f816:3eff:fe4e:27f7/64 scope global mngtmpaddr dynamic \ valid_lft 86379sec preferred_lft 14379sec 2: eth0 inet6 fe80::f816:3eff:fe4e:27f7/64 scope link \ valid_lft forever preferred_lft forever $ ip route get fd00:1101::1 fd00:1101::1 dev eth0 proto kernel src fd00:1101::f816:3eff:fe4e:27f7 metric 256 # Removing the fd00:1101:.. address shows the link-local address being returned (this is the command thats run by API to find the ip address to use) # see ironic_python_agent/agent.py _get_route_source() $ ip addr del fd00:1101::f816:3eff:fe4e:27f7/64 dev eth0 $ ip route get fd00:1101::1 fd00:1101::1 dev eth0 proto kernel src fe80::f816:3eff:fe4e:27f7 metric 256 As a test I've inserted a 5 second sleep into the IPA agent code, and deployment now works, so I think that the agent is running this command before the interface gets its slaac address, in previous versions it must have been after. Fix proposed upstream https://review.openstack.org/#/c/520582/ Fix merged downstream - https://code.engineering.redhat.com/gerrit/#/c/123977/ Tested and fixed Got a successful IPv6 deploy with the following in the logs Nov 23 09:37:58 localhost.localdomain ironic-python-agent[479]: 2017-11-23 09:37:57.883 479 INFO ironic_python_agent.agent [-] Ignoring link-local source to fd00:1101::0001: fd00:1101::1 dev eth0 proto kernel src fe80::f816:3eff:fed8:b16e metric 256 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-2017:3462 |