dp:copy doesn't work on RAID filesystems

41 views
Skip to first unread message

Brian Ross

unread,
May 18, 2012, 4:01:43 PM5/18/12
to DataPower Buddy
I am having trouble getting the dp:copy task to work on RAID
filesystems. I can copy files to the local:// filesystem without any
issues, but when I try to copy them to the local://raid0 filesystem, I
get the following error:

C:\MTAS\PSB\MTAS_PSB\DataPowerDeployment\build.xml:249: Request failed
with the following information:
Can not create directory 'local://raid0' - Duplicate file name

Here is the dp:copy action:

<dp:copy cleanDirectories="false">
<dpFileset prefix="local://raid0/MTAS" dir="Common/Dev"
includes="DBMapping.xml"/>
<dpFileset prefix="local://raid0/MTAS" dir="Common/Dev"
includes="MTASProperties.xml"/>
</dp:copy>

Here's the output from ant -v:

[dp:copy] Executing dpbuddy's 'dp:copy' task...
[dp:copy] Adding this file to the upload request: C:\MTAS\PSB
\MTAS_PSB\DataPowerDeployment\Common\Dev\DBMapping.xml
[dp:copy] Target directory on the device: local://raid0/MTAS
[dp:copy] Copying 1 file(s) to the device...
[dp:copy] Executing XML management request 'do-action/CreateDir'
against 'DeployTest' domain
[dp:copy] Request:
[dp:copy] <?xml version="1.0" encoding="UTF-8"?>
[dp:copy] <Envelope xmlns="http://schemas.xmlsoap.org/soap/
envelope/">
[dp:copy] <Body>
[dp:copy] <request xmlns="http://www.datapower.com/schemas/
management" domain="DeployTest">
[dp:copy] <do-action>
[dp:copy] <CreateDir xmlns="">
[dp:copy] <Dir>local://raid0</Dir>
[dp:copy] </CreateDir>
[dp:copy] <CreateDir xmlns="">
[dp:copy] <Dir>local://raid0/MTAS</Dir>
[dp:copy] </CreateDir>
[dp:copy] </do-action>
[dp:copy] </request>
[dp:copy] </Body>
[dp:copy] </Envelope>
[dp:copy] Validating against the schema C:\MTAS\PSB\MTAS_PSB
\DataPowerDeployment\schema\xml-mgmt-ops.xsd
[dp:copy] Successfully validated do-action/CreateDir against
DataPower schema
[dp:copy] Connecting to URL https://nyobgdp50d1a.odc.vzwcorp.com:5550/service/mgmt/current
Username: DeployTest
[dp:copy] Response:
[dp:copy] <?xml version="1.0" encoding="UTF-8"?>
[dp:copy] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/
envelope/">
[dp:copy] <env:Body>
[dp:copy] <dp:response xmlns:dp="http://www.datapower.com/
schemas/management">
[dp:copy] <dp:timestamp>2012-05-18T15:53:42-04:00</
dp:timestamp>
[dp:copy] <dp:result>
[dp:copy] <error-log>
[dp:copy] <log-event level="error">Can not create
directory 'local://raid0' - Duplicate file name</log-event>
[dp:copy] </error-log>
[dp:copy] </dp:result>
[dp:copy] <dp:result>OK</dp:result>
[dp:copy] </dp:response>
[dp:copy] </env:Body>
[dp:copy] </env:Envelope>

BUILD FAILED
C:\MTAS\PSB\MTAS_PSB\DataPowerDeployment\build.xml:249: Request failed
with the following information:
Can not create directory 'local://raid0' - Duplicate file name

at com.myarch.dpbuddy.ant.BaseDPTask.executeRequest(BaseDPTask.java:
225)
at com.myarch.dpbuddy.ant.CopyTask.executeDPTask(CopyTask.java:70)
at com.myarch.dpbuddy.ant.BaseDPTask.execute(BaseDPTask.java:193)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
37)
at java.lang.reflect.Method.invoke(Method.java:611)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at
org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:
32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:
423)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:
137)
Caused by: com.myarch.dpbuddy.DPException: Request failed with the
following information:
Can not create directory 'local://raid0' - Duplicate file name

