openshift / cluster-api-provider-libvirt

Apache License 2.0
36 stars 56 forks source link

Bug 1818149: Use virtio disk instead of config drive for injecting ignition for s390x/ppc64le #189

Closed Prashanth684 closed 4 years ago

Prashanth684 commented 4 years ago

Similar to dmacvicar/terraform-provider-libvirt#718

The method of mimicking what Openstack does for injecting ignition config works for images which have the provider as Openstack because ignition recognizes the platform and knows it has to get the ignition config from the config drive. For QEMU images, ignition supports getting the config from the firmware config device which is not supported by ppc64 and s390x.

The workaround we have used thus far is to use the Openstack image on the QEMU platform but have this provider create the iso containing the ignition config. There was a discussion in ignition (coreos/ignition#928) to have a more QEMU based method of injecting ignition config and it was decided to use a virtio-blk device with a serial of ignition which ignition can recognize. This was mainly because with external devices, it is hard to tell if there is an issue with the device or if the kernel has not detected it yet if it has a long discovery phase.

This PR replaces the the method of ignition injection from a conig drive disk to a virtio-blk device.

Reference PR which supports ignition fetching through virtio-blk for QEMU: coreos/ignition#936

openshift-ci-robot commented 4 years ago

@Prashanth684: No Bugzilla bug is referenced in the title of this pull request. To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to [this](https://github.com/openshift/cluster-api-provider-libvirt/pull/189): >[release-4.3]: Use virtio disk instead of config drive for injecting ignition for s390x/ppc64le Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
Prashanth684 commented 4 years ago

/retitle Bug 1818149: [release-4.3]: Use virtio disk instead of config drive for injecting ignition for s390x/ppc64le

openshift-ci-robot commented 4 years ago

@Prashanth684: This pull request references Bugzilla bug 1818149, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

6 validation(s) were run on this bug * bug is open, matching expected state (open) * bug target release (4.3.z) matches configured target release for branch (4.3.z) * bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST) * dependent bug [Bugzilla bug 1818148](https://bugzilla.redhat.com/show_bug.cgi?id=1818148) is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA)) * dependent [Bugzilla bug 1818148](https://bugzilla.redhat.com/show_bug.cgi?id=1818148) targets the "4.4.0" release, matching the expected (4.4.0) release * bug has dependents
In response to [this](https://github.com/openshift/cluster-api-provider-libvirt/pull/189): >Bug 1818149: [release-4.3]: Use virtio disk instead of config drive for injecting ignition for s390x/ppc64le Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
openshift-ci-robot commented 4 years ago

@Prashanth684: No Bugzilla bug is referenced in the title of this pull request. To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to [this](https://github.com/openshift/cluster-api-provider-libvirt/pull/189): >Use virtio disk instead of config drive for injecting ignition for s390x/ppc64le Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
crawford commented 4 years ago

/lgtm /approve

openshift-ci-robot commented 4 years ago

@Prashanth684: This pull request references Bugzilla bug 1818149, which is valid.

6 validation(s) were run on this bug * bug is open, matching expected state (open) * bug target release (4.3.z) matches configured target release for branch (4.3.z) * bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST) * dependent bug [Bugzilla bug 1818148](https://bugzilla.redhat.com/show_bug.cgi?id=1818148) is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA)) * dependent [Bugzilla bug 1818148](https://bugzilla.redhat.com/show_bug.cgi?id=1818148) targets the "4.4.0" release, matching the expected (4.4.0) release * bug has dependents
In response to [this](https://github.com/openshift/cluster-api-provider-libvirt/pull/189): >Bug 1818149: Use virtio disk instead of config drive for injecting ignition for s390x/ppc64le Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
zeenix commented 4 years ago

This PR reverts the ISO method used by Openstack

Openstack? Perhaps a C&P mistake?

Prashanth684 commented 4 years ago

This PR reverts the ISO method used by Openstack

Openstack? Perhaps a C&P mistake?

The method used previously to support ignition injection for libvirt was to create a config drive disk similar to what Openstack uses and have ignition fetch the config from the disk. This method has now been replaced by a more qemu specific approach.

zeenix commented 4 years ago

The method used previously to support ignition injection for libvirt was to create a config drive disk similar to what Openstack uses and have ignition fetch the config from the disk. This method has now been replaced by a more qemu specific approach.

Thanks, but the commit log/description here isn't clear and seems to claim that this PR revert an Openstack change. Kindly reword it so it's clear.

openshift-ci-robot commented 4 years ago

@Prashanth684: This pull request references Bugzilla bug 1818149, which is valid.

6 validation(s) were run on this bug * bug is open, matching expected state (open) * bug target release (4.3.z) matches configured target release for branch (4.3.z) * bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST) * dependent bug [Bugzilla bug 1818148](https://bugzilla.redhat.com/show_bug.cgi?id=1818148) is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA)) * dependent [Bugzilla bug 1818148](https://bugzilla.redhat.com/show_bug.cgi?id=1818148) targets the "4.4.0" release, matching the expected (4.4.0) release * bug has dependents
In response to [this](https://github.com/openshift/cluster-api-provider-libvirt/pull/189): >Bug 1818149: Use virtio disk instead of config drive for injecting ignition for s390x/ppc64le Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
Prashanth684 commented 4 years ago

The method used previously to support ignition injection for libvirt was to create a config drive disk similar to what Openstack uses and have ignition fetch the config from the disk. This method has now been replaced by a more qemu specific approach.

Thanks, but the commit log/description here isn't clear and seems to claim that this PR revert an Openstack change. Kindly reword it so it's clear.

Understood. I changed that line to:

This PR replaces the the method of ignition injection from a conig drive disk to a virtio-blk device.

openshift-ci-robot commented 4 years ago

@Prashanth684: This pull request references Bugzilla bug 1818149, which is valid.

6 validation(s) were run on this bug * bug is open, matching expected state (open) * bug target release (4.3.z) matches configured target release for branch (4.3.z) * bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST) * dependent bug [Bugzilla bug 1818148](https://bugzilla.redhat.com/show_bug.cgi?id=1818148) is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA)) * dependent [Bugzilla bug 1818148](https://bugzilla.redhat.com/show_bug.cgi?id=1818148) targets the "4.4.0" release, matching the expected (4.4.0) release * bug has dependents
In response to [this](https://github.com/openshift/cluster-api-provider-libvirt/pull/189): >Bug 1818149: Use virtio disk instead of config drive for injecting ignition for s390x/ppc64le Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
zeenix commented 4 years ago

/lgtm

zeenix commented 4 years ago

/approve

openshift-ci-robot commented 4 years ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: crawford, zeenix

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: - ~~[OWNERS](https://github.com/openshift/cluster-api-provider-libvirt/blob/release-4.3/OWNERS)~~ [zeenix] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

crawford commented 4 years ago

/override ci/prow/actuator-pkg-staleness

This test isn't applicable to this repo (we don't use Go Modules).

openshift-ci-robot commented 4 years ago

@crawford: Overrode contexts on behalf of crawford: ci/prow/actuator-pkg-staleness

In response to [this](https://github.com/openshift/cluster-api-provider-libvirt/pull/189#issuecomment-606226260): >/override ci/prow/actuator-pkg-staleness > >This test isn't applicable to this repo (we don't use Go Modules). Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

openshift-bot commented 4 years ago

/retest

Please review the full test history for this PR and help us cut down flakes.

crawford commented 4 years ago

Apparently overrides aren't enough to stave off @openshift-bot.

/hold

zeenix commented 4 years ago

Apparently overrides aren't enough to stave off @openshift-bot.

But actuator-pkg-staleness isn't a required test and shouldn't block the merge so not sure what's happening here.