[jira] [Comment Edited] (JCLOUDS-1412) FileSystem BlobStore not compatible with Docker
[ https://issues.apache.org/jira/browse/JCLOUDS-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16444328#comment-16444328 ] Russell Klopfer edited comment on JCLOUDS-1412 at 4/19/18 4:17 PM: --- {quote}What symptoms do you experience? {quote} # Save files and directories to the file system using JClouds FS BlobStore when building a Docker image. # Load the docker image. # Check if a _directory_ exists using {{blobStore.blobExists()}} # Because of the failed xattr check, JClouds reports that the directory does not exist even though it does was (Author: russ...@klopfer.us): {quote}What symptoms do you experience? {quote} # Save files and directories to the file system using JClouds FS BlobStore when building a Docker image. # Load the docker image. # Check if a _directory_ exists using {{blobStore.blobExists()}} # Because of the failed xattr check, JClouds reports that the directory does not exist even though it does > FileSystem BlobStore not compatible with Docker > --- > > Key: JCLOUDS-1412 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1412 > Project: jclouds > Issue Type: Bug > Components: jclouds-blobstore >Affects Versions: 2.1.0 >Reporter: Russell Klopfer >Priority: Major > Labels: filesystem > > Because of [https://github.com/moby/moby/issues/1070] > JClouds FS BlobStore relies on xattr. This means that it won't work with > docker because docker does not support xattr. > Specifically, I saw this when trying to create directories without using > deprecated methods. > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#createDirectory(java.lang.String,%20java.lang.String)] > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#deleteDirectory(java.lang.String,%20java.lang.String)] > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#directoryExists(java.lang.String,%20java.lang.String)] > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (JCLOUDS-1412) FileSystem BlobStore not compatible with Docker
[ https://issues.apache.org/jira/browse/JCLOUDS-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16444328#comment-16444328 ] Russell Klopfer commented on JCLOUDS-1412: -- {quote}What symptoms do you experience? {quote} # Save files and directories to the file system using JClouds FS BlobStore when building a Docker image. # Load the docker image. # Check if a _directory_ exists using {{blobStore.blobExists()}} # Because of the failed xattr check, JClouds reports that the directory does not exist even though it does > FileSystem BlobStore not compatible with Docker > --- > > Key: JCLOUDS-1412 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1412 > Project: jclouds > Issue Type: Bug > Components: jclouds-blobstore >Affects Versions: 2.1.0 >Reporter: Russell Klopfer >Priority: Major > Labels: filesystem > > Because of [https://github.com/moby/moby/issues/1070] > JClouds FS BlobStore relies on xattr. This means that it won't work with > docker because docker does not support xattr. > Specifically, I saw this when trying to create directories without using > deprecated methods. > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#createDirectory(java.lang.String,%20java.lang.String)] > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#deleteDirectory(java.lang.String,%20java.lang.String)] > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#directoryExists(java.lang.String,%20java.lang.String)] > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (JCLOUDS-1412) FileSystem BlobStore not compatible with Docker
[ https://issues.apache.org/jira/browse/JCLOUDS-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16443199#comment-16443199 ] Russell Klopfer commented on JCLOUDS-1412: -- This is where those attributes are written: [https://github.com/jclouds/jclouds/blob/rel/jclouds-2.1.0/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java#L465] This is where they read: [https://github.com/jclouds/jclouds/blob/rel/jclouds-2.1.0/apis/filesystem/src/main/java/org/jclouds/filesystem/strategy/internal/FilesystemStorageStrategyImpl.java#L712] > FileSystem BlobStore not compatible with Docker > --- > > Key: JCLOUDS-1412 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1412 > Project: jclouds > Issue Type: Bug > Components: jclouds-blobstore >Affects Versions: 2.1.0 >Reporter: Russell Klopfer >Priority: Major > > Because of [https://github.com/moby/moby/issues/1070] > JClouds FS BlobStore relies on xattr. This means that it won't work with > docker because docker does not support xattr. > Specifically, I saw this when trying to create directories without using > deprecated methods. > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#createDirectory(java.lang.String,%20java.lang.String)] > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#deleteDirectory(java.lang.String,%20java.lang.String)] > [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#directoryExists(java.lang.String,%20java.lang.String)] > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (JCLOUDS-1412) FileSystem BlobStore not compatible with Docker
Russell Klopfer created JCLOUDS-1412: Summary: FileSystem BlobStore not compatible with Docker Key: JCLOUDS-1412 URL: https://issues.apache.org/jira/browse/JCLOUDS-1412 Project: jclouds Issue Type: Bug Components: jclouds-blobstore Affects Versions: 2.1.0 Reporter: Russell Klopfer Because of [https://github.com/moby/moby/issues/1070] JClouds FS BlobStore relies on xattr. This means that it won't work with docker because docker does not support xattr. Specifically, I saw this when trying to create directories without using deprecated methods. [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#createDirectory(java.lang.String,%20java.lang.String)] [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#deleteDirectory(java.lang.String,%20java.lang.String)] [https://jclouds.apache.org/reference/javadoc/2.1.x/org/jclouds/blobstore/BlobStore.html#directoryExists(java.lang.String,%20java.lang.String)] -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (JCLOUDS-1411) StorageType not maintained by filesystem BlobStore
[ https://issues.apache.org/jira/browse/JCLOUDS-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Russell Klopfer updated JCLOUDS-1411: - Description: The directory related methods on BlobStore are deprecated, so I am trying to update to the new directory-less scheme. However, when I do the following, {code:java} Blob dirBlob = blobStore.blobBuilder("some/path/").type(StorageType.FOLDER).build(); blobStore.putBlob(containerName, dirBlob); BlobMetadata fetchedMeta = blobStore.blobMetadata(containterName, "some/path/"); StorageType fetchedType = fetchedMeta.getType();{code} {{fetchedType}} (BLOB) does not match the type on {{dirBlob (FOLDER)}}. One place this causes problems is when these directories appear as normal blobs when doing a \{{BlobStore.list()}} was: The directory related methods on BlobStore are deprecated, so I am trying to update to the new directory-less scheme. However, when I do the following, {code:java} Blob dirBlob = blobStore.blobBuilder("some/path/").type(StorageType.FOLDER).build(); blobStore.putBlob(containerName, dirBlob); BlobMetadata fetchedMeta = blobStore.blobMetadata(containterName, "some/path/"); StorageType fetchedType = fetchedMeta.getType();{code} {{fetchedType}} (BLOB) does not match the type on {{dirBlob (FOLDER)}}. One place this causes problems is when these directories appear as normal blobs when doing a B{{lobStore.list()}} > StorageType not maintained by filesystem BlobStore > -- > > Key: JCLOUDS-1411 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1411 > Project: jclouds > Issue Type: Bug > Components: jclouds-blobstore >Affects Versions: 2.0.0, 2.1.0, 2.0.3 > Environment: Windows7 >Reporter: Russell Klopfer >Priority: Major > > The directory related methods on BlobStore are deprecated, so I am trying to > update to the new directory-less scheme. However, when I do the following, > {code:java} > Blob dirBlob = > blobStore.blobBuilder("some/path/").type(StorageType.FOLDER).build(); > blobStore.putBlob(containerName, dirBlob); > BlobMetadata fetchedMeta = blobStore.blobMetadata(containterName, > "some/path/"); > StorageType fetchedType = fetchedMeta.getType();{code} > {{fetchedType}} (BLOB) does not match the type on {{dirBlob (FOLDER)}}. > One place this causes problems is when these directories appear as normal > blobs when doing a \{{BlobStore.list()}} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (JCLOUDS-1411) StorageType not maintained by filesystem BlobStore
[ https://issues.apache.org/jira/browse/JCLOUDS-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16441192#comment-16441192 ] Russell Klopfer commented on JCLOUDS-1411: -- My current work-around is to flag directory blobs by uploading a zero-length payload and setting contentType to "application/directory". I can later do {{blobStore.blobMetadata(...).getContentmetadata().getContentType()}} to check if this blob is a directory. > StorageType not maintained by filesystem BlobStore > -- > > Key: JCLOUDS-1411 > URL: https://issues.apache.org/jira/browse/JCLOUDS-1411 > Project: jclouds > Issue Type: Bug > Components: jclouds-blobstore >Affects Versions: 2.0.0, 2.1.0, 2.0.3 > Environment: Windows7 >Reporter: Russell Klopfer >Priority: Major > > The directory related methods on BlobStore are deprecated, so I am trying to > update to the new directory-less scheme. However, when I do the following, > {code:java} > Blob dirBlob = > blobStore.blobBuilder("some/path/").type(StorageType.FOLDER).build(); > blobStore.putBlob(containerName, dirBlob); > BlobMetadata fetchedMeta = blobStore.blobMetadata(containterName, > "some/path/"); > StorageType fetchedType = fetchedMeta.getType();{code} > {{fetchedType}} (BLOB) does not match the type on {{dirBlob (FOLDER)}}. > One place this causes problems is when these directories appear as normal > blobs when doing a B{{lobStore.list()}} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (JCLOUDS-1411) StorageType not maintained by filesystem BlobStore
Russell Klopfer created JCLOUDS-1411: Summary: StorageType not maintained by filesystem BlobStore Key: JCLOUDS-1411 URL: https://issues.apache.org/jira/browse/JCLOUDS-1411 Project: jclouds Issue Type: Bug Components: jclouds-blobstore Affects Versions: 2.0.3, 2.1.0, 2.0.0 Environment: Windows7 Reporter: Russell Klopfer The directory related methods on BlobStore are deprecated, so I am trying to update to the new directory-less scheme. However, when I do the following, {code:java} Blob dirBlob = blobStore.blobBuilder("some/path/").type(StorageType.FOLDER).build(); blobStore.putBlob(containerName, dirBlob); BlobMetadata fetchedMeta = blobStore.blobMetadata(containterName, "some/path/"); StorageType fetchedType = fetchedMeta.getType();{code} {{fetchedType}} (BLOB) does not match the type on {{dirBlob (FOLDER)}}. One place this causes problems is when these directories appear as normal blobs when doing a B{{lobStore.list()}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)