Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Gitpod docker network needs MTU 1440 #5611

Closed
1 task done
mk-mxp opened this issue Dec 8, 2023 · 1 comment
Closed
1 task done

In Gitpod docker network needs MTU 1440 #5611

mk-mxp opened this issue Dec 8, 2023 · 1 comment

Comments

@mk-mxp
Copy link

mk-mxp commented Dec 8, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Output of ddev debug test

Expand `ddev debug test` diagnostic information
Running bash [-c /tmp/test_ddev.sh] 
======= Existing project config =========
These config files were loaded for project magento2-sample-project-ddev: [/workspace/magento2-sample-project-ddev/.ddev/config.yaml]
name: magento2-sample-project-ddev
type: magento2
docroot: magento2/pub
php_version: 8.1
webserver_type: nginx-fpm
webimage: ddev/ddev-webserver:v1.22.5
router_http_port: 80
router_https_port: 443
additional_hostnames: []
additional_fqdns: []
database: {mariadb 10.4}
hooks: map[post-import-db:[map[exec-host:ddev set-config] map[exec-host:ddev set-url] map[exec-host:ddev create-admin] map[exec:magento2/bin/magento indexer:reindex] map[exec:magento2/bin/magento cache:flush]]]
webimage_extra_packages: [git-flow]
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2
nodejs_version: 18
default_container_timeout: 120
======= Creating dummy project named  tryddevproject-1750 in ../tryddevproject-1750 =========
OS Information: Linux magento-magento2samplep-9bwpj7gw287 6.1.57-060157-generic #202311021503 SMP PREEMPT_DYNAMIC Thu Nov  2 16:25:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
User information: uid=33333(gitpod) gid=33333(gitpod) groups=33333(gitpod)
DDEV version:  ITEM             VALUE                                   
 DDEV version     v1.22.5                                 
 architecture     amd64                                   
 db               ddev/ddev-dbserver-mariadb-10.4:v1.22.5 
 ddev-ssh-agent   ddev/ddev-ssh-agent:v1.22.5             
 docker           24.0.6                                  
 docker-compose   v2.23.3                                 
 docker-platform  linux-docker                            
 mutagen          0.17.2                                  
 os               linux                                   
 router           ddev/ddev-traefik-router:v1.22.5        
 web              ddev/ddev-webserver:v1.22.5             
PROXY settings: HTTP_PROXY='' HTTPS_PROXY='' http_proxy='' NO_PROXY=''
======= DDEV global info =========
Global configuration:
instrumentation-opt-in=false
omit-containers=[ddev-router,ddev-ssh-agent]
performance-mode=none
router-bind-all-interfaces=false
internet-detection-timeout-ms=3000
disable-http2=false
use-letsencrypt=false
letsencrypt-email=
table-style=default
simple-formatting=false
use-hardened-images=false
fail-on-hook-fail=false
required-docker-compose-version=v2.23.3
use-docker-compose-from-path=false
project-tld=
xdebug-ide-location=
no-bind-mounts=false
router=traefik
wsl2-no-windows-hosts-mgt=false
router-http-port=80
router-https-port=443
mailpit-http-port=8025
mailpit-https-port=8026
traefik-monitor-port=10999

