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

added standalone config option for automatic installations #872

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zackbradys
Copy link

@zackbradys zackbradys commented Oct 19, 2024

Problem:

  • Use Case: is being able to install and deploy harvester without any existing infrastructure and no users with the technical ability to do it manually or troubleshoot.
  • TLDR: server arrives and user plugs in USB with harvester on it.
  • Technical Problem: Unable to complete an harvester.install.automatic=true install of harvester using the ISO due to harvester.install.automatic=true requiring the harvester.install.isoUrl=<isoUrl> which starts a process follow in harv-install geared towards PXE installs.

Solution:

  • Added an additional configuration option of harvester.install.standalone=true, which is defaulted false for backwards compatibility, to include an additional check to bypass the harvester.install.isoUrl=<isoUrl> requirement when using harvester.install.automatic=true.
  • Happy to modify the configuration option name of standalone to something else... we debated something like harvester.install.automatic.mode=PXE/CD or something similar...

Related Issue:

Test Plan:

  • Create bootable CD or USB with harvester
  • Add the following kernel arguments and wait for harvester to boot up...
  • $linux ($root)/boot/kernel cdroot root=live:CDLABEL=COS_LIVE rd.live.dir=/ rd.live.squashimg=rootfs.squashfs console=tty1 rd.cos.disable net.ifnames=1 ${extra_iso_cmdline} ip=<ip>::<gateway>:<subnet>:<hostname>:<interface>:none harvester.scheme_version=1 harvester.install.automatic=true harvester.install.standalone=true harvester.install.skipchecks=true harvester.install.mode=create harvester.install.management_interface.method=static harvester.install.management_interface.interfaces='name:<interface>' harvester.install.management_interface.ip=<ip> harvester.install.management_interface.subnetMask=<subnet> harvester.install.management_interface.gateway=<gateway> harvester.install.management_interface.default_route=true harvester.token=Pa22word harvester.os.hostname=<hostname> harvester.os.password=Pa22word harvester.os.ntpServers=<ntp> harvester.os.ntpServers=<ntp> harvester.os.dnsNameservers=<dns> harvester.os.dnsNameservers=<dns> harvester.install.device=/dev/<disk> harvester.install.vip=<vip ip> harvester.install.vipMode=static

@zackbradys zackbradys marked this pull request as ready for review October 21, 2024 18:46
@aleiner
Copy link

aleiner commented Oct 21, 2024

Wanted to share that this PR works in my environment. This is a be a very valuable improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants