Ask Your Question
0

ERROR nova.compute.manager BadRequest: Expecting to find domain in user - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400)

asked 2016-10-14 17:17:01 -0500

shahram gravatar image
  1. Instance gets created but fails to start, basically the openstack server create returns as normal but openstack-nova-compute complains about "Expecting to find domain in user" This is a fresh Matika install based on the documentations provided for Centos7. Every verification throughout the installation passed with no errors. However openstack-nova-compute throws an error as below. This happens both through Horizon and command line. The final error is ERROR nova.compute.manager BadRequest: Expecting to find domain in user - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-1bce86ba-a4c6-4d8a-889f-1585b0054757)

    the environment variables for command line are

    export OS_PROJECT_DOMAIN_NAME=default export OS_USER_DOMAIN_NAME=default export OS_PROJECT_NAME=admin export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=xxxxxx export OS_AUTH_URL=http://controller:35357/v3 export OS_IMAGE_API_VERSION=2 export OS_IDENTITY_API_VERSION=3

I did find some reference to a bug with Version 3 authentication that required OS_PROJECT_DOMAIN_ID and OS_USER_DOMAIN_ID but including those had no impact on my request. Any help is appreciated.

 016-10-14 18:01:06.899 1794 INFO nova.compute.claims [req-bea8438f-4de9-47b6-8578-11b8d839b66a 1d8d9016877247b1830ccd600bd2483b c49daf99a8de4dba945214fa5b11e7ff - - -] [instance: af51d2ce-a9ec-4e86-ac02-4f4642e54120] Claim successful
2016-10-14 18:01:07.773 1794 WARNING nova.virt.osinfo [req-bea8438f-4de9-47b6-8578-11b8d839b66a 1d8d9016877247b1830ccd600bd2483b c49daf99a8de4dba945214fa5b11e7ff - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty)
2016-10-14 18:01:07.910 1794 WARNING nova.virt.osinfo [req-bea8438f-4de9-47b6-8578-11b8d839b66a 1d8d9016877247b1830ccd600bd2483b c49daf99a8de4dba945214fa5b11e7ff - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty)
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager [req-bea8438f-4de9-47b6-8578-11b8d839b66a 1d8d9016877247b1830ccd600bd2483b c49daf99a8de4dba945214fa5b11e7ff - - -] Instance failed network setup after 1 attempt(s)
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager Traceback (most recent call last):
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1570, in _allocate_network_async
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager     bind_host_id=bind_host_id)
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 668, in allocate_for_instance
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager     self._delete_ports(neutron, instance, created_port_ids)
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager     self.force_reraise()
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager     six.reraise(self.type_, self.value, self.tb)
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 657, in allocate_for_instance
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager     security_group_ids, available_macs, dhcp_opts)
2016-10-14 18:01:08.106 1794 ERROR nova.compute.manager   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 254, in _create_port
2016-10-14 18:01:08.106 1794 ERROR nova ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-17 17:46:56 -0500

shahram gravatar image

user_domain_name = default was missed in the [neutron] section of nova.conf. After adding the missing entry I am able to launch an instance.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-10-14 17:17:01 -0500

Seen: 13,722 times

Last updated: Oct 17 '16