Ask Your Question

Error while configuring docker driver to OpenStack built by Fuel 5.1

asked 2014-11-13 02:58:18 -0500

Wayne Yeh gravatar image

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+
cd src/novadocker/
python 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/';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/", line 126, in main, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/", line 228, in run
    requirement_set.install(install_options, global_options)
  File "/usr/lib/python2.7/dist-packages/pip/", line 1093, in install
    requirement.install(install_options, global_options)
  File "/usr/lib/python2.7/dist-packages/pip/", line 566, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/usr/lib/python2.7/dist-packages/pip/", line 255, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/root/src/novadocker/build/posix-ipc/';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.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-14 09:54:37 -0500

Wayne, it looks like you're trying to build a python package on a compute host. It needs build tools first. You probably want python-setuptools and python-devel for starters. Make sure you have all the components in requirements.txt as well and check the README for the novadocker package.

edit flag offensive delete link more

answered 2015-05-07 12:16:48 -0500

Wayne, From the errors, it seems python.h is not found and you should install python develop package. For ubuntu, install by apt-get install python2.7-dev

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-11-13 02:58:18 -0500

Seen: 700 times

Last updated: Nov 13 '14