On 29 Apr 2016, at 6:02, Rob Stryker wrote:

Hey All:

Not sure what list to send this to, since it's part CDK, part openshift, part EAP. Hope this is the right list.

Two issues...
First, despite me deleting a .deployed marker (ROOT.war.deployed), and rsyncing back up to the pod using the --delete flag, the server seems to be replacing the file immediately, rather than undeploying the app as it's supposed to. Is it the case that eap on openshift cannot undeploy root.war ?

I don't know - but Have you tried doing it manually by ssh'ing in ?
Have you tried do it on a local running EAP ?

This stuff been unchanged for years so I would be surprised if changed thus try locate where it goes wrong - and wether it is unique to openshift or not.

Secondly, I'm noticing really strange behavior with oc rsync.

I have a local folder 'deploy' in a directory i use in JBT:

[rob@rawbdor deploy]$ ls
activemq-rar.rar           README.txt  ROOT.war.deployed
activemq-rar.rar.deployed  ROOT.war

This maps to the remote openshift folder eap-app-1-auugc:/opt/eap/standalone/deployments

But when I run the following commands, I get very unexpected results:

Try 1:
oc rsync eap-app-1-auugc:/opt/eap/standalone/deployments "/home/rob/apps/eclipse/workspaces/runtime-EclipseApplication/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy"

RESULT: deployments -> /deployments - ie, it created a new folder called deployments inside my deploy folder. Not what I want.

Try 2:
oc rsync eap-app-1-auugc:/opt/eap/standalone/deployments/ /home/rob/apps/eclipse/workspaces/runtime-EclipseApplication/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy

(Note I added a trailing slash eap-app-1-auugc:/opt/eap/standalone/deployments) - Result: it copied the entire remote folder into a new subfolder called "deploy" inside my existing folder named "deploy"


Try 3:
oc rsync eap-app-1-auugc:/opt/eap/standalone/deployments/ /home/rob/apps/eclipse/workspaces/runtime-EclipseApplication/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/

(Note I added an additional trailing slash to local path)
Result: same as try 2

Try 4:
oc rsync eap-app-1-auugc:/opt/eap/standalone/deployments /home/rob/apps/eclipse/workspaces/runtime-EclipseApplication/.metadata/.plugins/org.jboss.ide.eclipse.as.core/test@eap-app/deploy/

(Note, local path has trailing slash, remote path does not)
Result:  Same as try 1

This all seems strange, no? Pretty sure the attempt with no trailing slashes is the correct one, but its behavior is strange.

I don't spot what you believe is strange here. Can you be more specific about what you actually expected ?

note: The ending slash matters in rsync.


/max
http://about.me/maxandersen

_______________________________________________
Devtools mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/devtools

Reply via email to