drpfeature-dhcp-debug

Intent
This feature is used to setup and debug drp-provision dhcp.
Success
Demonstrate dhcp debugging on an isolated network using drpcli, drp-ux and virtual-box PXE client.

Manual Steps

  1. Configure drpfeature-test-network (mikrotek 192.168.88.1 router)
  2. Install drp-provision via drp-quickstart in the drpfeature-test-macosx configuration
  3. Configure drpfeature-test-vbox (virtual box)
  4. Start drp-provision
  5. Browse to RackN-Portal at https://192.168.88.9:8092 and login with rocketskates r0cketsk8ts
    1. Browse to Subnets add or enable subnet en0 192.168.88.9/24
    2. Disable all other Subnets
    3. Browse to Leases
    4. Clear or validate all current dhcp leases
    5. Browse to Boot ISOs
    6. Verify or load the following
      1. CentOS-7-x86_64-Minimal-1708.iso
      2. sledgehammer-f5ffd3ed10ba403ffff40c3621f1e31ada0c7e15.tar
    7. Browse to Info & Preferences
    8. In System Preferences set the following
      1. Default Stage -> discover
      2. Default BootEnv -> sledgehammer-wait
      3. Unknown BootEnv -> discovery
      4. Click Save
    9. Browse to Profiles
      1. Should have some clusters
      2. k8s-cluster-Install
      3. k8s-cluster-ram
    10. Browse to Bulk Actions
    11. Browse to Workflow
  6. Fire up test drpfeature-test-vbox vm’s bm1, bm2, bm3, bm4, bm5 and bm6
  7. Browse to RackN-Portal Machines
    1. Verify the bm1-6 machines are Stage: discover BootEnv: sledgehammer

Note

Start drp-provision

sudo ./dr-provision --static-ip=192.168.88.9 --base-root=/Users/msops/Code/drpfeature/drpisolated/drp-data --local-content="" --default-content=""

Note

Generate admin.conf

./drpcli profiles get k8s-cluster-ram param krib/cluster-admin-conf > admin.conf

Note

Get node info via kubectl

kubectl --kubeconfig=admin.conf get nodes

Note

SETUP kubctl PROXY

kubectl --kubeconfig=admin.conf proxy

Video Track

  1. General Show UI Views
    1. tc590 Show KRIBnode[1..8] in Machines
    2. tc607 Show Profiles
    3. tc658 Show Bulk Actions
    4. tc678 Show Workflow k8s-cluster-ram
  2. Begin configuration to start k8s-cluster-install
    1. tc715 Set KRIBnode[1..4] to Stages -> Mount Local Disk
    2. tc736 Show LIVE events of above
    3. tc743 Click on KRIBnode1 to show what that node will go through
    4. tc722 Set KRIBnode[4..8] to Profiles -> k8s-cluster-install
    5. tc798 Set KRIBnode[4..8] to Boot Environmens -> centos-7-install
    6. tc802 Set KRIBnode[4..8] to Plugin Action -> powercycle
  3. General Exlaining while k8s-cluster builds
    1. tc860 Look into what k8s-cluster-ram in Profiles does (verbal explain)
    2. tc918 Navigate to Stages select krib-install which has task krib-install
    3. tc935 krib-install verbal explain of how tasks, jobs, alerts and workflow are composeable
    4. tc953 Pull up krib-install.sh.tmpl and explain template that is executed by runner
    5. tc990 Go look at current status of DRIBnode1 in Machines it is in docker-install stage of Stages
    6. tc1079 Show Jobs and bring up a job progress of a job log on a node.
    7. tc1102 Navigate to machine via the link in the Jobs listing to check on machine task which is now krib-install
    8. tc1104 Navigate to task via the link in the machine view to see the log of the krib-install task
    9. tc1115 Navigate to Profiles show k8s-cluster-ram see that node 56… has krib/cluster-master parameter so it WON the master election
    10. tc1160 Go back to SLIDES… finish slide talk esp about dynamic tokens, configuration injection and bootstraping
    11. tc1238 Go back to Profiles and refresh then pull up k8s-cluster-ram again. You see new parameter for cluster-join-command
  4. The COOL NEW STUFF
    1. tc1262 Show cluster-admin-conf and use that to create admin.conf
    2. tc1284 Generate admin.conf
    3. tc1318 Now go get node info via kubectl (note this is on the local system going cloud cluster)
    4. tc1337 SETUP kubectl PROXY via
    5. tc1375 FOR THE WIN: browse to http://localhost:8001 to get to the remote kubeadmin dashboard
  5. Finish off talking about Future
    1. tc1430 Back to SLIDES… talk about future issues…
    2. tc1484 Node Admission verbal walk through
    3. tc1626 Kubelet Dynamic configuration verbal walk through