cfn-init-data is missing cfn section

asked 2017-09-23 08:42:54 -0600

Joel Pearson gravatar image

I'm using https://github.com/redhat-openstack/openshift-on-openstack (https://github.com/redhat-openstack/o...) and when I run it, it fails because my /var/lib/heat-cfntools/cfn-init-data file is missing the cfn data. The openstack cluster I'm working with has the heat-api-cfn service as required. But the /etc/os-collect-config.conf file is missing the cfn data because the cfn-init-data missing the cfn section.

I found the cfn-init-data is passed in by the metadata service:

--===============0625519502235140468==
Content-Type: text/x-cfninitdata; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cfn-init-data"

{"os-collect-config": {"heat": {"password": "90cc7b3a514641038767809a78b4c4ac", "user_id": "a17c02fe7b8b40d8b2321e5d443588d2", "stack_id": "staging-openshift-bastion_host-bs2fuknhux5b/3c618965-4555-4630-a277-5f03be5aeacc", "resource_name": "host", "auth_url": "http://10.20.0.203:5000/v3/", "project_id": "5df59edf1239469b8ebea633f4e1f767"}, "collectors": ["ec2", "heat", "local"]}, "deployments": []}

I had a read of https://ask.openstack.org/en/question/53541/difference-between-heat-and-cfn-sections-in-os-collect-configconf/ (https://ask.openstack.org/en/question...) but keystone catalog doesn't work, I get errors about it being deprecated and then it can't authenticate

/usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py:56: DeprecationWarning: keystoneclient auth plugins are deprecated as of the 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in future releases.
  'in future releases.', DeprecationWarning)
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://10.20.0.203:5000/v3/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.20.0.203
DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1" 404 93
DEBUG:keystoneclient.session:Request returned failure status: 404
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-771d577c-5583-4c93-afa2-25dc8a6b4dd5)

Any idea's how I can figure out why cfn is missing from the cfn-init-data?

edit retag flag offensive close merge delete