[openstack-dev] [Sahara] Error launching a defined domain with XML

Qiming Teng tengqim at linux.vnet.ibm.com
Wed Jul 27 01:34:11 UTC 2016


This should add a [sahara] tag at subject line.

- Qiming

On Tue, Jul 26, 2016 at 05:46:25PM +0800, 云淡风轻 wrote:
> hi ,
> 
> when create cluster with sahara 4.0.0 in M version ,using command line:
> 
> 
> $      time openstack dataprocessing cluster create --json my_cluster_create_default.json
> +----------------------------+--------------------------------------+
> | Field                      | Value                                |
> +----------------------------+--------------------------------------+
> | Anti affinity              |                                      |
> | Cluster template id        | b7e8f1b5-1aff-4baf-977b-3ef74d4326cf |
> | Description                | None                                 |
> | Id                         | 47ac6404-8fc0-4d3c-b8eb-0f3a2b9e1b2c |
> | Image                      | b3e899c4-a282-4337-a084-50ca0454535e |
> | Is protected               | False                                |
> | Is public                  | False                                |
> | Is transient               | False                                |
> | Name                       | my-cluster-default-1                 |
> | Neutron management network | 3aaa392b-af4d-4f70-9e2e-1b71a965ff7d |
> | Node groups                | master:1, worker:1                   |
> | Plugin name                | vanilla                              |
> | Status                     | Validating                           |
> | Use autoconfig             | True                                 |
> | User keypair id            | my_stack                             |
> | Version                    | 2.7.1                                |
> +----------------------------+--------------------------------------+
> $      nova list
> +--------------------------------------+-------------------------------+--------+------------+-------------+----------+
> | ID                                   | Name                          | Status | Task State | Power State | Networks |
> +--------------------------------------+-------------------------------+--------+------------+-------------+----------+
> | 4e3fdb6c-6805-447c-b01d-c4cb0fc1ca87 | my-cluster-default-1-master-0 | BUILD  | scheduling | NOSTATE     |          |
> | 95dd207b-6047-416c-a95f-6d08aa0c6409 | my-cluster-default-1-worker-0 | BUILD  | scheduling | NOSTATE     |          |
> +--------------------------------------+-------------------------------+--------+------------+-------------+----------+
> 
> 
> 
> 
> an error occur :
> 
> 
> log in nova-compute.log
> 2016-07-25 18:09:47.440 37208 INFO nova.compute.resource_tracker [req-8ce86863-8324-4dc3-93bf-a997d3512ab1 - - - - -] Auditing locally available compute resources for node localhost.localdomain
> 2016-07-25 18:09:47.767 37208 WARNING nova.virt.libvirt.driver [req-8ce86863-8324-4dc3-93bf-a997d3512ab1 - - - - -] couldn't obtain the vcpu count from domain id: af17e813-fe6d-4769-b7d3-17369afd7313, exception: Requested operation is not valid: cpu affinity is not supported
> 2016-07-25 18:09:47.768 37208 WARNING nova.virt.libvirt.driver [req-8ce86863-8324-4dc3-93bf-a997d3512ab1 - - - - -] couldn't obtain the vcpu count from domain id: eaa076c0-2930-4257-8fd7-e36033c4e86c, exception: Requested operation is not valid: cpu affinity is not supported
> 2016-07-25 18:10:41.136 37208 ERROR nova.virt.libvirt.guest [req-14a51b87-4b95-4b80-a042-193df77278bb 7fff70fbbf83441a9b3c4d91a5613825 6cb156a82d0f486a9f50132be9438eb6 - - -] Error launching a defined domain with XML: <domain type='qemu'>
>   <name>instance-000000e3</name>
> 
> 
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [req-14a51b87-4b95-4b80-a042-193df77278bb 7fff70fbbf83441a9b3c4d91a5613825 6cb156a82d0f486a9f50132be9438eb6 - - -] [instance: af17e813-fe6d-4769-b7d3-17369afd7313] Instance failed to spawn
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313] Traceback (most recent call last):
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     yield resources
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     block_device_info=block_device_info)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2768, in spawn
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     block_device_info=block_device_info)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4903, in _create_domain_and_
> network
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     xml, pause=pause, power_on=power_on)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4834, in _create_domain
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     guest.launch(pause=pause)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 142, in launch
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     self._encoded_xml, errors='ignore')
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     self.force_reraise()
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     six.reraise(self.type_, self.value, self.tb)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 137, in launch
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     return self._domain.createWithFlags(flags)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     result = proxy_call(self._autowrap, f, *args, **kwargs)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     rv = execute(f, *args, **kwargs)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     six.reraise(c, e, tb)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     rv = meth(*args, **kwargs)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1059, in createWithFlags
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313] libvirtError: monitor socket did not show up: No such file or directory
> 2016-07-25 18:10:41.259 37208 ERROR nova.compute.manager [instance: af17e813-fe6d-4769-b7d3-17369afd7313] 
> 
> 
> 
> 
> 
> 
> 
> 
> with:
> 
> 
> check     虚拟化Intel VT-x/EPT 或AMD-V/RVI(V)
> 
> 
> AND:
> 
> 
> $      neutron net-list
> +--------------------------------------+---------+------------------------------------------------------+
> | id                                   | name    | subnets                                              |
> +--------------------------------------+---------+------------------------------------------------------+
> | 3aaa392b-af4d-4f70-9e2e-1b71a965ff7d | private | 7cd8341e-9994-4a1d-a46f-22aedfde7bd8 10.0.0.0/24     |
> | 9c597886-d439-4fe2-b76b-5338d85aaf37 | public  | 0d7a6c95-3f6a-42ad-9cf8-c96e1d9c3c82 172.24.4.224/28 |
> +--------------------------------------+---------+------------------------------------------------------+
> 
> 
> 
> $      neutron subnet-list
> +--------------------------------------+----------------+-----------------+--------------------------------------------------+
> | id                                   | name           | cidr            | allocation_pools                                 |
> +--------------------------------------+----------------+-----------------+--------------------------------------------------+
> | 7cd8341e-9994-4a1d-a46f-22aedfde7bd8 | private_subnet | 10.0.0.0/24     | {"start": "10.0.0.2", "end": "10.0.0.254"}       |
> | 0d7a6c95-3f6a-42ad-9cf8-c96e1d9c3c82 | public_subnet  | 172.24.4.224/28 | {"start": "172.24.4.226", "end": "172.24.4.238"} |
> +--------------------------------------+----------------+-----------------+--------------------------------------------------+
> 
> 
> 
> $      nova floating-ip-pool-list
> +--------+
> | name   |
> +--------+
> | public |
> +--------+
> 
> 
> 
> $      nova floating-ip-bulk-list
> +------------+------------+---------------+--------+-------------+
> | project_id | address    | instance_uuid | pool   | interface   |
> +------------+------------+---------------+--------+-------------+
> | -          | 10.0.0.193 | -             | public | eno16777736 |
> | -          | 10.0.0.194 | -             | public | eno16777736 |
> | -          | 10.0.0.195 | -             | public | eno16777736 |
> | -          | 10.0.0.196 | -             | public | eno16777736 |
> ......
> | -          | 10.0.0.221 | -             | public | eno16777736 |
> | -          | 10.0.0.222 | -             | public | eno16777736 |
> +------------+------------+---------------+--------+-------------+
> 
> 
> 
> 
> 
> #      diff /etc/nova/nova.conf{,.original} -y --suppress-common-lines
> default_flavor=m1.tiny					      <
> ram_allocation_ratio=3					      |	ram_allocation_ratio=1.5
> use_neutron=true					      |	#use_neutron=false
> auto_assign_floating_ip=true				      <
> public_interface=eno33554984				      <
> flat_network_bridge=br-int				      <
> flat_interface=eno16777736				      <
> network_size=32						      <
> fixed_range=10.0.0.192/27				      <
> connection = mysql://sahara:openstack@10.0.0.132/nova_api     <
> connection = mysql://sahara:openstack@10.0.0.132/nova	      <
> api_servers=http://10.0.0.132:9292			      |	api_servers=10.0.0.132:9292
> admin_user=sahara					      |
> admin_password=openstack				      <
> 
> 




More information about the OpenStack-dev mailing list