Feature #2687
Dashboard widget for disk utilization
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-duc | |||
Target version: | v6.6-rc1 | |||
Resolution: | NEEDINFO: | No |
Description
It might be useful to have a dashbard widget which displays size of configured ibays
Associated revisions
stat failed. fix missing directory. Refs #2687
stat failed. included /var/cache/duc in rpm package. Refs #2687
configuration. removed send mail in cronjob and raised min size. Refs #2687
History
#1 Updated by Filippo Carletti over 7 years ago
Best candidate is philesight:
http://zevv.nl/play/code/philesight/
#2 Updated by Giacomo Sanchietti over 7 years ago
- Target version set to ~FUTURE
#3 Updated by Filippo Carletti over 6 years ago
New candidate id DUC:
https://github.com/zevv/duc
#4 Updated by Giacomo Sanchietti over 6 years ago
- Subject changed from Dashboard widget for Ibays size to Dashboard widget for disk utilization size
#5 Updated by Giacomo Sanchietti over 6 years ago
- Subject changed from Dashboard widget for disk utilization size to Dashboard widget for disk utilization
- Status changed from NEW to TRIAGED
- Assignee set to Edoardo Spadoni
- Target version changed from ~FUTURE to v6.6
- % Done changed from 0 to 20
#6 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from TRIAGED to ON_DEV
- % Done changed from 20 to 30
#7 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
#8 Updated by Giacomo Sanchietti over 6 years ago
Upstream repository: https://github.com/zevv/duc
#9 Updated by Edoardo Spadoni over 6 years ago
Test Case
- Install duc and nethserver-duc rpms
- Check in Dashboard if Tab "Disk Usage" has been added
- Click Update to start indexing of disk.
- Now you can see the graph.
Try to navigate and explore the disk usage.
Doube click in the center and click on base breadcumb reset the graph
#10 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from MODIFIED to ON_QA
- Assignee deleted (
Edoardo Spadoni) - % Done changed from 60 to 70
- nethserver-duc-0.0.1-1.ns6.noarch.rpm:
- duc-1.0-1.ns6.x86_64.rpm
- duc-debuginfo-1.0-1.ns6.x86_64.rpm
- duc-devel-1.0-1.ns6.x86_64.rpm
#11 Updated by Giacomo Sanchietti over 6 years ago
- Category set to nethserver-duc
#12 Updated by Filippo Carletti over 6 years ago
- Status changed from ON_QA to TRIAGED
- % Done changed from 70 to 20
After installation, I went to the dashboard and found a message that said to update the disk usage database. I clicked Update and an error popped out (Italian):
Task completato con errori
S20nethserver-duc-index #1 (code 256)
/var/log/messages contained:
Feb 17 17:07:24 ns65 httpd-admin: [WARNING] NethServer\Module\Dashboard\Duc: stat(): stat failed for /var/cache/duc/duc.json
I run:
mkdir /var/cache/duc
and then clicked Update again. This time I didn't receive an error, the disk has been indexed and usage shown correctly.
#13 Updated by Edoardo Spadoni over 6 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Edoardo Spadoni
- % Done changed from 20 to 30
#14 Updated by Edoardo Spadoni over 6 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Edoardo Spadoni) - % Done changed from 30 to 60
Try to do same Test Case.
Test Case
- Install duc and nethserver-duc rpms
- Check in Dashboard if Tab "Disk Usage" has been added
- Click Update to start indexing of disk.
- Now you can see the graph.
Try to navigate and explore the disk usage.
Doube click in the center and click on base breadcumb reset the graph
#15 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
- nethserver-duc-0.0.1-1.2.g212654a.ns6.noarch.rpm
- duc-1.0-1.ns6.x86_64.rpm
- duc-debuginfo-1.0-1.ns6.x86_64.rpm
- duc-devel-1.0-1.ns6.x86_64.rpm
#16 Updated by Filippo Carletti over 6 years ago
- Status changed from ON_QA to TRIAGED
- % Done changed from 70 to 20
I verified both update button and cron daily update.
Every night the admin receives a mail containing:
/etc/cron.daily/duc-index:
Indexed 97738 files and 29295 directories, (2.0GB total) in 0.55 secs.
I'd like to avoid mails to admin.
Also one remark: minimum displayed size is hardcoded at 1024 (see /etc/e-smith/events/actions/nethserver-duc-index).
Probably an higher limit will be better, we should evaluate minimum visible size in the graph and adjust SIZE var.
#17 Updated by Edoardo Spadoni over 6 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Edoardo Spadoni
- % Done changed from 20 to 30
#18 Updated by Edoardo Spadoni over 6 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Edoardo Spadoni) - % Done changed from 30 to 60
Added output in /dev/null
and raised min size to 10MB.
#19 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
- nethserver-duc-0.0.1-1.3.gdbe458d.ns6.noarch.rpm
#20 Updated by Filippo Carletti over 6 years ago
- Status changed from ON_QA to VERIFIED
- % Done changed from 70 to 90
# anacron -n -d Anacron started on 2015-02-19 Checking against 23 with 31 Will run job `cron.daily' Jobs will be executed sequentially Job `cron.daily' started Job `cron.daily' terminated Normal exit (1 job run) [root@ns65 ~]# mail No mail for root
#21 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
- nethserver-duc-1.0.0-1.ns6.noarch.rpm
- duc-1.0-1.ns6.x86_64.rpm
- duc-devel-1.0-1.ns6.x86_64.rpm
Documentation updated.
#22 Updated by Davide Principi over 6 years ago
- Target version changed from v6.6 to v6.6-rc1