X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=env%2Fmetal3%2F03_launch_prereq.sh;h=b2bba22e77dc623abaf0b91ff727acb0ce73645f;hb=refs%2Fchanges%2F62%2F4362%2F2;hp=7559f2fe16af126433f715fec57564a6638a94b8;hpb=b98b74555ff21645693f4b0ef12ae36e228bd2f9;p=icn.git diff --git a/env/metal3/03_launch_prereq.sh b/env/metal3/03_launch_prereq.sh index 7559f2f..b2bba22 100755 --- a/env/metal3/03_launch_prereq.sh +++ b/env/metal3/03_launch_prereq.sh @@ -140,26 +140,6 @@ function install_k8s_single_node { fi } -function install_dhcp { - if [ ! -d $BS_DHCP_DIR ]; then - mkdir -p $BS_DHCP_DIR - fi - - #make sure the dhcp conf sample are configured - if [ ! -f $BS_DHCP_DIR/dhcpd.conf ]; then - cp $PWD/05_dhcp.conf.sample $BS_DHCP_DIR/dhcpd.conf - fi - - kubectl create -f $PWD/04_dhcp.yaml -} - -function reset_dhcp { - kubectl delete --ignore-not-found=true -f $PWD/04_dhcp.yaml - if [ -d $BS_DHCP_DIR ]; then - rm -rf $BS_DHCP_DIR - fi -} - function create_ironic_env { cat < ${PWD}/ironic.env PROVISIONING_INTERFACE=provisioning @@ -193,14 +173,6 @@ if [ "$#" -eq 0 ]; then install online elif [ "$1" == "-o" ]; then install offline -elif [ "$1" == "--dhcp-start" ]; then - install_dhcp - echo "wait for 320s for nodes to be assigned" - sleep 6m -elif [ "$1" == "--dhcp-reset" ]; then - reset_dhcp - echo "wait for 320s for nodes to be re-assigned" - sleep 6m else exit 1 fi