Ask Your Question

Bipin's profile - activity

2017-08-07 02:36:56 -0500 edited answer need help launching instance - stuck with "no valid host found"

@HARI PRASAD,

Please check existing topics proposal of solution in case you're running over a VM:

https://ask.openstack.org/en/question/7519/instance-error-caused-by-libvirterror-internal-error-no-supported-architecture-for-os-type-hvm/?answer=7520#post-id-7520

Also, please be aware that the resource needed by the instance should be equal or less than what the Flavour provides. (That is, stating the opposite: the Flavour must provide enough resources for the instantiation)

2017-08-07 01:21:26 -0500 edited question Error: Failed to launch instance "ubuntu14.04": Please try again later [Error: No valid host was found. ].

I've followed one of the other reports of a similar error, please find below the result of nova-manage service list:

    [root@cloud ~]# nova-manage service list
Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth cloud.phillw.net                     internal         enabled    :-)   2015-01-18 13:15:11
nova-scheduler   cloud.phillw.net                     internal         enabled    :-)   2015-01-18 13:15:17
nova-conductor   cloud.phillw.net                     internal         enabled    :-)   2015-01-18 13:15:17
nova-compute     cloud.phillw.net                     nova             enabled    :-)   2015-01-18 13:15:13
nova-cert        cloud.phillw.net                     internal         enabled    :-)   2015-01-18 13:15:11

The over view shows plenty of resources.

2017-07-14 03:52:18 -0500 received badge  Popular Question (source)
2017-03-25 20:26:23 -0500 received badge  Famous Question (source)
2017-02-02 05:27:19 -0500 commented answer Nova-compute not showing on nova service-list(controller)

This is not an answer, its a suggestion ?

2017-02-02 04:23:59 -0500 commented question How to increase volume to running VM (without powering off)?

you want to increase the size of attached external volume OR root disk ?

2017-02-02 03:18:36 -0500 asked a question instances consumes 2800% cpu of host

One of my compute hosts cpu% reached 3000%. When we checked the host, the following instances consumes 2800% of CPU.

36016 root      20   0 13.084g 8.181g   9580 R 2800  3.2 100088:29  qemu-system-x86_64 -enable-kvm -name instance-00008bc8 -S -machine pc-i440fx-trusty

This virtual machine is a windows based, the flavor is 8vCPU and 8GBvRAM. This compute hosts have 56core cpu in two sockets. Overcommit value is set for this compute node is 1:5. How its possible this virtual machine is consuming more than allocated ? Its a Juno based deployment.

2017-01-23 16:41:02 -0500 received badge  Famous Question (source)
2017-01-16 00:19:33 -0500 commented question Access to Openstack CLI from the inside of a tenant

not possible, unless you have external network or routable management network. one of our implementation we did this, we associate public ip in controllers and our fips are in same range, so they can access.

2017-01-10 15:32:32 -0500 received badge  Famous Question (source)
2017-01-10 05:53:33 -0500 received badge  Notable Question (source)
2017-01-06 08:10:05 -0500 received badge  Nice Answer (source)
2016-12-12 00:02:27 -0500 commented answer Error: Failed to launch instance [Error: No valid host was found. ].

INFO nova.filters [req-8284d20a-3f6e-46f3-95a5-9a48814a8423 None] Filter RetryFilter r$lter returned 0 hosts. check for nova service-list nova hypervisor-list

2016-12-09 15:15:32 -0500 received badge  Popular Question (source)
2016-12-07 23:27:15 -0500 commented question ERROR nova.compute.manager Instance failed network setup after 1 attempt(s)

have you debugged the nova boot ? also kindly give the output of telnet <controller-ip> <rabbitmqport> (from compute)

2016-12-07 06:44:33 -0500 answered a question devide resources in openstack

If you have 20GB of memory, you cannot use full. Because hypervisor will reserve some memory for OS layer. Rest you can use. And for your question, if you have 20GB and you have a flavor of 20GB memory, yes only one person can use it, i mean you can deploy only one virtual machine using that flavor, unless you over committ the memory factor.

When existing instance is not using the resource, the hypervisor will manage to get the resource and distribute to the instance who need it. This idea is happening through a virtio corridor and called Ballooning

There is a way in openstack for Autoscaling the resources. Read the project here

2016-12-07 06:26:04 -0500 commented question ERROR nova.compute.manager Instance failed network setup after 1 attempt(s)

Looks like your rabbitmq is down, or nova-compute cannot communicate with rabbitmq. Check the rabbitmq service is up and running, or try to restart it.

2016-12-06 04:26:29 -0500 answered a question Hypervisor Hostname can be same for many VM's

You can do this by Affinity Anti-affinity feature . Read this How-To

2016-12-06 02:06:29 -0500 asked a question qemuMonitorJSONGetBlockStatsInfo:1757 : internal error: cannot find statistics for device 'virtio-disk1'

