Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BCFDC200C86 for ; Wed, 31 May 2017 18:23:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BB241160BCB; Wed, 31 May 2017 16:23:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0DCF6160BBA for ; Wed, 31 May 2017 18:23:12 +0200 (CEST) Received: (qmail 1981 invoked by uid 500); 31 May 2017 16:23:07 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 1682 invoked by uid 99); 31 May 2017 16:23:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2017 16:23:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A227E180314 for ; Wed, 31 May 2017 16:23:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XTPJ7wWQ64un for ; Wed, 31 May 2017 16:23:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 828585FBB9 for ; Wed, 31 May 2017 16:23:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F3CCCE0C1B for ; Wed, 31 May 2017 16:23:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5B98D21B5A for ; Wed, 31 May 2017 16:23:04 +0000 (UTC) Date: Wed, 31 May 2017 16:23:04 +0000 (UTC) From: "Valentin Aitken (JIRA)" To: dev@brooklyn.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BROOKLYN-512) osVersionRegex not choosing latest version for centos on AWS-EC2, AzureARM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 31 May 2017 16:23:13 -0000 [ https://issues.apache.org/jira/browse/BROOKLYN-512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031453#comment-16031453 ] Valentin Aitken commented on BROOKLYN-512: ------------------------------------------ In that regard, deploying {noformat} name: aws centos 7.3 location: 'jclouds:aws-ec2:eu-central-1': osFamily: centos osVersionRegex: 7\.3.* services: - type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess {noformat} does not find a location. Deploying that blueprint shows "cannot find image error": {noformat} Predicates.and(nullEqualToIsParentOrIsGrandparentOfCurrentLocation(),Predicates.and(osFamily(centos),osVersion(7\.3.*)))): Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], os=centos, locationId=eu-central-1, osVersionRegex=7\.3.*, {noformat} > osVersionRegex not choosing latest version for centos on AWS-EC2, AzureARM > -------------------------------------------------------------------------- > > Key: BROOKLYN-512 > URL: https://issues.apache.org/jira/browse/BROOKLYN-512 > Project: Brooklyn > Issue Type: Improvement > Reporter: Valentin Aitken > > Scenario 1: > Deploy a sample app in Azure ARM using the following blueprint: > {noformat} > name: app on AzureARM osVersionRegex > location: > 'jclouds:azurecompute-arm': > region: northeurope > jclouds.azurecompute.arm.publishers: OpenLogic > osVersionRegex: 7 > identity: xxxxxxxxxxxidentity > credential: xxxxxcreds > endpoint: "https://management.azure.com/subscriptions/sub-idxxxx > oauth.endpoint: "https://login.microsoftonline.com/oathxxxxxxxx" > services: > - type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess > {noformat} > This chooses {{CentOS Linux release 7.1.1503}} and I expect to choose latest available for OpenLogic which is CentOS 7.3.x > as a workaround I can use {{imageId: northeurope/OpenLogic/CentOS/7.3}} > ----- > Scenario 2, AWS EC2: > {noformat} > name: aws centos 7 > location: > 'jclouds:aws-ec2:eu-central-1': > osFamily: centos > osVersionRegex: 7\..* > loginUser: root > services: > - type: org.apache.brooklyn.entity.software.base.EmptySoftwareProcess > {noformat} > Chooses {{CentOS Linux release 7.0.1406}}. > Again as a workaround I should specify imageId. > ---- > It is most likely to be a jclouds issue. Not sure whether the two have same cause though. -- This message was sent by Atlassian JIRA (v6.3.15#6346)