XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. endi
    E
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Groups 0

    endi

    @endi

    6
    Reputation
    6
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    endi Unfollow Follow

    Latest posts made by endi

    • RE: xe command "hangs on start" when max / open files is high

      @olivierlambert

      Yes, for reasons that would pollute this thread, we're running a number of single host pools.

      The broader picture is:

      We drive https://github.com/ddelnano/packer-plugin-xenserver from a CI server to build a small number of base images / templates

      A related CI job then replicates those to all destination pools.

      I don't think I'm yet in a position to share full details publicly, but if you're interested I'm sure I could give you more visibility to what we've built so far, and our intended direction of travel.

      regards
      ewan

      posted in Compute
      E
      endi
    • RE: xe command "hangs on start" when max / open files is high

      hi @olivierlambert

      we have more than one "destination" server, but simplified here for only one:

      check if destination server has a template with name "x" present
      xe -s <server> -u <user> -pw <pw> template-list name-label=x

      if present, do nothing.

      if absent on this destination, check if we have that template locally
      # this is just a filesystem check where we are running

      if absent locally, pull it from our source server
      # not captured here: lookup template uuid for 'x'
      xe -s <server> -u <user> -pw <pw> template-export template-uuid='uuid' filename='templatename'

      push to destination
      xe -s <server> -u <user> -pw <pw> vm-import filename='templatename'

      Where we have multiple targets, loop over remaining destinations, and push when not detected as being present.

      So tldr:

      template-list
      template-export
      vm-import
      

      Are what I think we need. I wasn't the most recent to look at using xo-cli for this, but we either didn't find them all, or somehow didn't understand how to use what we need

      cheers
      ewan

      posted in Compute
      E
      endi
    • RE: xe command "hangs on start" when max / open files is high

      @olivierlambert

      Looking forward to it: fyi, we are currently using this to facilitate the transfer of templates between clusters. We didn't find it possible to achieve that via xo-cli, though we're open to the possibility we failed to understand something 🙂

      posted in Compute
      E
      endi
    • xe command "hangs on start" when max / open files is high

      I don't propose this needs "fixing", but it took some time to triage so sharing:

      We are using xe from xapi-xe_1.249.19-2.3_amd64.deb outside of the xen server host. We found in some situations: any execution that invoked communication with a xen server, would pause / hang for ~10 mins:

      via strace, we found that running xe causes an enumeration over

      ulimit -a
      <snip>
      open files                          (-n) 1073741816
      

      on xcp-ng / xen host this appears to still be 1024. To remove this pause / hang, a possibility is to:

      ulimit -n <your-choice>
      

      where <your-choice> is a value you deem sensible for your system.

      Hope that saves someone some time 😉
      ewan

      posted in Compute
      E
      endi