5 Compute nodes are throwing the following message continuously from /var/log/libvirt/libvirtd.log . The cluster is running on Juno based on Mirantis Openstack 6.1.

qemuMonitorJSONGetBlockStatsInfo:1757 : internal error: cannot find statistics for device 'virtio-disk1'

Tried the community, but didnt get a helpful thread about this.

2016-11-23 10:12:48 -0500 received badge  Notable Question (source)
2016-11-23 10:12:48 -0500 received badge  Popular Question (source)
2016-11-23 10:12:48 -0500 received badge  Famous Question (source)
2016-11-01 04:34:01 -0500 answered a question Get IO values for a Cinder volume attached to a VM

You can measure the IO using this Tool

2016-11-01 04:29:30 -0500 answered a question Launching an instance gives error status
2016-10-27 20:11:27.081 27650 ERROR oslo.messaging._drivers.impl_rabbit [req-f76bdc9b-203a-4088-a428-44cace556261 - - - - -] AMQP server on 127.0.0.1:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 32 seconds

Based on your logs the RabbitMQ server is unreachable from the compute nodes. Try restart the Rabbit.

2016-11-01 04:27:15 -0500 edited question Launching an instance gives error status

Hello I have installed openstack mitaka. Whenever I launch an instance using command openstack server create --flavor m1.tiny --image cirros --security-group default --key-name mykey provider-instance

I gives status error on using openstack server list

my openstack compute service list output is

+----+------------------+------------+----------+---------+-------+----------------------------+
| Id | Binary           | Host       | Zone     | Status  | State | Updated At                 |
+----+------------------+------------+----------+---------+-------+----------------------------+
|  3 | nova-consoleauth | controller | internal | enabled | up    | 2016-10-27T16:44:00.000000 |
|  4 | nova-scheduler   | controller | internal | enabled | up    | 2016-10-27T16:44:02.000000 |
|  5 | nova-conductor   | controller | internal | enabled | up    | 2016-10-27T16:44:02.000000 |
|  6 | nova-compute     | compute    | nova     | enabled | up    | 2016-10-27T16:44:02.000000 |
+----+------------------+------------+----------+---------+-------+----------------------------+

My nova-conductor logs have output

016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 838, in deallocate_for_instance
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]     self._unbind_ports(context, ports_to_skip, neutron)
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 326, in _unbind_ports
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]     get_client(context, admin=True))
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 141, in get_client
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]     _ADMIN_AUTH = _load_auth_plugin(CONF)
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 122, in _load_auth_plugin
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]     raise neutron_client_exc.Unauthorized(message=err_msg)
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe] Unauthorized: Unknown auth type: None
2016-10-27 22:11:58.684 7464 ERROR nova.conductor.manager [instance: 1109c5b7-f92d-46fb-95fe-72cb253867fe]

My nova-compute logs are as follows

2016-10-27 20:07:42.624 27650 ERROR oslo.messaging._drivers.impl_rabbit [req-f76bdc9b-203a-4088-a428-44cace556261 - - - - -] AMQP server on 127.0.0.1:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 32 seconds.
2016-10-27 20:08:14.687 27650 ERROR oslo.messaging._drivers.impl_rabbit [req-f76bdc9b-203a-4088-a428-44cace556261 - - - - -] AMQP server on 127.0.0.1:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 32 seconds.
2016-10-27 20:08:46.778 27650 ERROR oslo.messaging._drivers.impl_rabbit [req-f76bdc9b-203a-4088-a428-44cace556261 - - - - -] AMQP server on 127.0.0.1:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 32 seconds.
2016-10-27 20:09:18.845 27650 ERROR oslo.messaging._drivers.impl_rabbit [req-f76bdc9b-203a-4088-a428-44cace556261 - - - - -] AMQP server on 127.0.0.1:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 32 seconds.
2016-10-27 20:09:50.897 27650 ERROR oslo.messaging._drivers.impl_rabbit [req-f76bdc9b-203a-4088-a428-44cace556261 - - - - -] AMQP server on 127.0.0.1:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 32 seconds.
2016-10-27 20:10:22.951 27650 ERROR oslo.messaging._drivers.impl_rabbit [req-f76bdc9b-203a-4088-a428-44cace556261 - - - - -] AMQP server on 127.0.0.1:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 32 seconds.
2016-10-27 20:10:55.027 27650 ERROR oslo.messaging._drivers.impl_rabbit [req-f76bdc9b-203a-4088-a428-44cace556261 - - - - -] AMQP server on 127.0 ...
(more)
2016-11-01 04:26:24 -0500 commented question Failed to boot instance on Openstack

most probably your nova-service is down in the controller. check nova service-list

2016-11-01 04:16:21 -0500 commented question security group not found for project

