Octavia api fails to start because libpython2.7 is missing

Bug #1811826 reported by Speedmann
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Jonathan Rosser

Bug Description

Using openstack-ansible 18.1.0 on Ubuntu 16.04

octavia-api refuses to start because

`Jan 15 12:56:28 ctr002-octavia-server-container-6b38d84c uwsgi[145]: /openstack/venvs/octavia-18.1.0/bin/uwsgi: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory`

Installing libpython2.7 fixes this issue.

We are using lxc containers for this deployment.

I hope i got every information you need, if not feel free to ask for more details

Speedmann (speedmann)
description: updated
Changed in openstack-ansible:
assignee: nobody → Jonathan Rosser (jrosser)
importance: Undecided → Medium
Revision history for this message
Georgina Shippey (gshippey) wrote :

I've tried to reproduce this error using AIO on a ubuntu 16.04 on a vagrant machine and have been unable to reproduce it. Libpython exists within my containers base image and seems to be installed without fault. Octavia seems to run fine. If you have any other info to help reproduce please let me know.
I was looking at /var/lib/machines/ubuntu-xenial-amd64/var/log/apt/history.log on the host for libpython2.7 and checked it was installed through dpkg -l libpython* on the octavia container.

Revision history for this message
Jonathan Rosser (jrosser) wrote :

Marking this as incomplete - we need further verification in the originial environment that libpython was missing in the container base image, and therefore also missing in the octavia container.

Changed in openstack-ansible:
status: New → Incomplete
Revision history for this message
Speedmann (speedmann) wrote :
Download full text (4.1 KiB)

i can indeed see, in the apt log file you reference that there was an installation for libpython2.7

```
Install: libmpc3:amd64 (1.0.3-1, automatic), libxdmcp6:amd64 (1:1.1.2-1.1, automatic), manpages:amd64 (4.04-2, automatic), libmpx0:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), python2.7-dev:amd64 (2.7.12-1ubuntu0~16.04.3, automatic), libgcc-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), iptables:amd64 (1.6.0-2ubuntu3), linux-libc-dev:amd64 (4.4.0-116.140, automatic), libmpfr4:amd64 (3.1.4-1, automatic), openssl:amd64 (1.0.2g-1ubuntu4.10, automatic), libfakeroot:amd64 (1.20.2-1ubuntu1, automatic), libc6-dev:amd64 (2.23-0ubuntu10, automatic), rename:amd64 (0.20-4, automatic), git-man:amd64 (1:2.7.4-0ubuntu1.3, automatic), libexpat1-dev:amd64 (2.1.0-7ubuntu0.16.04.3, automatic), cpp-5:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), python2.7-minimal:amd64 (2.7.12-1ubuntu0~16.04.3, automatic), libalgorithm-diff-perl:amd64 (1.19.03-1, automatic), libalgorithm-merge-perl:amd64 (0.08-3, automatic), python3-urllib3:amd64 (1.13.1-2ubuntu0.16.04.1, automatic), binutils:amd64 (2.26.1-1ubuntu1~16.04.6, automatic), cpp:amd64 (4:5.3.1-1ubuntu1, automatic), libitm1:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), g++:amd64 (4:5.3.1-1ubuntu1, automatic), perl-modules-5.22:amd64 (5.22.1-9ubuntu0.2, automatic), libpython2.7:amd64 (2.7.12-1ubuntu0~16.04.3, automatic), python2.7:amd64 (2.7.12-1ubuntu0~16.04.3), gcc:amd64 (4:5.3.1-1ubuntu1, automatic), git:amd64 (1:2.7.4-0ubuntu1.3), libpython2.7-dev:amd64 (2.7.12-1ubuntu0~16.04.3, automatic), libcilkrts5:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), python3-six:amd64 (1.10.0-3, automatic), libasan2:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), libquadmath0:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), python:amd64 (2.7.12-1~16.04, automatic), libx11-6:amd64 (2:1.6.3-1ubuntu2, automatic), python3-requests:amd64 (2.9.1-3, automatic), libisl15:amd64 (0.16.1-1, automatic), build-essential:amd64 (12.1ubuntu2), libfile-fcntllock-perl:amd64 (0.22-3, automatic), libperl5.22:amd64 (5.22.1-9ubuntu0.2, automatic), libpython-stdlib:amd64 (2.7.12-1~16.04, automatic), libnfnetlink0:amd64 (1.0.1-3, automatic), libstdc++-5-dev:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), libxau6:amd64 (1:1.0.8-1, automatic), libtsan0:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), libubsan0:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), g++-5:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), libxcb1:amd64 (1.11.1-1ubuntu1, automatic), libpython-dev:amd64 (2.7.12-1~16.04, automatic), make:amd64 (4.1-6, automatic), fakeroot:amd64 (1.20.2-1ubuntu1, automatic), libgdbm3:amd64 (1.8.3-13.1, automatic), gcc-5:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), libxmuu1:amd64 (2:1.1.2-2, automatic), xz-utils:amd64 (5.1.1alpha+20120614-2ubuntu2, automatic), ncurses-term:amd64 (6.0+20160213-1ubuntu1, automatic), python3-pkg-resources:amd64 (20.7.0-1, automatic), liblsan0:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), libgomp1:amd64 (5.4.0-6ubuntu1~16.04.9, automatic), python-dev:amd64 (2.7.12-1~16.04), openssh-server:amd64 (1:7.2p2-4ubuntu2.4), libx11-data:amd64 (2:1.6.3-1ubuntu2, automatic), manpages-dev:amd64 (4.04-2, automatic), libc-dev-bin:amd64 (2.23-0ubuntu10, automatic), libpython2.7-minimal:a...

Read more...

Changed in openstack-ansible:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.