Upgrade script failed: 'su: user postgres does not exist'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Fuel Python (Deprecated) |
Bug Description
Steps to reproduce:
1. Deploy Fuel master node from ISO 5.1.1 build
2. Upload and unpack *.tar.lrz file from http://
3. Run upgrade.sh script to perform upgrade from 5.1.1 to 6.0
Expected result:
- upgrade script is completed successfully.
Actual result:
- upgrade script is failed during start the container 'fuel-core-
=======
2014-10-27 07:08:16 DEBUG 5467 (utils) Stdout and stderr of command "lxc-attach --name 3a9ecf21f95f780
2014-10-27 07:08:16 DEBUG 5467 (utils) su: user postgres does not exist
=======
Stdout of upgrade.sh:
=================
http://
Fuel master node version:
=======
api: '1.0'
astute_sha: f5fbd89d1e0e1f2
auth_required: true
build_id: 2014-10-20_00-37-45
build_number: '34'
feature_groups:
- mirantis
fuellib_sha: 4f8414a08316a0c
fuelmain_sha: 7bac3edb9760449
nailgun_sha: b9792cb5bbecddf
ostf_sha: 64cb59c681658a7
production: docker
release: 5.1.1
release_versions:
2014.1.1-5.1.1:
VERSION:
api: '1.0'
astute_sha: f5fbd89d1e0e1f2
build_id: 2014-10-20_00-37-45
build_number: '34'
feature_
- mirantis
fuellib_sha: 4f8414a08316a0c
fuelmain_sha: 7bac3edb9760449
nailgun_sha: b9792cb5bbecddf
ostf_sha: 64cb59c681658a7
production: docker
release: 5.1.1
Changed in fuel: | |
importance: | Undecided → High |
assignee: | nobody → Fuel Python Team (fuel-python) |
status: | New → Confirmed |
Looks like new 'fuel/postgres_6.0' docker container actually is not contained postgresql-server yet.
I've added "ps auxf" to the command line with "psql" and here what we have: the container installation process is ongoing at the moment (see "/usr/bin/python /usr/bin/yum -d 0 -e 0 -y install postgresql-server" at the end of log):
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= 1a3abfacd6a74c2 e2c7d41ecd7e997 dd24e59ed243559 bba2 -- ps auxf; psql -f /tmp/upgrade/ pg_dump_ all.sql postgres" 1a3abfacd6a74c2 e2c7d41ecd7e997 dd24e59ed243559 bba2 -- ps auxf; psql -f /tmp/upgrade/ pg_dump_ all.sql postgres": bin/start. sh 1a3abfacd6a74c2 e2c7d41ecd7e997 dd24e59ed243559 bba2 -- ps auxf; psql -f /tmp/upgrade/ pg_dump_ all.sql postgres" 1a3abfacd6a74c2 e2c7d41ecd7e997 dd24e59ed243559 bba2 -- ps auxf; psql -f /tmp/upgrade/ pg_dump_ all.sql postgres": bin/start. sh modules/ nailgun/ examples/ postgres- only.pp 1a3abfacd6a74c2 e2c7d41ecd7e997 dd24e59ed243559 bba2 -- ps auxf; psql -f /tmp/upgrade/ pg_dump_ all.sql postgres" 1a3abfacd6a74c2 e2c7d41ecd7e997 dd24e59ed243559 bba2 -- ps auxf; psql -f /tmp/upgrade/ pg_dump_ all.sql postgres": bin/start. sh
2014-10-28 07:06:00 DEBUG 8013 (utils) Execute command "lxc-attach --name 0aed43347a11368
2014-10-28 07:06:00 DEBUG 8013 (utils) Stdout and stderr of command "lxc-attach --name 0aed43347a11368
2014-10-28 07:06:00 DEBUG 8013 (utils) USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
2014-10-28 07:06:00 DEBUG 8013 (utils) root 10 0.0 0.0 13368 1028 ? R+ 07:05 0:00 ps auxf
2014-10-28 07:06:00 DEBUG 8013 (utils) root 1 1.0 0.0 11300 1328 ? S 07:05 0:00 /bin/bash /usr/local/
2014-10-28 07:06:00 DEBUG 8013 (utils) root 9 0.0 0.1 70660 3168 ? R 07:05 0:00 rpm --rebuilddb
2014-10-28 07:06:00 DEBUG 8013 (utils) /bin/sh: psql: command not found
2014-10-28 07:06:04 DEBUG 8013 (utils) Execute command "lxc-attach --name 0aed43347a11368
2014-10-28 07:06:04 DEBUG 8013 (utils) Stdout and stderr of command "lxc-attach --name 0aed43347a11368
2014-10-28 07:06:11 DEBUG 8013 (utils) USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
2014-10-28 07:06:11 DEBUG 8013 (utils) root 175 0.0 0.0 13360 1024 ? R+ 07:06 0:00 ps auxf
2014-10-28 07:06:11 DEBUG 8013 (utils) root 1 0.0 0.0 11300 1328 ? S 07:05 0:00 /bin/bash /usr/local/
2014-10-28 07:06:11 DEBUG 8013 (utils) root 11 19.1 2.4 227360 49900 ? Dl 07:06 0:01 /usr/bin/ruby /usr/bin/puppet apply -v /etc/puppet/
2014-10-28 07:06:11 DEBUG 8013 (utils) /bin/sh: psql: command not found
2014-10-28 07:06:16 DEBUG 8013 (utils) Execute command "lxc-attach --name 0aed43347a11368
2014-10-28 07:06:16 DEBUG 8013 (utils) Stdout and stderr of command "lxc-attach --name 0aed43347a11368
2014-10-28 07:06:27 DEBUG 8013 (utils) USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
2014-10-28 07:06:27 DEBUG 8013 (utils) root 340 0.0 0.0 13364 1032 ? R+ 07:06 0:00 ps auxf
2014-10-28 07:06:27 DEBUG 8013 (utils) root 1 0.0 0.0 11300 1328 ? S 07:05 0:00 /bin/bash /usr/local/
2014-10-28 ...