Docker Studio - doesn't recreate VM when has been deleted
Closed this issue · 1 comments
mdutoo commented
Workaround : rename the VM.
When a VirtualBox VM is deleted in the VirtualBox UI, the Docker Studio thinks it is still there. Doing Stop & Start, or Start All, or Synchronize, or Restart always ends up with the VM graphical component in green though logs say that the machine does not exist. Removing the VM id does nothing. However, renaming the VM rightly causes it to be created. But rename it back to the old name and it doesn't work anymore. So, where is this state kept (and not cleaned up), since it's not the VM id ?
logs:
18:08:32.286 [main] INFO o.o.c.o.d.c.ComputeStateMachine - org.occiware.clouddesigner.occi.docker.connector.ExecutableMachine_VirtualBox$1:start() - current state is inactive
18:08:32.286 [main] INFO o.o.c.o.d.c.ComputeStateMachine - org.occiware.clouddesigner.occi.docker.connector.ExecutableMachine_VirtualBox$1:start() - move from inactive to active state
machine does not exist
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
18:08:34.642 [main] INFO o.o.c.o.d.c.dockerjava.graph.Graph - Orphans: org.occiware.clouddesigner.occi.docker.connector.ExecutableContainer@10aa02b2 (id: cc806100-d62a-488f-ac13-eb9b20d2914e, title: null) (summary: null) (architecture: x86, cores: 0, hostname: ozwillo-datacore-1, share: 0, speed: 0.0, memory: 0.0, state: inactive, message: null) (name: ozwillo-datacore-1, containerid: e5a9a3abb53c3702c033ff66616b090a0f5850c26b63a37fe1a781fe2c3b2e19, image: mdutoo/ozwillo-datacore:latest, build: null, command: null, ports: 8080:8080, expose: 8080, volumes: null, environment: null, env_file: null, net: null, dns: null, dns_search: null, cap_add: null, cap_drop: null, working_dir: null, entrypoint: null, user: null, domainname: null, mem_limit: 0, memory_swap: 0, privileged: false, restart: null, stdin_open: false, interactive: false, tty: false, cpu_shares: 0, pid: null, ipc: null, add_host: , mac_address: null, rm: false, security_opt: null, device: null, lxc_conf: null, cpuset: null, publish_all: false, read_only: false)
18:08:34.642 [main] INFO o.o.c.o.d.connector.MachineManager - --->org.occiware.clouddesigner.occi.docker.connector.ExecutableContainer@5e4391a6 (id: 71405ae7-2402-455c-9c96-0de3e4fc39a6, title: null) (summary: null) (architecture: x86, cores: 0, hostname: ozwillo-mongo-2, share: 0, speed: 0.0, memory: 0.0, state: inactive, message: null) (name: ozwillo-mongo-2, containerid: 4b4422974fcbf23c3123c8c9e0669c39f7579ae582ab4a0b2728984f3e06cf10, image: mdutoo/ozwillo-mongo, build: null, command: null, ports: null, expose: null, volumes: null, environment: null, env_file: null, net: null, dns: null, dns_search: null, cap_add: null, cap_drop: null, working_dir: null, entrypoint: null, user: null, domainname: null, mem_limit: 0, memory_swap: 0, privileged: false, restart: null, stdin_open: false, interactive: false, tty: false, cpu_shares: 0, pid: null, ipc: null, add_host: null, mac_address: null, rm: false, security_opt: null, device: null, lxc_conf: null, cpuset: null, publish_all: false, read_only: false)
18:08:34.642 [main] INFO o.o.c.o.d.connector.MachineManager - --->org.occiware.clouddesigner.occi.docker.connector.ExecutableContainer@62e1fb89 (id: 55936644-6215-495d-967f-7d453be484a5, title: null) (summary: null) (architecture: x86, cores: 0, hostname: ozwillo-mongo-3, share: 0, speed: 0.0, memory: 0.0, state: inactive, message: null) (name: ozwillo-mongo-3, containerid: 162c7717da40b704709638a4ec221c6c54bf43ea1a4f9a70683868b1f077467f, image: mdutoo/ozwillo-mongo, build: null, command: null, ports: null, expose: null, volumes: null, environment: null, env_file: null, net: null, dns: null, dns_search: null, cap_add: null, cap_drop: null, working_dir: null, entrypoint: null, user: null, domainname: null, mem_limit: 0, memory_swap: 0, privileged: false, restart: null, stdin_open: false, interactive: false, tty: false, cpu_shares: 0, pid: null, ipc: null, add_host: null, mac_address: null, rm: false, security_opt: null, device: null, lxc_conf: null, cpuset: null, publish_all: false, read_only: false)
18:08:34.642 [main] INFO o.o.c.o.d.connector.MachineManager - --->org.occiware.clouddesigner.occi.docker.connector.ExecutableContainer@60d5242f (id: 9dcd39ac-4451-44eb-ac05-227951c23d40, title: null) (summary: null) (architecture: x86, cores: 0, hostname: ozwillo-mongo-1, share: 0, speed: 0.0, memory: 0.0, state: inactive, message: null) (name: ozwillo-mongo-1, containerid: b8c523373fd6d50a44c43e4f01adf3589b4dbdc3ea26115c42bac2927958f67e, image: mdutoo/ozwillo-mongo, build: null, command: null, ports: null, expose: null, volumes: null, environment: null, env_file: null, net: null, dns: null, dns_search: null, cap_add: null, cap_drop: null, working_dir: null, entrypoint: null, user: null, domainname: null, mem_limit: 0, memory_swap: 0, privileged: false, restart: null, stdin_open: false, interactive: false, tty: false, cpu_shares: 0, pid: null, ipc: null, add_host: null, mac_address: null, rm: false, security_opt: null, device: null, lxc_conf: null, cpuset: null, publish_all: false, read_only: false)
18:08:34.642 [main] INFO o.o.c.o.d.connector.MachineManager - --->org.occiware.clouddesigner.occi.docker.connector.ExecutableContainer@10aa02b2 (id: cc806100-d62a-488f-ac13-eb9b20d2914e, title: null) (summary: null) (architecture: x86, cores: 0, hostname: ozwillo-datacore-1, share: 0, speed: 0.0, memory: 0.0, state: inactive, message: null) (name: ozwillo-datacore-1, containerid: e5a9a3abb53c3702c033ff66616b090a0f5850c26b63a37fe1a781fe2c3b2e19, image: mdutoo/ozwillo-datacore:latest, build: null, command: null, ports: 8080:8080, expose: 8080, volumes: null, environment: null, env_file: null, net: null, dns: null, dns_search: null, cap_add: null, cap_drop: null, working_dir: null, entrypoint: null, user: null, domainname: null, mem_limit: 0, memory_swap: 0, privileged: false, restart: null, stdin_open: false, interactive: false, tty: false, cpu_shares: 0, pid: null, ipc: null, add_host: , mac_address: null, rm: false, security_opt: null, device: null, lxc_conf: null, cpuset: null, publish_all: false, read_only: false)
18:08:34.642 [main] INFO o.o.c.o.d.connector.MachineManager - ozwillo-mongo-2
18:08:34.642 [main] INFO o.o.c.o.d.connector.MachineManager - ozwillo-mongo-3
18:08:34.642 [main] INFO o.o.c.o.d.connector.MachineManager - ozwillo-mongo-1
18:08:34.643 [main] INFO o.o.c.o.d.connector.MachineManager - ozwillo-datacore-1
18:08:34.643 [main] INFO o.o.c.o.d.c.d.DockerContainerManager - Trying to connect inside machine ---> ozwillodatacoredev
18:08:34.769 [main] INFO o.o.c.o.d.c.d.DockerContainerManager - DOCKER_CERT_PATH=null
cgourdin commented
Fixed in docker studio v2.