XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. shinuza
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 8
    • Best 1
    • Controversial 0
    • Groups 0

    shinuza

    @shinuza

    1
    Reputation
    7
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    shinuza Unfollow Follow

    Best posts made by shinuza

    • RE: Ansible with Xen Orchestra

      Hi there. Author of said inventory plugin.

      If you ever wish to migrate you should be able to retain most of what you did on XOA side (I'm thinking tags), but you'll have something that's more standard and require less setup as long as the XOA API is accessible to the machine running the playbook.

      You can keep the groups with the composable groups in your inventory plugin configuration:

      simple_config_file:
          plugin: community.general.xen_orchestra
          api_host: 192.168.1.255
          user: xo
          password: xo_pwd
          validate_certs: true
          use_ssl: true
          groups:
              kube-master: "name_label == 'kube-master'"
          compose:
              ansible_port: 2222
      

      https://docs.ansible.com/ansible/devel/collections/community/general/xen_orchestra_inventory.html#ansible-collections-community-general-xen-orchestra-inventory

      posted in News
      S
      shinuza

    Latest posts made by shinuza

    • RE: Exports OVA Timeout...

      @olivierlambert said in Exports OVA Timeout...:

      I think @shinuza is now working on this. Don't forget to be sure you are using the latest commit.

      Also, please try with XOA too in latest channel to compare the result.

      I'm trying to find a way to schedule these long running tasks so we are not dependent on the browser staying opened and connected to XOA. Also we are looking at means to improve the export speed.

      posted in Xen Orchestra
      S
      shinuza
    • RE: Ansible with Xen Orchestra

      @wowi42 Hi there. It's already in the documentation:

      https://docs.ansible.com/ansible/devel/collections/community/general/xen_orchestra_inventory.html#requirements

      Also, you should see an error message if it's not installed.

      posted in News
      S
      shinuza
    • RE: Ansible plugin, usage with AWX.

      @tristis-oris Nope, unfortunately:

      • ansible needs a stable unique id to identify hosts
      • name-labels from the xo api are not stable and may not be unique
      • if a vm doesn't have the guest-tools installed then we cannot know its ip and or hostname.
      • the only property that's stable between pools, hosts and vms are the uuid

      Using hostnames or ip as inventory id means there's no way to for example to: start a vm using the inventory, but you can do it using the inventory and a JSON-RPC call.

      posted in Xen Orchestra
      S
      shinuza
    • RE: Ansible plugin, usage with AWX.

      @tristis-oris It's hard to say remotely, you could try install xo-cli on the same machine you are trying to run ansible-inventory.

      Maybe there will be more details on why the connection is failing.

      posted in Xen Orchestra
      S
      shinuza
    • RE: Ansible plugin, usage with AWX.

      @tristis-oris It's not a credentials issue, if it was the plugin would explicitly say so. Errno 111 means the low-level socket connection can't be established. Try connecting with telnet?

      posted in Xen Orchestra
      S
      shinuza
    • RE: Ansible plugin, usage with AWX.

      @tristis-oris As I said, this was an error in the example config. You need to use

        plugin: community.general.xen_orchestra
        api_host: ip
        user: awx
        password: awx
        validate_certs: no
        use_ssl: no
      
      posted in Xen Orchestra
      S
      shinuza
    • RE: Ansible plugin, usage with AWX.

      @tristis-oris Hey, so yeah. The doc was confusing, I've created a pull request to fix it.

      As for your issue. It says auto plugin: [Errno 111] Connection refused, meaning you can't connect to the API from the machine that tries to execute the inventory.

      posted in Xen Orchestra
      S
      shinuza
    • RE: Ansible with Xen Orchestra

      Hi there. Author of said inventory plugin.

      If you ever wish to migrate you should be able to retain most of what you did on XOA side (I'm thinking tags), but you'll have something that's more standard and require less setup as long as the XOA API is accessible to the machine running the playbook.

      You can keep the groups with the composable groups in your inventory plugin configuration:

      simple_config_file:
          plugin: community.general.xen_orchestra
          api_host: 192.168.1.255
          user: xo
          password: xo_pwd
          validate_certs: true
          use_ssl: true
          groups:
              kube-master: "name_label == 'kube-master'"
          compose:
              ansible_port: 2222
      

      https://docs.ansible.com/ansible/devel/collections/community/general/xen_orchestra_inventory.html#ansible-collections-community-general-xen-orchestra-inventory

      posted in News
      S
      shinuza