[upgrade] Upgrade failed with /tmp/upgrade/pg_dump_all.sql: No such file or directory when run after rollback
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
High
|
Fuel Python (Deprecated) | ||
6.1.x |
Won't Fix
|
High
|
Fuel Python (Deprecated) | ||
7.0.x |
Invalid
|
High
|
Fuel Python (Deprecated) |
Bug Description
Upgrade failed if run it right after rollback
Steps:
1. Create and deploy any 6.0-58 cluster
2. Upload upgrade 6.1 script and run it with fake rollback upgrader
UPGRADERS=
3. After successful rollback run upgrade again
./upgrade.sh --no-rollback --password *****
Expected - upgrade is successful
Actual - it failed with
2015-06-20 05:22:26 ERROR 21873 (cli) Shell command executed with "1" exit code: dockerctl shell c5ea9370733a23a
Traceback (most recent call last):
File "/var/upgrade/
run_
File "/var/upgrade/
upgrade_
File "/var/upgrade/
upgrader.
File "/var/upgrade/
self.
File "/var/upgrade/
self.
File "/var/upgrade/
'', retries=30, interval=4)
File "/var/upgrade/
return func()
File "/var/upgrade/
self.
File "/var/upgrade/
utils.
File "/var/upgrade/
_wait_
File "/var/upgrade/
'exit code: {1} '.format(exit_code, cmd))
ExecutedErrorNo
Logs are attached
Changed in fuel: | |
status: | New → Confirmed |
tags: | added: docs |
tags: | added: release-notes |
Ok, looks like a bug in Docker itself. Here's what happened:
1. fuel_upgrade fails to import database dump due to "file not found"
2. we don't have this file inside container under /tmp/upgrade. moreover, we don't have any files inside this folder
3. /tmp/upgrade resource is mounted from host's /var/lib/ fuel_upgrade/ 6.1/
4. /var/lib/ fuel_upgrade/ 6.1/ contains all needed file
5. docker inspect shows, that this folder is indeed mounted resource
"/tmp/upgrade": "/var/lib/ docker/ vfs/dir/ df6b4cd6a4ecb5f 1a244f7bf9dcd4d e0c2c755a65d7da 34324f574fad87a d564"
6. The virtual fs resource is empty "/var/lib/ docker/ vfs/dir/ df6b4cd6a4ecb5f 1a244f7bf9dcd4d e0c2c755a65d7da 34324f574fad87a d564".