xenserver / xscontainer

Support for Docker and Container Management
BSD 2-Clause "Simplified" License
25 stars 14 forks source link

xscontainer-prepare-vm fails with "ERROR_CAUSE_NETWORK" #58

Closed moodybass closed 3 years ago

moodybass commented 3 years ago

Hi there,

Attempting to xs-container-prepare-vm with Debian 10 Buster on Citrix Hypervisor 8.2.

xscontainer-prepare-vm -v VM-UUID -u VM-USERID
Would you like to push a pool-specific public SSH key into the ~/.ssh/authorized_keys file of the specified VM and therefore authorize hosts in the pool to interact with the containers inside the VM?
Answer y/n:
y
Traceback (most recent call last):
  File "/usr/bin/xscontainer-prepare-vm", line 272, in <module>
    sys.exit(main())
  File "/usr/bin/xscontainer-prepare-vm", line 246, in main
    resultcode = _handle_ssh(session, options)
  File "/usr/bin/xscontainer-prepare-vm", line 139, in _handle_ssh
    resultcode = push_ssh_key(session, options.vmuuid, options.username)
  File "/usr/bin/xscontainer-prepare-vm", line 80, in push_ssh_key
    print(docker.ERROR_CAUSE_NETWORK)
AttributeError: 'module' object has no attribute 'ERROR_CAUSE_NETWORK'

Edited out the VM UUID and the username I'm using. I can SSH to my VM from dom0 without issue. I feel like I'm missing something here?