Bug 1313214

Summary: [GSS] (6.4.z) Can't deploy/assign a deployment to other server groups in domain mode via jboss cli.
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: sfu <sfu>
Component: CLIAssignee: Enrique Gonzalez Martinez <egonzale>
Status: CLOSED NOTABUG QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: brian.stansberry, chaowan, egonzale, jboss-set
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-02 11:45:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sfu@redhat.com 2016-03-01 08:29:48 UTC
Description of problem:

In JBoss Managment Console,we can add a deployment (add to deployment repository) then assign it to different server-groups,but under cli mode,it can't be done duo to 'xxx' already exists in the deployment repository.

Steps to Reproduce:
1.start jboss eap with domain mode,and enter into cli mode.
2.[domain@localhost:9999 /] deploy /path/to/test.war --name=test --runtime-name=test --server-groups=group1
3.[domain@localhost:9999 /] deploy /path/to/test.war --name=test --runtime-name=test --server-groups=group2

Actual results:
Can't deploy,error shows 'test' already exists in the deployment repository (use --force to replace the existing content in the repository).

Expected results:
can deploy successfully.

Additional info:
I know the --name should keep unique,but if use different name,two same deployments will be added into repository,that's not customer's expectation.So there is no way to deploy/assign the same test.war to other server groups via jboss cli.