Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

submit job fail with “porttype” #1349

Closed
boozyguo opened this issue Sep 13, 2018 · 6 comments
Closed

submit job fail with “porttype” #1349

boozyguo opened this issue Sep 13, 2018 · 6 comments
Assignees
Labels

Comments

@boozyguo
Copy link

hello, there is a problem about submit job with "porttype".

I test submit a job with 'porttype', but the webportal reports "bad request":
default

If I submit the same job without "porttype", it is ok:

default

@Gerhut Gerhut self-assigned this Sep 13, 2018
@Gerhut
Copy link
Member

Gerhut commented Sep 13, 2018

I reproduced this issue, frameworklauncher logs

com.microsoft.frameworklauncher.webserver.LauncherExceptionHandler: Http request failed due to: Bad Request 
com.microsoft.frameworklauncher.common.exceptions.BadRequestException: javax.validation.ConstraintViolationException: taskRoles[master].taskService.resource: Illegal PortDefinitions: All start fields should be nonzero or zero: PortDefinitions: [{<serverport = 7000,1>, <http = 0,1>, <ssh = 0,1>}]

Ping @yqwang-ms for help

@Gerhut Gerhut assigned yqwang-ms and unassigned Gerhut Sep 13, 2018
@fanyangCS
Copy link
Contributor

@Gerhut , could you please post the REST API log?

@yqwang-ms
Copy link
Member

@qinchen123 to take a look.
It is by design, and below message is returned from Launcher RestAPI's body, RestServer should show them to user:
com.microsoft.frameworklauncher.common.exceptions.BadRequestException: javax.validation.ConstraintViolationException: taskRoles[master].taskService.resource: Illegal PortDefinitions: All start fields should be nonzero or zero: PortDefinitions: [{<serverport = 7000,1>, <http = 0,1>, <ssh = 0,1>}]

@yqwang-ms yqwang-ms removed their assignment Sep 13, 2018
@qinchen123
Copy link
Contributor

Hi Gerhut,
our design of ports support in backend is: if have multi-port labels, the ports for all labels either random or specified; it don't support some labels are random, some label are specified.

for your cases, you have specified the serverport 7000, but the webserver add too random port(http, ssh). the specified and random co-existed casued this BadRequest.

I suggest you to use a random port for your serverport, and after job is running, you can get the port number form the job detail view in PAI web site.

@fanyangCS fanyangCS added the bug label Sep 14, 2018
@fanyangCS
Copy link
Contributor

this is a bug.

@fanyangCS
Copy link
Contributor

fanyangCS commented Sep 20, 2018

solved by #1402

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants