← Back to team overview

openstack team mailing list archive

Re: Unable to successfully create instances with horizon

 

Hello Pranav,

 

Thank you for the response and the links. I setup a machine with ESXi for
testing everything out. You were right, the lack of VT support inside the
VMs was one issue, as well as me (foolishly) using an x86_64 cirros image.
Once I got the right cirros image I am able to spawn instances without an
issue. I am not however able to VNC to any of the instances, I am getting
the dreaded 1006 error code. I did quite a bit of googling on this error and
the issues were mostly reachability or misconfiguration of the nova.conf
file. Is there anything I can look at to troubleshoot this or is there any
messages I can post that would help fix this?

 

Not sure if I should start a new thread on this or not.

 

Thank you,

 

AJ Schroeder

 

From: Pranav [mailto:pps.pranav@xxxxxxxxx] 
Sent: Saturday, March 16, 2013 7:40 AM
To: ajschroeder@xxxxxxxxxxx
Cc: openstack@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Openstack] Unable to successfully create instances with
horizon

 

Hi,

I have a similar setup and I spawn Nova Instances inside OpenStack deployed
on VirtuaBox VM instances. Make sure that your VM's are configured to Qemu
and not KVM as KVM will not work inside VM's. Also check this out it has
complete steps to setup OpenStack on VM's.
https://github.com/dguitarbite/OpenStack-Folsom-VM-SandBox-Guide

Regards,
Pranav

 

On Sat, Mar 16, 2013 at 5:47 AM, AJ Schroeder <ajschroeder@xxxxxxxxxxx
<mailto:ajschroeder@xxxxxxxxxxx> > wrote:

Hello list,

 

I've been following along with these instructions to get an openstack
environment setup:
http://docs.openstack.org/folsom/basic-install/content/basic-install_intro.h
tml - I am a total newbie with openstack.

 

I am using virtualbox with Ubuntu 12.04 LTS guests and I have all three
nodes setup and operational. After some troubleshooting I was finally able
to create volumes in cinder, but now I can't successfully create any
instances. I use horizon and navigate through the process of setting up the
instance, and when I click launch the instance shows up in the list, but the
status is always "error". I'm not sure what to post that would be relevant,
but here are some log entries and output:

 

# -- nova-scheduler.log --#

