swift set wrong directory for storage after default installation mos 7.0

Bug #1521129 reported by Viacheslav Garonin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Fuel Library (Deprecated)

Bug Description

    After default installation MOS 7.0 with Swift as storage I've found abnormal behavior of Swift, which used as Glance back-end in this installation.
    I've found files of object storage in directory /srv instead /var/lib/glance/. So then I tried to upload image to Glance it reported me with out of space error.

    I think it misconfiguration in puppet manifests. I could be happy if someone from Fuel-Library team will fix it.
    I think that the use of the root partition for storing images is not advisable anyway and it makes sense to change.

root@node-1:/etc# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/os-root 15G 11G 3.9G 73% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 3.9G 12K 3.9G 1% /dev
tmpfs 799M 112M 688M 14% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 60M 3.9G 2% /run/shm
none 100M 0 100M 0% /run/user
/dev/vda3 196M 39M 148M 21% /boot
/dev/mapper/logs-log 9.8G 2.4G 6.9G 26% /var/log
/dev/mapper/image-glance 5.1G 33M 5.1G 1% /var/lib/glance
/dev/mapper/mysql-root 20G 5.5G 14G 30% /var/lib/mysql

id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---|-----------|---------------------|------------|---------------|----------------------------|----------------------------|-----------------------|-----------|---------
1 | ready | cs1 (3a:84) | 1 | 10.20.0.4 | 52:54:00:66:3a:84 | cinder, controller | | True | 1
2 | ready | mcv1 (32:ba) | 1 | 10.20.0.3 | 52:54:00:8b:32:ba | compute | | True | 1
3 | ready | cmp1 (7c:17) | 1 | 10.20.0.5 | 52:54:00:83:7c:17 | compute | | True | 1

and upload
-rw-r--r-- 1 root root 4126539776 Nov 24 17:39 mcv-0.0.1-rc27-2015-11-24-18-40-58.qcow2

root@node-1:~# glance image-create --name mcv_rc27 --disk-format qcow2 --container-format bare --is-public true --file mcv-0.0.1-rc27-2015-11-24-18-40-58.qcow2 --progress

root@node-1:~# glance image-list
+----------------------------------------------------------------+--------------+-------------------+---------------------------+--------------------+----------+
| ID | Name | Disk Format | Container Format | Size | Status |
+---------------------------------------------------------------+---------------+-------------------+---------------------------+--------------------+----------+
| 687845df-55fe-4b2c-a8b4-3e04e297001c | mcv_rc27 | qcow2 | bare | 4126539776 | active |
| e6583a0c-883c-4a6b-8d49-200efa5a2ffc | TestVM | qcow2 | bare | 13287936 | active |
+---------------------------------------------------------------+--------------+-------------------+----------------------------+-------------------+----------+

root@node-1:~# ls -la /var/lib/glance/images
total 0
drwxr-xr-x 2 glance glance 6 Sep 21 17:23 .
drwxr-xr-x 4 glance glance 37 Nov 17 13:09 ..

image data found in
root@node-1:~# ls -Rla /srv/|grep 500
drwxr-xr-x 3 swift swift 4096 Nov 25 16:30 500
/srv/node/1/objects/500:
/srv/node/1/objects/500/418:
/srv/node/1/objects/500/418/fa4a57e5831b609d392c5f43bb522418:
drwxr-xr-x 3 swift swift 4096 Nov 25 16:30 500
/srv/node/2/objects/500:
/srv/node/2/objects/500/418:
/srv/node/2/objects/500/418/fa4a57e5831b609d392c5f43bb522418:

root@node-1:/etc/glance# grep filesystem_store_datadir *.conf
glance-api.conf:#filesystem_store_datadir = <None>
glance-api.conf:#filesystem_store_datadirs =
glance-registry.conf:#filesystem_store_datadir = <None>
glance-registry.conf:#filesystem_store_datadirs =

tags: added: swift
Revision history for this message
Dmitry Klenov (dklenov) wrote :

@Viacheslav,

Can you please also attach diagnostic snapshot?

Changed in fuel:
milestone: none → 8.0
importance: Undecided → Medium
status: New → Incomplete
assignee: nobody → Fuel Library Team (fuel-library)
tags: added: area-library
summary: - swift after default installation mos 7.0
+ swift set wrong directory for storage after default installation mos 7.0
tags: added: team-bugfix
Revision history for this message
Artem Roma (aroma-x) wrote :

This bug is in incomplete for more than 3 weeks. Move it to invalid

Changed in fuel:
status: Incomplete → Invalid
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.