Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33787

openstack.py dynamic inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ansible-plugin
    • None

      Hi,

      We are using a mix of static + dynamic inventory script (openstack.py) for managing our hosts. I was trying to configure jenkins to run my playbooks. I am seeing the below error while running the playbook. Can you please suggest? Let me know if any details required. Thanks.

      ------
      Inventory script (/var/lib/jenkins/caps-sps/jenkins_mesos/ansible/inventory/openstack.py) had an execution error: Error fetching server list on defaults::
       
      /var/lib/jenkins/caps-sps/jenkins_mesos/ansible/inventory/openstack.py:43: Expected key=value host variable assignment, got: argparse
      FATAL: command execution failed
      hudson.AbortException: Ansible playbook execution failed
      	at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:218)
      	at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:192)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      	at hudson.model.Build$BuildExecution.build(Build.java:205)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      ERROR: Ansible playbook execution failed
      Finished: FAILURE
      --------
      

      Thanks,
      Govind

            sirot Jean-Christophe Sirot
            gvenka008c Govindaraj Venkatesan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: