scylladb / scylla-ami

7 stars 29 forks source link

Not able to build ENA driver with latest kernel-ml #44

Open syuu1228 opened 5 years ago

syuu1228 commented 5 years ago

It seems like kernel-ml package is updated, new version does not compatible with ena-1.5.3 source code. We need to update ena kernel module source code to newer version.

    amazon-ebs: Cloning into '/usr/src/ena-1.5.3'...
    amazon-ebs: Note: checking out '857b4b8d81a1b3ca2a4af29695acda57cabee9cc'.
    amazon-ebs:
    amazon-ebs: You are in 'detached HEAD' state. You can look around, make experimental
    amazon-ebs: changes and commit them, and you can discard any commits you make in this
    amazon-ebs: state without impacting any branches by performing another checkout.
    amazon-ebs:
    amazon-ebs: If you want to create a new branch to retain commits you create, you may
    amazon-ebs: do so (now or later) by using -b with the checkout command again. Example:
    amazon-ebs:
    amazon-ebs: git checkout -b new_branch_name
    amazon-ebs:
    amazon-ebs:
    amazon-ebs: Creating symlink /var/lib/dkms/ena/1.5.3/source ->
    amazon-ebs: /usr/src/ena-1.5.3
    amazon-ebs:
    amazon-ebs: DKMS: add completed.
    amazon-ebs:
    amazon-ebs: Kernel preparation unnecessary for this kernel.  Skipping...
    amazon-ebs:
    amazon-ebs: Building module:
    amazon-ebs: cleaning build area...(bad exit status: 2)
    amazon-ebs: make -j4 KERNELRELEASE=3.10.0-957.1.3.el7.x86_64 -C kernel/linux/ena BUILD_KERNEL=3.10.0-957.1.3.el7.x86_64....
    amazon-ebs: cleaning build area...(bad exit status: 2)
    amazon-ebs:
    amazon-ebs: DKMS: build completed.
    amazon-ebs:
    amazon-ebs: Kernel preparation unnecessary for this kernel.  Skipping...
    amazon-ebs:
    amazon-ebs: Building module:
    amazon-ebs: cleaning build area...(bad exit status: 2)
    amazon-ebs: make -j4 KERNELRELEASE=4.20.2-1.el7.elrepo.x86_64 -C kernel/linux/ena BUILD_KERNEL=4.20.2-1.el7.elrepo.x86_64...(bad exit status: 2)
    amazon-ebs: Error! Bad return status for module build on kernel: 4.20.2-1.el7.elrepo.x86_64 (x86_64)
    amazon-ebs: Consult /var/lib/dkms/ena/1.5.3/build/make.log for more information.
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored: Script exited with non-zero exit status: 10
syuu1228 commented 5 years ago

Patches for branch-2.2, branch-2.3 is sent on ML. For branch-3.0 and master fixed version of driver rpm is published on Copr. After merged patches the issue can be close.

penberg commented 5 years ago

We should get the Copr dependencies version controlled somehow so that there's an audit trail for version upgrades. /cc @avikivity