[openstack-dev] [Nova] Issue while spawning a new VM

manda phaneendra mphaneendra at gmail.com
Thu Jan 7 15:16:58 UTC 2016


Hi,

Thank you for your immediate response

Fawaz Mohammed,  I am trying to spawn a nano VM which will take very less
resources.

Eli, Thanks for your finding, The problem started coming after installing
OVS patch. Before installing this OVS patch everything is fine.
https://raw.githubusercontent.com/priteshk/ovs/nsh-v8/
When i check for ERROR is all the logs, I see some errors in neutron dhcp
and neutron agent.
Error in Neutron Agent :
2016-01-06 17:57:23.162 ERROR neutron.agent.linux.ovsdb_monitor
[req-d280a79d-70df-4dad-9bad-95fcf9a4183c None None] Interface monitor is
not active

Error in dhcp
2016-01-06 17:44:51.136 14547 DEBUG neutron.agent.linux.utils [-] Running
command (rootwrap daemon): ['ovs-vsctl', '--timeout=10', '--oneline',
'--format=json', '--', '--if-exists', 'del-port', 'tap4b013b8e-99', '--',
'add-port', 'br-int', 'tap4b013b8e-99', '--', 'set', 'Interface',
'tap4b013b8e-99', 'type=internal',
'external_ids:iface-id=4b013b8e-99ea-4c7f-afcd-aba2267edcfc',
'external_ids:iface-status=active',
'external_ids:attached-mac=fa:16:3e:8e:d6:ab'] execute_rootwrap_daemon
/opt/stack/neutron/neutron/agent/linux/utils.py:100
2016-01-06 17:44:51.141 14547 ERROR neutron.agent.ovsdb.impl_vsctl [-]
Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline',
'--format=json', '--', '--if-exists', 'del-port', u'tap4b013b8e-99', '--',
'add-port', 'br-int', u'tap4b013b8e-99', '--', 'set', 'Interface',
u'tap4b013b8e-99', 'type=internal',
u'external_ids:iface-id=4b013b8e-99ea-4c7f-afcd-aba2267edcfc',
'external_ids:iface-status=active',
u'external_ids:attached-mac=fa:16:3e:8e:d6:ab']. Exception:
---------------------------------------------------------------------------
Unserializable message: ('#ERROR', OSError(2, 'No such file or directory'))
---------------------------------------------------------------------------

2016-01-06 17:44:51.145 14547 ERROR neutron.agent.ovsdb.impl_vsctl [-]
Unable to execute ['ovs-vsctl', '--timeout=10', '--oneline',
'--format=json', '--', '--columns=ofport', 'list', 'Interface',
u'tap4b013b8e-99']. Exception:
---------------------------------------------------------------------------
Unserializable message: ('#ERROR', OSError(2, 'No such file or directory'))
---------------------------------------------------------------------------


Kevin, How to find out the problem with neutron ?


-- 
Thanks & regards,
Phaneendra Manda.

On Thu, Jan 7, 2016 at 1:49 PM, Zhenyu Zheng <zhengzhenyulixi at gmail.com>
wrote:

> Hi,
>
> I think your RAM is OK and it is the problem with neutron, you should
> check that.
> Obviously your vm have been re-scheduled due to Neutron problem, As you
> have only one compute node, there will be no more compute nodes, No Valid
> Host will be thrown.
>
> Kevin Zheng
>
> On Thu, Jan 7, 2016 at 3:49 PM, Qiao,Liyong <liyong.qiao at intel.com> wrote:
>
>> hi
>> seen from your compute node log:
>>
>> 2016-01-06 18:02:48.630 ERROR nova.scheduler.utils [req-b2b1c8af-91ce-4f8f-a8ba-331cf295b4fc admin demo] [instance: 7b10291a-3043-4b88-99c7-45cece0fa55c] Error from last host: controller (node controller): [u'Traceback (most recent call last):\n', u'  File "/opt/stack/nova/nova/compute/manager.py", line 1902, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/opt/stack/nova/nova/compute/manager.py", line 2066, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance 7b10291a-3043-4b88-99c7-45cece0fa55c was re-scheduled: *Error during following call to agent: *['ovs-vsctl', '--timeout=120', '--', '--if-exists', 'del-port', u'qvo72d62525-21', '--', 'add-port', 'br-int', u'qvo72d62525-21', '--', 'set', 'Interface', u'qvo72d62525-21', u'external-ids:iface-id=72d62525-21a7-4dae-93e0-7c81abd93713', 'external-ids:iface-status=active', u'external-ids:attached-mac=fa:16:3e:cd:f7:c0', 'exter
>> nal-ids:vm-uuid=7b10291a-3043-4b88-99c7-45cece0fa55c']\n"]
>>
>>
>> so can you please check if neutron works well?
>>
>> BTW, I don't think no host found is due to RAM issue.
>>
>> Just my 2 cents.
>>
>> Thanks, Eli.
>>
>>
>>
>> On 2016年01月07日 15:36, Fawaz Mohammed wrote:
>>
>> Hi Manda,
>>
>> Your host has 3.7G of RAM, but not all of them available for your
>> instances. If your host is in virtualized environment, try to increase the
>> RAM size and choose the minimum flavor possible for your image.
>>
>>
>> On Thu, Jan 7, 2016 at 11:04 AM, manda phaneendra <mphaneendra at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> When i am trying to spawn a VM, i am getting the below error in nova
>>> conductor log (nova conductor log is attached )
>>> [image: Inline image 1]
>>>
>>> This is the error i am getting in the horizon UI page
>>> *Error: Failed to perform requested operation on instance "vm1", the
>>> instance has an error status: Please try again later [Error: No valid host
>>> was found. There are not enough hosts available.].   *
>>>
>>>
>>> My ENV details :
>>>
>>> This problem started coming after i install the OVS patch using the bash
>>> file:
>>> https://raw.githubusercontent.com/priteshk/ovs/nsh-v8/
>>> third-party/start-ovs.sh
>>>
>>> I have gone through web and found the below problems can cause this
>>> issue.
>>> 1. When Nova compute node is not running.
>>>     In my env, nova compute node is running:
>>>    [image: Inline image 2]
>>>
>>> 2. I am using qemu as hypervisor
>>>      in /etc/nova/nova.conf
>>>       [libvirt]
>>>        inject_partition = -2
>>>        live_migration_uri = qemu+ssh://root1@%s/system
>>>        use_usb_tablet = False
>>>        cpu_mode = none
>>>        virt_type = qemu
>>>
>>> 3. Enough RAM is available to spawn a nano VM with cirros image.
>>> [image: Inline image 3]
>>>
>>> Please help how to solve this problem.
>>> Please let me know any other information or logs are required to find
>>> the root cause and solve this problem.
>>>
>>> Thanks in advance :)
>>>
>>> --
>>> Thanks & regards,
>>> Phaneendra Manda.
>>>
>>>
>>>
>>>
>>>
>>> __________________________________________________________________________
>>> 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:unsubscribehttp://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>> --
>> BR, Eli(Li Yong)Qiao
>>
>>
>> __________________________________________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160107/e6302966/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 172026 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160107/e6302966/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 53270 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160107/e6302966/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 287171 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160107/e6302966/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: q-dhcp.log.2016-01-06-152427
Type: application/octet-stream
Size: 3513537 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160107/e6302966/attachment-0001.obj>


More information about the OpenStack-dev mailing list