Ask Your Question

yasharne's profile - activity

2019-02-19 01:52:27 -0500 received badge  Famous Question (source)
2019-01-02 03:05:54 -0500 received badge  Famous Question (source)
2018-12-03 06:34:33 -0500 received badge  Notable Question (source)
2018-12-02 23:01:21 -0500 received badge  Popular Question (source)
2018-12-02 02:09:23 -0500 asked a question no valid host was found when lunching new instance

I have installed openstack rocky with packstack. I have a controller node, compute node, network node and storage node.

When I want to lunch a new instance (with cirros), I get this error:

Error: Failed to perform requested operation on instance "test0", the instance has an error status: Please try again later [Error: No valid host was found. ].

here is the output of nova service-list:

+--------------------------------------+------------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
| Id                                   | Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason | Forced down |
+--------------------------------------+------------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+
| ca6dd0a7-1278-4e42-8cec-8785e3f8ce87 | nova-conductor   | controller | internal | enabled | up    | 2018-12-02T05:38:03.000000 | -               | False       |
| d1c50908-e10c-437f-82be-6f39cba9bbe3 | nova-scheduler   | controller | internal | enabled | up    | 2018-12-02T05:38:03.000000 | -               | False       |
| 45c7ab7f-7d87-4ccf-940b-80a6b7bc0647 | nova-consoleauth | controller | internal | enabled | up    | 2018-12-02T05:38:07.000000 | -               | False       |
| 9bc71327-f30e-43bc-8ac1-2f14b8c3e9f8 | nova-compute     | compute    | nova     | enabled | up    | 2018-12-02T05:38:03.000000 | -               | False       |
+--------------------------------------+------------------+------------+----------+---------+-------+----------------------------+-----------------+-------------+

output of neutron agent-list:

+--------------------------------------+--------------------+---------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host    | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+---------+-------------------+-------+----------------+---------------------------+
| 4720b675-8b10-4fe8-906c-8635371c2138 | L3 agent           | network | nova              | :-)   | True           | neutron-l3-agent          |
| 4832cfdb-4753-48f5-8037-778fd314a4b4 | Metadata agent     | network |                   | :-)   | True           | neutron-metadata-agent    |
| 4a7071c6-32d7-40ff-be71-8fd7da52fe97 | Open vSwitch agent | compute |                   | :-)   | True           | neutron-openvswitch-agent |
| 62ed3331-2bd2-4005-87ff-08caa3035562 | DHCP agent         | network | nova              | :-)   | True           | neutron-dhcp-agent        |
| ba9666b6-2ba7-472c-b448-8c4a8277cb11 | Open vSwitch agent | network |                   | :-)   | True           | neutron-openvswitch-agent |
| f712ddb6-736a-413d-8aef-9458ea0696b7 | Metering agent     | network |                   | :-)   | True           | neutron-metering-agent    |
+--------------------------------------+--------------------+---------+-------------------+-------+----------------+---------------------------+

and output of nova hypervisor-stats:

+----------------------+-------+
| Property             | Value |
+----------------------+-------+
| count                | 0     |
| current_workload     | 0     |
| disk_available_least | 0     |
| free_disk_gb         | 0     |
| free_ram_mb          | 0     |
| local_gb             | 0     |
| local_gb_used        | 0     |
| memory_mb            | 0     |
| memory_mb_used       | 0     |
| running_vms          | 0     |
| vcpus                | 0     |
| vcpus_used           | 0     |
+----------------------+-------+

I have installed rocky and the vm wich compute node is installed on has 8 gb of ram, two processors and 20 gb of storage

How can I solve this?

2018-11-25 05:05:07 -0500 received badge  Famous Question (source)
2018-11-19 09:03:17 -0500 received badge  Notable Question (source)
2018-11-05 08:50:58 -0500 received badge  Popular Question (source)
2018-11-02 17:32:04 -0500 commented question openstack image create returns 500

thank you for your hint, I realized I've forgotten to add controller record in the controller hosts file.

2018-11-02 12:30:22 -0500 received badge  Scholar (source)
2018-11-02 12:30:19 -0500 received badge  Supporter (source)
2018-11-01 00:47:26 -0500 received badge  Notable Question (source)
2018-11-01 00:47:26 -0500 received badge  Notable Question (source)
2018-10-31 02:19:37 -0500 received badge  Popular Question (source)
2018-10-31 02:18:33 -0500 commented answer openstack image create returns 500

