[Openstack-operators] Problem starting instance
Salman Toor
salman.toor at it.uu.se
Wed Sep 12 17:05:57 UTC 2012
Hi again,
Here is with the debug flag ....
something fails ...
---------------------------------
connect: (localhost, 8774)
connect fail: (u'localhost', 8774)
----------------------------------
Any help will be highly appriciated.
Complete output.
---------------
-bash-4.1$ nova --debug boot --flavor 1 --image
53cde44f-94e8-4210-9c65-4dcdd5a3edc9 --key_name mykey --security_group
default si
connect: (188.184.20.197, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost:
188.184.20.197:5000\r\nContent-Length: 116\r\ncontent-type:
application/json\r\naccept-encoding: gzip, deflate\r\naccept:
application/json\r\nuser-agent: python-novaclient\r\n\r\n'
send: '{"auth": {"tenantName": "openstackDema", "passwordCredentials":
{"username": "adminUser", "password": "adminUser"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Content-Length: 2577
header: Date: Wed, 12 Sep 2012 16:59:33 GMT
connect: (localhost, 8774)
connect fail: (u'localhost', 8774)
connect: (localhost, 8774)
send: u'GET /v1.1/780651371d8c4ca790dad684aa288ef9/flavors/1
HTTP/1.1\r\nHost: localhost:8774\r\nx-auth-project-id:
openstackDema\r\nx-auth-token:
e2cbf30f6daa4c4da292e008c403e295\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-dc812b64-9e2c-435c-bda8-6d5f7004e561
header: Content-Type: application/json
header: Content-Length: 347
header: Date: Wed, 12 Sep 2012 16:59:33 GMT
send: u'GET
/v1.1/780651371d8c4ca790dad684aa288ef9/images/53cde44f-94e8-4210-9c65-4dcdd5a3edc9 HTTP/1.1\r\nHost: localhost:8774\r\nx-auth-project-id: openstackDema\r\nx-auth-token: e2cbf30f6daa4c4da292e008c403e295\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-87acf879-380d-4e37-a4b7-811d0a2dccba
header: Content-Type: application/json
header: Content-Length: 692
header: Date: Wed, 12 Sep 2012 16:59:34 GMT
send: u'GET
/v1.1/780651371d8c4ca790dad684aa288ef9/images/53cde44f-94e8-4210-9c65-4dcdd5a3edc9 HTTP/1.1\r\nHost: localhost:8774\r\nx-auth-project-id: openstackDema\r\nx-auth-token: e2cbf30f6daa4c4da292e008c403e295\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-2a1fb112-9e41-4b99-a73b-5dfbb774b11c
header: Content-Type: application/json
header: Content-Length: 692
header: Date: Wed, 12 Sep 2012 16:59:34 GMT
send: u'GET /v1.1/780651371d8c4ca790dad684aa288ef9/flavors/1
HTTP/1.1\r\nHost: localhost:8774\r\nx-auth-project-id:
openstackDema\r\nx-auth-token:
e2cbf30f6daa4c4da292e008c403e295\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-ae77ef0c-ac26-4d31-9561-65b898cd0f3d
header: Content-Type: application/json
header: Content-Length: 347
header: Date: Wed, 12 Sep 2012 16:59:34 GMT
send: u'POST /v1.1/780651371d8c4ca790dad684aa288ef9/servers
HTTP/1.1\r\nHost: localhost:8774\r\nContent-Length:
191\r\nx-auth-project-id: openstackDema\r\naccept-encoding: gzip,
deflate\r\naccept: application/json\r\nx-auth-token:
e2cbf30f6daa4c4da292e008c403e295\r\nuser-agent:
python-novaclient\r\ncontent-type: application/json\r\n\r\n'
send: '{"server": {"name": "si", "imageRef":
"53cde44f-94e8-4210-9c65-4dcdd5a3edc9", "key_name": "mykey",
"flavorRef": "1", "max_count": 1, "min_count": 1, "security_groups":
[{"name": "default"}]}}'
reply: 'HTTP/1.1 202 Accepted\r\n'
header: X-Compute-Request-Id: req-656d6da3-ea32-4095-b6d1-8230cec3d52e
header: Location:
http://localhost:8774/v1.1/780651371d8c4ca790dad684aa288ef9/servers/0e9c58be-c1ea-492f-9626-97792d29e251
header: Content-Type: application/json
header: Content-Length: 394
header: Date: Wed, 12 Sep 2012 16:59:35 GMT
send: u'GET
/v1.1/780651371d8c4ca790dad684aa288ef9/servers/0e9c58be-c1ea-492f-9626-97792d29e251 HTTP/1.1\r\nHost: localhost:8774\r\nx-auth-project-id: openstackDema\r\nx-auth-token: e2cbf30f6daa4c4da292e008c403e295\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-608b718e-9f84-4bd9-b080-455510975c29
header: Content-Type: application/json
header: Content-Length: 1247
header: Date: Wed, 12 Sep 2012 16:59:35 GMT
send: u'GET /v1.1/780651371d8c4ca790dad684aa288ef9/flavors/1
HTTP/1.1\r\nHost: localhost:8774\r\nx-auth-project-id:
openstackDema\r\nx-auth-token:
e2cbf30f6daa4c4da292e008c403e295\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-f2851a32-37e2-47ed-bc04-9baa39b1fc7f
header: Content-Type: application/json
header: Content-Length: 347
header: Date: Wed, 12 Sep 2012 16:59:35 GMT
send: u'GET
/v1.1/780651371d8c4ca790dad684aa288ef9/images/53cde44f-94e8-4210-9c65-4dcdd5a3edc9 HTTP/1.1\r\nHost: localhost:8774\r\nx-auth-project-id: openstackDema\r\nx-auth-token: e2cbf30f6daa4c4da292e008c403e295\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-597b51c6-1018-4b13-9410-6d734449b309
header: Content-Type: application/json
header: Content-Length: 692
header: Date: Wed, 12 Sep 2012 16:59:35 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-00000007 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | error |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | zWJKmT6eo4Lz |
| config_drive | |
| created | 2012-09-12T16:59:34Z |
| flavor | m1.tiny |
| hostId | |
| id | 0e9c58be-c1ea-492f-9626-97792d29e251 |
| image | cirros-0.3.0-x86_64 |
| key_name | mykey |
| metadata | {} |
| name | si |
| status | ERROR |
| tenant_id | 780651371d8c4ca790dad684aa288ef9 |
| updated | 2012-09-12T16:59:35Z |
| user_id | 2efa015647d948239d143286f565c5a8 |
+-------------------------------------+--------------------------------------+
Regards..
Salman.
Quoting Salman Toor <salman.toor at it.uu.se>:
> Hi again,
>
> Sorry forget to show the output of "nova show"
>
> -bash-4.1$ nova show ci
> +-------------------------------------+--------------------------------------+
> | 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 |
> |
> | config_drive |
> |
> | created | 2012-09-12T09:07:51Z
> |
> | flavor | m1.tiny
> |
> | hostId |
> |
> | id |
> 0adb9df7-06b0-42ce-aa60-0fe0a78c4739 |
> | image | cirros-0.3.0-x86_64
> |
> | key_name | mykey
> |
> | metadata | {}
> |
> | name | ci
> |
> | status | ERROR
> |
> | tenant_id |
> 780651371d8c4ca790dad684aa288ef9 |
> | updated | 2012-09-12T09:07:51Z
> |
> | user_id |
> 2efa015647d948239d143286f565c5a8 |
> +-------------------------------------+--------------------------------------+
> -bash-4.1$ nova show cirros
> +-------------------------------------+---------------------------------------------------------------------------------+
> | Property |
> Value |
> +-------------------------------------+---------------------------------------------------------------------------------+
> | OS-DCF:diskConfig | MANUAL
> |
> | OS-EXT-SRV-ATTR:host | openstack-1
> |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | None
> |
> | OS-EXT-SRV-ATTR:instance_name | instance-00000002
> |
> | OS-EXT-STS:power_state | 0
> |
> | OS-EXT-STS:task_state | deleting
> |
> | OS-EXT-STS:vm_state | error
> |
> | accessIPv4 |
> |
> | accessIPv6 |
> |
> | config_drive |
> |
> | created | 2012-09-12T08:15:11Z
> |
> | fault | {u'message': u'RemoteError',
> u'code': 500, u'created': u'2012-09-12T08:30:09Z'} |
> | flavor | m1.tiny
> |
> | hostId |
> 441d32ceb69d1013c4e13de86a9dd1717ab0b21787c66b35513fe92a
> |
> | id |
> 5b83ac61-60ed-4eea-9b25-0215e5297996
> |
> | image | cirros-0.3.0-x86_64
> |
> | key_name | mykey
> |
> | metadata | {}
> |
> | name | cirros
> |
> | private network | 192.168.100.2
> |
> | status | ERROR
> |
> | tenant_id |
> 780651371d8c4ca790dad684aa288ef9
> |
> | updated | 2012-09-12T08:18:41Z
> |
> | user_id |
> 2efa015647d948239d143286f565c5a8
> |
> +-------------------------------------+---------------------------------------------------------------------------------+
>
> I hope all these information will be helpful to identify the problem.
>
> Regards..
> Salman
>
>
> Quoting Salman Toor <salman.toor at it.uu.se>:
>
>> Hi,
>>
>> I am following the Essex deployment guide and everything works fine
>> till "Registering VM Images". But now I am struck when running a
>> new instance..
>>
>> Following are the status of my machine.
>>
>> -bash-4.1$ sudo nova-manage service list
>>
>> 2012-09-12 11:38:31 DEBUG nova.utils
>> [req-0c734cd1-f54c-42a6-a505-09fc2e8b9f67 None None] backend
>> <module 'nova.db.sqlalchemy.api' from
>> '/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.pyc'> from
>> (pid=25008) __get_backend
>> /usr/lib/python2.6/site-packages/nova/utils.py:659
>> 2012-09-12 11:38:31 WARNING nova.utils
>> [req-0c734cd1-f54c-42a6-a505-09fc2e8b9f67 None None]
>> /usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py:639: SADeprecationWarning: The 'listeners' argument to Pool (and create_engine()) is deprecated. Use
>> event.listen().
>> Pool.__init__(self, creator, **kw)
>>
>> 2012-09-12 11:38:31 WARNING nova.utils
>> [req-0c734cd1-f54c-42a6-a505-09fc2e8b9f67 None None]
>> /usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.3-py2.6-linux-x86_64.egg/sqlalchemy/pool.py:145: SADeprecationWarning: Pool.add_listener is deprecated. Use
>> event.listen()
>> self.add_listener(l)
>>
>> Binary Host Zone
>> Status State Updated_At
>> nova-compute openstack-1 nova
>> enabled :-) 2012-09-12 09:38:25
>> nova-scheduler openstack-1 nova
>> enabled :-) 2012-09-12 09:38:27
>> nova-network openstack-1 nova
>> enabled :-) 2012-09-12 09:38:23
>> nova-cert openstack-1 nova
>> enabled :-) 2012-09-12 09:38:24
>> nova-consoleauth openstack-1 nova
>> enabled :-) 2012-09-12 09:38:23
>> nova-volume openstack-1 nova
>> enabled :-) 2012-09-12 09:38:30
>>
>> All the services are running.
>>
>> -bash-4.1$ nova image-list
>> +--------------------------------------+---------------------+--------+--------+
>> | ID | Name |
>> Status | Server |
>> +--------------------------------------+---------------------+--------+--------+
>> | 29e40d96-a53b-4493-820f-3049c75fec8f | tty-linux |
>> ACTIVE | |
>> | 53cde44f-94e8-4210-9c65-4dcdd5a3edc9 | cirros-0.3.0-x86_64 |
>> ACTIVE | |
>> | 929c9027-73ec-40d2-8ac4-6431f07c18a8 | tty-linux-ramdisk |
>> ACTIVE | |
>> | e909ca49-32b8-4f18-a1ab-840e0e9f04b8 | tty-linux-kernel |
>> ACTIVE | |
>> +--------------------------------------+---------------------+--------+--------+
>>
>> -bash-4.1$ nova flavor-list
>> +----+-----------+-----------+------+-----------+------+-------+-------------+
>> | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs |
>> RXTX_Factor |
>> +----+-----------+-----------+------+-----------+------+-------+-------------+
>> | 1 | m1.tiny | 512 | 0 | 0 | | 1 |
>> 1.0 |
>> | 2 | m1.small | 2048 | 10 | 20 | | 1 |
>> 1.0 |
>> | 3 | m1.medium | 4096 | 10 | 40 | | 2 |
>> 1.0 |
>> | 4 | m1.large | 8192 | 10 | 80 | | 4 |
>> 1.0 |
>> | 5 | m1.xlarge | 16384 | 10 | 160 | | 8 |
>> 1.0 |
>> +----+-----------+-----------+------+-----------+------+-------+-------------+
>>
>> But when I try to boot it gives following message
>>
>> -bash-4.1$ nova boot --flavor 2 --image
>> 53cde44f-94e8-4210-9c65-4dcdd5a3edc9 --key_name mykey
>> --security_group default ci
>> +-------------------------------------+--------------------------------------+
>> | 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-00000004
>> |
>> | OS-EXT-STS:power_state | 0
>> |
>> | OS-EXT-STS:task_state | scheduling
>> |
>> | OS-EXT-STS:vm_state | error
>> |
>> | accessIPv4 |
>> |
>> | accessIPv6 |
>> |
>> | adminPass | 27kGe7vA6R9Q
>> |
>> | config_drive |
>> |
>> | created | 2012-09-12T08:47:54Z
>> |
>> | flavor | m1.small
>> |
>> | hostId |
>> |
>> | id |
>> 4597a583-9510-439b-b675-9f6d933e07f5 |
>> | image | cirros-0.3.0-x86_64
>> |
>> | key_name | mykey
>> |
>> | metadata | {}
>> |
>> | name | ci
>> |
>> | progress | 0
>> |
>> | status | BUILD
>> |
>> | tenant_id |
>> 780651371d8c4ca790dad684aa288ef9 |
>> | updated | 2012-09-12T08:47:54Z
>> |
>> | user_id |
>> 2efa015647d948239d143286f565c5a8 |
>> +-------------------------------------+--------------------------------------+
>>
>> -bash-4.1$ nova list
>> +--------------------------------------+--------+--------+-----------------------+
>> | ID | Name | Status |
>> Networks |
>> +--------------------------------------+--------+--------+-----------------------+
>> | 0adb9df7-06b0-42ce-aa60-0fe0a78c4739 | ci | ERROR |
>> |
>> | 5b83ac61-60ed-4eea-9b25-0215e5297996 | cirros | ERROR |
>> private=192.168.100.2 |
>> +--------------------------------------+--------+--------+-----------------------+
>>
>>
>> So no network for "ci". Previously I have tried "cirros" with the
>> same options it gets the network but did work.
>>
>> Also I can delete ci but somwhow cirros is struck. I cannot delete it.
>>
>> -bash-4.1$ nova console-log ci
>> ERROR: The server has either erred or is incapable of performing
>> the requested operation. (HTTP 500)
>> -bash-4.1$ nova console-log cirros
>> ERROR: The resource could not be found. (HTTP 404)
>>
>>
>> -bash-4.1$ sudo less /var/log/nova/network.log | grep error
>>
>> 2012-09-12 10:15:14 ERROR nova.rpc.amqp
>> [req-7e47db6b-2bb4-4013-adfc-103c1b749af6
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> Returning exception Unexpected error while running command.
>> 2012-09-12 10:15:14 ERROR nova.rpc.amqp
>> [req-7e47db6b-2bb4-4013-adfc-103c1b749af6
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> ['Traceback (most recent call last):\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 253, in
>> _process_data\n rval = node_func(context=ctxt, **node_args)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/network/manager.py",
>> line 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 320, in allocate_for_instance\n **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 906, in allocate_for_instance\n
>> requested_networks=requested_networks)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 213, in _allocate_fixed_ips\n vpn=vpn, address=address)\n', '
>> File "/usr/lib/python2.6/site-packages/nova/network/manager.py",
>> line 1197, in allocate_fixed_ip\n
>> self._setup_network_on_host(context, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1714, in _setup_network_on_host\n
>> self.driver.update_dhcp(context, dev, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 644, in update_dhcp\n restart_dhcp(context, dev,
>> network_ref)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/utils.py", line 946, in
>> inner\n retval = f(*args, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 721, in restart_dhcp\n _execute(*cmd, run_as_root=True)\n', '
>> File "/usr/lib/python2.6/site-packages/nova/network/linux_net.py",
>> line 813, in _execute\n return utils.execute(*cmd, **kwargs)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/utils.py", line 243,
>> in execute\n cmd=\' \'.join(cmd))\n', "ProcessExecutionError:
>> Unexpected error while running command.\nCommand: sudo
>> FLAGFILE=/etc/nova/nova.conf NETWORK_ID=1 dnsmasq --strict-order
>> --bind-interfaces --conf-file= --domain=novalocal
>> --pid-file=/var/lib/nova/networks/nova-br100.pid
>> --listen-address=192.168.100.3 --except-interface=lo
>> --dhcp-range=192.168.100.2,static,120s --dhcp-lease-max=256
>> --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf
>> --dhcp-script=/usr/lib/python2.6/site-packages/bin/nova-dhcpbridge
>> --leasefile-ro\nExit code: 3\nStdout: ''\nStderr: 'sh:
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n\\ndnsmasq: cannot run lease-init script
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n'\n"]
>> 2012-09-12 10:18:41 TRACE nova.rpc.amqp ProcessExecutionError:
>> Unexpected error while running command.
>> 2012-09-12 10:18:41 ERROR nova.rpc.amqp
>> [req-7e3e29cc-cdab-4f1d-8b41-45f5ba0742d5
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> Returning exception Unexpected error while running command.
>> 2012-09-12 10:18:41 ERROR nova.rpc.amqp
>> [req-7e3e29cc-cdab-4f1d-8b41-45f5ba0742d5
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> ['Traceback (most recent call last):\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 253, in
>> _process_data\n rval = node_func(context=ctxt, **node_args)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/network/manager.py",
>> line 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 379, in deallocate_for_instance\n super(FloatingIP,
>> self).deallocate_for_instance(context, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 934, in deallocate_for_instance\n **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 247, in deallocate_fixed_ip\n address)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1215, in deallocate_fixed_ip\n
>> self._teardown_network_on_host(context, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1725, in _teardown_network_on_host\n
>> self.driver.update_dhcp(context, dev, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 644, in update_dhcp\n restart_dhcp(context, dev,
>> network_ref)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/utils.py", line 946, in
>> inner\n retval = f(*args, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 721, in restart_dhcp\n _execute(*cmd, run_as_root=True)\n', '
>> File "/usr/lib/python2.6/site-packages/nova/network/linux_net.py",
>> line 813, in _execute\n return utils.execute(*cmd, **kwargs)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/utils.py", line 243,
>> in execute\n cmd=\' \'.join(cmd))\n', "ProcessExecutionError:
>> Unexpected error while running command.\nCommand: sudo
>> FLAGFILE=/etc/nova/nova.conf NETWORK_ID=1 dnsmasq --strict-order
>> --bind-interfaces --conf-file= --domain=novalocal
>> --pid-file=/var/lib/nova/networks/nova-br100.pid
>> --listen-address=192.168.100.3 --except-interface=lo
>> --dhcp-range=192.168.100.2,static,120s --dhcp-lease-max=256
>> --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf
>> --dhcp-script=/usr/lib/python2.6/site-packages/bin/nova-dhcpbridge
>> --leasefile-ro\nExit code: 3\nStdout: ''\nStderr: 'sh:
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n\\ndnsmasq: cannot run lease-init script
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n'\n"]
>> 2012-09-12 10:19:20 TRACE nova.rpc.amqp ProcessExecutionError:
>> Unexpected error while running command.
>> 2012-09-12 10:19:20 ERROR nova.rpc.amqp
>> [req-4988ae7f-cd89-4e70-98cf-e66ec672baf1
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> Returning exception Unexpected error while running command.
>> 2012-09-12 10:19:20 ERROR nova.rpc.amqp
>> [req-4988ae7f-cd89-4e70-98cf-e66ec672baf1
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> ['Traceback (most recent call last):\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 253, in
>> _process_data\n rval = node_func(context=ctxt, **node_args)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/network/manager.py",
>> line 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 379, in deallocate_for_instance\n super(FloatingIP,
>> self).deallocate_for_instance(context, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 934, in deallocate_for_instance\n **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 247, in deallocate_fixed_ip\n address)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1215, in deallocate_fixed_ip\n
>> self._teardown_network_on_host(context, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1725, in _teardown_network_on_host\n
>> self.driver.update_dhcp(context, dev, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 644, in update_dhcp\n restart_dhcp(context, dev,
>> network_ref)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/utils.py", line 946, in
>> inner\n retval = f(*args, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 721, in restart_dhcp\n _execute(*cmd, run_as_root=True)\n', '
>> File "/usr/lib/python2.6/site-packages/nova/network/linux_net.py",
>> line 813, in _execute\n return utils.execute(*cmd, **kwargs)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/utils.py", line 243,
>> in execute\n cmd=\' \'.join(cmd))\n', "ProcessExecutionError:
>> Unexpected error while running command.\nCommand: sudo
>> FLAGFILE=/etc/nova/nova.conf NETWORK_ID=1 dnsmasq --strict-order
>> --bind-interfaces --conf-file= --domain=novalocal
>> --pid-file=/var/lib/nova/networks/nova-br100.pid
>> --listen-address=192.168.100.3 --except-interface=lo
>> --dhcp-range=192.168.100.2,static,120s --dhcp-lease-max=256
>> --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf
>> --dhcp-script=/usr/lib/python2.6/site-packages/bin/nova-dhcpbridge
>> --leasefile-ro\nExit code: 3\nStdout: ''\nStderr: 'sh:
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n\\ndnsmasq: cannot run lease-init script
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n'\n"]
>> 2012-09-12 10:21:39 TRACE nova.rpc.amqp ProcessExecutionError:
>> Unexpected error while running command.
>> 2012-09-12 10:21:39 ERROR nova.rpc.amqp
>> [req-244e7976-0b51-4bd5-be03-2a6d41fa1055
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> Returning exception Unexpected error while running command.
>> 2012-09-12 10:21:39 ERROR nova.rpc.amqp
>> [req-244e7976-0b51-4bd5-be03-2a6d41fa1055
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> ['Traceback (most recent call last):\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 253, in
>> _process_data\n rval = node_func(context=ctxt, **node_args)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/network/manager.py",
>> line 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 379, in deallocate_for_instance\n super(FloatingIP,
>> self).deallocate_for_instance(context, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 934, in deallocate_for_instance\n **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 247, in deallocate_fixed_ip\n address)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1215, in deallocate_fixed_ip\n
>> self._teardown_network_on_host(context, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1725, in _teardown_network_on_host\n
>> self.driver.update_dhcp(context, dev, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 644, in update_dhcp\n restart_dhcp(context, dev,
>> network_ref)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/utils.py", line 946, in
>> inner\n retval = f(*args, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 721, in restart_dhcp\n _execute(*cmd, run_as_root=True)\n', '
>> File "/usr/lib/python2.6/site-packages/nova/network/linux_net.py",
>> line 813, in _execute\n return utils.execute(*cmd, **kwargs)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/utils.py", line 243,
>> in execute\n cmd=\' \'.join(cmd))\n', "ProcessExecutionError:
>> Unexpected error while running command.\nCommand: sudo
>> FLAGFILE=/etc/nova/nova.conf NETWORK_ID=1 dnsmasq --strict-order
>> --bind-interfaces --conf-file= --domain=novalocal
>> --pid-file=/var/lib/nova/networks/nova-br100.pid
>> --listen-address=192.168.100.3 --except-interface=lo
>> --dhcp-range=192.168.100.2,static,120s --dhcp-lease-max=256
>> --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf
>> --dhcp-script=/usr/lib/python2.6/site-packages/bin/nova-dhcpbridge
>> --leasefile-ro\nExit code: 3\nStdout: ''\nStderr: 'sh:
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n\\ndnsmasq: cannot run lease-init script
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n'\n"]
>> 2012-09-12 10:30:08 TRACE nova.rpc.amqp ProcessExecutionError:
>> Unexpected error while running command.
>> 2012-09-12 10:30:08 ERROR nova.rpc.amqp
>> [req-fe2b0efb-e211-4bf5-a218-fba902e047e0
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> Returning exception Unexpected error while running command.
>> 2012-09-12 10:30:08 ERROR nova.rpc.amqp
>> [req-fe2b0efb-e211-4bf5-a218-fba902e047e0
>> 2efa015647d948239d143286f565c5a8 780651371d8c4ca790dad684aa288ef9]
>> ['Traceback (most recent call last):\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/rpc/amqp.py", line 253, in
>> _process_data\n rval = node_func(context=ctxt, **node_args)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/network/manager.py",
>> line 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 379, in deallocate_for_instance\n super(FloatingIP,
>> self).deallocate_for_instance(context, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 257, in wrapped\n return func(self, context, *args,
>> **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 934, in deallocate_for_instance\n **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 247, in deallocate_fixed_ip\n address)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1215, in deallocate_fixed_ip\n
>> self._teardown_network_on_host(context, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/manager.py", line
>> 1725, in _teardown_network_on_host\n
>> self.driver.update_dhcp(context, dev, network)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 644, in update_dhcp\n restart_dhcp(context, dev,
>> network_ref)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/utils.py", line 946, in
>> inner\n retval = f(*args, **kwargs)\n', ' File
>> "/usr/lib/python2.6/site-packages/nova/network/linux_net.py", line
>> 721, in restart_dhcp\n _execute(*cmd, run_as_root=True)\n', '
>> File "/usr/lib/python2.6/site-packages/nova/network/linux_net.py",
>> line 813, in _execute\n return utils.execute(*cmd, **kwargs)\n',
>> ' File "/usr/lib/python2.6/site-packages/nova/utils.py", line 243,
>> in execute\n cmd=\' \'.join(cmd))\n', "ProcessExecutionError:
>> Unexpected error while running command.\nCommand: sudo
>> FLAGFILE=/etc/nova/nova.conf NETWORK_ID=1 dnsmasq --strict-order
>> --bind-interfaces --conf-file= --domain=novalocal
>> --pid-file=/var/lib/nova/networks/nova-br100.pid
>> --listen-address=192.168.100.3 --except-interface=lo
>> --dhcp-range=192.168.100.2,static,120s --dhcp-lease-max=256
>> --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf
>> --dhcp-script=/usr/lib/python2.6/site-packages/bin/nova-dhcpbridge
>> --leasefile-ro\nExit code: 3\nStdout: ''\nStderr: 'sh:
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n\\ndnsmasq: cannot run lease-init script
>> /usr/lib/python2.6/site-packages/bin/nova-dhcpbridge: No such file
>> or directory\\n'\n"]
>>
>>
>> nova.conf
>>
>> -bash-4.1$ sudo cat /etc/nova/nova.conf
>> [sudo] password for stoor:
>> [DEFAULT]
>>
>> # LOGS/STATE
>> verbose=True
>> logdir = /var/log/nova
>> state_path = /var/lib/nova
>> lock_path = /var/lib/nova/tmp
>>
>> # AUTHENTICATION
>> auth_strategy=keystone
>>
>> # SCHEDULER
>> compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
>>
>> # VOLUMES
>> #volume_group=nova-volumes
>> volume_group=vg1
>> volume_name_template=volume-%08x
>> iscsi_helper=tgtadm
>>
>> #DATABASE
>> sql_connection=mysql://nova1:nova1@188.184.20.197/nova
>>
>> # COMPUTE
>> libvirt_type=qemu
>> connection_type=libvirt
>> instance_name_template=instance-%08x
>> api_paste_config=/etc/nova/api-paste.ini
>> allow_resize_to_same_host=True
>>
>> # APIS
>> osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions
>> ec2_dmz_host=188.184.20.197
>> s3_host=188.184.20.197
>>
>> # RABBITMQ
>> rabbit_host=188.184.20.197
>>
>> # GLANCE
>> image_service=nova.image.glance.GlanceImageService
>> glance_api_servers=188.184.20.197:9292
>>
>> # NETWORK
>> network_manager=nova.network.manager.FlatDHCPManager
>> force_dhcp_release=True
>> dhcpbridge_flagfile=/etc/nova/nova.conf
>> firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
>> # Change my_ip to match each host
>> my_ip=188.184.20.197
>> public_interface=br100
>> vlan_interface=eth0
>> flat_network_bridge=br100
>> flat_interface=eth0
>> fixed_range=10.0.0.0/24
>>
>> # NOVNC CONSOLE
>> novncproxy_base_url=http://188.184.20.197:6080/vnc_auto.html
>> # Change vncserver_proxyclient_address and vncserver_listen to
>> match each compute host
>> vncserver_proxyclient_address=188.184.20.197
>> vncserver_listen=188.184.20.197
>>
>>
>> in the guide
>> http://docs.openstack.org/essex/openstack-compute/install/yum/content/compute-minimum-configuration-settings.html
>>
>> the mentioned configurations are
>>
>> auth_strategy=keystone
>> network_manager=nova.network.manager.FlatDHCPManager
>> fixed_range=192.168.100.0/24
>> public_interface=eth0
>> flat_interface=eth0
>> flat_network_bridge=br100
>>
>> Where as in the example on the same page have some different
>> options, for example
>>
>> public_interface=br100
>> vlan_interface=eth0
>> flat_network_bridge=br100
>> flat_interface=eth0
>> fixed_range=10.0.0.0/24
>>
>> I think something is wrong in network section. Can some please help me.
>>
>>
>> -bash-4.1$ ifconfig
>> br100 Link encap:Ethernet HWaddr 00:15:5D:FF:AA:C3
>> inet addr:192.168.100.3 Bcast:192.168.100.255 Mask:255.255.255.0
>> inet6 addr: fe80::ac94:e6ff:fe0a:c1a5/64 Scope:Link
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:17634 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:2422 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0
>> RX bytes:2205592 (2.1 MiB) TX bytes:361604 (353.1 KiB)
>>
>> eth0 Link encap:Ethernet HWaddr 00:15:5D:FF:AA:C3
>> inet6 addr: fe80::215:5dff:feff:aac3/64 Scope:Link
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:2793126 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:279139 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:909431066 (867.3 MiB) TX bytes:39559229 (37.7 MiB)
>>
>> lo Link encap:Local Loopback
>> inet addr:127.0.0.1 Mask:255.0.0.0
>> inet6 addr: ::1/128 Scope:Host
>> UP LOOPBACK RUNNING MTU:16436 Metric:1
>> RX packets:889899 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:889899 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0
>> RX bytes:644927387 (615.0 MiB) TX bytes:644927387 (615.0 MiB)
>>
>> virbr0 Link encap:Ethernet HWaddr 52:54:00:96:5C:D8
>> inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0
>> RX bytes:0 (0.0 b) TX bytes:6882 (6.7 KiB)
>>
>> I have no clue how to fix it.
>>
>> Regards..
>> Salman.
>>
>>
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>
>
>
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
More information about the OpenStack-operators
mailing list