2015년 2월 13일 금요일

Debugging OpenStack Nova(Juno) on Ubuntu 12.04 LTS

아래 에러 발생
kwholee@ubuntu:/opt/stack/nova$ ./run_tests.sh
Running `tools/with_venv.sh python -m nova.openstack.common.lockutils python setup.py testr --testr-args='--subunit --concurrency 0 '`
/opt/stack/nova/.venv/bin/python: No module named six
Traceback (most recent call last):
File "tools/colorizer.py", line 44, in <module>
import subunit
ImportError: No module named subunit
cat: .testrepository/next-stream: No such file or directory
다시 처음부터 아래와 같이
아래 링크 참고
http://git.openstack.org/cgit/openstack/nova/tree/doc/source/devref/development.environment.rst
  sudo apt-get install python-dev libssl-dev python-pip git-core libxml2-dev libxslt-dev pkg-config libffi-dev libpq-dev libmysqlclient-dev libvirt-dev graphviz libsqlite3-dev
python tools/install_venv.py
-> 아래 에러 발생
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 36: ordinal not in range(128)
sudo apt-get build-dep python-mysqldb
sudo apt-get install python-software-properties
sudo add-apt-repository cloud-archive:juno
sudo apt-get install libvirt-dev

-> ubuntu 14.04 LTS 에서 Juno 을 설치하면 왠지 해결 될 것 같음
* run_test.sh 했더니 아래 에러 발생
아래 에러 발생
kwholee@ubuntu:/opt/stack/nova$ ./run_tests.sh
Running `tools/with_venv.sh python -m nova.openstack.common.lockutils python setup.py testr --testr-args='--subunit --concurrency 0 '`
/opt/stack/nova/.venv/bin/python: No module named six
Traceback (most recent call last):
File "tools/colorizer.py", line 44, in <module>
import subunit
ImportError: No module named subunit
cat: .testrepository/next-stream: No such file or directory
다시 처음부터 아래와 같이
아래 링크 참고
http://git.openstack.org/cgit/openstack/nova/tree/doc/source/devref/development.environment.rst
  sudo apt-get install python-dev libssl-dev python-pip git-core libxml2-dev libxslt-dev pkg-config libffi-dev libpq-dev libmysqlclient-dev libvirt-dev graphviz libsqlite3-dev
python tools/install_venv.py
-> 아래 에러 발생
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 36: ordinal not in range(128)
sudo apt-get build-dep python-mysqldb
sudo apt-get install python-software-properties
sudo add-apt-repository cloud-archive:juno
sudo apt-get install libvirt-dev

-> ubuntu 14.04 LTS 에서 Juno 을 설치하면 왠지 해결 될 것 같음
* run_tests.sh 했더니 아래 에러 발생
-> neutron 사용하는 옵션으로 devstack 설치하면 해결될 것 같음
======================================================================
FAIL: nova.tests.network.test_neutronv2.TestNeutronv2.test_get_port_vnic_info_3
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/network/test_neutronv2.py", line 2615, in test_get_port_vnic_info_3
self._test_get_port_vnic_info()
File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/opt/stack/nova/nova/tests/network/test_neutronv2.py", line 2607, in _test_get_port_vnic_info
fields=['binding:vnic_type', 'network_id'])
File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 845, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected to be called once. Called 2 times.
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/network/test_neutronv2.py", line 2615, in test_get_port_vnic_info_3
self._test_get_port_vnic_info()
File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/opt/stack/nova/nova/tests/network/test_neutronv2.py", line 2607, in _test_get_port_vnic_info
fields=['binding:vnic_type', 'network_id'])
File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 845, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected to be called once. Called 2 times.
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/network/test_neutronv2.py", line 2615, in test_get_port_vnic_info_3
self._test_get_port_vnic_info()
File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
return func(*args, **keywargs)
File "/opt/stack/nova/nova/tests/network/test_neutronv2.py", line 2607, in _test_get_port_vnic_info
fields=['binding:vnic_type', 'network_id'])
File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mock.py", line 845, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected to be called once. Called 2 times.
======================================================================
FAIL: nova.tests.test_wsgi.TestWSGIServerWithSSL.test_app_using_ipv6_and_ssl
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: pythonlogging:'': {{{
2014-11-30 23:13:57,234 INFO [nova.wsgi] fake_ssl listening on ::1:38386
2014-11-30 23:13:57,280 INFO [nova.fake_ssl.wsgi.server] (7689) wsgi starting up on https://::1:38386/
}}}
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/test_wsgi.py", line 259, in test_app_using_ipv6_and_ssl
response = urllib2.urlopen('https://[::1]:%d/' % server.port)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError:
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
2014-11-30 23:13:57,234 INFO [nova.wsgi] fake_ssl listening on ::1:38386
2014-11-30 23:13:57,280 INFO [nova.fake_ssl.wsgi.server] (7689) wsgi starting up on https://::1:38386/
}}}
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/test_wsgi.py", line 259, in test_app_using_ipv6_and_ssl
response = urllib2.urlopen('https://[::1]:%d/' % server.port)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError:
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
2014-11-30 23:13:57,234 INFO [nova.wsgi] fake_ssl listening on ::1:38386
2014-11-30 23:13:57,280 INFO [nova.fake_ssl.wsgi.server] (7689) wsgi starting up on https://::1:38386/
}}}
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/test_wsgi.py", line 259, in test_app_using_ipv6_and_ssl
response = urllib2.urlopen('https://[::1]:%d/' % server.port)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError:
Ran 12641 tests in 3539.590s
FAILED (failures=2)
* neutron enable devstack 설치해도 아래와 같은 에러 발생
======================================================================
FAIL: nova.tests.test_wsgi.TestWSGIServerWithSSL.test_app_using_ipv6_and_ssl
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: pythonlogging:'': {{{
2014-12-01 03:30:53,176 INFO [nova.wsgi] fake_ssl listening on ::1:50641
2014-12-01 03:30:53,227 INFO [nova.fake_ssl.wsgi.server] (35022) wsgi starting up on https://::1:50641/
}}}
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/test_wsgi.py", line 259, in test_app_using_ipv6_and_ssl
response = urllib2.urlopen('https://[::1]:%d/' % server.port)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError:
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
2014-12-01 03:30:53,176 INFO [nova.wsgi] fake_ssl listening on ::1:50641
2014-12-01 03:30:53,227 INFO [nova.fake_ssl.wsgi.server] (35022) wsgi starting up on https://::1:50641/
}}}
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/test_wsgi.py", line 259, in test_app_using_ipv6_and_ssl
response = urllib2.urlopen('https://[::1]:%d/' % server.port)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError:
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
2014-12-01 03:30:53,176 INFO [nova.wsgi] fake_ssl listening on ::1:50641
2014-12-01 03:30:53,227 INFO [nova.fake_ssl.wsgi.server] (35022) wsgi starting up on https://::1:50641/
}}}
Traceback (most recent call last):
File "/opt/stack/nova/nova/tests/test_wsgi.py", line 259, in test_app_using_ipv6_and_ssl
response = urllib2.urlopen('https://[::1]:%d/' % server.port)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError:
Ran 12643 tests in 3752.841s
FAILED (failures=1)
----------------------------------------------------------------------
* 14.04 에서 devstack juno 버전으로 아래 에러 발생

댓글 없음:

댓글 쓰기