Skip to content

testiso: Fix iso-install and iso-live-login for ppc64le#1466

Merged
openshift-merge-robot merged 1 commit intocoreos:masterfrom
Prashanth684:testiso-ppc64le
May 22, 2020
Merged

testiso: Fix iso-install and iso-live-login for ppc64le#1466
openshift-merge-robot merged 1 commit intocoreos:masterfrom
Prashanth684:testiso-ppc64le

Conversation

@Prashanth684
Copy link
Copy Markdown
Contributor

Few fixes to get the iso-install case working for ppc64le

  • add volid to grub2-mkrescue command
  • use -cdrom instead of ide-cd as ide-cd is not supported on ppc64le/s390x. It achieves the same effect as
    what was done using the ide-cd device.

Closes: #1463

Comment thread src/cmd-buildextend-installer Outdated
# grub2-mkrescue is a wrapper around xorriso
genisoargs = ['grub2-mkrescue']
genisoargs = ['grub2-mkrescue',
'-volid', volid]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nit so minor might be classified by physicists as having no mass:

Why the line break?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at other places where genisoargs are defined with arguments being in a separate line, i wanted to keep things in line with that, but sure..i can do away with the line break

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big deal, I'll give you a break on this one

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. had to make changes anyway.

Comment thread mantle/platform/qemu.go Outdated
// selected. This allows us to have "boot once" functionality on both UEFI
// and BIOS (`-boot once=d` OTOH doesn't work with OVMF).
builder.Append("-drive", "file="+path+",format=raw,if=none,readonly=on,id=installiso", "-device", "ide-cd,drive=installiso,bootindex=2")
builder.Append("-cdrom", path)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we need the bootindex bits here right? I think we need instead to have arch-dependent devices for cdrom or so.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought the primary purpose of setting bootindex to 2 was to make sure that this device does not get picked first on a reboot. With the -cdrom option, it always first defaults to the primary disk anyway, so i thought that not necessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1312
and it's notable that this PR is failing in the 4k sector test which is using UEFI. It might be that we're doing CDROM first on UEFI or something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah..thanks for that context...yes uefi breaks with this change..it doesn't even recognize that cdrom as bootable.i'll dig in more or we might need to have two paths - one for uefi and one for bios

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just made cdrom specific to s390x/ppc64le as those don't support uefi anyway.

Comment thread mantle/platform/qemu.go Outdated
// primary disk is selected. This allows us to have "boot once" functionality on
// both UEFI and BIOS (`-boot once=d` OTOH doesn't work with OVMF).
switch system.RpmArch() {
case "s390x", "ppc64le":
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add aarch64. too. It seems to have the same issue.
qemu-system-aarch64: -device ide-cd,drive=installiso,bootindex=2: No 'IDE' bus found for device 'ide-cd'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did add it, but like we discussed cdrom will not work either. I'd like to get this in now so we can get the rhcos pipeline going for ppc64le

Few fixes to get the iso-install case working for ppc64le
 - add volid to grub2-mkrescue command
 - use -cdrom instead of ide-cd as ide-cd is not supported on ppc64le/s390x. It achieves the same effect as
   what was done using the ide-cd device.

Closes: coreos#1463
@Prashanth684
Copy link
Copy Markdown
Contributor Author

lgtm please?

@cgwalters
Copy link
Copy Markdown
Member

Thanks for this! I hope that by switching to QMP later on we can clean this up.
/approve
/lgtm

@cgwalters
Copy link
Copy Markdown
Member

/approve
/lgtm
/refresh

@openshift-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, Prashanth684

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit d90d465 into coreos:master May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testiso: iso-install: failed to run iso-install test on ppc64le

5 participants