Comment 1 for bug 2007997

Revision history for this message
George Kraft (cynerva) wrote :

Traceback (most recent call last):
  File "/home/ubuntu/k8s-validation/jobs/integration/validation.py", line 474, in test_network_policies
    await scp_to(
  File "/home/ubuntu/k8s-validation/jobs/integration/utils.py", line 196, in scp_to
    await asyncify(subprocess.check_call)(cmd.split())
  File "/home/ubuntu/k8s-validation/jobs/integration/utils.py", line 104, in wrapper
    return await loop.run_in_executor(None, partial)
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['juju', 'scp', '-m', 'foundation-openstack:admin/kubernetes-openstack', '/home/ubuntu/.local/share/juju/tmpkny3oqxm/netpolicy-test.yaml', 'kubernetes-control-plane/0:netpolicy-test.yaml']' returned non-zero exit status 1.

And the command output:

ERROR cannot connect to any address: [172.16.0.170:22]

This appears to be the same underlying issue as https://bugs.launchpad.net/bugs/2007708, in which juju scp commands fail when the kubernetes-control-plane units do not have floating IPs.