Postgres guest fails resize-instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
High
|
Alex Tomic |
Bug Description
Doing some testing of PostgreSQL on Ubuntu 14.04. When I tried trove resize-instance, the Nova instance was stuck in "VERIFY_RESIZE" and the trove instance in "RESIZE".
Noticed this in trove-guestagen
2015-04-17 19:26:11.807 1183 DEBUG trove.guestagen
2015-04-17 19:26:11.808 1183 DEBUG trove.guestagen
2015-04-17 19:26:11.808 1183 DEBUG oslo_concurrenc
2015-04-17 19:26:11.843 1183 DEBUG oslo_concurrenc
2015-04-17 19:26:11.844 1183 DEBUG oslo_concurrenc
2015-04-17 19:26:11.845 1183 ERROR oslo_messaging.
Command: sudo -u postgres psql --versionExit code: 1
Stdout: u''
Stderr: u'Error: Cannot stat /var/run/
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
2015-04-17 19:26:11.845 1183 TRACE oslo_messaging.
I believe the issue is that during the start of resize instance processing Postgres is stopped and the service is disabled on boot. This means that when nova resizes it and boots it, the /var/run/postgres directory is missing. It appears that "psql --version" needs this directory to exist in order to run. It doesn't get created until postgres is started.
Changed in trove: | |
assignee: | nobody → Alex Tomic (atomic777) |
Changed in trove: | |
milestone: | none → liberty-1 |
importance: | Undecided → High |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | liberty-1 → 4.0.0 |
Fix proposed to branch: master /review. openstack. org/176035
Review: https:/