/tmp is not cleaned after image upload from horizon

Bug #1389380 reported by Gyula Halmos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Vlad Okhrimenko
5.0.x
Won't Fix
Low
MOS Horizon
5.1.x
Won't Fix
Low
MOS Horizon
6.0.x
Fix Released
High
Alex Ermolov
6.1.x
Fix Released
High
Vlad Okhrimenko

Bug Description

Using the Create Image function in Horizon (Image Source == Image File ) uploads the image to /tmp on the controller node, but after successful transfer to glance it has not been cleaned up from the /tmp. And filling up the OS's file system.

[root@node-17 ~]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/os-root 622G 22G 569G 4% /
tmpfs 32G 37M 32G 1% /dev/shm
/dev/md0 194M 25M 160M 14% /boot
/dev/mapper/image-glance
                      265G 15G 251G 6% /var/lib/glance

[root@node-17 ~]# ls -larth /tmp
total 15G
.
.
.
-rw-------. 1 root root 0 Nov 4 18:32 yum.log
-rw------- 1 root root 2.2K Nov 4 19:13 astute.yaml
dr-xr-xr-x. 22 root root 4.0K Nov 4 19:13 ..
-rw------- 1 apache apache 7.1G Nov 4 19:34 tmpRyZ42G.upload
-rw------- 1 apache apache 7.1G Nov 4 19:53 tmpFErVOW.upload
-rw-r--r-- 1 root root 0 Nov 4 20:01 logrotate
-rw------- 1 apache apache 788M Nov 4 20:03 tmpmfqe8D.upload
drwxrwxrwt. 9 root root 4.0K Nov 4 20:07 .

Please verify if it is an unsupported feature or this is a faulty behaviour.

Thanks,

Gyula

Tags: horizon
Revision history for this message
Gyula Halmos (gyula-halmos) wrote :

Versions:

[root@node-17 ~]# rpm -qa | egrep "glance|http"
python-httplib2-0.7.7-1.el6.noarch
http-parser-2.0-4.20121128gitcd01361.el6.x86_64
python-glance-2014.1.1-fuel5.1.mira3.noarch
httpd-tools-2.2.15-15.el6.1.x86_64
python-glanceclient-0.12.0-fuel5.1.mira1.noarch
openstack-glance-2014.1.1-fuel5.1.mira3.noarch
httpd-2.2.15-15.el6.1.x86_64
rubygem-httpclient-2.3.2-5.el6.noarch

Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

Gyula, please provide output of the http request to the following url: http://<fuel master node ip>:8000/api/version . It will help to better identify Fuel release version.

Changed in mos:
status: New → Incomplete
Revision history for this message
Gyula Halmos (gyula-halmos) wrote :

{u'build_id': u'2014-09-17_21-40-34', u'ostf_sha': u'64cb59c681658a7a55cc2c09d079072a41beb346', u'build_number': u'11', u'auth_required': True, u'nailgun_sha': u'eb8f2b358ea4bb7eb0b2a0075e7ad3d3a905db0d', u'production': u'docker', u'api': u'1.0', u'fuelmain_sha': u'8ef433e939425eabd1034c0b70e90bdf888b69fd', u'astute_sha': u'f5fbd89d1e0e1f22ef9ab2af26da5ffbfbf24b13', u'feature_groups': [u'mirantis'], u'release': u'5.1', u'release_versions': {u'2014.1.1-5.1': {u'VERSION': {u'build_id': u'2014-09-17_21-40-34', u'ostf_sha': u'64cb59c681658a7a55cc2c09d079072a41beb346', u'build_number': u'11', u'api': u'1.0', u'nailgun_sha': u'eb8f2b358ea4bb7eb0b2a0075e7ad3d3a905db0d', u'production': u'docker', u'fuelmain_sha': u'8ef433e939425eabd1034c0b70e90bdf888b69fd', u'astute_sha': u'f5fbd89d1e0e1f22ef9ab2af26da5ffbfbf24b13', u'feature_groups': [u'mirantis'], u'release': u'5.1', u'fuellib_sha': u'd9b16846e54f76c8ebe7764d2b5b8231d6b25079'}}}, u'fuellib_sha': u'd9b16846e54f76c8ebe7764d2b5b8231d6b25079'}

Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

Horizon team, the bug is discovered in 5.1, please check it in other releases.

Timur Sufiev (tsufiev-x)
tags: added: horizon
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Having thought a bit, I've raised the severity to High, because this issue can lead to space exhaustion on controller node which would affect the whole OpenStack installation.

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

I verified this issue on 6.0.1 build
# fuel --fuel-version
api: '1.0'
astute_sha: f7cda2171b0b677dfaeb59693d980a2d3ee4c3e0
auth_required: true
build_id: 2015-02-22_20-49-44
build_number: '102'
feature_groups:
- mirantis
fuellib_sha: 3a441bce1b525fe03ace45adfdda495cb64869d2
fuelmain_sha: a715aba8caf200390498a6bd29e6bffd9783f242
nailgun_sha: adbc77b3435d1484e39a46075bd5d558d7ec68b7
ostf_sha: 3b57985d4d2155510894a1f6d03b478b201f7780
production: docker
release: 6.0.1
release_versions:
  2014.2-6.0.1:
    VERSION:
      api: '1.0'
      astute_sha: f7cda2171b0b677dfaeb59693d980a2d3ee4c3e0
      build_id: 2015-02-22_20-49-44
      build_number: '102'
      feature_groups:
      - mirantis
      fuellib_sha: 3a441bce1b525fe03ace45adfdda495cb64869d2
      fuelmain_sha: a715aba8caf200390498a6bd29e6bffd9783f242
      nailgun_sha: adbc77b3435d1484e39a46075bd5d558d7ec68b7
      ostf_sha: 3b57985d4d2155510894a1f6d03b478b201f7780
      production: docker
      release: 6.0.1