Which version of openstack. Strange, security group is not mandatory while booting. Can you try to boot without security group using CLI ?

2016-11-01 04:13:18 -0500 commented answer Which SDN controller with Openstack you may suggest

Doesnt know much about it. OLD is backed by brockage i believe.

2016-10-31 12:01:07 -0500 received badge  Popular Question (source)
2016-10-31 12:01:07 -0500 received badge  Notable Question (source)
2016-10-31 12:01:07 -0500 received badge  Famous Question (source)
2016-10-30 23:51:02 -0500 edited question New Juno install - Unable to boot instance, neutron client auth issue

Hoping I can get some help, been stuck here for a while. After a new install of Juno, all services seem to be working, except for the process of booting an instance. Neutron commands themselves work, and I able to create a gateway, ext-net and internal net without issues.

However, booting an instance ends with: Error: Failed to launch instance "test": Please try again later [Error: No valid host was found. ]. Which is generally a compute node resource issue but I seem to have plenty.

It looks like the scheduler is finding the node and not filtering it out, I don't see any errors on there:

2016-11-02 20:32:06.804 11962 DEBUG nova.filters [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filter RetryFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/nova/filters.py:88
2016-11-02 20:32:06.812 11962 DEBUG nova.filters [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filter AvailabilityZoneFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/nova/filters.py:88
2016-11-02 20:32:06.813 11962 DEBUG nova.filters [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filter RamFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/nova/filters.py:88
2016-11-02 20:32:06.814 11962 DEBUG nova.filters [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filter ComputeFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/nova/filters.py:88
2016-11-02 20:32:06.814 11962 DEBUG nova.filters [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filter ComputeCapabilitiesFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/nova/filters.py:88
2016-11-02 20:32:06.814 11962 DEBUG nova.filters [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filter ImagePropertiesFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/nova/filters.py:88
2016-11-02 20:32:06.864 11962 INFO nova.openstack.common.periodic_task [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Skipping periodic task _periodic_update_dns because its interval is negative
2016-11-02 20:32:06.879 11962 DEBUG nova.filters [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filter ServerGroupAntiAffinityFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/nova/filters.py:88
2016-11-02 20:32:06.880 11962 DEBUG nova.filters [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filter ServerGroupAffinityFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/nova/filters.py:88
2016-11-02 20:32:06.881 11962 DEBUG nova.scheduler.filter_scheduler [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Filtered [(node4, node4) ram:29530 disk:427008 io_ops:0 instances:1] _schedule /usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py:281
2016-11-02 20:32:06.882 11962 DEBUG nova.scheduler.filter_scheduler [req-6ac35dde-af5f-4c8f-8e24-13f180ce79a7 None] Weighed [WeighedHost [host: (node4, node4) ram:29530 disk:427008 io_ops:0 instances:1, weight: 1.0]] _schedule /usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py:286

This are the error details for the instance:

File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 616, in build_instances request_spec, filter_properties) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 49, in select_destinations context, request_spec, filter_properties) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 35, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/query.py", line 34, in select_destinations context, request_spec, filter_properties ...
(more)
2016-10-30 23:25:20 -0500 commented question can't create virtual host

Your rabbitmq server may be down. Check the rabbitmq server, if its up check the nova services.

2016-10-30 23:24:27 -0500 edited question can't create virtual host

create virtual host have errors:

2016-10-28 11:28:57.994 2707 ERROR oslo.messaging._drivers.impl_rabbit [req-cd2a492c-0981-4725-860a-755d335d4c8c e8bd7f83fd8c4026b5411392460f6562 050bd9085b5b4e8782f86903c1a938c0 - - -] AMQP server on 192.168.0.215:5672 is unreachable: [Errno 104] Connection reset by peer. Trying again in 1 seconds.
2016-10-30 22:52:11 -0500 answered a question allocation ratio per compute node

Yes, you can do that. Create different host aggregates and add these compute nodes to newly created aggregate. Set meta data for these host aggregate. Read this Document for how to do this.

2016-10-18 04:18:52 -0500 commented question image conversion in Liberty

OK, Thanks. But I couldnt find a document for this.

2016-10-17 05:19:52 -0500 received badge  Notable Question (source)
2016-10-16 19:24:32 -0500 received badge  Popular Question (source)
2016-10-16 04:17:59 -0500 asked a question image conversion in Liberty

In an production setup i have noticed that, while image being copied into image cache, the file is converted to a RAW format. The Actual image is QCOW2. The following is the setup.

Mirantis Openstack Liberty, Backed by NetAPP. boot-from-image-create-volume is the boot scenario. I believe its Cinder job to doing the conversion. Question is why this conversion to RAW format, is there a specific reason for this ?

Regards

2016-10-12 22:56:52 -0500 commented answer no valid host error when i create an instance

@chandu asked about which network methodoly you are using ?

2016-10-12 00:46:24 -0500 commented question VM doesn't get IP

Looks like you are having issue with Rabbitmq. Make sure, your rabbitmq is up and running and all the nodes are able to communicate with it.

2016-10-11 05:35:18 -0500 answered a question requiremensts to install and run openstack

Hello,

If you want to install a development, POC environment follow this Guide. . But if you are looking for a production environment, there is lot of things to consider many things.

Regards

2016-10-10 02:21:04 -0500 answered a question Does Openstack Support CPU pinning? And if so how to achieve it on openstack Juno?

You can achieve CPU pinning in Juno by following this Document. Make sure that your qemu-kvm package is => 2.1

2016-10-10 01:44:27 -0500 edited question Combine controller and compute?

OpenStack offers a possibility for combining several roles on the same node (eg. Compute + Storage). According to the docs (http://docs.openstack.org/developer/fuel-docs/devdocs/develop/nailgun/customization/roles.html), roles can also be customized for custom use cases.

However, the docs mention a restriction about combining Controller and Compute roles (I presume that the restriction could be bypassed by customizing role definitions, at least from Nailgun's perspective). As I'm failing to find an explanation for this restriction, I'm wondering if someone could give more details about this?

2016-10-06 03:43:32 -0500 commented question What is the default username and password for Debain 8 x64 (pre-installed murano-agent) / debian-8-m-agent.qcow2 ?

most probably its debian

2016-10-05 22:29:47 -0500 received badge  Popular Question (source)
2016-10-05 01:20:50 -0500 edited question Live migrate Mitaka

I am trying to migrate an instance on a Mitaka target using the command

nova --debug live-migration --block-migrate de7a128f-0ac7-424b-bd6c-206a429e6c34 OS-Mitaka-KVM1-API-V3

But the instance still remains on the same host. I checked the capacity of the target host and it has enough resources to accommodate the new VM. The log from the above command are below

DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:157) found extension EntryPoint.parse('password-ceilometer-legacy = ceilometer.keystone_client:LegacyCeilometerKeystoneLoader')
DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
DEBUG (extension:157) found extension EntryPoint.parse('password-aodh-legacy = aodh.keystone_client:LegacyAodhKeystoneLoader')
DEBUG (session:248) REQ: curl -g -i -X GET http://serverip:5000/v3 -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.4.1 python-requests/2.9.1 CPython/2.7.5"
INFO (connectionpool:213) Starting new HTTP connection (1): serverip
DEBUG (connectionpool:393) "GET /v3 HTTP/1.1" 200 192
DEBUG (session:277) RESP: [200] Content-Length: 192 Content-Encoding: gzip Vary: X-Auth-Token,Accept-Encoding Server: Apache/2.4.6 (CentOS) Connection: close Date: Mon, 03 Oct 2016 21:14:40 GMT Content-Type: application/json x-openstack-request-id: req-d45649cb-cfb7-4438-95a7-f4ae53545535 
RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://serverip:5000/v3/", "rel": "self"}]}}
DEBUG (base:165) Making authentication request to http://serverip:5000/v3/auth/tokens
INFO (connectionpool:248) Resetting dropped connection: serverip
DEBUG (connectionpool:393) "POST /v3/auth/tokens HTTP/1.1" 201 7714
DEBUG (session:248) REQ: curl -g -i -X GET http://serverip:8774/v2/842e348826b540cdae5ff73cc2c18c96 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}7fa1d8b1174afd2a41c73c37f70c2195f26fe972"
INFO (connectionpool:213) Starting new HTTP connection (1): serverip
DEBUG (connectionpool:393) "GET /v2/842e348826b540cdae5ff73cc2c18c96 HTTP/1.1" 404 52
DEBUG (session:277) RESP: [404] Date: Mon, 03 Oct 2016 21:14:41 GMT Connection: keep-alive Content-Type: text/plain; charset=UTF-8 Content-Length: 52 X-Compute-Request-Id: req-7f612edc-000c-479e-9c83-5d25596f5b95 
RESP BODY: 404 Not Found
The resource could not be found.

DEBUG (session:248) REQ: curl -g -i -X GET http://serverip:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}7fa1d8b1174afd2a41c73c37f70c2195f26fe972"
DEBUG (connectionpool:393) "GET /v2/ HTTP/1.1" 200 378
DEBUG (session:277) RESP: [200] Date: Mon, 03 Oct 2016 21:14:41 GMT Connection: keep-alive Content-Type: application/json Content-Length: 378 X-Compute-Request-Id: req-1407580b-5467-4f94-ace8-023bb11889e2 
RESP BODY: {"version ...
(more)
2016-10-05 01:19:23 -0500 answered a question contrail plugin for MOS 8.0

Hi,

Contrail plugin for MOS8 is available to download now.