Ask Your Question

Failed to launch instance: no host to cell mapping

asked 2017-02-20 15:30:36 -0500

hl gravatar image

Dashboard returns: Error: Failed to perform requested operation on instance "blah1", the instance has an error status: Please try again later [Error: Host 'ucmpt02' is not mapped to any cell].

Nova conductor log: Failed to compute_task_build_instances: Host 'ucmpt02' is not mapped to any cell

Nova cell-show returns: root@infra01-utility-container-fca5f131:~# nova cell-show cell0 /usr/local/lib/python2.7/dist-packages/novaclient/ UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in erro rs in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored. warnings.warn(msg) ERROR (HTTPNotImplemented): The requested functionality is not supported. (HTTP 501) (Request-ID: req-6d189da5-7012-4fcb-985b-169f1e0ffbae)

How should I check/config the cell mapping?


edit retag flag offensive close merge delete


Hi Please Check following question I had answered last week, I faced similar issue. here

Karthik Prasad gravatar imageKarthik Prasad ( 2017-02-21 03:42:02 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2017-02-21 04:17:31 -0500

Rupesh Chowdary gravatar image

cells are disabled by default. In nova.conf check cells section and enable it.

Also update the below settings in nova.conf

[DEFAULT] compute_api_class=nova.compute.cells_api.ComputeCellsAPI ...

[cells] cell_type= api

edit flag offensive delete link more

answered 2017-02-21 10:22:35 -0500

hl gravatar image

Karthik Prasad, Thanks for the response! When I run "nova-manage cell_v2 map_cell0", I got the following: error: (pymysql.err.IntegrityError) (1062, u"Duplicate entry '00000000-0000-0000-0000-000000000000' for key 'uniq_cell_mappings0uuid'") [SQL: u'INSERT INTO cell_mappings (created_at, updated_at, uuid, name, transport_url, database_connection) VALUES (%(created_at)s, %(updated_at)s, %(uuid)s, %(name)s, %(transport_url)s, %(database_connection)s)'] [parameters: {'uuid': '00000000-0000-0000-0000-000000000000', 'transport_url': u'none:///', 'created_at': datetime.datetime(2017, 2, 21, 16, 14, 35, 17029), 'updated_at': None, 'name': u'cell0', 'database_connection': u'mysql+pymysql://nova_api:password@'}]

And my cell_mapping db table shows like this: MariaDB [nova_api]> select * from cell_mappings; +---------------------+------------+----+--------------------------------------+-------+---------------------------------------------------+---------------------------------------------------------------------------+ | created_at | updated_at | id | uuid | name | transport_url | database_connection | +---------------------+------------+----+--------------------------------------+-------+---------------------------------------------------+---------------------------------------------------------------------------+ | 2017-02-20 03:51:30 | NULL | 1 | 00000000-0000-0000-0000-000000000000 | cell0 | none:/// | mysql+pymysql://nova_api:123sqwert@ | | 2017-02-20 03:51:37 | NULL | 2 | 56d04f0d-57fd-4c76-a87c-5da768380a60 | cell1 | rabbit://nova:123sqwert@ | mysql+pymysql://nova:123sqwert@ | | 2017-02-21 01:35:45 | NULL | 5 | f59551e4-f4a3-4856-8115-949cf1f7802a | NULL | rabbit://nova:123sqwert@ | mysql+pymysql://nova:123sqwert@ | +---------------------+------------+----+--------------------------------------+-------+---------------------------------------------------+----------------

Could you post how is your cell_mappings table looks like?

Thanks again!

edit flag offensive delete link more


Sorry did your issue got resolved? sorry missed your comment

Karthik Prasad gravatar imageKarthik Prasad ( 2017-03-20 14:55:36 -0500 )edit

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



Asked: 2017-02-20 15:30:36 -0500

Seen: 7,124 times

Last updated: Feb 21 '17