======= DOCKER info =========
docker location: -rwxr-xr-x 1 root root 35932152 Sep  4 12:31 /usr/bin/docker
docker version: 
Client: Docker Engine - Community
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:31:44 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:31:44 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.24
  GitCommit:        61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
 gitpod:
  Version:          1.1.9
  GitCommit:        v1.1.9-0-gccaecfcb
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
DOCKER_DEFAULT_PLATFORM=notset
======= Mutagen Info =========
======= Docker Info =========
Docker platform: linux-docker 
Using Docker context: default (unix:///var/run/docker.sock) 
docker-compose: v2.23.3 
Using DOCKER_HOST=unix:///var/run/docker.sock 
Docker version: 24.0.6 
Able to run simple container that mounts a volume. 
Able to use internet inside container. 
Docker disk space:
Filesystem                Size      Used Available Use% Mounted on
overlay                  50.0G      3.6G     46.4G   7% /

The ddev-ssh-agent container has been removed. When you start it again you will have to use 'ddev auth ssh' to provide key authentication again.
Network ddev_default removed
Existing docker containers: 
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
Network ddev_default created 
Starting tryddevproject-1750... 
Network ddev-tryddevproject-1750_default created 
Failed to start tryddevproject-1750: host port 3306 has already been allocated to project magento2-sample-project-ddev 
┌──────────────────────────────┬─────────┬─────────────────────────────────────────┬────────────────────────┬──────────┐
│ NAME                         │ STATUS  │ LOCATION                                │ URL                    │ TYPE     │
├──────────────────────────────┼─────────┼─────────────────────────────────────────┼────────────────────────┼──────────┤
│ magento2-sample-project-ddev │ stopped │ /workspace/magento2-sample-project-ddev │                        │ magento2 │
├──────────────────────────────┼─────────┼─────────────────────────────────────────┼────────────────────────┼──────────┤
│ tryddevproject-1750          │ stopped │ /workspace/tryddevproject-1750          │                        │ php      │
├──────────────────────────────┼─────────┼─────────────────────────────────────────┼────────────────────────┼──────────┤
│ Router                       │ stopped │ ~/.ddev                                 │ http://127.0.0.1:10999 │ traefik  │
└──────────────────────────────┴─────────┴─────────────────────────────────────────┴────────────────────────┴──────────┘
 
┌──────────────────────────────────┐
│ Project: tryddevproject-1750 /wo │
│ rkspace/tryddevproject-1750 http │
│ s://8080-magento-magento2samplep │
│ -9bwpj7gw287.ws-eu106.gitpod.io  │
│ Docker platform: linux-docker    │
│ Router: disabled                 │
├─────────┬──────┬──────────┬──────┤
│ SERVICE │ STAT │ URL/PORT │ INFO │
├─────────┼──────┼──────────┼──────┤
└─────────┴──────┴──────────┴──────┘
 
============= ddev-tryddevproject-1750-web healtcheck run =========
Error response from daemon: No such container: ddev-tryddevproject-1750-web
============= ddev logs =========
No running service container web was found
============= contents of /mnt/ddev_config  =========
Error response from daemon: No such container: ddev-d9-db
======== Curl of site from inside container:
Project is not currently running. Try 'ddev start'.
======== curl -I of http://tryddevproject-1750.ddev.site from outside:
curl: (7) Failed to connect to tryddevproject-1750.ddev.site port 80 after 20 ms: Connection refused
Unable to curl the requested project Please provide this output in a new gist at gist.github.com.

Please run cleanup after debugging with 'ddev debug testcleanup'
Failed running test_ddev.sh: exit status 1
. You can run it manually with `curl -sL -O https://raw.githubusercontent.com/ddev/ddev/master/cmd/ddev/cmd/scripts/test_ddev.sh && bash test_ddev.sh`

Expected Behavior

When starting up the container set, the network MTU for the projects network is set according to .ddev/.ddev-docker-compose-full.yaml:

networks:
    ddev_default:
        external: true
        name: ddev_default
    default:
        driver_opts:
            com.docker.network.driver.mtu: "1440"
        name: ddev-magento2-sample-project-ddev_default

Actual Behavior

Due to #5533, the compose file is not used for network creation. This results in:

$ docker inspect ddev-magento2-sample-project-ddev_default
[
    {
        "Name": "ddev-magento2-sample-project-ddev_default",
        "Id": "827ddf18a29e22d799984b2887fc8a0e47996ae0a189ab86eb7444041773bd0e",
        "Created": "2023-12-08T17:44:47.771681086Z",
        "Scope": "local",
        "Driver": "bridge",
...
        "Options": {},
        "Labels": {
            "com.ddev.platform": "ddev",
            "com.docker.compose.network": "default",
            "com.docker.compose.project": "ddev-magento2-sample-project-ddev",
            "com.docker.compose.version": "2.23.3"
        }
    }
]

As you can see, the MTU option is missing.

Steps To Reproduce

  • Setup any DDEV project in Gitpod with DDEV's workspace image ddev/ddev-gitpod-base:20231127
  • Startup the container set
  • Run docker inspect <network-name>

Anything else?

See: #3766

@stasadev
Copy link
Member

stasadev commented Dec 8, 2023

@mk-mxp, thank you for the reporting, I'm working on a fix in #5612.

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

No branches or pull requests

2 participants