instance build

asked 2017-09-14 17:35:32 -0500

Costas gravatar image

Hello,

I have followed all steps about openstack newton on ubuntu 16.04 and now I am not able to launch the "provider" instance.

I get "BUILD" on dashboard.

Here is the instruction that I follow:

https://docs.openstack.org/newton/install-guide-ubuntu/launch-instance-provider.html (link text)

Any idea?

Thanks, Costas

edit retag flag offensive close merge delete

Comments

Hi Costas, Dashboard doesn't give too much fault information. You need to start checking log files. The link in your question explain how to create instance via CLI. If you use CLI, you can add "--debug" parameter in to the command to see what is going wrong while your command is running.

Senol Erdogan gravatar imageSenol Erdogan ( 2017-09-15 01:30:38 -0500 )edit

Hello Senol,

Could you see below the output of ifconfig after my try to create the instance and the --debug parameter.

Also I am not able to ping on step 4 from the instructions below. https://docs.openstack.org/newton/install-guide-ubuntu/launch-instance-networks-selfservice.html (https://docs.openstack.org/newton/ins...)

Thanks, Costas

Costas gravatar imageCostas ( 2017-09-16 18:49:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-16 18:46:35 -0500

Costas gravatar image

Hello Senol,

Thanks fro your reply!

Could you see below the out put of --debug parameter. I dont understand whats going wrong and I am not able to launch instance successfully.

root@Controller:~# openstack server create --flavor m1.nano --image cirros --nic net-id=b867329a-e7ec-4e61-99ad-abf3cd3ef5ff --security-group default --key-name mykey provider-instance --debug

START with options: [u'server', u'create', u'--flavor', u'm1.nano', u'--image', u'cirros', u'--nic', u'net-id=b867329a-e7ec-4e61-99ad-abf3cd3ef5ff', u'--security-group', u'default', u'--key-name', u'mykey', u'provider-instance', u'--debug'] options: Namespace(access_key='', access_secret='', access_token='', access_token_endpoint='', access_token_type='', aodh_endpoint='', auth_type='', auth_url='http://controller:5000/v3', cacert=None, cert='', client_id='', client_secret='', cloud='', code='', consumer_key='', consumer_secret='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, old_profile=None, openid_scope='', os_alarming_api_version='2', os_beta_command=False, os_clustering_api_version='1', os_compute_api_version='', os_container_infra_api_version='1', os_data_processing_api_version='1.1', os_data_processing_url='', os_database_api_version='1', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='2', os_key_manager_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_queues_api_version='2', os_volume_api_version='', os_workflow_api_version='2', passcode='', password='', profile=None, project_domain_id='', project_domain_name='Default', project_id='', project_name='demo', protocol='', redirect_uri='', region_name='', roles='', timing=False, token='', trust_id='', url='', user_domain_id='', user_domain_name='Default', user_id='', username='demo', verbose_level=3, verify=None) Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://controller:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'demo', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}} defaults: {u'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', u'container_infra_api_version': u'1', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://controller:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'demo', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'queues_api_version': '2', 'auth ... (more)

edit flag offensive delete link more

Comments

What compute logs say? Before the creation command;

  • On the controller node; tail -f /var/log/nova/nova-api.log /var/log/nova/nova-conductor.log /var/log/nova/nova-scheduler.log |grep ERROR

  • On the compute nodes; tail -f /var/log/nova/nova-compute.log |grep ERROR

Senol Erdogan gravatar imageSenol Erdogan ( 2017-09-17 13:52:10 -0500 )edit

Senol, root@Controller:~#tail -f /var/log/nova/nova-api.log | grep ERROR 2017-09-18 00:38:45.923 3406 ERROR nova.compute.api [req-64f30ae9-bd34-4c5f-bb50-21904f8d56e4 42926646ba9e44f78821909af39ac946 d680cfd5345a4406983fdf7bc70a8992 - default default] No cells are configured, unable to list instance

Costas gravatar imageCostas ( 2017-09-17 16:57:20 -0500 )edit

root@Controller:~# tail -f /var/log/nova/nova-scheduler.log | grep ERROR

root@Controller:~# tail -f /var/log/nova/nova-conductor.log | grep ERROR

root@Compute:~# tail -f /var/log/nova/nova-api.log | grep ERROR

Costas gravatar imageCostas ( 2017-09-17 16:57:34 -0500 )edit

Senol you are able to see the output of all.

keep in mind that the specific output is after the creation command. I will send you and the before creation command

Costas gravatar imageCostas ( 2017-09-17 17:00:52 -0500 )edit

The error that you see is related to the Placement service, which in your case is missing. However, this service is optional in Newton, so you can disable it if you want to save some headache by now. Take a look if in nova.conf you have anything uncommented under [placement].

unusualfor gravatar imageunusualfor ( 2017-09-17 17:29:11 -0500 )edit

Seems there is a confusion needs some corrections. On the Controller node "nova-api.log, nova-scheduler.log,nova-conductor.log " and on the Compute node, "nova-compute.log"

and, if the instance still remains in "BUILD" state, can you post the result of

nova show provider-instance
Senol Erdogan gravatar imageSenol Erdogan ( 2017-09-18 03:03:29 -0500 )edit

On the [placement] I have uncommented the below on controller and compute node:

os_region_name = openstack

Is it wrong?

Costas gravatar imageCostas ( 2017-09-18 12:39:15 -0500 )edit

I am not able to post the result from nova show provider-instance according to limit characters. Could you download the log files through wetranfer? https://we.tl/iMGHB34iYI

Costas gravatar imageCostas ( 2017-09-18 12:58:48 -0500 )edit

Regarding the placement, have you installed and configured nova-placement? Because if not, the presence of uncommented lines in that section triggers Nova to use the placement. Check it out carefully and try by commenting that and restarting your services.

unusualfor gravatar imageunusualfor ( 2017-09-18 14:01:56 -0500 )edit

However, from the logs it seems that you are running on Ocata. Could you try to assure that all your components have been installed from the correct newton repo?

unusualfor gravatar imageunusualfor ( 2017-09-18 14:03:05 -0500 )edit

I have no configured the nova-placement service, this is the line on nova.conf on section placement. Regarding the second. How I check if all the components are from newtron repository? Maybe I have something wrong :(

Costas gravatar imageCostas ( 2017-09-18 14:07:56 -0500 )edit

It is crucial for me to find the error ..

Costas gravatar imageCostas ( 2017-09-18 14:08:35 -0500 )edit

If I try to uninstall "nova-api nova-conductor nova-consoleauth \ nova-novncproxy nova-scheduler" with remove nove db & nova_api db and reinstall it again is it a good idea? Or my system will be crashed?

Costas gravatar imageCostas ( 2017-09-18 15:21:53 -0500 )edit

And reconfigure networking as well..???

Costas gravatar imageCostas ( 2017-09-18 16:25:41 -0500 )edit

Could you check please if all that attached are right? https://we.tl/ja4FQIWuli

Thanks for your efforts.

Costas gravatar imageCostas ( 2017-09-18 16:39:17 -0500 )edit

nova show provider-instance

/usr/lib/python2.7/dist-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored. warning.warn(msg)

Costas gravatar imageCostas ( 2017-09-19 12:13:40 -0500 )edit

I have installed add-apt-repository cloud-archive:newton and no the ocata repos

Costas gravatar imageCostas ( 2017-09-19 15:06:23 -0500 )edit

Check it with "nova-manage version". I told you about Ocata because of: 1) the warning, 2) the placement problem that it seems you are facing :) try it out

