Need unattended install for percona-xtradb-cluster-57

Bug #1712212 reported by Guy Riddle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
New
Undecided
Unassigned

Bug Description

What I need to do is install percona-xtradb-cluster-57 in a Docker container without any prompting for "root passwords" or other stuff. Also I don't want it to initialize the database during the "apt-get install" phase, just stick the files in the file system. What it seems to try and do is everything "all at once" -- e.g. install software including the standard my.cnf file then install the innodb tables, etc. in the location listed in the stock my.cnf.

What I need is 3 steps:
1. "apt-get install" to get things copied over.
2. I'll install my own my.cnf
3. Initialize tables in the data directory in my own my.cnf

The installation also fails, with no useful diagnostic message, when it gets to here

Setting up iproute2 (4.3.0-1ubuntu3.16.04.1) ...
Setting up iproute (1:4.3.0-1ubuntu3.16.04.1) ...
Setting up percona-xtradb-cluster-server-5.7 (5.7.18-29.20-1.xenial) ...
dpkg: error processing package percona-xtradb-cluster-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up bzip2 (1.0.6-8) ...
Setting up ifupdown (0.8.10ubuntu1.2) ...

I currently am using percona-xtradb-cluster-56 where the post-install scripts don't blow up.

Tags: installation
Revision history for this message
Guy Riddle (crazee) wrote :
Download full text (31.4 KiB)

Full listing of apt-get install logs:

Step 5 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install percona-xtradb-cluster-57
 ---> Running in fb9515492f2a
Get:1 http://repo.percona.com/apt xenial InRelease [15.9 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:5 http://repo.percona.com/apt xenial/main Sources [5774 B]
Get:6 http://repo.percona.com/apt xenial/main amd64 Packages [19.6 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Fetched 348 kB in 1s (316 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  bzip2 debsums ifupdown iproute iproute2 isc-dhcp-client isc-dhcp-common
  krb5-locales libaio1 libasn1-8-heimdal libatm1 libcurl3 libdbd-mysql-perl
  libdbi-perl libdns-export162 libdpkg-perl libev4 libffi6
  libfile-fcntllock-perl libfile-fnmatch-perl libgdbm3 libgmp10 libgnutls30
  libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal libisc-export160
  libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0
  libldap-2.4-2 libmecab2 libmnl0 libmysqlclient20 libnettle6 libnuma1
  libp11-kit0 libperl5.22 libpopt0 libroken18-heimdal librtmp1 libsasl2-2
  libsasl2-modules libsasl2-modules-db libsqlite3-0 libtasn1-6
  libwind0-heimdal libwrap0 libxtables11 lsof mysql-common netbase
  percona-xtrabackup-24 percona-xtradb-cluster-client-5.7
  percona-xtradb-cluster-common-5.7 percona-xtradb-cluster-server-5.7 perl
  perl-modules-5.22 psmisc rename rsync socat tcpd ucf xz-utils
Suggested packages:
  bzip2-doc ppp rdnssd iproute2-doc resolvconf avahi-autoipd
  isc-dhcp-client-ddns apparmor libclone-perl libmldbm-perl libnet-daemon-perl
  libsql-statement-perl debian-keyring gcc | c-compiler binutils patch
  gnutls-bin krb5-doc krb5-user libsasl2-modules-otp libsasl2-modules-ldap
  libsasl2-modules-sql libsasl2-modules-gssapi-mit
  | libsasl2-modules-gssapi-heimdal tinyca netcat-openbsd pv qpress perl-doc
  libterm-readline-gnu-perl | libterm-readline-perl-perl make openssh-client
  openssh-server
The following NEW packages will be installed:
  bzip2 debsums ifupdown iproute iproute2 isc-dhcp-client isc-dhcp-common
  krb5-locales libaio1 libasn1-8-heimdal libatm1 libcurl3 libdbd-mysql-perl
  libdbi-perl libdns-export162 libdpkg-perl libev4 libffi6
  libfile-fcntllock-perl libfile-fnmatch-perl libgdbm3 libgmp10 libgnutls30
  libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal libisc-export160
  libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0
  libldap-2.4-2 libmecab2 libmnl0 libmysqlclient20 libnettle6 libnuma1
  libp11-kit0 libperl5.22 libpopt0 libroken18-heimdal librtmp1 libsasl2-2
  libsasl2-modules libsasl2-modules-db libsqlite3-0 libtasn1-6
  libwind0-heimdal libwrap0 libxtables11 lsof mysql-common netbase
  percona-xtrabackup...

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-2000

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.