at com.myarch.dpbuddy.ResultResponse.validate(ResultResponse.java:47)
at
com.myarch.dpbuddy.commands.action.ActionCommand.execute(ActionCommand.java:
76)
at
com.myarch.dpbuddy.commands.files.CreateDirCommand.execute(CreateDirCommand.java:
56)
at
com.myarch.dpbuddy.commands.files.CopyFilesCommand.execute(CopyFilesCommand.java:
129)
at
com.myarch.dpbuddy.commands.files.CopyFilesCommand.execute(CopyFilesCommand.java:
24)
at com.myarch.dpbuddy.ant.BaseDPTask.executeRequest(BaseDPTask.java:
222)
... 17 more
--- Nested Exception ---
com.myarch.dpbuddy.DPException: Request failed with the following
information:
Can not create directory 'local://raid0' - Duplicate file name

at com.myarch.dpbuddy.ResultResponse.validate(ResultResponse.java:47)
at
com.myarch.dpbuddy.commands.action.ActionCommand.execute(ActionCommand.java:
76)
at
com.myarch.dpbuddy.commands.files.CreateDirCommand.execute(CreateDirCommand.java:
56)
at
com.myarch.dpbuddy.commands.files.CopyFilesCommand.execute(CopyFilesCommand.java:
129)
at
com.myarch.dpbuddy.commands.files.CopyFilesCommand.execute(CopyFilesCommand.java:
24)
at com.myarch.dpbuddy.ant.BaseDPTask.executeRequest(BaseDPTask.java:
222)
at com.myarch.dpbuddy.ant.CopyTask.executeDPTask(CopyTask.java:70)
at com.myarch.dpbuddy.ant.BaseDPTask.execute(BaseDPTask.java:193)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
37)
at java.lang.reflect.Method.invoke(Method.java:611)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at
org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:
32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:
423)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:
137)

Alexander 'Sasha' Ananiev

unread,
May 19, 2012, 11:34:55 AM5/19/12
to Brian Ross, DataPower Buddy
Brian,
For some reason DataPower gives special treatment to the raid mount. "mkdir" complains that the directory already exists only if it is a mount. 
I've implemented a fix for this. Please download dpbuddy-2.3.2 from http://myarch.com/files/patches/dpbuddy-2.3.2-dist.zip  and let me know if it fixes the problem for you.
Regards,
-Alexander

Brian Ross

unread,
May 23, 2012, 11:28:05 AM5/23/12
to DataPower Buddy
The updated version (2.3.2) seems to have fixed the problem. I am
able to successfully copy files to raid mounts now.

Thanks,
Brian

On May 19, 10:34 am, "Alexander 'Sasha' Ananiev"
<alexan...@myarch.com> wrote:
> Brian,
> For some reason DataPower gives special treatment to the raid mount.
> "mkdir" complains that the directory already exists only if it is a mount.
> I've implemented a fix for this. Please download dpbuddy-2.3.2 fromhttp://myarch.com/files/patches/dpbuddy-2.3.2-dist.zip and let me know if

Brian Ross

unread,
Apr 2, 2015, 12:27:03 PM4/2/15
to dpb...@myarch.com, brian....@gmail.com
It looks like this problem is back in DPBuddy 3.2:


        <dp:copy cleanDirectories="false">
            <dpFileset prefix="local://raid0/MTAS" dir="Common/Dev" includes="DBMapping.xml"/>
            <dpFileset prefix="local://raid0/MTAS" dir="Common/Dev" includes="MTASProperties.xml"/>
        </dp:copy>    

