-
Notifications
You must be signed in to change notification settings - Fork 843
Marathon 1.3.0 - can't modify configuration in UI #4340
Comments
Hi @liquid-sky thanks for reporting this! I've tried to reproduce this without any luck. Could you please provide the respective app config, as it might be related to your configuration? |
Hi @orlandohohmeier, Here's the app I'm unable to edit, as exported via API (I've cleared {
"app": {
"id": "/spark-history-server",
"cmd": "/usr/local/spark/bin/run-history-server.sh",
"args": null,
"user": null,
"env": {
"SPARK_DAEMON_MEMORY": "2g"
},
"instances": 1,
"cpus": 1,
"mem": 2048,
"disk": 0,
"gpus": 0,
"executor": "",
"constraints": [
[
"role",
"CLUSTER",
"driver"
]
],
"uris": [
"file:///root/.dockercfg"
],
"fetch": [
{
"uri": "file:///root/.dockercfg",
"extract": false,
"executable": false,
"cache": false
}
],
"storeUrls": [],
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "<INSERT_DOCKER_IMAGE_NAME_HERE>",
"network": "HOST",
"portMappings": null,
"privileged": false,
"parameters": [],
"forcePullImage": true
}
},
"healthChecks": [],
"readinessChecks": [],
"dependencies": [],
"upgradeStrategy": {
"minimumHealthCapacity": 1,
"maximumOverCapacity": 1
},
"labels": {},
"acceptedResourceRoles": null,
"ipAddress": null,
"version": "2016-09-08T07:55:02.283Z",
"residency": null,
"secrets": {},
"taskKillGracePeriodSeconds": null,
"ports": [
10003
],
"portDefinitions": [
{
"port": 10003,
"protocol": "tcp",
"labels": {}
}
],
"requirePorts": false,
"versionInfo": {
"lastScalingAt": "2016-09-08T07:55:02.283Z",
"lastConfigChangeAt": "2016-09-07T07:16:53.840Z"
},
"tasksStaged": 0,
"tasksRunning": 1,
"tasksHealthy": 0,
"tasksUnhealthy": 0,
"deployments": [],
}
} and the task I'm able to edit: {
"app": {
"id": "/postgres",
"cmd": null,
"args": null,
"user": null,
"env": {
"POSTGRES_PASSWORD": "password",
"PGDATA": "pgdata"
},
"instances": 0,
"cpus": 0.25,
"mem": 512,
"disk": 0,
"gpus": 0,
"executor": "",
"constraints": [],
"uris": [],
"fetch": [],
"storeUrls": [],
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"type": "DOCKER",
"volumes": [
{
"containerPath": "pgdata",
"mode": "RW",
"persistent": {
"size": 10
}
}
],
"docker": {
"image": "postgres:latest",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 5432,
"hostPort": 0,
"servicePort": 10002,
"protocol": "tcp",
"name": "postgres",
"labels": {}
}
],
"privileged": false,
"parameters": [],
"forcePullImage": false
}
},
"healthChecks": [],
"readinessChecks": [],
"dependencies": [],
"upgradeStrategy": {
"minimumHealthCapacity": 0,
"maximumOverCapacity": 0
},
"labels": {},
"acceptedResourceRoles": null,
"ipAddress": null,
"version": "2016-08-16T15:13:46.733Z",
"residency": {
"relaunchEscalationTimeoutSeconds": 10,
"taskLostBehavior": "WAIT_FOREVER"
},
"secrets": {},
"taskKillGracePeriodSeconds": null,
"ports": [
10002
],
"portDefinitions": [
{
"port": 10002,
"protocol": "tcp",
"labels": {}
}
],
"requirePorts": false,
"versionInfo": {
"lastScalingAt": "2016-08-16T15:13:46.733Z",
"lastConfigChangeAt": "2016-08-16T14:58:33.921Z"
},
"tasksStaged": 0,
"tasksRunning": 0,
"tasksHealthy": 0,
"tasksUnhealthy": 0,
"deployments": [],
"tasks": []
}
} |
hi @orlandohohmeier, any luck reproducing the issue? Do you need any more information? |
@liquid-sky I wasn't able to reproduce it but had a similar issue with a different config. I'm not in the office this week but I'll have another look first thing next week. |
Just deployed 1.3.0 and the problem remains, but the error message is more verbose now: Seems like
|
This is a json that gets submitted to Marathon: {
"id": "/spark-history-server",
"cmd": "/usr/local/spark/bin/run-history-server.sh",
"cpus": 1,
"mem": 1024,
"disk": 0,
"instances": 1,
"constraints": [
[
"role",
"CLUSTER",
"driver"
]
],
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "<INSERT_VALID_DOCKER_IMAGE_HERE>",
"network": "HOST",
"privileged": false,
"parameters": [],
"forcePullImage": true
}
},
"portDefinitions": [
{
"port": 10003,
"protocol": "tcp",
"labels": {}
}
],
"uris": [
"file:///root/.dockercfg"
],
"fetch": [
{
"uri": "file:///root/.dockercfg",
"extract": false,
"executable": false,
"cache": false
}
]
} |
we're getting this issue, too. a simple shell test is working:
What is NOT working is:
The latter was meant to be a simple docker based app I spawned for testing, some time ago. |
same issue here using marathon from the debian package: |
same issue here using 1.3.0 |
anyone tested whether it is possible to downgrade again? |
I've finally found the time to investigate this, and it's happening due to an issue in one of the utils to map the app data to the form fields, which is expecting I like to thank all of you for providing all the respective informations; that was really helpful in tracking down the bug. I'll try to provide a fix later today, should be an easy fix. |
Adjust the portDefinition transform util to handle undefined port definitions; this fixes an issue wich prevented users from editing app configurations if `portMappings.containerPort` is undefined. Closes d2iq-archive/marathon#4340
@christianparpart Looks like this is not in v1.1.3 on Debian. I downgraded without issue in a development environment. |
@orlandohohmeier Hey. Thanks for the fix you supplied. Would you mind bumping 1.3.0 to 1.3.1 (+ docker hub tag), so we can start using it? Alternatively, is it easy to just build it ourself? Thanks a lot. ;-) |
Hey guys. Thanks for releasing Marathon v1.3.1, unfortunately, the bug is still there, please re-open the bug ticket until verified to be fixed. Thanks in advance |
it seems that 1.3.1 was still packaged with marathon-ui 1.1.3 and not 1.1.4 that includes the fix |
@christianparpart Unfortunately, Marathon UI 1.1.4 didn't make it into that release as @rhruiz pointed out. We now have merged #4533 and @aquamatthias is about to release another Marathon version including the respective fix. |
Getting
TypeError: e is null
when trying to edit App in Marathon UI. Clicking onEdit
and nothing happens, except for:URL:
http://MESOS_HOSTNAME:8080/ui/#/apps/%2Fspark-history-server/configuration?modal=edit-app--%2Fspark-history-server--2016-09-08T07%3A55%3A02.283Z
The text was updated successfully, but these errors were encountered: