Running openstack-neat on centos 6.7

713 views
Skip to first unread message

loai spatin

unread,
Dec 9, 2015, 11:11:16 AM12/9/15
to OpenStack Neat
Hi Anaton,

i try to install and running Openstack-neat on centos 6.7.

At this time a few components of the Juno release have been recompiled for centos 6 and are available in the repositories:

  • openstack-nova
  • openstack-ceilometer
I can't install keystone and glance on centos 6.7 and i got error that openstck-keystone and openstack-glance packages are not available.
Can i complete running Openstack-neat on centos 6.7?

Also I got  error when i run ./vms-boot-28-slow.sh

ERROR (CommandError): You must provide an auth url via either --os-auth-url or env[OS_AUTH_URL] or specify an auth_system which defines a default url with --os-auth-system or env[OS_AUTH_SYSTEM]

when i run export OS_AUTH_URL=http://controller:5000/v2.0/ then run again ./vms-boot-28-slow.sh I got error

ERROR (RequestTimeout): Request to http://localhost:5000/v2.0/tokens timed out (HTTP 408)

how to solve those errors?

Best regards,
Loai Spatin

Anton Beloglazov

unread,
Dec 10, 2015, 1:15:54 AM12/10/15
to opensta...@googlegroups.com
Hi Loai,

It might be the case that the new versions of the OpenStack services are not compatible with Neat anymore. Since I haven't worked on this project in a long time, it's hard for me to tell how to resolve the issues you mentioned. You may try to follow some earlier discussions on how other people made Neat work for them, for example https://groups.google.com/forum/#!topic/openstack-neat/ox0Mjuz1HNk 

You may also try to contact the guys who made it work recently, and they might be able to help you. If you find the cause of the problems and they are in the code of Neat, please feel free to send a pull request on github, and I'll be happy to merge it in! Or just post the solution here, which will be helpful to others.

Cheers,
Anton

--
You received this message because you are subscribed to the Google Groups "OpenStack Neat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openstack-nea...@googlegroups.com.
Visit this group at http://groups.google.com/group/openstack-neat.
For more options, visit https://groups.google.com/d/optout.

loai spatin

unread,
Dec 20, 2015, 4:50:15 PM12/20/15
to OpenStack Neat
Hi Anton,

Centos 6 don't support openstack. So I work currently on centos 7.

data collector and  local manger now run ok probably, but i have errors in global manager:

/usr/lib/python2.7/site-packages/novaclient/v2/client.py:109: UserWarning: 'novaclient.v2.client.Client' is not designed to be initialized directly. It is inner class of novaclient. Please, use 'novaclient.client.Client' instead. Related lp bug-report: 1493576
  _LW("'novaclient.v2.client.Client' is not designed to be "
/bin/sh: arp: command not found
/bin/sh: ether-wake: command not found
Traceback (most recent call last):
  File "start-global-manager.py", line 18, in <module>
    manager.start()
  File "/home/loai/Downloads/openstack-neat-master/neat/globals/manager.py", line 178, in start
    state['compute_hosts'])
  File "<decorator-gen-55>", line 2, in switch_hosts_on
  File "/usr/lib/python2.7/site-packages/contracts/main.py", line 255, in contracts_checker
    result = function_(*args, **kwargs)
  File "/home/loai/Downloads/openstack-neat-master/neat/globals/manager.py", line 892, in switch_hosts_on
    db.insert_host_states(dict((x, 1) for x in hosts))
  File "<decorator-gen-15>", line 2, in insert_host_states
  File "/usr/lib/python2.7/site-packages/contracts/main.py", line 255, in contracts_checker
    result = function_(*args, **kwargs)
  File "/home/loai/Downloads/openstack-neat-master/neat/db.py", line 320, in insert_host_states
    for k, v in hosts.items()]
KeyError: 'compute02'

in global-manger.log i have this warning:
2015-12-21 00:33:23,939 WARNING  neat.globals.manager Received a wrong mac address for compute01:
2015-12-21 00:33:23,939 WARNING  neat.globals.manager Received a wrong mac address for compute02:

I have this error when i run ./vms-boot-28-slow.sh:

 No handlers could be found for logger "keystoneauth.identity.generic.base"
ERROR (ConnectTimeout): Request to OS_AUTH_URL timed out

Do you know what does OS_AUTH_URL equal?

