This repository was archived by the owner on Jul 24, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
bug: nova-post job crashloop #260
Copy link
Copy link
Closed
Description
Is this a bug report or feature request? (choose one):
Kubernetes Version (output of kubectl version):
1.5.2
Helm Client and Tiller Versions (output of helm version):
2.1.3
Development or Deployment Environment?:
development
Release Tag or Master:
master
Expected Behavior:
nova jobs run to completion
What Actually Happened:
nova-post is stuck in a crashloop
How to Reproduce the Issue (as minimally as possible):
Any Additional Comments:
Logs:
$ kubectl logs nova-post-1qnf7
+ export HOME=/tmp
+ HOME=/tmp
+ ansible localhost -vvv -m kolla_keystone_service -a 'service_name=nova service_type=compute description='\''Openstack Compute'\'' endpoint_region=RegionOne url='\''http://nova-api.default:8774/v2/%(tenant_id)s'\'' interface=admin region_name=RegionOne auth='\''{'\''auth_url'\'':'\'''\'', '\''username'\'':'\''admin'\'','\''password'\'':'\''password'\'','\''project_name'\'':'\''admin'\'','\''domain_name'\'':'\''default'\''}'\''' -e '{'\''openstack_nova_auth'\'':{'\''auth_url'\'':'\'''\'', '\''username'\'':'\''admin'\'','\''password'\'':'\''password'\'','\''project_name'\'':'\''admin'\'','\''domain_name'\'':'\''default'\''}}'
No config file found; using defaults
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: ansible
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1489081561.39-206444123242715 `" && echo ansible-tmp-1489081561.39-206444123242715="` echo $HOME/.ansible/tmp/ansible-tmp-1489081561.39-206444123242715 `" ) && sleep 0'
<localhost> PUT /tmp/tmpKEGlqA TO /tmp/.ansible/tmp/ansible-tmp-1489081561.39-206444123242715/kolla_keystone_service
<localhost> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /tmp/.ansible/tmp/ansible-tmp-1489081561.39-206444123242715/kolla_keystone_service; rm -rf "/tmp/.ansible/tmp/ansible-tmp-1489081561.39-206444123242715/" > /dev/null 2>&1 && sleep 0'
localhost | FAILED! => {
"changed": true,
"failed": true,
"invocation": {
"module_args": {
"api_timeout": null,
"auth": {
"auth_url": "",
"domain_name": "default",
"password": "password",
"project_name": "admin",
"username": "admin"
},
"auth_type": null,
"availability_zone": null,
"cacert": null,
"cert": null,
"cloud": null,
"endpoint_type": "public",
"key": null,
"region_name": "RegionOne",
"timeout": 180,
"verify": true,
"wait": true
},
"module_name": "kolla_keystone_service"
},
"msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_oSM3Lj/ansible_module_kolla_keystone_service.py\", line 55, in main\\n for _service in cloud.keystone_client.services.list():\\n File \"/usr/local/lib/python2.7/dist-packages/shade/openstackcloud.py\", line 292, in keystone_client\\n \\'identity\\', keystoneclient.client.Client)\\n File \"/usr/local/lib/python2.7/dist-packages/shade/openstackcloud.py\", line 258, in _get_client\\n **kwargs)\\n File \"/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py\", line 304, in get_legacy_client\\n endpoint = self.get_session_endpoint(service_key)\\n File \"/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py\", line 245, in get_session_endpoint\\n session = self.get_session()\\n File \"/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py\", line 188, in get_session\\n \"Problem with auth parameters\")\\nOpenStackConfigException: Problem with auth parameters\\n'"
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]nova-post job crashloop[/-][+]bug: nova-post job crashloop[/+]wilkers-steve commentedon Mar 9, 2017
The logs indicate that the auth url is returning empty, so the ansible tasks to authenticate with keystone are failing. This is failing because of how helm-toolkit handles looking up the various URI's for the services. We can see the difference in a service that works, like cinder for example. Because nova's structure differently, the URI look ups fail due to how keystone URI lookup is handled. I can submit a fix for this if desired, or @larryrensing can handle it. Should be an easy enough fix to put together and test out.
wilkers-steve commentedon Mar 9, 2017
Should have read "because novas endpoint values in values.yaml are named differently". I'm not sure if we mention this in the docs, but would be a good piece to add to your docs tidying up and getting the community on the same page @v1k0d3n
larryrensing commentedon Mar 9, 2017
looks like @intlabs pull request for nova endpoints will fix this. #250
master...portdirect:0.2.ß/ks-endpoint-normalization-nova
wilkers-steve commentedon Mar 9, 2017
@larryrensing Yeah, it will. We can go ahead and close this out