Failed to run quantum

Asked by Hua Zhang

hi,

      I want to play with quantum, but failed. I use quantum briage plugin. bellow are some infos:

      root@ubuntuserver:/etc/quantum# nova-manage service list
2012-04-27 11:06:25 DEBUG nova.utils [req-6fa7760e-5881-4f00-bc64-cc97ae0eb7bb None None] backend <module 'nova.db.sqlalchemy.api' from '/bak/openstack/nova/nova/db/sqlalchemy/api.pyc'> from (pid=3981) __get_backend /bak/openstack/nova/nova/utils.py:659
Binary Host Zone Status State Updated_At
nova-compute ubuntuserver nova enabled :-) 2012-04-27 03:06:26
nova-cert ubuntuserver nova enabled :-) 2012-04-27 03:06:25
nova-volume ubuntuserver nova enabled XXX 2012-04-18 10:07:24
nova-scheduler ubuntuserver nova enabled :-) 2012-04-27 03:06:24
nova-network ubuntuserver nova enabled :-) 2012-04-27 03:06:23
nova-consoleauth ubuntuserver nova enabled XXX 2012-04-18 10:07:28

root@ubuntuserver:/etc/quantum# ps -ef|grep quantum
root 2319 2080 0 10:57 pts/0 00:00:01 /usr/bin/python2.7 -u /usr/lib/eclipse/dropins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py --vm_type python --client 127.0.0.1 --port 50433 --file /bak/openstack/quantum/bin/quantum-server /etc/quantum/quantum.conf -v -d
root 2334 2080 0 10:57 pts/0 00:00:04 /usr/bin/python2.7 -u /usr/lib/eclipse/dropins/org.python.pydev.debug_2.5.0.2012040618/pysrc/pydevd.py --vm_type python --client 127.0.0.1 --port 55873 --file /bak/openstack/quantum/bin/quantum-linuxbridge-agent /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini -v

root@ubuntuserver:/etc/quantum# quantum list_nets default
Virtual Networks for Tenant default
 Network ID: c65ba222-8686-4ff2-a655-b1782c996ca7
root@ubuntuserver:/etc/quantum# glance -f index
ID Name Disk Format Container Format Size
------------------------------------ ------------------------------ -------------------- -------------------- --------------
f968ff93-e013-4a6b-b7c4-e9cd02c0d379 tty-ramdisk ari ari 5882349
68582208-4583-4a50-bf48-2fd007300835 tty ami ami 25165824
994b4b94-1876-45aa-9d06-8ed1ba995f93 tty-kernel aki aki 4404752
37ffd6d7-1c8e-4ef1-87d7-42e4bb068902 cirros-0.3.0-x86_64-uec ami ami 25165824
18eea6ef-edd4-4ef5-af63-1c6bacc37da2 cirros-0.3.0-x86_64-uec-ramdis ari ari 2254249
6800aef7-9e44-47a1-9612-b92f7e7d7537 cirros-0.3.0-x86_64-uec-kernel aki aki 4731440

