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
MGMT-15271: Add the boot command line to the host inventory #5649
MGMT-15271: Add the boot command line to the host inventory #5649
Conversation
@AmadeusPodvratnik: This pull request references MGMT-15271 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @AmadeusPodvratnik. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AmadeusPodvratnik, avishayt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5649 +/- ##
==========================================
- Coverage 67.73% 67.68% -0.06%
==========================================
Files 233 233
Lines 34211 34246 +35
==========================================
+ Hits 23174 23179 +5
- Misses 8977 9004 +27
- Partials 2060 2063 +3 |
/hold Revision 161ee9a was retested 3 times: holding |
Signed-off-by: Amadeus Podvratnik <apodvrat@redhat.com>
161ee9a
to
ae1f045
Compare
/unhold |
/lgtm |
With the support of zVM in Assisted Installer, the necessary kernel arguments to boot a zVM nodes need to be considered. During the first boot of a zVM node a parm file will be provided to activate the necessary devices or specify a static IP w/o nmstate. This parm file looks like:
rd.neednet=1 console=ttysclp0 coreos.live.rootfs_url=http://172.23.236.156:8080/assisted-installer/rootfs.img ip=10.14.6.3::10.14.6.1:255.255.255.0:master-0.boea3e06.lnxero1.boe:encbdd0:none nameserver=10.14.6.1 ip=[fd00::3]::[fd00::1]:64::encbdd0:none nameserver=[fd00::1] zfcp.allow_lun_scan=0 rd.znet=qeth,0.0.bdd0,0.0.bdd1,0.0.bdd2,layer2=1 rd.dasd=0.0.5235 rd.dasd=0.0.5236 random.trust_cpu=on rd.luks.options=discard ignition.firstboot ignition.platform.id=metal console=tty1 console=ttyS1,115200n8
These arguments need to be passed to the coreos installer otherwise the first reboot will end in an emergency shell.
This PR is the first PR of at least three PRs to provide support of automatically discovering the kernel arguments and pass them to the coreos installer.
The RestAPI provide a possibility to set the necessary kernel arguments:
curl https://api.openshift.com/api/assisted-install/v2/infra-envs/${INFRA_ENV_ID}/hosts/$1/installer-args
-X PATCH
-H "Authorization: Bearer ${API_TOKEN}"
-H "Content-Type: application/json"
-d '
{
"args": [
"--append-karg", "rd.neednet=1",
"--append-karg", "ip=10.14.6.3::10.14.6.1:255.255.255.0:master-0.boea3e06.lnxero1.boe:encbdd0:none",
"--append-karg", "nameserver=10.14.6.1",
"--append-karg", "ip=[fd00::3]::[fd00::1]:64::encbdd0:none",
"--append-karg", "nameserver=[fd00::1]",
"--append-karg", "zfcp.allow_lun_scan=0",
"--append-karg", "rd.znet=qeth,0.0.bdd0,0.0.bdd1,0.0.bdd2,layer2=1",
"--append-karg", "rd.dasd=0.0.5235",
"--append-karg", "rd.dasd=0.0.5236"
]
}
' | jq
but this would break the WebUI flow (bad user experience if an additional step is needed to install a cluster).
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist