Nixops cannot ssh to newly deployed virtualbox vm

Doing nixops deploy -d test --debug with the following deploy.nix:

rec{
  node1={
    imports=[./node.nix];
    deplyment.targetEnv="virtualbox";
    deployment.virtualbox.memorySize = 1024; # megabytes
    deployment.virtualbox.vcpu = 2; # number of cpus
  };
  node2=node1;
  node3=node1;
}

Gives me the following error:

...
ssh: Could not resolve hostname node3: Name or service not known
node3> could not connect to ‘root@node3’, retrying in 1 seconds...
ssh: Could not resolve hostname node2: Name or service not known
node2> could not connect to ‘root@node2’, retrying in 1 seconds...
ssh: Could not resolve hostname node1: Name or service not known
node1> could not connect to ‘root@node1’, retrying in 1 seconds...
ssh: Could not resolve hostname node3: Name or service not known
node3> could not connect to ‘root@node3’, retrying in 2 seconds...
ssh: Could not resolve hostname node1: Name or service not known
node1> could not connect to ‘root@node1’, retrying in 2 seconds...
ssh: Could not resolve hostname node2: Name or service not known
node2> could not connect to ‘root@node2’, retrying in 2 seconds...
ssh: Could not resolve hostname node3: Name or service not known
node3> could not connect to ‘root@node3’, retrying in 4 seconds...
ssh: Could not resolve hostname node1: Name or service not known
node1> could not connect to ‘root@node1’, retrying in 4 seconds...
ssh: Could not resolve hostname node2: Name or service not known
node2> could not connect to ‘root@node2’, retrying in 4 seconds...
ssh: Could not resolve hostname node1: Name or service not known
node1> could not connect to ‘root@node1’, retrying in 8 seconds...
ssh: Could not resolve hostname node3: Name or service not known
node3> could not connect to ‘root@node3’, retrying in 8 seconds...
ssh: Could not resolve hostname node2: Name or service not known
node2> could not connect to ‘root@node2’, retrying in 8 seconds...
ssh: Could not resolve hostname node1: Name or service not known
ssh: Could not resolve hostname node3: Name or service not known
ssh: Could not resolve hostname node2: Name or service not known
error: Multiple exceptions (3): 
  * node1: unable to start SSH master connection to ‘root@node1’
  * node2: unable to start SSH master connection to ‘root@node2’
  * node3: unable to start SSH master connection to ‘root@node3’

------------------------------
Traceback (most recent call last):
Traceback (most recent call last):
  File "/nix/store/7aygc05lsvw2vv392jfh4bxcljxx0yv3-nixops-1.7pre2764_932bf43/bin/..nixops-wrapped-wrapped", line 1001, in <module>
    e.print_all_backtraces()
  File "/nix/store/7aygc05lsvw2vv392jfh4bxcljxx0yv3-nixops-1.7pre2764_932bf43/lib/python2.7/site-packages/nixops/parallel.py", line 20, in print_all_backtraces
    traceback.print_exception(e[0], e[1], e[2])
  File "/nix/store/rxn1zlwl3pfydqr2yvfqgqzkhb7wg88k-python-2.7.17/lib/python2.7/traceback.py", line 125, in print_exception
    print_tb(tb, limit, file)
  File "/nix/store/rxn1zlwl3pfydqr2yvfqgqzkhb7wg88k-python-2.7.17/lib/python2.7/traceback.py", line 61, in print_tb
    f = tb.tb_frame
AttributeError: 'unicode' object has no attribute 'tb_frame'

What am I doing wrong?

I assume you have devops created the test deployment first?

Can you tell us the output of devops info -d test?

Yes,I did create it before.

nixops info -d test                                                                                      1 ↵ 
error: undefined variable 'wantedby' at ./node.nix:9:12
(use '--show-trace' to show detailed location information)
warning: evaluation of the deployment specification failed; status info may be incorrect

Network name: test
Network UUID: 7c7bef45-2e3f-11ea-8b0b-2c337a27edab
Network description: Unnamed NixOps network
Nix expressions: ./deploy.nix

+-------+----------------------+------+---------------------------------------------------+------------+
| Name  |        Status        | Type | Resource Id                                       | IP address |
+-------+----------------------+------+---------------------------------------------------+------------+
| node1 | Unknown / Up-to-date | none | nixops-7c7bef45-2e3f-11ea-8b0b-2c337a27edab-node1 |            |
| node2 | Unknown / Up-to-date | none | nixops-7c7bef45-2e3f-11ea-8b0b-2c337a27edab-node2 |            |
| node3 | Unknown / Up-to-date | none | nixops-7c7bef45-2e3f-11ea-8b0b-2c337a27edab-node3 |            |
+-------+----------------------+------+---------------------------------------------------+------------+

what does the node.nix file look like?

let
  p=(import ./default.nix ).tesi;
in{
  environment.systemPackages=[p];
  services.openssh.enable=true;
  systemd.services.testing=rec{
    wantedBy=["multi-user.target"];
    requiredBy=wantedBy;
    before=wantedBy;
    systemConfig.ExecStart="${p}/bin/test-chat";
  };
}
nixops info -d test                                                                                             2 ↵ 
Network name: test
Network UUID: 390003d4-353f-11ea-b72c-3e55f80b3aff
Network description: Unnamed NixOps network
Nix expressions: /home/paki/src/SecureP2PSocialNetworks/deploy.nix

+-------+----------------------+------+---------------------------------------------------+------------+
| Name  |        Status        | Type | Resource Id                                       | IP address |
+-------+----------------------+------+---------------------------------------------------+------------+
| node1 | Unknown / Up-to-date | none | nixops-390003d4-353f-11ea-b72c-3e55f80b3aff-node1 |            |
| node2 | Unknown / Up-to-date | none | nixops-390003d4-353f-11ea-b72c-3e55f80b3aff-node2 |            |
| node3 | Unknown / Up-to-date | none | nixops-390003d4-353f-11ea-b72c-3e55f80b3aff-node3 |            |
+-------+----------------------+------+---------------------------------------------------+------------+