Coder Social home page Coder Social logo

Comments (3)

fguimond avatar fguimond commented on July 29, 2024

More notes:

The issue I'm having is with the Ansible collection repository, with a clean install from scratch, for a single-node backend. We're moving from Chef to Ansible and trying to get our QA pipeline working. The playbook is attached. sensu_backend_info is just a dict we grab from Hashicorp Vault. The API key for the user admin is created successfully, but creation of the user ansible is where it dies, as far as I can tell here:

"Version API returned status {0}".format(resp.status),
.

Thanks for making the issue, but I think there may be some confusion. The 405 was definitely an issue on my end with the wrong header for curl, but using the playbook gets a 400 error--and I haven't been able to replicate that on 8080, just 3000. It's possible the playbook would be using the wrong port, but that wouldn't make a lot of sense given that it's just making API calls. Regardless, thanks for putting this up there.

from sensu-go-ansible.

juremedvesek avatar juremedvesek commented on July 29, 2024

Hi, thanks for posting a bug.

For easier debugging I summarized what collection calls and uses.

Default port used by collection is 8080.

default="http://localhost:8080",

It may be changed by setting parameter SENSU_URL.

Method used by collection is GET. Meaning, that yours command curl -X GET http://localhost:8080/version should directly replicate collections call (in case that SENSU_URL was not changed).

You can get debug log by setting environment variable SENSU_ANSIBLE_DEBUG.

DEBUG = os.environ.get("SENSU_ANSIBLE_DEBUG", "").lower() in ["yes", "true"]

Other instructions are written in file.

In one of next releases of collection we will also add verbose log of HTTP failures to ansible output (in case of -vvvv) . Which should help a lot with debugging.

from sensu-go-ansible.

asachs01 avatar asachs01 commented on July 29, 2024

@juremedvesek thanks for that update. I followed up on the issue on our end, and it looks like they were using the insecure default and didn't set SENSU_URL. Everything is good now and I'll close this out.

from sensu-go-ansible.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.