Temporary files from manually specified snapshot directory use default dir
Bug #1420054 reported by
Joseph Fisher
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Dima Shulyak | ||
6.0.x |
Fix Committed
|
High
|
Dima Shulyak | ||
6.1.x |
Fix Committed
|
High
|
Dima Shulyak |
Bug Description
When taking a snapshot with the command:
fuel snapshot --dir /somedir
Uncompressed files will still be stored to /var/www/
Ideally, if a --dir is specified, this should be used for scratch space, as the use case is when /var does not have enough space for the snapshot. In any event, the final compressed snapshot should not remain in /var/www/
Changed in fuel: | |
assignee: | nobody → Fuel Python Team (fuel-python) |
Changed in fuel: | |
importance: | Undecided → High |
milestone: | none → 6.1 |
tags: | added: customer-found |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Dima Shulyak (dshulyak) |
tags: | added: module-shotgun |
To post a comment you must log in.
My 2 cents:
[root@fuel ~]# fuel snapshot --dir /var/www/ nailgun/ dump/snapshot_ 1 10.20.7. 2:8000/ dump/fuel- snapshot- 2015-02- 10_01-21- 57.tgz Bytes: 253419832 ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==]() 10.20.7. 2:8000/ dump/fuel- snapshot- 2015-02- 10_02-07- 25.tgz Bytes: 253894455 ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==]()
Generating dump...
Downloading: http://
[======
[root@fuel ~]# fuel snapshot
Generating dump...
Downloading: http://
[======
[root@fuel dump]# ls -la /var/www/ nailgun/ dump/ 2015-02- 10_01-21- 57.tgz 2015-02- 10_02-07- 25.tgz
total 495436
drwxr-xr-x 3 root root 122 Feb 10 02:47 .
drwxr-xr-x. 7 root root 4096 Jan 4 06:54 ..
-rw-r--r-- 1 root root 253419832 Feb 10 02:02 fuel-snapshot-
-rw-r--r-- 1 root root 253894455 Feb 10 02:47 fuel-snapshot-
-rw-r--r-- 1 root root 59 Feb 10 02:47 last
drwxr-xr-x 2 root root 50 Feb 10 02:02 snapshot_1
After creation of two snapshots both of them have a copy stored in /var/www/ nailgun/ dump/.
Is it by mistake, or design, that we store all previous snapshots without rotation somewhere in the filesystem, occupying space, and not talking to the user about that? To figure out the directory one should check the source code.