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 C5C08200B9A for ; Fri, 7 Oct 2016 18:59:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C4994160AC6; Fri, 7 Oct 2016 16:59:22 +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 DA8BD160AF1 for ; Fri, 7 Oct 2016 18:59:21 +0200 (CEST) Received: (qmail 45535 invoked by uid 500); 7 Oct 2016 16:59:20 -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 45251 invoked by uid 99); 7 Oct 2016 16:59:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 16:59:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 96DE22C2A69 for ; Fri, 7 Oct 2016 16:59:20 +0000 (UTC) Date: Fri, 7 Oct 2016 16:59:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@brooklyn.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BROOKLYN-358) jclouds "swift" missing from karaf build MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 07 Oct 2016 16:59:23 -0000 [ https://issues.apache.org/jira/browse/BROOKLYN-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15555629#comment-15555629 ] ASF GitHub Bot commented on BROOKLYN-358: ----------------------------------------- Github user aledsage commented on the issue: https://github.com/apache/brooklyn-server/pull/374 Thanks @geomacy. I'm not sure of the difference. When I tried using `openstack-swift` instead of `swift`, it failed with the error shown below. ``` 2016-10-07 13:50:12,414 ERROR 121 o.a.b.l.c.BasicLauncher [FelixStartLevel] Subsystem for persistence had startup error (continuing with startup): org.apache.brooklyn.util.exceptions.FatalRuntimeException: Error initializing persistence subsystem: UncheckedExecutionException: org.jclouds.http.HttpResponseException: command: POST https://ams01.objectstorage.softlayer.net/auth/v1.0/tokens HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [

Bad Request

The server could not comply with the request since it is either malformed or otherwise incorrect.

< /html>] org.apache.brooklyn.util.exceptions.FatalRuntimeException: Error initializing persistence subsystem: UncheckedExecutionException: org.jclouds.http.HttpResponseException: command: POST https://ams0 1.objectstorage.softlayer.net/auth/v1.0/tokens HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [

Bad Request

The server could not comply with the request since it is either malformed or otherwise incorrect.

] ``` > jclouds "swift" missing from karaf build > ---------------------------------------- > > Key: BROOKLYN-358 > URL: https://issues.apache.org/jira/browse/BROOKLYN-358 > Project: Brooklyn > Issue Type: Bug > Reporter: Aled Sage > > In the karaf build, if I try to use "jclouds:swift", it fails with the error: > {noformat} > 2016-10-07 13:32:45,009 ERROR 121 o.a.b.l.c.BasicLauncher [FelixStartLevel] Subsystem for persistence had startup error (continuing with startup): org.apache.brooklyn.util.exceptions.FatalRuntimeException: Error initializing persistence subsystem: NoSuchElementException: Cloud provider/API type swift is not supported by jclouds > org.apache.brooklyn.util.exceptions.FatalRuntimeException: Error initializing persistence subsystem: NoSuchElementException: Cloud provider/API type swift is not supported by jclouds > at org.apache.brooklyn.launcher.common.BasicLauncher.initPersistence(BasicLauncher.java:594) > at org.apache.brooklyn.launcher.common.BasicLauncher.handlePersistence(BasicLauncher.java:510) > at org.apache.brooklyn.launcher.common.BasicLauncher.start(BasicLauncher.java:429) > at org.apache.brooklyn.launcher.osgi.OsgiLauncher.start(OsgiLauncher.java:78) > at org.apache.brooklyn.launcher.osgi.OsgiLauncher.init(OsgiLauncher.java:102) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_102] > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_102] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_102] > at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_102] > at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:736)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:848)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[16:org.apache.aries.blueprint.core:1.5.0] > at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_102] > at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:255)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:186)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:712)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:399)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:273)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)[16:org.apache.aries.blueprint.core:1.5.0] > at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[20:org.apache.aries.util:1.1.1] > at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[20:org.apache.aries.util:1.1.1] > at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[20:org.apache.aries.util:1.1.1] > at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[20:org.apache.aries.util:1.1.1] > at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[20:org.apache.aries.util:1.1.1] > at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)[org.apache.felix.framework-5.4.0.jar:] > at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:731)[org.apache.felix.framework-5.4.0.jar:] > at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:486)[org.apache.felix.framework-5.4.0.jar:] > at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541)[org.apache.felix.framework-5.4.0.jar:] > at org.apache.felix.framework.Felix.startBundle(Felix.java:2172)[org.apache.felix.framework-5.4.0.jar:] > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)[org.apache.felix.framework-5.4.0.jar:] > at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)[org.apache.felix.framework-5.4.0.jar:] > at java.lang.Thread.run(Thread.java:745)[:1.8.0_102] > Caused by: java.util.NoSuchElementException: Cloud provider/API type swift is not supported by jclouds > at org.apache.brooklyn.location.jclouds.JcloudsLocationResolver.newLocationSpecFromString(JcloudsLocationResolver.java:146) > at org.apache.brooklyn.core.location.BasicLocationRegistry.getLocationSpec(BasicLocationRegistry.java:375)[116:org.apache.brooklyn.core:0.10.0.20161005_2342] > at org.apache.brooklyn.core.location.BasicLocationRegistry.getLocationSpec(BasicLocationRegistry.java:350)[116:org.apache.brooklyn.core:0.10.0.20161005_2342] > at org.apache.brooklyn.core.location.NamedLocationResolver.newLocationSpecFromString(NamedLocationResolver.java:85) > at org.apache.brooklyn.core.location.BasicLocationRegistry.getLocationSpec(BasicLocationRegistry.java:375)[116:org.apache.brooklyn.core:0.10.0.20161005_2342] > at org.apache.brooklyn.core.location.BasicLocationRegistry.getLocationSpec(BasicLocationRegistry.java:355)[116:org.apache.brooklyn.core:0.10.0.20161005_2342] > at org.apache.brooklyn.core.mgmt.persist.BrooklynPersistenceUtils.newPersistenceObjectStore(BrooklynPersistenceUtils.java:87) > at org.apache.brooklyn.launcher.common.BasicLauncher.initPersistence(BasicLauncher.java:577) > ... 37 more > {noformat} > This is because we only include {{openstack-swift}} and not {{swift}} in karaf (but both in classic): > {noformat} > find . -name "*swift*.jar" > ./brooklyn-dist/dist/target/brooklyn-dist/brooklyn/lib/brooklyn/org.apache.jclouds.api-openstack-swift-1.9.2.jar > ./brooklyn-dist/dist/target/brooklyn-dist/brooklyn/lib/brooklyn/org.apache.jclouds.api-swift-1.9.2.jar > ./brooklyn-dist/karaf/apache-brooklyn/target/assembly/system/org/apache/jclouds/api/openstack-swift/1.9.2/openstack-swift-1.9.2.jar > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)