Ask Your Question
0

can't boot vm with quantum nic net-id

asked 2013-07-16 07:53:57 -0500

Hello,

I'm using grizlly on debian with two nodes (one controler and compute, one network) I can't boot a vm with the argument -nic net-id, I have an 500 error :

nova --debug boot --flavor 1 --image d91481ec-d805-4760-84d4-314c430a4fa7 --nic net-id=79bbf447-13dd-485a-9afa-b41c9250cec9 vm1 I have an 500 error : INFO (connectionpool:202) Starting new HTTP connection (1): 172.16.2.243 DEBUG (connectionpool:296) "POST /v2/9a758caf17ac47fb8ca9eb000cb10515/servers HTTP/1.1" 500 128 RESP: [500] CaseInsensitiveDict({'date': 'Tue, 16 Jul 2013 06:48:44 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-f77dacfc-e1ee-4e66-aa50-77b7051b103f'}) RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:768) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-f77dacfc-e1ee-4e66-aa50-77b7051b103f) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:])) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 282, in do_boot server = cs.servers.create(boot_args, *boot_kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 600, in create *boot_kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/base.py", line 163, in _boot return_raw=return_raw, *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 145, in _create _resp, body = self.api.client.post(url, body=body) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 233, in post return self._cs_request(url, 'POST', *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217, in _cs_request *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199, in _time_request resp, body = self.request(url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 193, in request raise exceptions.from_response(resp, body, url, method) ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-f77dacfc-e1ee-4e66-aa50-77b7051b103f) ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-f77dacfc-e1ee-4e66-aa50-77b7051b103f)

in th nova-api logs :

2013-07-16 08:48:44.346 ERROR nova.api.openstack [req-f77dacfc-e1ee-4e66-aa50-77b7051b103f 5c510bf9ce944786927270cff150ed43 9a758caf17ac47fb8ca9eb000cb10515] Caught error: Timeout while waiting on RPC response. 2013-07-16 08:48:44.346 24303 TRACE nova.api.openstack Traceback (most recent call last): 2013-07-16 08:48:44.346 24303 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 81, in __call__ 2013-07-16 08:48:44.346 24303 TRACE nova.api.openstack return req.get_response(self.application) 2013-07-16 08:48:44.346 24303 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send 2013-07-16 08:48:44.346 24303 TRACE nova.api.openstack application, catch_exc_info=False) 2013-07-16 08:48:44.346 24303 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application 2013-07-16 08:48 ... (more)

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2013-07-21 15:28:05 -0500

willierjyt gravatar image

hi, i followed what you said, comment the configurations about keysone., but it still have the same problems.Below is my nova.conf and quantum.conf.

[quantum.conf]

cat /etc/quantum/quantum.conf | grep '^[^#]' [DEFAULT] debug = True state_path = /var/lib/quantum lock_path = $state_path/lock log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s log_date_format = %Y-%m-%d %H:%M:%S log_dir = /var/log/quantum log_file = quantum.log bind_host = 0.0.0.0 bind_port = 9696 core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2 api_paste_config = api-paste.ini allow_overlapping_ips = True rpc_backend = quantum.openstack.common.rpc.impl_kombu rpc_thread_pool_size = 64 rpc_conn_pool_size = 30 rpc_response_timeout = 60 rpc_cast_timeout = 30 control_exchange = quantum rabbit_host = localhost rabbit_password = stackqueue rabbit_port = 5672 rabbit_userid = guest rabbit_virtual_host = / notification_driver = quantum.openstack.common.notifier.rabbit_notifier default_notification_level = INFO notification_topics = notifications [QUOTAS] [DEFAULT_SERVICETYPE] [AGENT] [keystone_authtoken] nova.conf: $ cat /etc/nova/nova.conf | grep '^[^#]' [DEFAULT] libvirt_ovs_bridge=br-int libvirt_vif_type=ethernet libvirt_use_virtio_for_bridges=True libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver instance_usage_audit=True instance_usage_audit_period=hour notification_driver=nova.openstack.common.notifier.rpc_notifier compute_driver = libvirt.LibvirtDriver flat_interface = eth1 flat_network_bridge = br100 public_interface = eth0 glance_api_servers = 127.0.0.1:9292 rabbit_password = stackqueue rabbit_host = 127.0.0.1 rpc_backend = nova.openstack.common.rpc.impl_kombu ec2_dmz_host = 127.0.0.1 vncserver_proxyclient_address = 127.0.0.1 vncserver_listen = 127.0.0.1 vnc_enabled = True xvpvncproxy_base_url = http://127.0.0.1:6081/console novncproxy_base_url = http://127.0.0.1:6080/vnc_auto.html log_dir = /var/log/nova logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s %(instance)s logging_debug_format_suffix = from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [-%(color)s] %(instance)s%(color)s%(message)s logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s%(color)s] %(instance)s%(color)s%(message)s instances_path = /opt/stack/data/nova/instances lock_path = /opt/stack/data/nova state_path = /opt/stack/data/nova volume_api_class = nova.volume.cinder.API enabled_apis = ec2,osapi_compute,metadata instance_name_template = instance-%08x libvirt_cpu_mode = none libvirt_type = qemu sql_connection = mysql://root:supersecret@localhost/nova?charset=utf8 root_helper = nova-rootwrap /etc/nova/rootwrap.conf rootwrap_config = /etc/nova/rootwrap.conf my_ip = 127.0.0.1 osapi_compute_extension = nova.api.openstack.compute.contrib.standard_extensions s3_port = 3333 s3_host = 127.0.0.1 default_floating_pool = public fixed_range = 10.0.0.0/24 force_dhcp_release = True dhcpbridge_flagfile = /etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge compute_scheduler_driver = nova.scheduler.simple.SimpleScheduler rootwrap_config = /etc/nova/rootwrap.conf api_paste_config = /etc/nova/api-paste.ini allow_resize_to_same_host = True auth_strategy = keystone debug = True verbose = False [spice] enabled = False html5proxy_base_url = http://127.0.0.1:6082/spice_auto.html network_api_class=nova.network.quantumv2.api.API firewall_driver=nova.virt.firewall.NoopFirewallDriver security_group_api=quantum service_quantum_metadata_proxy = True quantum_metadata_proxy_shared_secret = helloOpenStack linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver

