GithubHelp home page GithubHelp logo

Comments (10)

fboender avatar fboender commented on July 24, 2024

Hi Malcolm!

Thanks for the bug report!

I don't think it's an issue with your hosts file being too large. The "too many values to unpack" is kind of misleading in that regard ;-) Ansible is trying to parse one of the ranged hostnames (e.g. "foo[0:3].bar.com") and failing because it's expecting a colon.

Could you send your hosts file to my email address ([email protected]) so I can have a look at it? I will keep it completely confidential. If that's not an option, please let me know so I can figure out a different way to find out which hosts definition is causing the problem.

Regards,

Ferry

from ansible-cmdb.

mdmallardi avatar mdmallardi commented on July 24, 2024

Thank you for your help, this was indeed some issues with our inventory file. We've resolved these internally

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Nice! Could you tell me what the issue was? I should probably skip hosts that fail instead of just failing altogether. At the very least ansible-cmdb should mention the host with the problem.

I'm going to change the title of this bug and reopen it so I can fix that.

from ansible-cmdb.

mdmallardi avatar mdmallardi commented on July 24, 2024

It was as you suspected:
we had host definitions like this:
d393sv-vmnginx[1:2], it was failing on those. When we split things out, it worked.

from ansible-cmdb.

mdmallardi avatar mdmallardi commented on July 24, 2024

Silly close button to the left, bad github, bad!

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

d393sv-vmnginx[1:2] is probably a valid host definition thought, right? ansible-cmdb should handle it properly than, so the bug report still is valid. I'll write up a fix soon. Thanks for your input Malcolm!

from ansible-cmdb.

mdmallardi avatar mdmallardi commented on July 24, 2024

Quite welcome! Yes, it is valid, but not widely in use in our environment.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

I can't seem to reproduce the problem with a host definition of "d393sv-vmnginx[1:2]", but I get the same error if there is more than one pattern in the host definition (e.g. "db[0:2].app[0:2].foo.com"). Did you happen to have a host definition like this?

from ansible-cmdb.

mdmallardi avatar mdmallardi commented on July 24, 2024

I had a host definition more along the lines of:
d393sv-vmnginx[1:2:3], that may have set it off.

On Tue, Sep 22, 2015 at 1:56 PM, Ferry Boender [email protected]
wrote:

I can't seem to reproduce the problem with a host definition of
"d393sv-vmnginx[1:2]", but I get the same error if there is more than one
pattern in the host definition (e.g. "db[0:2].app[0:2].foo.com"). Did you
happen to have a host definition like this?


Reply to this email directly or view it on GitHub
#32 (comment)
.

Malcolm D. Mallardi

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

ansible-cmdb now shows an error on unparsable host definitions and skips them. Host definitions such as "db[0:2].app[0:2].foo.com" are properly expanded.

from ansible-cmdb.

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.