nova-compute is not starting after adding ironic configurations

Bug #1589575 reported by narasimha18sv
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Invalid
Undecided
Unassigned
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

I am trying to configure Ironic. I am doing this on Centos Mitaka. After writing the ironic configurations in nova.conf nova-compute is going down due to not able get the node list from ironic. tail -f /var/log/ironic/ironic-api.log 2016-06-06 08:46:37.634 3748 INFO keystonemiddleware.auth_token [-] Rejecting request 2016-06-06 08:46:37.635 3748 INFO ironic_api [-] 192.168.56.105 "GET /v1/nodes/detail HTTP/1.1" status: 401 len: 234 time: 0.0009820 2016-06-06 08:46:39.639 3749 INFO keystonemiddleware.auth_token [-] Rejecting request 2016-06-06 08:46:39.640 3749 INFO ironic_api [-] 192.168.56.105 "GET /v1/nodes/detail HTTP/1.1" status: 401 len: 234 time: 0.0009780 2016-06-06 08:46:41.644 3748 INFO keystonemiddleware.auth_token [-] Rejecting request 2016-06-06 08:46:41.645 3748 INFO ironic_api [-] 192.168.56.105 "GET /v1/nodes/detail HTTP/1.1" status: 401 len: 234 time: 0.0010638 2016-06-06 08:46:43.649 3749 INFO keystonemiddleware.auth_token [-] Rejecting request 2016-06-06 08:46:43.650 3749 INFO ironic_api [-] 192.168.56.105 "GET /v1/nodes/detail HTTP/1.1" status: 401 len: 234 time: 0.0009439 2016-06-06 08:46:45.656 3748 INFO keystonemiddleware.auth_token [-] Rejecting request 2016-06-06 08:46:45.657 3748 INFO ironic_api [-] 192.168.56.105 "GET /v1/nodes/detail HTTP/1.1" status: 401 len: 234 time: 0.0014479 2016-06-06 08:46:47.663 3748 INFO keystonemiddleware.auth_token [-] Rejecting request 2016-06-06 08:46:47.664 3748 INFO ironic_api [-] 192.168.56.105 "GET /v1/nodes/detail HTTP/1.1" status: 401 len: 234 time: 0.0011349 2016-06-06 08:46:49.670 3749 INFO keystonemiddleware.auth_token [-] Rejecting request 2016-06-06 08:46:49.670 3749 INFO ironic_api [-] 192.168.56.105 "GET /v1/nodes/detail HTTP/1.1" status: 401 len: 234 time: 0.0010211

ironic in nova.conf
[DEFAULT]
compute_driver=ironic.IronicDriver
firewall_driver=nova.virt.firewall.NoopFirewallDriver scheduler_host_manager=nova.scheduler.ironic_host_manager.IronicHostManager
ram_allocation_ratio=1.0
reserved_host_memory_mb=0
scheduler_use_baremetal_filters=True
scheduler_tracks_instance_changes=False
[ironic]
auth_uri = http://192.168.56.105:5000
auth_url = http://192.168.56.105:35357
auth_region = RegionOne
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
username = ironic
password = cloud123
api_endpoint=http://192.168.56.105:6385/v1

I tried with keeping the keystone V2.0 confgurations but that is giving authentication problems.
admin_username=ironic
admin_password=IRONIC_PASSWORD
admin_url=http://IDENTITY_IP:35357/v2.0
admin_tenant_name=service
api_endpoint=http://IRONIC_NODE:6385/v1

when i try the above values in ironic as per officeial document I am getting below error
 oslo_service.service DiscoveryFailure: Could not determine a suitable URL for the plugin

Keystone endpoints are with v3
+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+--------------------------------------------------+
| 043d8c1077a14f8f970631e0ce5a95f6 | RegionOne | keystone | identity | True | internal | http://192.168.56.105:5000/v3 |

Ironic api and conductor services are up and running.

ironic node-list
+------+------+---------------+-------------+--------------------+-------------+ | UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance | +------+------+---------------+-------------+--------------------+-------------+ +------+------+---------------+-------------+--------------------+-------------+

Ironic api and conductor services are up and running.

Please suggest me what is missing here.

Tags: compute
summary: - nova-compute is not staring after adding ironic configurations
+ nova-compute is not starting after adding ironic configurations
Revision history for this message
narasimha18sv (narasimha18sv) wrote :

# nova service-list
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| 1 | nova-scheduler | localhost.localdomain | internal | enabled | up | 2016-06-06T16:04:36.000000 | - |
| 2 | nova-consoleauth | localhost.localdomain | internal | enabled | up | 2016-06-06T16:04:29.000000 | - |
| 3 | nova-conductor | localhost.localdomain | internal | enabled | up | 2016-06-06T16:04:37.000000 | - |
| 6 | nova-compute | localhost.localdomain | nova | enabled | down | 2016-06-06T15:58:52.000000 | - |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+

Changed in ironic:
assignee: nobody → Varun Gadiraju (varun-gadiraju)
Changed in ironic:
assignee: Varun Gadiraju (varun-gadiraju) → nobody
Revision history for this message
narasimha18sv (narasimha18sv) wrote :

After adding domain related configurations in nova driver configurations of Ironic. This issue got resolved. This is just a workaround. May be need to change code to read keystone V3 configurations.

Revision history for this message
Dmitry Tantsur (divius) wrote :

Nova was updated to support keystone V3 while connecting to Ironic, so this should be fixed. Thanks!

Changed in ironic:
status: New → Invalid
Changed in nova:
status: New → Fix Released
Revision history for this message
narasimha18sv (narasimha18sv) wrote :

Nova is updated to V3 but the ironic connectivity code to get keystone authentication is still in V2.0.

https://github.com/openstack/nova/blob/master/nova/virt/ironic/client_wrapper.py

def _get_auth_plugin(self)

The code inside this is still with V2.0 configurations.

Actually this is problem with the documentation

http://docs.openstack.org/developer/ironic/kilo/deploy/install-guide.html#configure-identity-service-for-bare-metal

Here the value for auth_uri under keystone auth_token section should be auth_uri=http://IDENTITY_IP:5000/v2.0

Which closes this error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.