Error while configuring docker driver to OpenStack built by Fuel 5.1
I have an OpenStack environment which is built by Fuel 5.1
. The configuration of the environment is listed as below.
OpenStack Release: Icehouse on Ubuntu 12.04.4 (2014.1.1-5.1)
Deployment Mode: Multi-node
Compute: KVM
Network: Neutron with GRE segmentation
Storage Backend: Ceph (Cinder), Ceph (Glance)
Additional Services: Install Sahara and Ceilometer (OpenStack Telemetry)
I want to install docker to the OpenStack, so I try to follow the official document. I add universe repository to the source list of the compute node, install python-pip, and run the following commands from the official document to install required modules.
pip install -e git+https://github.com/stackforge/nova-docker#egg=novadocker
cd src/novadocker/
python setup.py install
However, the installation fails with the following error messages.
running build
running build_ext
building 'posix_ipc' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c posix_ipc_module.c -o build/temp.linux-x86_64-2.7/posix_ipc_module.o
posix_ipc_module.c:33:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/root/src/novadocker/build/posix-ipc/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-w6ktuA-record/install-record.txt failed with error code 1
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 228, in run
requirement_set.install(install_options, global_options)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1093, in install
requirement.install(install_options, global_options)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 566, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/root/src/novadocker/build/posix-ipc/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-w6ktuA-record/install-record.txt failed with error code 1
How can I fix this error and complete the installation?
Many thanks.