[openstack-dev] 回复: [Sahara] Error launching a defined domain withXML

Vitaly Gridnev vgridnev at mirantis.com
Wed Jul 27 07:21:05 UTC 2016


Hello,

Qiming just added tag [sahara] to the topic of your message.

there are several open questions, can you give answers for them?

1. Can you describe your environment?
2. Can you describe templates you are using? Seems like you are creating
cluster using CLI, could you please post description of each node group of
the cluster? Description of the cluster template is also will be helpful.
3. What images you are using for creating cluster?

On Wed, Jul 27, 2016 at 5:20 AM, 云淡风轻 <821696029 at qq.com> wrote:

> 3ks for your reply. But where to add [sahara]?
> is nova.conf?
> Can you detail it?  thanks.
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Qiming Teng";<tengqim at linux.vnet.ibm.com>;
> *发送时间:* 2016年7月27日(星期三) 上午9:34
> *收件人:* "OpenStack Development Mailing List (not for usage questions)"<
> openstack-dev at lists.openstack.org>;
> *主题:* Re: [openstack-dev] [Sahara] Error launching a defined domain
> withXML
>
> 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       <
> >
> >
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Best Regards,
Vitaly Gridnev,
Project Technical Lead of OpenStack DataProcessing Program (Sahara)
Mirantis, Inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160727/2de34cec/attachment.html>


More information about the OpenStack-dev mailing list