Comments (11)
Your output isn't using the plugin from the 0.2.3 release, it's been modified. Aside from that, self.extravars
is only present when running from morpheus. Try again with line 78 removed, or reinstall the plugin under the morpheus-local
user.
from ansible-collection-morpheus-core.
Well, that's from inside the venv test you sent me in a different issue, so I'm not sure why it wouldn't be the correct version then?
from ansible-collection-morpheus-core.
That test was for that specific issue, and it was expecting self.extravars
to be present, which it is not in the test you are currently trying to run. When I say it's not from the 0.2.3 release, I mean the plugin doesn't match the file located here: https://github.com/gomorpheus/ansible-collection-morpheus-core/blob/v0.2.3/plugins/inventory/morpheus_inventory.py
from ansible-collection-morpheus-core.
Closing this issue unless there are any other problems
from ansible-collection-morpheus-core.
Hi, still the same issues even after installing with --force
from ansible-collection-morpheus-core.
If it is the same error, it's still using the old file. The error refers to line 78 in morpheus_inventory.py and in the 0.2.3 release, that line is blank: https://github.com/gomorpheus/ansible-collection-morpheus-core/blob/v0.2.3/plugins/inventory/morpheus_inventory.py#L78
I would either move or remove the /opt/morpheus/.local/.ansible/collections/ansible_collections/morpheus
directory and reinstall the plugin and go from there.
from ansible-collection-morpheus-core.
It's not the same error I think:
`Windows Patch Group 1 - ais-WindowsPatchGroup1
Start Date: 06/13/2022 07:41 AM Duration: 2m 59s User: Eivind Sivertsen
null - ais-WindowsPatchGroup1 - ais-WindowsPatchGroup1 - execute task
Start Date: 06/13/2022 07:41 AM Duration: 2m 58s
/opt/morpheus/.local/.local/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.75.173.68'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
[WARNING]: * Failed to parse /var/opt/morpheus/morpheus-local/repo/git/8aa2742
259e0da10702eb7f23c067a1c/inventory/patchgroups/morpheusinv.yml with auto
plugin: 'buildVersion'
[WARNING]: * Failed to parse /var/opt/morpheus/morpheus-local/repo/git/8aa2742
259e0da10702eb7f23c067a1c/inventory/patchgroups/morpheusinv.yml with yaml
plugin: Plugin configuration YAML file, not YAML inventory
[WARNING]: * Failed to parse /var/opt/morpheus/morpheus-local/repo/git/8aa2742
259e0da10702eb7f23c067a1c/inventory/patchgroups/morpheusinv.yml with ini
plugin: Invalid host pattern 'plugin:' supplied, ending in ':' is not allowed,
this character is reserved to provide a port.
[WARNING]: Unable to parse /var/opt/morpheus/morpheus-local/repo/git/8aa2742259
e0da10702eb7f23c067a1c/inventory/patchgroups/morpheusinv.yml as an inventory
source
[WARNING]: While constructing a mapping from /var/opt/morpheus/morpheus-local/r
epo/git/8aa2742259e0da10702eb7f23c067a1c/roles/ansible_vault/defaults/main.yml,
line 3, column 1, found a duplicate dict key (ais_prod_db_password). Using last
defined value only.
[WARNING]: While constructing a mapping from /var/opt/morpheus/morpheus-local/r
epo/git/8aa2742259e0da10702eb7f23c067a1c/roles/ansible_vault/defaults/main.yml,
line 3, column 1, found a duplicate dict key (ais_prod_db_host). Using last
defined value only.
[WARNING]: While constructing a mapping from /var/opt/morpheus/morpheus-local/r
epo/git/8aa2742259e0da10702eb7f23c067a1c/roles/ansible_vault/defaults/main.yml,
line 3, column 1, found a duplicate dict key (ais_db_user). Using last defined
value only.
[WARNING]: Could not match supplied host pattern, ignoring: WindowsPatchGroup1
[WARNING]: Could not match supplied host pattern, ignoring: WindowsPatchGroup2
[WARNING]: Could not match supplied host pattern, ignoring: WindowsPatchGroup3
[WARNING]: Could not match supplied host pattern, ignoring: WindowsPatchGroup5
[WARNING]: Could not match supplied host pattern, ignoring: WindowsPatchGroup6
ansible-playbook [core 2.12.2]
config file = /var/opt/morpheus/morpheus-local/repo/git/8aa2742259e0da10702eb7f23c067a1c/ansible.cfg
configured module search path = ['/opt/morpheus/.local/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
ansible collection location = /var/opt/morpheus/morpheus-ui/workspace/ansible-int-1/collections-8645220c-19db-454e-bdcc-d006d55b0cc3:/opt/morpheus/.local/.ansible/collections
executable location = /usr/local/bin/ansible-playbook
python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
jinja version = 2.10.1
libyaml = True
Using /var/opt/morpheus/morpheus-local/repo/git/8aa2742259e0da10702eb7f23c067a1c/ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /var/opt/morpheus/morpheus-ui/workspace/ansible-int-1/ddcb1606-d887-4e5d-ab5c-480e0141a14a/hosts-ddcb1606-d887-4e5d-ab5c-480e0141a14a as it did not pass its verify_file() method
script declined parsing /var/opt/morpheus/morpheus-ui/workspace/ansible-int-1/ddcb1606-d887-4e5d-ab5c-480e0141a14a/hosts-ddcb1606-d887-4e5d-ab5c-480e0141a14a as it did not pass its verify_file() method
auto declined parsing /var/opt/morpheus/morpheus-ui/workspace/ansible-int-1/ddcb1606-d887-4e5d-ab5c-480e0141a14a/hosts-ddcb1606-d887-4e5d-ab5c-480e0141a14a as it did not pass its verify_file() method
Parsed /var/opt/morpheus/morpheus-ui/workspace/ansible-int-1/ddcb1606-d887-4e5d-ab5c-480e0141a14a/hosts-ddcb1606-d887-4e5d-ab5c-480e0141a14a inventory source with ini plugin
setting up inventory plugins
host_list declined parsing /var/opt/morpheus/morpheus-local/repo/git/8aa2742259e0da10702eb7f23c067a1c/inventory/patchgroups/morpheusinv.yml as it did not pass its verify_file() method
script declined parsing /var/opt/morpheus/morpheus-local/repo/git/8aa2742259e0da10702eb7f23c067a1c/inventory/patchgroups/morpheusinv.yml as it did not pass its verify_file() method
Trying secret FileVaultSecret(filename='/var/opt/morpheus/morpheus-ui/ansiblevault/vault.txt') for vault_id=default
Loading collection morpheus.core from /opt/morpheus/.local/.ansible/collections/ansible_collections/morpheus/core
morpheus_inventory: Running from Morpheus environment
Trying secret FileVaultSecret(filename='/var/opt/morpheus/morpheus-ui/ansiblevault/vault.txt') for vault_id=default
morpheus_inventory: Using ephemeral Morpheus token from Morpheus task
Trying secret FileVaultSecret(filename='/var/opt/morpheus/morpheus-ui/ansiblevault/vault.txt') for vault_id=default
Trying secret FileVaultSecret(filename='/var/opt/morpheus/morpheus-ui/ansiblevault/vault.txt') for vault_id=default
toml declined parsing /var/opt/morpheus/morpheus-local/repo/git/8aa2742259e0da10702eb7f23c067a1c/inventory/patchgroups/morpheusinv.yml as it did not pass its verify_file() method
File "/usr/local/lib/python3.8/dist-packages/ansible/inventory/manager.py", line 290, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/usr/local/lib/python3.8/dist-packages/ansible/plugins/inventory/auto.py", line 58, in parse
plugin.parse(inventory, loader, path, cache=cache)
File "/opt/morpheus/.local/.ansible/collections/ansible_collections/morpheus/core/plugins/inventory/morpheus_inventory.py", line 351, in parse
self._set_version_from_morpheus()
File "/opt/morpheus/.local/.ansible/collections/ansible_collections/morpheus/core/plugins/inventory/morpheus_inventory.py", line 77, in _set_version_from_morpheus
self.morpheus_version = returned_v['buildVersion']
File "/usr/local/lib/python3.8/dist-packages/ansible/inventory/manager.py", line 290, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/usr/local/lib/python3.8/dist-packages/ansible/plugins/inventory/yaml.py", line 112, in parse
raise AnsibleParserError('Plugin configuration YAML file, not YAML inventory')
File "/usr/local/lib/python3.8/dist-packages/ansible/inventory/manager.py", line 290, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/usr/local/lib/python3.8/dist-packages/ansible/plugins/inventory/ini.py", line 136, in parse
raise AnsibleParserError(e)
redirecting (type: action) ansible.builtin.win_updates to ansible.windows.win_updates
Loading collection ansible.windows from /opt/morpheus/.local/.ansible/collections/ansible_collections/ansible/windows
Trying secret FileVaultSecret(filename='/var/opt/morpheus/morpheus-ui/ansiblevault/vault.txt') for vault_id=default
Loading collection community.mysql from /opt/morpheus/.local/.ansible/collections/ansible_collections/community/mysql
redirecting (type: callback) ansible.builtin.skippy to ansible.posix.skippy
Loading collection ansible.posix from /usr/local/lib/python3.8/dist-packages/ansible_collections/ansible/posix
redirecting (type: callback) ansible.builtin.skippy to ansible.posix.skippy
Loading callback plugin ansible.posix.skippy of type stdout, v2.0 from /usr/local/lib/python3.8/dist-packages/ansible_collections/ansible/posix/plugins/callback/skippy.py
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.`
from ansible-collection-morpheus-core.
Got it working when I entered the morpheus url and token, so it seems to only be a problem when not having those present in the inventory file.
from ansible-collection-morpheus-core.
Yeah, it only uses the injected Morpheus token when being run from Morpheus. Glad that it's working.
from ansible-collection-morpheus-core.
Well that's exactly the thing, it didn't work through morpheus when not provided with url or token, which I thought was supposed to work on 5.4.3 and above?
from ansible-collection-morpheus-core.
It is supposed to work. I haven't been able to replicate a failure, and it works every time that I've tested it.
from ansible-collection-morpheus-core.
Related Issues (20)
- No hosts fetched HOT 11
- Update distutils.Looseversion to packaging.version.parse
- Running job on master tenant to subtenant hosts HOT 1
- Implement proper API result paging
- Verbose output
- f-string not supported in python 2
- settings role not working
- Remove debug message from virtualimages role
- Fix flake8 warnings for v0.2.2
- Morpheus task API key not used when running from Morpheus task
- App searchtype not working Morpheus 5.4.3
- Change choices for FQCN compatibility
- Failed to parse morpheusinv.yml with auto plugin: HOT 1
- Target instances only if the status is running
- Read variable for morpheus url HOT 6
- Adding further modules HOT 2
- Bump Minimum Ansible Core version to 2.15 HOT 3
- Can't set OS type in virtual images
- Morpheus 5.4.3 requires login for version info, update inventory plugin
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-collection-morpheus-core.