2013-03-15 09:40:13 1475 DEBUG nova.openstack.common.rpc.amqp [-] received
{u'_context_roles': [u'Member', u'admin'], u'_context_request_id':
u'req-cccd3bed-8a37-4166-be5d-02f74221a2b6', u'_context_quota_class': None,
u'_context_project_name': u'demo', u'_context_service_catalog':
[{u'endpoints': [{u'adminURL':
u'http://192.168.1.1:8774/v2/ef28e5b6b9d143c4baa15b271440586a', u'region':
u'RegionOne', u'internalURL':
u'http://192.168.1.1:8774/v2/ef28e5b6b9d143c4baa15b271440586a', u'id':
u'110f0468149c42c88256f02a01aa54d0', u'publicURL':
u'http://192.168.1.1:8774/v2/ef28e5b6b9d143c4baa15b271440586a'}
<http://192.168.1.1:8774/v2/ef28e5b6b9d143c4baa15b271440586a'%7D> ],
u'endpoints_links': [], u'type': u'compute', u'name': u'nova'},
{u'endpoints': [{u'adminURL': u'http://192.168.1.1:9696/', u'region':
u'RegionOne', u'internalURL': u'http://192.168.1.1:9696/', u'id':
u'45faf59eb6c747daaae2ef16a68e7eef', u'publicURL':
u'http://192.168.1.1:9696/'} <http://192.168.1.1:9696/'%7D> ],
u'endpoints_links': [], u'type': u'network', u'name': u'quantum'},
{u'endpoints': [{u'adminURL': u'http://192.168.1.1:9292/v2', u'region':
u'RegionOne', u'internalURL': u'http://192.168.1.1:9292/v2', u'id':
u'16938ca8049446688ce57f7f98a71c32', u'publicURL':
u'http://192.168.1.1:9292/v2'} <http://192.168.1.1:9292/v2'%7D> ],
u'endpoints_links': [], u'type': u'image', u'name': u'glance'},
{u'endpoints': [{u'adminURL':
u'http://192.168.1.1:8776/v1/ef28e5b6b9d143c4baa15b271440586a', u'region':
u'RegionOne', u'internalURL':
u'http://192.168.1.1:8776/v1/ef28e5b6b9d143c4baa15b271440586a',
u'serviceName': u'cinder', u'id': u'f7a1448a776c4aa2b6a5843f38c33022',
u'publicURL':
u'http://192.168.1.1:8776/v1/ef28e5b6b9d143c4baa15b271440586a'}
<http://192.168.1.1:8776/v1/ef28e5b6b9d143c4baa15b271440586a'%7D> ],
u'endpoints_links': [], u'type': u'volume', u'name': u'cinder'},
{u'endpoints': [{u'adminURL': u'http://192.168.1.1:8773/services/Admin',
u'region': u'RegionOne', u'internalURL':
u'http://192.168.1.1:8773/services/Cloud', u'id':
u'0bb938dbb76d44ae94fa24998c3c8a94', u'publicURL':
u'http://192.168.1.1:8773/services/Cloud'}
<http://192.168.1.1:8773/services/Cloud'%7D> ], u'endpoints_links': [],
u'type': u'ec2', u'name': u'ec2'}, {u'endpoints': [{u'adminURL':
u'http://192.168.1.1:8080/v1', u'region': u'RegionOne', u'internalURL':
u'http://192.168.1.1:8080/v1/AUTH_ef28e5b6b9d143c4baa15b271440586a', u'id':
u'169ad8d8a930442ba189b626e1f574f7', u'publicURL':
u'http://192.168.1.1:8080/v1/AUTH_ef28e5b6b9d143c4baa15b271440586a'}
<http://192.168.1.1:8080/v1/AUTH_ef28e5b6b9d143c4baa15b271440586a'%7D> ],
u'endpoints_links': [], u'type': u'object-store', u'name': u'swift'},
{u'endpoints': [{u'adminURL': u'http://192.168.1.1:35357/v2.0', u'region':
u'RegionOne', u'internalURL': u'http://192.168.1.1:5000/v2.0', u'id':
u'457ce03d6aa5479e819cae931760ab62', u'publicURL':
u'http://192.168.1.1:5000/v2.0'} <http://192.168.1.1:5000/v2.0'%7D> ],
u'endpoints_links': [], u'type': u'identity', u'name': u'keystone'}],
u'_context_user_name': u'demo', u'_context_auth_token': '<SANITIZED>',
u'args': {u'request_spec': {u'block_device_mapping': [{u'volume_size': u'',
u'device_name': u'vda', u'delete_on_termination': False, u'volume_id':
u'b26596e4-f142-4692-9507-5bcdd44ea0ca'}], u'image': {u'status': u'active',
u'name': u'Ubuntu', u'deleted': False, u'container_format': u'bare',
u'created_at': u'2013-03-13T02:48:56.000000', u'disk_format': u'qcow2',
u'updated_at': u'2013-03-13T02:48:57.000000', u'properties': {},
u'min_disk': 0, u'min_ram': 0, u'checksum': None, u'owner': None,
u'is_public': True, u'deleted_at': None, u'id':
u'dd89f63f-4b2a-44c5-96f2-084e198dd9aa', u'size': 251068416},
u'instance_type': {u'memory_mb': 512, u'root_gb': 0, u'deleted_at': None,
u'name': u'm1.tiny', u'deleted': False, u'created_at': None,
u'ephemeral_gb': 0, u'updated_at': None, u'disabled': False, u'vcpus': 1,
u'extra_specs': {}, u'swap': 0, u'rxtx_factor': 1.0, u'is_public': True,
u'flavorid': u'1', u'vcpu_weight': None, u'id': 2}, u'instance_properties':
{u'vm_state': u'building', u'availability_zone': None, u'ramdisk_id': u'',
u'instance_type_id': 2, u'user_data': None, u'vm_mode': None,
u'reservation_id': u'r-q3z7lbct', u'user_id':
u'f02218d004cc4f978be0720a55cbb2e7', u'display_description': u'demo',
u'key_data': u'ssh-rsa

AAAAB3NzaC1yc2EAAAADAQABAAAAgQDfL7KX8Sc3J2qpM4Rqc4vvGxj0bo/eGTtNOKQX4IpPcaJB
dvFjy8Zhayr+9wT49ygYelvqFQAdeCwAvsRmmKFffGeXf/BmcfoIiIVjpU4fFgnflenfGPu5seK5
v+SKbHnzURZd8MDie51OjvieAjEwd3KxGKJRdG/rSDd8DvpfZQ== Generated by Nova\n',
u'power_state': 0, u'progress': 0, u'project_id':
u'ef28e5b6b9d143c4baa15b271440586a', u'config_drive': u'', u'ephemeral_gb':
0, u'access_ip_v6': None, u'access_ip_v4': None, u'kernel_id': u'',
u'key_name': u'demo_keypair', u'display_name': u'demo', u'config_drive_id':
u'', u'architecture': None, u'root_gb': 0, u'locked': False, u'launch_time':
u'2013-03-15T14:40:13Z', u'memory_mb': 512, u'vcpus': 1, u'image_ref':
u'dd89f63f-4b2a-44c5-96f2-084e198dd9aa', u'root_device_name': None,
u'auto_disk_config': None, u'os_type': None, u'metadata': {}},
u'security_group': [u'default'], u'instance_uuids':
[u'5bbee84b-7cdd-4aad-8793-da33e4dbd30a']}, u'is_first_time': True,
u'filter_properties': {u'scheduler_hints': {}}, u'admin_password':
'<SANITIZED>', u'injected_files': [], u'requested_networks': None},
u'_context_instance_lock_checked': False, u'_context_is_admin': False,
u'version': u'2.0', u'_context_project_id':
u'ef28e5b6b9d143c4baa15b271440586a', u'_context_timestamp':
u'2013-03-15T14:40:13.078447', u'_context_read_deleted': u'no',
u'_context_user_id': u'f02218d004cc4f978be0720a55cbb2e7', u'method':
u'run_instance', u'_context_remote_address': u'192.168.1.1'} _safe_log
/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/common.py:195

2013-03-15 09:40:13 1475 DEBUG nova.openstack.common.rpc.amqp [-] unpacked
context: {'project_name': u'demo', 'user_id':
u'f02218d004cc4f978be0720a55cbb2e7', 'roles': [u'Member', u'admin'],
'timestamp': u'2013-03-15T14:40:13.078447', 'auth_token': '<SANITIZED>',
'remote_address': u'192.168.1.1', 'quota_class': None, 'is_admin': False,
'service_catalog': [{u'endpoints_links': [], u'endpoints': [{u'adminURL':
u'http://192.168.1.1:8774/v2/ef28e5b6b9d143c4baa15b271440586a', u'region':
u'RegionOne', u'publicURL':
u'http://192.168.1.1:8774/v2/ef28e5b6b9d143c4baa15b271440586a',
u'internalURL':
u'http://192.168.1.1:8774/v2/ef28e5b6b9d143c4baa15b271440586a', u'id':
u'110f0468149c42c88256f02a01aa54d0'}], u'type': u'compute', u'name':
u'nova'}, {u'endpoints_links': [], u'endpoints': [{u'adminURL':
u'http://192.168.1.1:9696/', u'region': u'RegionOne', u'publicURL':
u'http://192.168.1.1:9696/', u'internalURL': u'http://192.168.1.1:9696/',
u'id': u'45faf59eb6c747daaae2ef16a68e7eef'}], u'type': u'network', u'name':
u'quantum'}, {u'endpoints_links': [], u'endpoints': [{u'adminURL':
u'http://192.168.1.1:9292/v2', u'region': u'RegionOne', u'publicURL':
u'http://192.168.1.1:9292/v2', u'internalURL':
u'http://192.168.1.1:9292/v2', u'id': u'16938ca8049446688ce57f7f98a71c32'}],
u'type': u'image', u'name': u'glance'}, {u'endpoints_links': [],
u'endpoints': [{u'adminURL':
u'http://192.168.1.1:8776/v1/ef28e5b6b9d143c4baa15b271440586a', u'region':
u'RegionOne', u'id': u'f7a1448a776c4aa2b6a5843f38c33022', u'serviceName':
u'cinder', u'internalURL':
u'http://192.168.1.1:8776/v1/ef28e5b6b9d143c4baa15b271440586a',
u'publicURL':
u'http://192.168.1.1:8776/v1/ef28e5b6b9d143c4baa15b271440586a'}
<http://192.168.1.1:8776/v1/ef28e5b6b9d143c4baa15b271440586a'%7D> ],
u'type': u'volume', u'name': u'cinder'}, {u'endpoints_links': [],
u'endpoints': [{u'adminURL': u'http://192.168.1.1:8773/services/Admin',
u'region': u'RegionOne', u'publicURL':
u'http://192.168.1.1:8773/services/Cloud', u'internalURL':
u'http://192.168.1.1:8773/services/Cloud', u'id':
u'0bb938dbb76d44ae94fa24998c3c8a94'}], u'type': u'ec2', u'name': u'ec2'},
{u'endpoints_links': [], u'endpoints': [{u'adminURL':
u'http://192.168.1.1:8080/v1', u'region': u'RegionOne', u'publicURL':
u'http://192.168.1.1:8080/v1/AUTH_ef28e5b6b9d143c4baa15b271440586a',
u'internalURL':
u'http://192.168.1.1:8080/v1/AUTH_ef28e5b6b9d143c4baa15b271440586a', u'id':
u'169ad8d8a930442ba189b626e1f574f7'}], u'type': u'object-store', u'name':
u'swift'}, {u'endpoints_links': [], u'endpoints': [{u'adminURL':
u'http://192.168.1.1:35357/v2.0', u'region': u'RegionOne', u'publicURL':
u'http://192.168.1.1:5000/v2.0', u'internalURL':
u'http://192.168.1.1:5000/v2.0', u'id':
u'457ce03d6aa5479e819cae931760ab62'}], u'type': u'identity', u'name':
u'keystone'}], 'request_id': u'req-cccd3bed-8a37-4166-be5d-02f74221a2b6',
'instance_lock_checked': False, 'project_id':
u'ef28e5b6b9d143c4baa15b271440586a', 'user_name': u'demo', 'read_deleted':
u'no'} _safe_log
/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/common.py:195

2013-03-15 09:40:13 DEBUG nova.scheduler.filter_scheduler
[req-cccd3bed-8a37-4166-be5d-02f74221a2b6 f02218d004cc4f978be0720a55cbb2e7
ef28e5b6b9d143c4baa15b271440586a] Attempting to build 1 instance(s)
schedule_run_instance
/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py:66

2013-03-15 09:40:13 WARNING nova.scheduler.driver
[req-cccd3bed-8a37-4166-be5d-02f74221a2b6 f02218d004cc4f978be0720a55cbb2e7
ef28e5b6b9d143c4baa15b271440586a] [instance:
5bbee84b-7cdd-4aad-8793-da33e4dbd30a] Setting instance to ERROR state.

2013-03-15 09:40:13 1475 DEBUG nova.manager [-] Running periodic task
SchedulerManager._expire_reservations periodic_tasks
/usr/lib/python2.7/dist-packages/nova/manager.py:172

 

# -- Services running happily

 

root@controller:~# nova-manage service list

2013-03-15 09:45:11 DEBUG nova.utils
[req-c800f9e7-9e70-475f-a2ce-a63e45f62a94 None None] backend <module
'nova.db.sqlalchemy.api' from
'/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> __get_backend
/usr/lib/python2.7/dist-packages/nova/utils.py:506

Binary           Host                                 Zone
Status     State Updated_At

nova-consoleauth controller                           nova
enabled    :-)   2013-03-15 14:45:08

nova-cert        controller                           nova
enabled    :-)   2013-03-15 14:45:08

nova-scheduler   controller                           nova
enabled    :-)   2013-03-15 14:45:08

 

Here is my nova.conf:

 

[DEFAULT]

 

# MySQL Connection #

sql_connection=mysql://nova:password@192.168.1.1/nova
<http://nova:password@192.168.1.1/nova> 

 

# nova-scheduler #

rabbit_password=password

scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler

 

# nova-api #

cc_host=192.168.1.1

auth_strategy=keystone

s3_host=192.168.1.1

ec2_host=192.168.1.1

nova_url=http://192.168.1.1:8774/v1.1/

ec2_url=http://192.168.1.1:8773/services/Cloud

keystone_ec2_url=http://192.168.1.1:5000/v2.0/ectokens

api_paste_config=/etc/nova/api-paste.ini

allow_admin_api=true

use_deprecated_auth=false

ec2_private_dns_show_ip=True

dmz_cidr=169.254.169.254/32 <http://169.254.169.254/32> 

ec2_dmz_host=192.168.1.1

metadata_host=192.168.1.1

metadata_listen=0.0.0.0

enabled_apis=ec2,osapi_compute,metadata

 

# Networking #

network_api_class=nova.network.quantumv2.api.API

quantum_url=http://192.168.1.1:9696

quantum_auth_strategy=keystone

quantum_admin_tenant_name=service

quantum_admin_username=quantum

quantum_admin_password=password

quantum_admin_auth_url=http://192.168.1.1:35357/v2.0

bvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver

linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver

firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver

 

# Cinder #

volume_api_class=nova.volume.cinder.API

 

# Glance #

glance_api_servers=192.168.1.1:9292 <http://192.168.1.1:9292> 

image_service=nova.image.glance.GlanceImageService

 

# novnc #

novnc_enable=true

novncproxy_base_url=http://192.168.0.150:6080/vnc_auto.html

vncserver_proxyclient_address=192.168.1.1

vncserver_listen=0.0.0.0

 

# Misc #

logdir=/var/log/nova

state_path=/var/lib/nova

lock_path=/var/lock/nova

root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf

verbose=true

 

dhcpbridge_flagfile=/etc/nova/nova.conf

dhcpbridge=/usr/bin/nova-dhcpbridge

force_dhcp_release=True

iscsi_helper=tgtadm

libvirt_use_virtio_for_bridges=True

connection_type=libvirt

verbose=True

ec2_private_dns_show_ip=True

api_paste_config=/etc/nova/api-paste.ini

volumes_path=/var/lib/nova/volumes

 

# ----------------------------------------------------------------

 

Any help that anyone can give on this would be much appreciated.

 

Thanks,

 

AJ Schroeder


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
<mailto:openstack@xxxxxxxxxxxxxxxxxxx> 
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

 


Follow ups

References