I uploaded several ISOs: Ubuntu Server (600MB) and Fuel ISO (3.9)
In all cases an .upload file was purged automatically after image upload completion.

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

UPD: Storage back-ends for Cinder and Glance are LVM.

Revision history for this message
OSCI Robot (oscirobot) wrote :

RPM package horizon has been built for project openstack/horizon
Package version == 2014.2, package release == fuel6.0.mira11.git.df7833b.19d5c57

Changeset: https://review.fuel-infra.org/5385
project: openstack/horizon
branch: openstack-ci/fuel-6.0-updates/2014.2
author: Alex Ermolov
committer: Alex Ermolov
subject: Clean '/tmp' after image upload from horizon
status: patchset-created

Files placed on repository:
openstack-dashboard-2014.2-fuel6.0.mira11.git.df7833b.19d5c57.noarch.rpm
python-django-horizon-2014.2-fuel6.0.mira11.git.df7833b.19d5c57.noarch.rpm
python-django-horizon-doc-2014.2-fuel6.0.mira11.git.df7833b.19d5c57.noarch.rpm

NOTE: Changeset is not merged, created temporary package repository.
RPM repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-6.0-updates-stable-5385/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package horizon has been built for project openstack/horizon
Package version == 2014.2, package release == fuel6.0~mira15+git.df7833b.19d5c57

Changeset: https://review.fuel-infra.org/5385
project: openstack/horizon
branch: openstack-ci/fuel-6.0-updates/2014.2
author: Alex Ermolov
committer: Alex Ermolov
subject: Clean '/tmp' after image upload from horizon
status: patchset-created

Files placed on repository:
openstack-dashboard-ubuntu-theme_2014.2-fuel6.0~mira15+git.df7833b.19d5c57_all.deb
openstack-dashboard_2014.2-fuel6.0~mira15+git.df7833b.19d5c57_all.deb
python-django-horizon_2014.2-fuel6.0~mira15+git.df7833b.19d5c57_all.deb

NOTE: Changeset is not merged, created temporary package repository.
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-updates-stable-5385/ubuntu

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/horizon (openstack-ci/fuel-6.0-updates/2014.2)

Reviewed: https://review.fuel-infra.org/5385
Submitter: Vitaly Sedelnik <email address hidden>
Branch: openstack-ci/fuel-6.0-updates/2014.2

Commit: df7833b9405fe998ea6bc0be7e3263a23a479ae3
Author: Alex Ermolov <email address hidden>
Date: Tue Apr 7 14:20:15 2015

Clean '/tmp' after image upload from horizon

After image upload(successful or fails) from horizon, image
cleaned up from the /tmp

Closes-Bug: #1389380

Change-Id: I2c40e67234a8d0c8bdef9838b863ade9f5434083

Revision history for this message
OSCI Robot (oscirobot) wrote :

RPM package horizon has been built for project openstack/horizon
Package version == 2014.2, package release == fuel6.0.mira11

Changeset: https://review.fuel-infra.org/5385
project: openstack/horizon
branch: openstack-ci/fuel-6.0-updates/2014.2
author: Alex Ermolov
committer: Alex Ermolov
subject: Clean '/tmp' after image upload from horizon
status: change-merged

Files placed on repository:
openstack-dashboard-2014.2-fuel6.0.mira11.noarch.rpm
python-django-horizon-2014.2-fuel6.0.mira11.noarch.rpm
python-django-horizon-doc-2014.2-fuel6.0.mira11.noarch.rpm

Changeset merged. Package placed on primary repository
RPM repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-6.0-updates-stable/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

DEB package horizon has been built for project openstack/horizon
Package version == 2014.2, package release == fuel6.0~mira15

Changeset: https://review.fuel-infra.org/5385
project: openstack/horizon
branch: openstack-ci/fuel-6.0-updates/2014.2
author: Alex Ermolov
committer: Alex Ermolov
subject: Clean '/tmp' after image upload from horizon
status: change-merged

Files placed on repository:
openstack-dashboard-ubuntu-theme_2014.2-fuel6.0~mira15_all.deb
openstack-dashboard_2014.2-fuel6.0~mira15_all.deb
python-django-horizon_2014.2-fuel6.0~mira15_all.deb

Changeset merged. Package placed on primary repository
DEB repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-updates-stable/ubuntu

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

On verification

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Verified on
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  openstack_version: "2014.2.2-6.1"
  api: "1.0"
  build_number: "395"
  build_id: "2015-05-08_11-08-49"
  nailgun_sha: "46f55c293e4540d31bcaa6ca3fba77235fb27537"
  python-fuelclient_sha: "af6c9c3799b9ec107bcdc6dbf035cafc034526ce"
  astute_sha: "6a4dcd11c67af2917815f3678fb594c7412a4c97"
  fuel-library_sha: "f385d6a58298c702f8d4f14c452dcffdc0b1e2a3"
  fuel-ostf_sha: "740ded337bb2a8a9b3d505026652512257375c01"
  fuelmain_sha: "3eca5e8f7ca6a83faff5feeca92c21cff31c0af1"

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.