Here's the out put from ant -v:

  [dp:copy] Executing 'dp:copy' against url/host '*****', domain 'BrianDev' ...
  [dp:copy] Max JVM Memory:1790
  [dp:copy] Adding this file to the upload request: C:\Users\rosbri3\Desktop\DataPower\dpbuddy-3.2\samples\ant-tasks\Common\Dev\DBMapping.xml

  [dp:copy] Target directory on the device: local://raid0/MTAS
  [dp:copy] Added encoded file to the request in 3 ms
  [dp:copy] Adding this file to the upload request: C:\Users\rosbri3\Desktop\DataPower\dpbuddy-3.2\samples\ant-tasks\Common\Dev\MTASProperties.xml

  [dp:copy] Target directory on the device: local://raid0/MTAS
  [dp:copy] Added encoded file to the request in 7 ms
  [dp:copy] Executing XML management request 'do-action/CreateDir' against 'BrianDev' domain
  [dp:copy] Serialized request's size is 335 bytes
  [dp:copy] Request:
  [dp:copy] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body>
  [dp:copy] <request xmlns="http://www.datapower.com/schemas/management" domain="BrianDev">

  [dp:copy]   <do-action>
  [dp:copy]     <CreateDir xmlns="">
  [dp:copy]       <Dir>local://raid0</Dir>
  [dp:copy]     </CreateDir>
  [dp:copy]     <CreateDir xmlns="">
  [dp:copy]       <Dir>local://raid0/MTAS</Dir>
  [dp:copy]     </CreateDir>
  [dp:copy]   </do-action>
  [dp:copy] </request>
  [dp:copy] </env:Body></env:Envelope>
  [dp:copy] Established connection in 293 ms
  [dp:copy] Connecting to https://*****:5550/service/mgmt/current
  [dp:copy] Executing HTTP POST request ...
  [dp:copy] Received response from the device in 812 ms
  [dp:copy] Parsing the response ...
  [dp:copy] Parsed input stream in 11 ms
  [dp:copy] Response:

  [dp:copy] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  [dp:copy]   <env:Body>
  [dp:copy]     <dp:response xmlns:dp="http://www.datapower.com/schemas/management">
  [dp:copy]       <dp:timestamp>2015-04-02T12:20:49-04:00</dp:timestamp>

  [dp:copy]       <dp:result>
  [dp:copy]         <error-log>
  [dp:copy]           <log-event level="error">Cannot create directory 'local://raid0' - Duplicate file name</log-event>

  [dp:copy]         </error-log>
  [dp:copy]       </dp:result>
  [dp:copy]       <dp:result>OK</dp:result>
  [dp:copy]     </dp:response>
  [dp:copy]   </env:Body>
  [dp:copy] </env:Envelope>

BUILD FAILED
C:\Users\rosbri3\Desktop\DataPower\dpbuddy-3.2\samples\ant-tasks\files.xml:101: DataPower host: '*****', domain: 'BrianDev'. Request failed:
Action CreateDir( Dir="local://raid0" ) failed with the error: Cannot create directory 'local://raid0' - Duplicate file name

 
    at com.myarch.dpbuddy.ant.BaseDPBuddyTask.executeTaskForSingleEnv(BaseDPBuddyTask.java:604)
    at com.myarch.dpbuddy.ant.BaseDPBuddyTask.execute(BaseDPBuddyTask.java:526)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)

    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: com.myarch.dpbuddy.DPBuddyException: com.myarch.dpbuddy.DPBuddyException: Request failed:
Action CreateDir( Dir="local://raid0" ) failed with the error: Cannot create directory 'local://raid0' - Duplicate file name


    ... 18 more
Caused by: com.myarch.dpbuddy.DPBuddyException: Request failed:
Action CreateDir( Dir="local://raid0" ) failed with the error: Cannot create directory 'local://raid0' - Duplicate file name


    at com.myarch.dpbuddy.action.ActionCommand.validateResponse(ActionCommand.java:134)
    at com.myarch.dpbuddy.action.ActionCommand.execute(ActionCommand.java:108)
    at com.myarch.dpbuddy.filemanagement.CreateDirCommand.execute(CreateDirCommand.java:54)
    at com.myarch.dpbuddy.filemanagement.CopyFilesCommand.execute(CopyFilesCommand.java:175)
    at com.myarch.dpbuddy.filemanagement.CopyFilesCommand.execute(CopyFilesCommand.java:25)
    at com.myarch.dpbuddy.ant.BaseDPBuddyTask.executeRequest(BaseDPBuddyTask.java:746)
    at com.myarch.dpbuddy.filemanagement.ant.CopyFilesTask.executeDPTask(CopyFilesTask.java:154)
    at com.myarch.dpbuddy.ant.BaseDPBuddyTask.executeTaskInEnvContext(BaseDPBuddyTask.java:696)
    at com.myarch.dpbuddy.ant.BaseDPBuddyTask.executeTaskForSingleEnv(BaseDPBuddyTask.java:595)
    ... 17 more

Total time: 2 seconds

Thanks,
Brian
Reply all
Reply to author
Forward
0 new messages