Comments (10)
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.
Thank you for your help, this was indeed some issues with our inventory file. We've resolved these internally
from ansible-cmdb.
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.
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.
Silly close button to the left, bad github, bad!
from ansible-cmdb.
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.
Quite welcome! Yes, it is valid, but not widely in use in our environment.
from ansible-cmdb.
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.
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.
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)
- Is it possible to add additional & custom columns to the CSV template? HOT 2
- Comments must be stripped before calling shlex.split
- ModuleNotFoundError: No module named 'ansiblecmdb' HOT 2
- New column: public IP address HOT 1
- [html_fancy_split] Unable to sort custom column by mixed type "string"/ "num" AND how to custom template html_fancy_split HOT 9
- CSV import feature to manage inventory and host_vars easily HOT 1
- CSV export feature for easy reporting HOT 2
- kernel info to txt_table.tpl
- Ansible Tower Generated Json Output unable to generate report HOT 1
- No suitable python version found (v2.7 or higher required). Aborting HOT 4
- Template html fancy split is broken with Edge when excluding columns HOT 1
- Debian 11 can't use default template with ansible-cmdb 1.31 HOT 3
- F
- Markdown split doesn't work
- Does not get built with python-packaging 23.0
- [Question] Offline js libraries
- Using facts_cache for esx hosts is not working properly HOT 1
- Custom fact using command output HOT 1
- python 3.12: imp is deprecated in favor of importlib HOT 1
- bug using cmdb inside container ee
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-cmdb.