Hello Anton,
I've successfully deployed DevStack, and almost, OpenStack Neat too but I'm having some problems
[1]. I have basically 2 compute nodes (compute01 and compute02) and a controller, all of the using Fedora 17. I'm using Python 2.7.3.
[root@controller ~]# cat /var/log/neat/
global-manager-service.log [1]Traceback (most recent call last):
File "/usr/bin/neat-global-manager", line 9, in <module>
load_entry_point('openstack-neat==0.1', 'console_scripts', 'neat-global-manager')()
File "/usr/lib/python2.7/site-packages/openstack_neat-0.1-py2.7.egg/neat/globals/manager.py", line 169, in start
state['compute_hosts'])
File "<string>", line 2, in switch_hosts_on
File "/usr/lib/python2.7/site-packages/contracts/main.py", line 296, in contracts_checker
result = function_(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/openstack_neat-0.1-py2.7.egg/neat/globals/manager.py", line 868, in switch_hosts_on
db.insert_host_states(dict((x, 1) for x in hosts))
File "<string>", line 2, in insert_host_states
File "/usr/lib/python2.7/site-packages/contracts/main.py", line 296, in contracts_checker
result = function_(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/openstack_neat-0.1-py2.7.egg/neat/db.py", line 320, in insert_host_states
for k, v in hosts.items()]
KeyError: 'compute02'
More logs on the controller:[root@controller ~]# cat /var/log/neat/
global-manager.log 2013-09-24 15:32:16,460 DEBUG neat.db Instantiated a Database object
2013-09-24 15:32:16,460 DEBUG neat.db_utils Initialized a DB connection to mysql://
root:badpa...@marte.eclipse.ime.usp.br/neat2013-09-24 15:32:16,475 DEBUG neat.globals.manager Calling: ether-wake -i em1 00:1c:c0:c3:f3:1f
2013-09-24 15:32:16,495 DEBUG neat.globals.manager Calling: ether-wake -i em1 00:27:0e:23:06:e9
2013-09-24 15:32:16,506 INFO neat.globals.manager Switched on hosts: ['compute01', 'compute02']
[root@controller ~]# cat /var/log/neat/
db-cleaner.log 2013-09-24 15:32:16,380 INFO neat.globals.db_cleaner Starting the database cleaner, iterations every 7200 seconds
2013-09-24 15:32:16,410 DEBUG neat.db Instantiated a Database object
2013-09-24 15:32:16,410 DEBUG neat.db_utils Initialized a DB connection to mysql://
root:badpa...@marte.eclipse.ime.usp.br/neat2013-09-24 15:32:16,412 INFO neat.globals.db_cleaner Cleaned up data older than 2013-09-24 13:32:16
[root@controller ~]# cat /var/log/neat/
db-cleaner-service.log(empty)
More logs on the compute02:[root@compute02 ~]# cat /var/log/neat/
local-manager.log 2013-09-24 15:32:18,596 INFO neat.locals.manager Starting the local manager, iterations every 300 seconds
2013-09-24 15:32:18,684 DEBUG neat.db Instantiated a Database object
2013-09-24 15:32:18,684 DEBUG neat.db_utils Initialized a DB connection to mysql://
root:badpa...@marte.eclipse.ime.usp.br/neat2013-09-24 15:32:18,686 INFO neat.locals.manager Started an iteration
2013-09-24 15:32:18,687 INFO neat.locals.manager The host is idle
2013-09-24 15:32:18,687 INFO neat.locals.manager Skipped an iteration
2013-09-24 15:37:18,689 INFO neat.locals.manager Started an iteration
2013-09-24 15:37:18,690 INFO neat.locals.manager The host is idle
2013-09-24 15:37:18,690 INFO neat.locals.manager Skipped an iteration
[root@compute02 ~]# cat /var/log/neat/
local-manager-service.log(empty)
[root@compute02 ~]# cat /var/log/neat/
data-collector.log 2013-09-24 15:32:15,409 INFO neat.locals.collector Creaned up the local data directory: /var/lib/neat
2013-09-24 15:32:15,409 INFO neat.locals.collector Starting the data collector, iterations every 300 seconds
2013-09-24 15:32:15,488 DEBUG neat.db Instantiated a Database object
2013-09-24 15:32:15,488 DEBUG neat.db_utils Initialized a DB connection to mysql://
root:badpa...@marte.eclipse.ime.usp.br/neat[root@compute02 ~]# cat /var/log/neat/
data-collector-service.log Traceback (most recent call last):
File "/usr/bin/neat-data-collector", line 9, in <module>
load_entry_point('openstack-neat==0.1', 'console_scripts', 'neat-data-collector')()
File "<string>", line 2, in start
File "/usr/lib/python2.7/site-packages/contracts/main.py", line 296, in contracts_checker
result = function_(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/openstack_neat-0.1-py2.7.egg/neat/locals/collector.py", line 140, in start
int(interval))
File "<string>", line 2, in start
File "/usr/lib/python2.7/site-packages/contracts/main.py", line 296, in contracts_checker
result = function_(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/openstack_neat-0.1-py2.7.egg/neat/common.py", line 58, in start
state = init_state(config)
File "<string>", line 2, in init_state
File "/usr/lib/python2.7/site-packages/contracts/main.py", line 296, in contracts_checker
result = function_(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/openstack_neat-0.1-py2.7.egg/neat/locals/collector.py", line 168, in init_state
host_ram)
File "<string>", line 2, in update_host
File "/usr/lib/python2.7/site-packages/contracts/main.py", line 305, in contracts_checker
raise e
contracts.interface.ContractNotRespected: Breach for return value of Database:update_host().
Could not satisfy any of the 3 clauses in float|int|uint.
---- Clause #1: float
| Could not satisfy any of the 3 clauses in Float|np_scalar_float|np_scalar,array(float).
| ---- Clause #1: Float
| | Expected type 'float', got 'long'.
| | checking: Float for value: Instance of long: 3L
| | Variables bound in inner context:
| | - self: Instance of Database: <neat.db.Database object at 0x2712a90>
| ---- Clause #2: np_scalar_float
| | Could not satisfy any of the 2 clauses in np_float32|np_float64.
| | ---- Clause #1: np_float32
| | | Expected type 'float32', got 'long'.
| | | checking: np_float32 for value: Instance of long: 3L
| | | Variables bound in inner context:
... so on ...
I couldn't find a solution on my own for this issue. Could you please help me out?
I will also take the opportunity to ask some questions:
- If I start Neat, how much time it would last until it will pm-suspend the compute nodes due to inactivity?
- Is it possible to change the algorithm that chooses the next underloaded host where to migrate? For testing purposes I would like to change that algorithm to "random" to see what happens.
- Do you have any script that customizes OpenStack? i.e: creates the flavor, image, etc. I did everything by hand but since I'm using DevStack changes are not persistent, I'm working on that already but if you do have something it would be helpful.
Many thanks.
Regards,
Albert.