juju scp fails when control-plane doesn't have a public ip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charmed Kubernetes Testing |
Fix Released
|
High
|
George Kraft |
Bug Description
In testrun https:/
```
2023-02-17-01:38:45 root DEBUG =======
2023-02-17-01:38:45 root DEBUG _______
2023-02-17-01:38:45 root DEBUG Traceback (most recent call last):
2023-02-17-01:38:45 root DEBUG File "/home/
2023-02-17-01:38:45 root DEBUG await scp_to(f.name, unit, path, tools.controlle
2023-02-17-01:38:45 root DEBUG File "/home/
2023-02-17-01:38:45 root DEBUG await asyncify(
2023-02-17-01:38:45 root DEBUG File "/home/
2023-02-17-01:38:45 root DEBUG return await loop.run_
2023-02-17-01:38:45 root DEBUG File "/usr/lib/
2023-02-17-01:38:45 root DEBUG result = self.fn(*self.args, **self.kwargs)
2023-02-17-01:38:45 root DEBUG File "/usr/lib/
2023-02-17-01:38:45 root DEBUG raise CalledProcessEr
2023-02-17-01:38:45 root DEBUG subprocess.
```
The reason is that since recently, we are not giving k8c-cp a public IP when deployed on OpenStack, which means that `juju scp` does not work.
Changed in charmed-kubernetes-testing: | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in charmed-kubernetes-testing: | |
status: | In Progress → Fix Committed |
milestone: | none → 1.27 |
Changed in charmed-kubernetes-testing: | |
status: | Fix Committed → Fix Released |
PR: https:/ /github. com/charmed- kubernetes/ jenkins/ pull/1213
This adds a --juju-ssh-proxy option to the validation suite that will proxy Juju SSH/SCP commands through the Juju controller. You will need to pass the new option in to the validation suite, but hopefully this does the trick.