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

When using http proxy in xcp server, import vdi content fails #6260

Closed
tkrafael opened this issue Jun 1, 2022 · 1 comment · Fixed by #6261
Closed

When using http proxy in xcp server, import vdi content fails #6260

tkrafael opened this issue Jun 1, 2022 · 1 comment · Fixed by #6261

Comments

@tkrafael
Copy link
Contributor

tkrafael commented Jun 1, 2022

XOA or XO from the sources?
XO from the sources

Describe the bug
When using host through http proxy, import vdi content fails with timeout:

2022-06-01T17:26:06.355Z xo:xapi WARN importVdiContent:  {
  error: Error: connect ETIMEDOUT 10.110.97.223:443
      at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
      at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
    errno: -110,
    code: 'ETIMEDOUT',
    syscall: 'connect',
    address: '10.110.97.223',
    port: 443,
    url: 'https://<host>/import_raw_vdi/?format=raw&vdi=OpaqueRef%3A7840ce0f-15e0-42c7-a6b2-2ebb118b30a0&session_id=OpaqueRef%3Aae0540bd-391c-4eed-babb-88a27645fb95&task_id=OpaqueRef%3Abfedf69c-e08a-44a3-8a1b-bbc5a3c76922',

To Reproduce
Steps to reproduce the behavior:

  1. Add a new server in xo-web using http proxy configration
  2. Import disk from "import" => "disk"
  3. Select a vhd to be imported
  4. In tasks content import gets stucks and the error above shows in xen-orchestra console

Using cloudconfig configuration triggers same error

Expected behavior
VDI imported successfully

Screenshots
No screenshots

Environment (please provide the following information):

  • Node: 16.15.1
  • xo-server: 5.95.0
  • xo-web: 5.97.1
  • hypervisor: not applicable

Additional context
I added httpagent configuration in putResource javascript function and that solves the issue

@tkrafael
Copy link
Contributor Author

tkrafael commented Jun 1, 2022

Create PR #6261 to make this work

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

Successfully merging a pull request may close this issue.

1 participant