root@ubuntuserver:/etc/quantum# nova --debug boot --image 68582208-4583-4a50-bf48-2fd007300835 --flavor 1 --nic net-id=c65ba222-8686-4ff2-a655-b1782c996ca7 test1
connect: (192.168.100.171, 35357)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.100.171:35357\r\nContent-Length: 103\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "password"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Content-Length: 2283
header: Date: Fri, 27 Apr 2012 03:03:15 GMT
connect: (192.168.100.171, 8774)
send: u'GET /v2/c84a73d4a6994abcb3c2b72bde3879bd/flavors/1 HTTP/1.1\r\nHost: 192.168.100.171:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 6b9dfce202794312bec96bb779e0b8b7\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-62d21e1d-b28d-4dd5-85d7-5f6de3a03042
header: Content-Type: application/json
header: Content-Length: 357
header: Date: Fri, 27 Apr 2012 03:03:15 GMT
send: u'GET /v2/c84a73d4a6994abcb3c2b72bde3879bd/images/68582208-4583-4a50-bf48-2fd007300835 HTTP/1.1\r\nHost: 192.168.100.171:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 6b9dfce202794312bec96bb779e0b8b7\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-acd214ac-ca06-4be1-ae50-17a5e9a3b458
header: Content-Type: application/json
header: Content-Length: 792
header: Date: Fri, 27 Apr 2012 03:03:15 GMT
send: u'POST /v2/c84a73d4a6994abcb3c2b72bde3879bd/servers HTTP/1.1\r\nHost: 192.168.100.171:8774\r\nContent-Length: 195\r\nx-auth-project-id: admin\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 6b9dfce202794312bec96bb779e0b8b7\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"server": {"name": "test1", "imageRef": "68582208-4583-4a50-bf48-2fd007300835", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "c65ba222-8686-4ff2-a655-b1782c996ca7"}]}}'
reply: 'HTTP/1.1 202 Accepted\r\n'
header: X-Compute-Request-Id: req-1ede5f99-9792-40a1-8bb3-2a109a467077
header: Location: http://192.168.100.171:8774/v2/c84a73d4a6994abcb3c2b72bde3879bd/servers/2d5cfb68-0bfd-454c-b3be-de1223efe04e
header: Content-Type: application/json
header: Content-Length: 404
header: Date: Fri, 27 Apr 2012 03:03:23 GMT
send: u'GET /v2/c84a73d4a6994abcb3c2b72bde3879bd/servers/2d5cfb68-0bfd-454c-b3be-de1223efe04e HTTP/1.1\r\nHost: 192.168.100.171:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 6b9dfce202794312bec96bb779e0b8b7\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-fd467412-252b-43e8-a1fe-51ce2429ae31
header: Content-Type: application/json
header: Content-Length: 1267
header: Date: Fri, 27 Apr 2012 03:03:25 GMT
send: u'GET /v2/c84a73d4a6994abcb3c2b72bde3879bd/flavors/1 HTTP/1.1\r\nHost: 192.168.100.171:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 6b9dfce202794312bec96bb779e0b8b7\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-e8c58426-c953-4d17-8a5f-f631f403d5b8
header: Content-Type: application/json
header: Content-Length: 357
header: Date: Fri, 27 Apr 2012 03:03:25 GMT
send: u'GET /v2/c84a73d4a6994abcb3c2b72bde3879bd/images/68582208-4583-4a50-bf48-2fd007300835 HTTP/1.1\r\nHost: 192.168.100.171:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 6b9dfce202794312bec96bb779e0b8b7\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-2992a01b-6ecb-4591-a332-48f1e88d752e
header: Content-Type: application/json
header: Content-Length: 792
header: Date: Fri, 27 Apr 2012 03:03:25 GMT
+-------------------------------------+--------------------------------------+
| Property | Value |
+-------------------------------------+--------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-SRV-ATTR:host | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| OS-EXT-SRV-ATTR:instance_name | instance-00000005 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | error |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | XhmbC2EaUJX2 |
| config_drive | |
| created | 2012-04-27T03:03:17Z |
| flavor | m1.tiny |
| hostId | |
| id | 2d5cfb68-0bfd-454c-b3be-de1223efe04e |
| image | tty |
| key_name | |
| metadata | {} |
| name | test1 |
| status | ERROR |
| tenant_id | c84a73d4a6994abcb3c2b72bde3879bd |
| updated | 2012-04-27T03:03:25Z |
| user_id | b15d74d3362f4b439683db93fd0ebb3e |
+-------------------------------------+--------------------------------------+

        related configs are as follow:
1) append following configs in /etc/nova/nova.conf

network_manager=nova.network.quantum.manager.QuantumManager
quantum_connection_host=192.168.100.171
quantum_connection_port=9696
libvirt_vif_type=ethernet
quantum_use_dhcp=true
libvirt_ovs_bridge=br-int
#libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtOpenVswitchDriver
#linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
libvirt_vif_driver=nova.virt.libvirt.vif.QuantumLinuxBridgeVIFDriver
linuxnet_interface_driver=nova.network.linux_net.QuantumLinuxBridgeInterfaceDriver

2) root@ubuntuserver:/etc/quantum# cat /etc/quantum/plugins.ini
[PLUGIN]
# Quantum plugin provider module
#provider = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPlugin
provider = quantum.plugins.linuxbridge.LinuxBridgePlugin.LinuxBridgePlugin

3) root@ubuntuserver:/etc/quantum# cat /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini
[VLANS]
vlan_start=1000
vlan_end=3000

[DATABASE]
# Use the following when running the tests for the in-memory DB
#connection = sqlite
# Uncomment the following for using the MySQL DB when actually running the plugin,
# also remove the earlier sqlite connection configuration
connection = mysql
name = quantum_linux_bridge
user = root
pass = password
host = localhost
# If you use a non-default port for the DB, change the following
port = 3306

[LINUX_BRIDGE]
#this is the interface connected to the switch on your Quantum network
physical_interface = eth0

[AGENT]
#agent's polling interval in seconds
polling_interval = 2
# Change to "sudo quantum-rootwrap" to limit commands that can be run
# as root.
root_helper = sudo

4) add one token line in /etc/quantum/quanum.conf
auth_admin_token = ADMIN

If you need more infos just ask please

Any Help is appreciated and Thank you in advance. :-)

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Hua Zhang
Solved:
Last query:
Last reply:
Revision history for this message
Hua Zhang (zhhuabj) said :
#1

thank all, now I have solved this problem.
the reason is memory of my virtual machine is too low, thus it can't meet the demand of scheduler/filters/ram_filter.py
so I append following line in /etc/nova/nova.conf
ram_allocation_ratio=3