unusualfor gravatar imageunusualfor ( 2017-09-19 16:12:01 -0500 )edit

nova-manage version 15.0.6

Costas gravatar imageCostas ( 2017-09-19 16:41:00 -0500 )edit

I tried to comment out the parameter of placement on both controller & compute and after that I wasn't able to see the system information on dashboard.

Costas gravatar imageCostas ( 2017-09-19 16:43:05 -0500 )edit

If I will uninstall nova, delete the db and reinstall it again..is it a good idea or not? Also I would like to inform when I ran the "# su -s /bin/sh -c "nova-manage db sync" nova" I get the "warning:cell0 mapping not found - not syncing cell0".

Costas gravatar imageCostas ( 2017-09-19 17:12:59 -0500 )edit

Hello again, I think that i have forgot something serius. I don't have NAT rule on Controller and Compute nodes. Is that the problem? I don't know how to configure it properly. I am under network 172.16.10.0/24 and Controller-Compute are physical machines.

Costas gravatar imageCostas ( 2017-09-19 18:45:25 -0500 )edit

Searching I found this "Configure Ubuntu as PC Router with NAT Firewall and IPTABLES" on youtube but I use ubuntu 16.04 on each node. Could you give me instruction about it? Also could you help me via Skype? I appreciate you for your efforts.

Costas gravatar imageCostas ( 2017-09-19 18:50:05 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-09-14 17:35:32 -0500

Seen: 289 times

Last updated: Sep 16 '17