And is there is anything my configuration files.

Thanks

edit flag offensive delete link more
0

answered 2013-07-24 15:16:17 -0500

willierjyt gravatar image

hi, i just solve it by copied the nova.conf.sample to /etc/nova, and overwrite my own nova.conf, modified some values, and now works well. Thanks all the same.

2013/7/21 willier question232519@answers.launchpad.net

Question #232519 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+question/232519 (https://answers.launchpad.net/nova/+q...)

willier posted a new comment: hi, i followed what you said, comment the configurations about keysone., but it still have the same problems.Below is my nova.conf and quantum.conf.

[quantum.conf]

cat /etc/quantum/quantum.conf | grep '^[^#]' [DEFAULT] debug = True state_path = /var/lib/quantum lock_path = $state_path/lock log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s log_date_format = %Y-%m-%d %H:%M:%S log_dir = /var/log/quantum log_file = quantum.log bind_host = 0.0.0.0 bind_port = 9696 core_plugin = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPluginV2 api_paste_config = api-paste.ini allow_overlapping_ips = True rpc_backend = quantum.openstack.common.rpc.impl_kombu rpc_thread_pool_size = 64 rpc_conn_pool_size = 30 rpc_response_timeout = 60 rpc_cast_timeout = 30 control_exchange = quantum rabbit_host = localhost rabbit_password = stackqueue rabbit_port = 5672 rabbit_userid = guest rabbit_virtual_host = / notification_driver = quantum.openstack.common.notifier.rabbit_notifier default_notification_level = INFO notification_topics = notifications [QUOTAS] [DEFAULT_SERVICETYPE] [AGENT] [keystone_authtoken] nova.conf: $ cat /etc/nova/nova.conf | grep '^[^#]' [DEFAULT] libvirt_ovs_bridge=br-int libvirt_vif_type=ethernet libvirt_use_virtio_for_bridges=True libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver instance_usage_audit=True instance_usage_audit_period=hour notification_driver=nova.openstack.common.notifier.rpc_notifier compute_driver = libvirt.LibvirtDriver flat_interface = eth1 flat_network_bridge = br100 public_interface = eth0 glance_api_servers = 127.0.0.1:9292 rabbit_password = stackqueue rabbit_host = 127.0.0.1 rpc_backend = nova.openstack.common.rpc.impl_kombu ec2_dmz_host = 127.0.0.1 vncserver_proxyclient_address = 127.0.0.1 vncserver_listen = 127.0.0.1 vnc_enabled = True xvpvncproxy_base_url = http://127.0.0.1:6081/console novncproxy_base_url = http://127.0.0.1:6080/vnc_auto.html log_dir = /var/log/nova logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s %(instance)s logging_debug_format_suffix = from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [-%(color)s] %(instance)s%(color)s%(message)s logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s%(color)s] %(instance)s%(color)s%(message)s instances_path = /opt/stack/data/nova/instances lock_path = /opt/stack/data/nova state_path = /opt/stack/data/nova volume_api_class = nova.volume.cinder.API enabled_apis = ec2,osapi_compute,metadata instance_name_template = instance-%08x libvirt_cpu_mode = none libvirt_type = qemu sql_connection = mysql://root:supersecret@localhost/nova?charset=utf8 root_helper = nova-rootwrap /etc/nova/rootwrap.conf rootwrap_config = /etc/nova/rootwrap.conf my_ip = 127.0.0.1 osapi_compute_extension = nova.api.openstack.compute.contrib.standard_extensions s3_port = 3333 s3_host = 127.0.0.1 default_floating_pool = public fixed_range = 10.0.0.0/24 force_dhcp_release = True dhcpbridge_flagfile = /etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge compute_scheduler_driver = nova.scheduler.simple.SimpleScheduler rootwrap_config = /etc/nova/rootwrap.conf api_paste_config = /etc/nova/api-paste.ini allow_resize_to_same_host = True auth_strategy = keystone debug = True verbose = False [spice] enabled = False html5proxy_base_url = http://127.0.0.1:6082/spice_auto.html network_api_class=nova.network.quantumv2.api.API firewall_driver=nova.virt.firewall.NoopFirewallDriver security_group_api=quantum service_quantum_metadata_proxy = True quantum_metadata_proxy_shared_secret = helloOpenStack linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver

And is ...

(more)
edit flag offensive delete link more
0

answered 2013-07-21 04:22:44 -0500

willierjyt gravatar image

hi, i just encountered the same problem with you , did you solve it ?

edit flag offensive delete link more
0

answered 2013-07-21 10:11:13 -0500

yes, I solve it. In the nova.conf and quantum.conf, you don't have to put the keystone informations, these informations have just to be in the api's files. ( http://docs.openstack.org/grizzly/basic-install/apt/content/ (http://docs.openstack.org/grizzly/bas...) ) Also, I have passed to three nodes, one controler, one compute and one networking.

Hope, it will help you

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-16 07:53:57 -0500

Seen: 117 times

Last updated: Jul 24 '13