I have http://controller:5000/v3/ for keystone on admin and public and internal interface

2018-10-30 18:12:21 -0500 asked a question nova cannot connect to the database, No address found

I'm following tutorials https://docs.openstack.org/nova/rocky/install/controller-install-ubuntu.html (here) to install nova, the problem is when I run the command su -s /bin/sh -c "nova-manage api_db sync" nova as root, I get this error:

2018-10-30 20:38:20.637 27542 WARNING oslo_db.sqlalchemy.engines [-] SQL connection failed. 10 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'controller' ([Errno -2] No address found)") (Background on this error at: http://sqlalche.me/e/e3q8)

the output of ping controller:

PING controller (192.168.7.135) 56(84) bytes of data.
64 bytes from controller (192.168.7.135): icmp_seq=1 ttl=64 time=0.016 ms

The output of netstat -tunap| grep 3306:

tcp        0      0 192.168.7.135:3306      0.0.0.0:*               LISTEN      1658/mysqld

the output of select Host,User from user in mysql:

+-----------+-----------+
| Host      | User      |
+-----------+-----------+
| %         | glance    |
| %         | keystone  |
| %         | nova      |
| %         | placement |
| localhost | glance    |
| localhost | keystone  |
| localhost | nova      |
| localhost | placement |
| localhost | root      |
+-----------+-----------+

relevant configurations on /etc/nova/nova.conf:

[api_database]
connection = mysql+pymysql://nova:password@controller/nova_api
[database]
connection = mysql+pymysql://nova:password@controller/nova
[placement_database]
connection = mysql+pymysql://placement:password@controller/placement

I have already used same syntax to setup glance and that works fine.

I'm using ubuntu 18.04 and trying to install openstack rocky.How can I fix this?

2018-10-30 18:11:28 -0500 asked a question openstack image create returns 500

I'm trying to install glance service from https://docs.openstack.org/glance/rocky/install/install-ubuntu.html (here). the problem is in verify operation, when I enter the command openstack image create "cirros" \ --file cirros-0.4.0-x86_64-disk.img \ --disk-format qcow2 --container-format bare \ --public I get error

HTTPInternalServerError (HTTP 500)

with --debug flag here is the error part:

http://controller:9292 "GET /v2/schemas/image HTTP/1.1" 500 0
Request returned failure status 500.
HTTPInternalServerError (HTTP 500)

the output of glance-api.conf: [keystone_authtoken]

www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = glance
password = password

the output of /var/log/glance/glance-api.log:

2018-10-30 21:19:56.871 36305 WARNING keystoneauth.identity.generic.base [-] Failed to discover available identity versions when contacting http://controller:5000. Attempting to parse version from URL.: ConnectFailure: Unable to establish connection to http://controller:5000: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ffacfaca2d0>: Failed to establish a new connection: [Errno -2] No address found',))

based on the bug report on https://bugs.launchpad.net/charm-glance/+bug/1794637 (launchpad), if I add /v3 to uri/url, I get 503 error.

modified glance-api.conf: [keystone_authtoken]

www_authenticate_uri = http://controller:5000/v3
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = glance
password = password

the output of openstack image create "cirros" --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --container-format bare --public:

HTTPServiceUnavailable: 503 Service Unavailable: The server is currently unavailable. Please try again at a later time.: The Keystone service is temporarily unavailable. (HTTP 503)

with --debug:

Starting new HTTP connection (1): controller
http://controller:9292 "GET /v2/schemas/image HTTP/1.1" 503 260
Request returned failure status 503.

output of glance-api.log:

2018-10-30 21:27:21.718 38296 WARNING keystoneauth.identity.generic.base [-] Failed to discover available identity versions when contacting http://controller:5000/v3. Attempting to parse version from URL.: ConnectFailure: Unable to establish connection to http://controller:5000/v3: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: /v3 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0fbadaf710>: Failed to establish a new connection: [Errno -2] No address found',))
2018-10-30 21:27:21.727 38296 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://controller:5000/v3/auth/tokens: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0fbadaf610>: Failed to establish a new connection: [Errno -2] No address found',)): ConnectFailure: Unable to establish connection to http://controller:5000/v3/auth/tokens: HTTPConnectionPool(host='controller', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0fbadaf610>: Failed to establish a new connection: [Errno -2] No address found',))

I can ping controller by name without any problem.

I'm using ubuntu 18.04 and trying to install openstack rocky. How can ... (more)