Ask Your Question
0

Openstack Pike glance installation issue Internal Server Error (HTTP 500) [closed]

asked 2017-11-04 23:29:35 -0600

Davinder gravatar image

I have installed keystone successfully but when I installed glance it is giving some errors and error indicated that it doesn't read any glance file like api.conf and registry.conf files.

api.log: 2017-11-05 02:18:06.300 2883 WARNING keystoneauth.identity.generic.base [-] Failed to discover available identity versions when contacting http://controller:35357. Attempting to parse version from URL.: ConnectFailure: Unable to establish connection to http://controller:35357: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection 0x41c1fd0="" at="" object="">: Failed to establish a new connection: [Errno -2] No address found',))</requests.packages.urllib3.connection.httpconnection>

api.conf file: http://paste.openstack.org/show/625528/

api.log error msg: http://paste.openstack.org/show/625529/

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Davinder
close date 2017-11-12 10:31:29.654420

3 answers

Sort by ยป oldest newest most voted
0

answered 2017-11-12 10:30:26 -0600

Davinder gravatar image

I have solved this issue.. I have removed DB and install it again.

Again I have faced same issue during NOVA then I have debugged the issue and found that mysql tables had some issues.

MariaDB [nova_api]> select * from nova_api.cell_mappings; +---------------------+------------+----+--------------------------------------+-------+---------------------------------------------+--------------------------------------------------------+ | created_at | updated_at | id | uuid | name | transport_url | database_connection | +---------------------+------------+----+--------------------------------------+-------+---------------------------------------------+--------------------------------------------------------+ | 2017-11-05 16:49:26 | NULL | 1 | 00000000-0000-0000-0000-000000000000 | cell0 | none:/// | mysql+pymysql://nova:NOVA_DBPASS@controller/nova_cell0 | | 2017-11-05 16:50:41 | NULL | 2 | 1d2aeb53-95bb-42f1-ab85-9a3743b2bc9e | cell1 | rabbit://openstack:rabbit_redhat@controller | mysql+pymysql://nova:NOVA_DBPASS@controller/nova | | 2017-11-12 05:48:21 | NULL | 4 | 8b5be419-2be5-496e-8d59-a13b47636ac3 | cell1 | rabbit://openstack:rabbit_redhat@controller | mysql+pymysql://nova:redhat@controller/nova | +---------------------+------------+----+--------------------------------------+-------+---------------------------------------------+--------------------------------------------------------+ 3 rows in set (0.00 sec)

If you see second and third records then it has NOVA_DBPASS password and actually it was wrong so I have deleted this records and created again and it is working fine now.

MariaDB [nova_api]> delete from cell_mappings where uuid = 00000000-0000-0000-0000-000000000000 AND name = cell0 -> ; ERROR 1054 (42S22): Unknown column 'cell0' in 'where clause' MariaDB [nova_api]> delete from cell_mappings where uuid = 00000000-0000-0000-0000-000000000000; Query OK, 1 row affected, 3 warnings (0.02 sec)

After that commond worked fine.

root@controller ~]# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova Found 1 cell mappings. Getting compute nodes from cell 'cell1': 8b5be419-2be5-496e-8d59-a13b47636ac3 Found 1 computes in cell: 8b5be419-2be5-496e-8d59-a13b47636ac3 Checking host mapping for compute host 'compute': 38e7c833-0bcd-4c4c-a153-b06dcb972fa1 Creating host mapping for compute host 'compute': 38e7c833-0bcd-4c4c-a153-b06dcb972fa1

Thanks everyone for response.

edit flag offensive delete link more
0

answered 2017-11-10 17:08:28 -0600

Bernd Bausch gravatar image
Unable to establish connection to http://controller:35357

Glance can't access keystone using this URL. You need to check: Is there an IP address for controller? Is keystone listening on port 35357?

edit flag offensive delete link more
0

answered 2017-11-10 15:40:35 -0600

timi gravatar image

did you follow the instructions on glance installation? https://docs.openstack.org/glance/pike/install/ (https://docs.openstack.org/glance/pik...)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-11-04 23:29:35 -0600

Seen: 72 times

Last updated: Nov 12