xe command "hangs on start" when max / open files is high
-
Hi!
Thanks for the feedback
That's another good reason to move forward on our REST API in XO 
-
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

-
Can you show us how do you achieve that with
xeso we can check how/if it's possible to do it via XO? -
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=xif present, do nothing.
if absent on this destination, check if we have that template locally
# this is just a filesystem check where we are runningif 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-importAre 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 -
So all in all, the "functional" specification is to be sure to propagate templates between multiple pools, right? (and you are running this in a kind of CRON?)
-
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 -
Clearly, having a central API point might be easier for that. Let me add a link to this topic internally for a next conversation with XO team

-

-
@endi can you show us your current script so we can understand all the requirements?
-
There's ongoing effort to avoid opening file descriptors, to avoid this situation. I'll consult whether the current patches avoid this situation in template-export / vm-import
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login