Opennebula VM provisioning fails :"There was a query error: ‘NoneType’ object is not iterable.
Open
Nobody has claimed this yet.
bug
Salt-Cloud
severity-high
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
salt cloud returns an error and is not able to provision VMs. I am using Opennebula for provisioning. This issue happens intermittently.
+ sudo /usr/bin/salt-cloud -m /etc/salt/cloud.maps.d/265-3set.conf -P -y
[WARNING ] Failed auth for mech NEGOEX (1.3.6.1.4.1.311.2.2.30): Mech Type 1.3.6.1.4.1.311.2.2.30 is not yet supported
[WARNING ] Failed auth for mech NEGOEX (1.3.6.1.4.1.311.2.2.30): Mech Type 1.3.6.1.4.1.311.2.2.30 is not yet supported
[WARNING ] Failed auth for mech NEGOEX (1.3.6.1.4.1.311.2.2.30): Mech Type 1.3.6.1.4.1.311.2.2.30 is not yet supported
[WARNING ] Failed auth for mech KRB5 (1.2.840.113554.1.2.2): Failed to acquire GSSAPI credential with password: Major (131072): An invalid name was supplied, Minor (2529639136): Configuration file does not specify default realm
[WARNING ] Failed auth for mech KRB5_U2U (1.2.840.113554.1.2.2.3): Mech Type 1.2.840.113554.1.2.2.3 is not yet supported
[WARNING ] Main pipe PAExec-31073-arc-selfserve.lab.ppops.net.exe does not exist yet on attempt 1. Trying again in 5 seconds
[WARNING ] Failed auth for mech NEGOEX (1.3.6.1.4.1.311.2.2.30): Mech Type 1.3.6.1.4.1.311.2.2.30 is not yet supported
[WARNING ] Failed auth for mech KRB5 (1.2.840.113554.1.2.2): Failed to acquire GSSAPI credential with password: Major (131072): An invalid name was supplied, Minor (2529639136): Configuration file does not specify default realm
[WARNING ] Failed auth for mech KRB5_U2U (1.2.840.113554.1.2.2.3): Mech Type 1.2.840.113554.1.2.2.3 is not yet supported
[WARNING ] Failed auth for mech NEGOEX (1.3.6.1.4.1.311.2.2.30): Mech Type 1.3.6.1.4.1.311.2.2.30 is not yet supported
[WARNING ] Failed auth for mech NEGOEX (1.3.6.1.4.1.311.2.2.30): Mech Type 1.3.6.1.4.1.311.2.2.30 is not yet supported
[WARNING ] Failed auth for mech KRB5 (1.2.840.113554.1.2.2): Failed to acquire GSSAPI credential with password: Major (131072): An invalid name was supplied, Minor (2529639136): Configuration file does not specify default realm
[WARNING ] Failed auth for mech KRB5_U2U (1.2.840.113554.1.2.2.3): Mech Type 1.2.840.113554.1.2.2.3 is not yet supported
[WARNING ] Failed auth for mech NEGOEX (1.3.6.1.4.1.311.2.2.30): Mech Type 1.3.6.1.4.1.311.2.2.30 is not yet supported
[WARNING ] Failed auth for mech KRB5 (1.2.840.113554.1.2.2): Failed to acquire GSSAPI credential with password: Major (131072): An invalid name was supplied, Minor (2529639136): Configuration file does not specify default realm
[WARNING ] Failed auth for mech KRB5_U2U (1.2.840.113554.1.2.2.3): Mech Type 1.2.840.113554.1.2.2.3 is not yet supported
[WARNING ] Failed auth for mech NEGOEX (1.3.6.1.4.1.311.2.2.30): Mech Type 1.3.6.1.4.1.311.2.2.30 is not yet supported
[WARNING ] Failed auth for mech KRB5 (1.2.840.113554.1.2.2): Failed to acquire GSSAPI credential with password: Major (131072): An invalid name was supplied, Minor (2529639136): Configuration file does not specify default realm
[WARNING ] Failed auth for mech KRB5_U2U (1.2.840.113554.1.2.2.3): Mech Type 1.2.840.113554.1.2.2.3 is not yet supported
[ERROR ] There was a query error: 'NoneType' object is not iterable
Salt Version:
Salt: 2019.2.2
Dependency Versions:
cffi: 1.13.1
cherrypy: unknown
dateutil: Not Installed
docker-py: Not Installed
gitdb: 2.0.6
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10.3
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 1.1.0
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Aug 7 2019, 00:51:29)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: 2.0.5
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: centos 7.6.1810 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-957.5.1.el7.x86_64
system: Linux
version: CentOS Linux 7.6.1810 Core
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the documented salt-cloud command with /etc/salt/cloud.maps.d/265-3set.conf and separate the OpenNebula provisioning failure from the authentication warnings. Trace the salt-cloud provider path that emits the 'NoneType' query error; done means the intermittent failure is explained and a regression test covers the corrected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100