Best regards
Loai

loai spatin

unread,
Dec 21, 2015, 1:43:58 PM12/21/15
to OpenStack Neat
Hi Anton,
           I solved key error in global manager. Now when i run global manager i get:

/usr/lib/python2.7/site-packages/novaclient/v2/client.py:109: UserWarning: 'novaclient.v2.client.Client' is not designed to be initialized directly. It is inner class of novaclient. Please, use 'novaclient.client.Client' instead. Related lp bug-report: 1493576
  _LW("'novaclient.v2.client.Client' is not designed to be "
/bin/sh: arp: command not found
/bin/sh: ether-wake: command not found
Bottle v0.12.9 server starting up (using WSGIRefServer())...
Listening on http://localhost:60080/
Hit Ctrl-C to quit.
 

I have this error when i run ./vm-placement.py:
 
/usr/lib/python2.7/site-packages/novaclient/v2/client.py:109: UserWarning: 'novaclient.v2.client.Client' is not designed to be initialized directly. It is inner class of novaclient. Please, use 'novaclient.client.Client' instead. Related lp bug-report: 1493576
  _LW("'novaclient.v2.client.Client' is not designed to be "
Traceback (most recent call last):
  File "./vm-placement.py", line 43, in <module>
    hosts_to_vms = manager.vms_by_hosts(nova, hosts)
  File "<decorator-gen-50>", line 2, in vms_by_hosts

  File "/usr/lib/python2.7/site-packages/contracts/main.py", line 255, in contracts_checker
    result = function_(*args, **kwargs)
  File "/home/loai/Downloads/openstack-neat-master/neat/globals/manager.py", line 724, in vms_by_hosts
    for vm in nova.servers.list():
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 623, in list
    "servers")
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 74, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 448, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 404, in _cs_request
    self.authenticate()
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 561, in authenticate
    auth_url = self._v2_auth(auth_url)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 652, in _v2_auth
    return self._authenticate(url, body)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 665, in _authenticate
    **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 399, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 366, in request
    **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 419, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x33b27d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

 

Best regards
Loai

Anton Beloglazov

unread,
Dec 22, 2015, 1:59:37 AM12/22/15
to opensta...@googlegroups.com
Hi Loai,

Please try to change the following occurrences of "novaclient.v2" to just "novaclient": https://github.com/beloglazov/openstack-neat/search?utf8=%E2%9C%93&q=%22novaclient.v2%22&type=Code

Let me know if that doesn't work.

Cheers,
Anton

--
You received this message because you are subscribed to the Google Groups "OpenStack Neat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openstack-nea...@googlegroups.com.

loai spatin

unread,
Dec 22, 2015, 1:37:06 PM12/22/15
to OpenStack Neat
Hi Anton,

when i make the changes and run global manager i get:


Traceback (most recent call last):
  File "start-global-manager.py", line 18, in <module>
    manager.start()
  File "/home/loai/Downloads/openstack-neat-master/neat/globals/manager.py", line 174, in start
    state = init_state(config)
  File "<decorator-gen-42>", line 2, in init_state

  File "/usr/lib/python2.7/site-packages/contracts/main.py", line 255, in contracts_checker
    result = function_(*args, **kwargs)
  File "/home/loai/Downloads/openstack-neat-master/neat/globals/manager.py", line 277, in init_state
    service_type="compute"),
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 815, in Client
    api_version, client_class = _get_client_class_and_version(version)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 776, in _get_client_class_and_version
    version = api_versions.get_api_version(version)
  File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 243, in get_api_version
    api_version = APIVersion(version_string)
  File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 77, in __init__
    raise exceptions.UnsupportedVersion(msg)
novaclient.exceptions.UnsupportedVersion: Invalid format of client version 'nova'. Expected format 'X.Y', where X is a major part and Y is a minor part of version.


Best regards
Loai

Anton Beloglazov

unread,
Dec 22, 2015, 2:03:21 PM12/22/15
to opensta...@googlegroups.com
Sorry, I just realized that was just a warning, so you can revert the changes. The actual error is:

requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /v2.0/tokens (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x33b27d0>: Failed to establish a new connection: [Errno 111] Connection refused',))

The script is trying to reach the Nova API at localhost:5000, but it's not available. Are you sure the API service is running at that address?

Cheers,
Anton
Reply all
Reply to author
Forward
0 new messages