heat fails with SSL enabled contrail cluster
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Fix Committed
|
Medium
|
Ignatious Johnson Christopher | |||
R3.1 |
Fix Committed
|
Medium
|
Ignatious Johnson Christopher | |||
Trunk |
Fix Committed
|
Medium
|
Ignatious Johnson Christopher |
Bug Description
Heat fails when SSL is enabled for api-server, keystone and neutron.
Analysis:
----------
1. keystone_authtoken, clients_neutron, clients_keystone sections are not populated with insecure flag.
2. clients_contrail section is not populated with use_ssl.
Heat uses vnc_api library and so need to access vnc_api_lib.ini in /etc/contrail/. However the permission for /etc/contrail is not allowing only users in 'contrail' group to access the etc/contrail dir.
3. If config and openstack(heat) are in same node, 'heat' user needs to be added to 'contrail' group
4. If config and openstack(heat) are in different node, /etc/contrail/
workaround with fab commands to be executed post 'fab setup_all'
FAB_NODE # fab -R openstack -- "openstack-config --set keystone_authtoken insecure True"
FAB_NODE # fab -R openstack -- "openstack-config --set clients_keystone insecure True"
FAB_NODE # fab -R openstack -- "openstack-config --set clients_neutron insecure True"
FAB_NODE # fab -R openstack -- "openstack-config --set clients_contrail use_ssl True"
followed by,
If config and openstack are same nodes:
FAB_NODE # fab -R openstack -- "usermod -a -G contrail heat"
If config and openstack are different nodes: ssl/certs" copy:/etc/ contrail/ vnc_api_ lib.ini, /etc/contrail/ copy:/etc/ contrail/ ssl/certs, /etc/contrail/ sslFAB_ NODE FAB_NODE # fab -R openstack -- "chown -R heat:heat /etc/contrail"
FAB_NODE # fab -R openstack -- "mkdir -p /etc/contrail/
FAB_NODE # fab -R openstack tasks.helpers.
FAB_NODE # fab -R openstack tasks.helpers.