[ https://issues.apache.org/jira/browse/BROOKLYN-607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16750233#comment-16750233 ]
Aled Sage commented on BROOKLYN-607: ------------------------------------ Example of a failing test (which we could add to \{{BrooklynImageChooserTest}}): {noformat} @Test public void testAzureCentOsOverSriov() { // {id=northeurope/OpenLogic/CentOS/7.6, providerId=OpenLogic, name=CentOS, location={scope=REGION, id=northeurope, description=North Europe, parent=azurecompute-arm, iso3166Codes=[IE]}, os={family=centos, version=7.6, description=7.6, is64Bit=true}, description=7.6, version=7.6, status=AVAILABLE, loginUser=jclouds} Image img1 = new ImageBuilder() .id("northeurope/OpenLogic/CentOS/7.6") .providerId("OpenLogic") .name("CentOS") .description("7.6") .version("7.6") .status(Status.AVAILABLE) .operatingSystem(OperatingSystem.builder() .family(OsFamily.CENTOS) .version("7.6") .description("7.6") .is64Bit(true) .build()) .build(); // {id=northeurope/OpenLogic/CentOS-SRIOV/7.3-SRIOV, providerId=OpenLogic, name=CentOS-SRIOV, location={scope=REGION, id=northeurope, description=North Europe, parent=azurecompute-arm, iso3166Codes=[IE]}, os={family=centos, version=7.3-SRIOV, description=7.3-SRIOV, is64Bit=true}, description=7.3-SRIOV, version=7.3-SRIOV, status=AVAILABLE, loginUser=jclouds} Image img2 = new ImageBuilder() .id("northeurope/OpenLogic/CentOS-SRIOV/7.3-SRIOV") .providerId("OpenLogic") .name("CentOS-SRIOV") .description("7.3-SRIOV") .version("7.3-SRIOV") .status(Status.AVAILABLE) .operatingSystem(OperatingSystem.builder() .family(OsFamily.CENTOS) .version("7.3-SRIOV") .description("7.3-SRIOV") .is64Bit(true) .build()) .build(); Function<Iterable<? extends Image>, Image> func = brooklynImageChooser.chooser(); Image choice = func.apply(ImmutableList.of(img1, img2)); Assert.assertEquals(choice, img1); }{noformat} > azure-arm failure on `yum update` (due to image choice) > ------------------------------------------------------- > > Key: BROOKLYN-607 > URL: https://issues.apache.org/jira/browse/BROOKLYN-607 > Project: Brooklyn > Issue Type: Bug > Reporter: Aled Sage > Priority: Major > > With brooklyn 1.0.0-SNAPSHOT, I'm hitting problems provisioning a simple > software process entity on Azure - the VM fails when doing `yum update`. > Digging into this... > The imageId being used is: > {noformat} > northeurope/OpenLogic/CentOS-SRIOV/7.3-SRIOV, os={family=centos, > version=7.3-SRIOV, description=7.3-SRIOV, is64Bit=true} > {noformat} > With hardwareId {{Standard_B1ms}}. > The location.bom file contains: > {noformat} > item: > type: jclouds:azurecompute-arm > brooklyn.config: > region: northeurope > identity: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx > credential: xxxxxxxxxxxxxxxxxxxxxxxxx > endpoint: > https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx > oauth.endpoint: > https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/oauth2/token > jclouds.azurecompute.arm.publishers: OpenLogic > jclouds.azurecompute.arm.operation.timeout: 120000 > osVersionRegex: 7 > minRam: 2000 > {noformat} > On executing {{yum update}}, it gives the stderr: > {noformat} > Error: Package: kmod-microsoft-hyper-v-4.2.6.1-20181010.x86_64 (openlogic) > Requires: kernel(hid_input_report) = 0x4e8c53f3 > Installed: kernel-3.10.0-514.26.2.el7.x86_64 (@CentOS-Updates) > kernel(hid_input_report) = 0x084ce8c6 > Available: kernel-3.10.0-957.el7.x86_64 (base) > kernel(hid_input_report) = 0x6710144a > Installing: kernel-3.10.0-957.1.3.el7.x86_64 (updates) > kernel(hid_input_report) = 0x6710144a > Available: kernel-debug-3.10.0-957.el7.x86_64 (base) > kernel(hid_input_report) = 0x2003d78d > Available: kernel-debug-3.10.0-957.1.3.el7.x86_64 (updates) > kernel(hid_input_report) = 0x2003d78d > {noformat} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)