Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configeth does not reload new ifcfg-* for installnic when diskless reboot #6028

Closed
bybai opened this issue Feb 22, 2019 · 0 comments
Closed

Comments

@bybai
Copy link
Contributor

bybai commented Feb 22, 2019

This came from slack channel.
This came about investigating why our stateless Boston nodes (that get assigned static IPs), weren’t cycling their NICs after running confignetwork/configeth at boot. The NIC will be cycled if updatenode is called. According to the portion of configeth that appears to be responsible for this, it appears to only occur when $UPDATENODE is set or REBOOT=TRUE

if [ "$UPDATENODE" = "1" ] || grep "REBOOT=TRUE" /opt/xcat/xcatinfo >/dev/null 2>&1; then
        if [ "$str_os_type" = "debian" ];then
            ifdown --force $str_inst_nic
        else
            ifdown $str_inst_nic
        fi
        ifup $str_inst_nic
    fi
    if [ $? -ne 0 ]; then
        log_error "ifup $str_inst_nic failed."
        error_code=1
    fi

    exit $error_code
fi

So the question is, how can we ensure that the NICs are cycled so that they are actually statically set? As it is, they are still using dhclient and will undergo the dhcp refresh/renew/release cycle.

@bybai bybai self-assigned this Feb 22, 2019
@bybai bybai added this to the 2.14.6 milestone Feb 22, 2019
@bybai bybai changed the title configeth does not down/up new ifcfg-* for installnic when diskless not reboot configeth does not down/up new ifcfg-* for installnic when diskless reboot Feb 22, 2019
@bybai bybai changed the title configeth does not down/up new ifcfg-* for installnic when diskless reboot configeth does not reload new ifcfg-* for installnic when diskless reboot Feb 22, 2019
@bybai bybai closed this as completed Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant