Coder Social home page Coder Social logo

calamari's Introduction

https://travis-ci.org/ceph/calamari.svg?branch=master https://readthedocs.org/projects/calamari/badge/?version=latest

Calamari server

Calamari is a management and monitoring service for Ceph, exposing a high level REST API.

This repository contains the Calamari server-side code. There is an accompanying user interface built on the Calamari REST API at https://github.com/ceph/calamari-clients

Getting Packages

http://download.ceph.com/calamari

A high level guide to installing Calamari from packages is available here: http://calamari.readthedocs.org/en/latest/operations/index.html

Check the mailing list archives for recent discussions of commonly encountered issues, and post your questions there. Check back here for more comprehensive guidance for end-users in the near future.

For developers

  1. Read about setting up a development environment: http://calamari.readthedocs.org/en/latest/development/dev_env.html
  2. Read about the coding style for Python code: http://calamari.readthedocs.org/en/latest/development/coding_style.html
  3. Read about the format for commit messages: http://ceph.com/resources/development/ceph-commit-comments/
  4. ...and send a pull request

Resources

Calamari developer documentation: http://calamari.readthedocs.org

Calamari mailing list: http://lists.ceph.com/listinfo.cgi/ceph-calamari-ceph.com

Calamari issue tracker: http://tracker.ceph.com/projects/calamari

Calamari packages http://download.ceph.com/calamari

calamari's People

Contributors

abonas avatar alexm avatar alfredodeza avatar b-ranto avatar cannium avatar christinameno avatar dmick avatar donnydavis avatar dotnwat avatar fzylogic avatar ivaxer avatar jameshilliard avatar jcsp avatar jebrown avatar ksingh7 avatar ktdreyer avatar minshenglin avatar nanquanyuhao avatar ndarshan avatar pcarinhas avatar sbadia avatar strima avatar theanalyst avatar toabctl avatar tserong avatar wyllys66 avatar xanpeng avatar yanfali avatar zhurongze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calamari's Issues

How to : calamari and squid

I see your repo but I've got a question. So I would like to install calimari in order to manage squid log under Mandriva distribution. As Mandriva Linux has Rpm packets , I suppose to use centos tutorial, don't I ?

And the other things, how to manage it with squid proxy?

Thank you for help

Unit tests fail without DJANGO_SETTINGS_MODULE being defined

Pretty much immediately, most unit tests fail in the unit test directories (cthulhu/tests, rest-api/tests) if DJANGO_SETTINGS_MODULE is not set to something. I set it to a blank file and all the failures went away. Is there a cleaner way to set this up in the environment?

issue with dev environment setup

followed steps mentioned in readme, i've the server up and running but not able to access the web pages. not sure if i got something wrong. can someone please help? let me know if more details is required. Thanks!

$ dev/configure.py
Calamari repo is at: /data/users/sarink/inktank/calamari, user is sarink, venv /data/users/sarink/inktank/calamari/venv
Writing /data/users/sarink/inktank/calamari/dev/etc/salt/master
Writing /data/users/sarink/inktank/calamari/dev/calamari.conf
Writing /data/users/sarink/inktank/calamari/dev/alembic.ini
Writing /data/users/sarink/inktank/calamari/tests/test.conf
Complete. Now run:

  1. CALAMARI_CONFIG=dev/calamari.conf calamari-ctl initialize
  2. supervisord -c dev/supervisord.conf -n

$ CALAMARI_CONFIG=dev/calamari.conf calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Updating database...
[INFO] Initializing web interface...
[INFO] Restarting services...
[INFO] Complete.

$ tree webapp/ -L 2
webapp/
โ”œโ”€โ”€ calamari
โ”‚ย ย  โ””โ”€โ”€ manage.py
โ””โ”€โ”€ content
โ”œโ”€โ”€ admin -> ../../../calamari-clients/admin
โ”œโ”€โ”€ css
โ”œโ”€โ”€ dashboard -> ../../../calamari-clients/dashboard
โ”œโ”€โ”€ html
โ”œโ”€โ”€ img
โ”œโ”€โ”€ js
โ”œโ”€โ”€ login -> ../../../calamari-clients/login
โ”œโ”€โ”€ manage -> ../../../calamari-clients/manage
โ””โ”€โ”€ rest_framework

11 directories, 1 filerunning the supervisor without any issues..

$ supervisord -n -c dev/supervisord.conf
2014-06-02 16:18:30,448 INFO RPC interface 'supervisor' initialized
2014-06-02 16:18:30,448 CRIT Server 'inet_http_server' running without any HTTP authentication checking
2014-06-02 16:18:30,451 INFO supervisord started with pid 25963
2014-06-02 16:18:31,456 INFO spawned: 'salt-master' with pid 25966
2014-06-02 16:18:31,460 INFO spawned: 'carbon-cache' with pid 25967
2014-06-02 16:18:31,462 INFO spawned: 'calamari-frontend' with pid 25968
2014-06-02 16:18:31,464 INFO spawned: 'cthulhu' with pid 25969
2014-06-02 16:18:32,478 INFO success: salt-master entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-06-02 16:18:32,478 INFO success: carbon-cache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-06-02 16:18:32,478 INFO success: calamari-frontend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2014-06-02 16:18:32,478 INFO success: cthulhu entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

$ tail -f dev/calamari.log
2014-06-02 18:18:45,585 - metric_access - django.request Not Found: /login/

Calamari client package build failed for CentOS

I have builded calamari server packages successfully for CentOS , next i was trying to build calamari client packages for CentOS but it failed with the error as

Full logs here : http://paste.ubuntu.com/11632381/

[INFO    ] Completed state [make rpm] at time 19:14:34.437209
local:
----------
          ID: rh_repackage_deps
    Function: pkg.installed
      Result: True
     Comment: All specified packages are already installed.
     Started: 19:14:28.519342
    Duration: 3810.621 ms
     Changes:
----------
          ID: git_clone
    Function: git.latest
        Name: /git/calamari-clients
      Result: True
     Comment: Repository /git/calamari-clients cloned to /home/vagrant/clients
     Started: 19:14:32.399199
    Duration: 1877.558 ms
     Changes:
              ----------
              new:
                  /git/calamari-clients
              revision:
                  931ee5883cf52bb6a176634aabf8c41a628e84b8
----------
          ID: copyin_build_product
    Function: cmd.run
        Name: cp /git/calamari-clients*tar.gz /home/vagrant/clients
      Result: False
     Comment: Command "cp /git/calamari-clients*tar.gz /home/vagrant/clients" run
     Started: 19:14:34.279902
    Duration: 40.186 ms
     Changes:
              ----------
              pid:
                  2796
              retcode:
                  1
              stderr:
                  cp: cannot stat `/git/calamari-clients*tar.gz': No such file or directory
              stdout:
----------
          ID: build_calamari_clients
    Function: cmd.run
        Name: make rpm
      Result: False
     Comment: Command "make rpm" run
     Started: 19:14:34.323721
    Duration: 113.488 ms
     Changes:
              ----------
              pid:
                  2809
              retcode:
                  2
              stderr:
                  + umask 022
                  + cd /home/vagrant/clients/../rpmbuild/BUILD
                  + LANG=C
                  + export LANG
                  + unset DISPLAY
                  + echo prep
                  + exit 0
                  + umask 022
                  + cd /home/vagrant/clients/../rpmbuild/BUILD
                  + '[' /home/vagrant/rpmbuild/BUILDROOT/calamari-clients-1.2.2-32_g931ee58.el6.x86_64 '!=' / ']'
                  + rm -rf /home/vagrant/rpmbuild/BUILDROOT/calamari-clients-1.2.2-32_g931ee58.el6.x86_64
                  ++ dirname /home/vagrant/rpmbuild/BUILDROOT/calamari-clients-1.2.2-32_g931ee58.el6.x86_64
                  + mkdir -p /home/vagrant/rpmbuild/BUILDROOT
                  + mkdir /home/vagrant/rpmbuild/BUILDROOT/calamari-clients-1.2.2-32_g931ee58.el6.x86_64
                  + LANG=C
                  + export LANG
                  + unset DISPLAY
                  + echo install
                  + mkdir -p /home/vagrant/rpmbuild/BUILDROOT/calamari-clients-1.2.2-32_g931ee58.el6.x86_64
                  + cd /home/vagrant/rpmbuild/BUILDROOT/calamari-clients-1.2.2-32_g931ee58.el6.x86_64
                  + tar xfz /home/vagrant/clients/calamari-clients-build-output.tar.gz
                  tar (child): /home/vagrant/clients/calamari-clients-build-output.tar.gz: Cannot open: No such file or directory
                  tar (child): Error is not recoverable: exiting now
                  tar: Child returned status 2
                  tar: Error is not recoverable: exiting now
                  error: Bad exit status from /var/tmp/rpm-tmp.F6IpoI (%install)
                      Bad exit status from /var/tmp/rpm-tmp.F6IpoI (%install)
                  make: *** [rpm] Error 1
              stdout:
                  mkdir -p /home/vagrant/clients/../rpmbuild/{SPECS,RPMS,BUILDROOT}
                  cp clients.spec /home/vagrant/clients/../rpmbuild/SPECS
                  ( \
                    cd /home/vagrant/clients/../rpmbuild; \
                    rpmbuild -bb --define "_topdir /home/vagrant/clients/../rpmbuild" --define "version 1.2.2" --define "revision 32_g931ee58" --define "tarname /home/vagrant/clients/calamari-clients-build-output.tar.gz" SPECS/clients.spec; \
                    )
                  Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SAzPjb
                  prep
                  Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.F6IpoI
                  install


                  RPM build errors:
----------
          ID: copy_calamari_clients
    Function: cmd.run
        Name: cp rpmbuild/RPMS/x86_64/calamari-clients*.rpm /git
      Result: False
     Comment: One or more requisite failed: make_rpm.build_calamari_clients
     Started:
    Duration:
     Changes:

Summary
------------
Succeeded: 2 (changed=3)
Failed:    3
------------
Total states run:     5
[vagrant@vagrant-centos64 ~]$

[vagrant@vagrant-centos64 ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             7.3G  1.2G  5.8G  17% /
tmpfs                 246M   12K  246M   1% /dev/shm
git                   233G  215G   18G  93% /git
vagrant               233G  215G   18G  93% /vagrant
srv_salt              233G  215G   18G  93% /srv/salt
[vagrant@vagrant-centos64 ~]$
[vagrant@vagrant-centos64 ~]$ exit
logout
Connection to 127.0.0.1 closed.
teeri:centos-package ksingh$
teeri:centos-package ksingh$ cd ../..
teeri:calamari-clients ksingh$
teeri:calamari-clients ksingh$
teeri:calamari-clients ksingh$
teeri:calamari-clients ksingh$ ls -la
total 96
drwxr-xr-x  22 ksingh  staff   748 Jun  7 22:07 .
drwxr-xr-x   9 ksingh  staff   306 Jun  7 22:07 ..
drwxr-xr-x  12 ksingh  staff   408 Jun  7 22:07 .git
-rw-r--r--   1 ksingh  staff   175 Jun  7 22:07 .gitignore
-rw-r--r--   1 ksingh  staff  1646 Jun  7 22:07 COPYING
-rw-r--r--   1 ksingh  staff  1127 Jun  7 22:07 LICENSE.txt
-rw-r--r--   1 ksingh  staff  4569 Jun  7 22:07 Makefile
-rw-r--r--   1 ksingh  staff   910 Jun  7 22:07 Makefile.sub
-rw-r--r--   1 ksingh  staff   856 Jun  7 22:07 README.md
drwxr-xr-x  16 ksingh  staff   544 Jun  7 22:07 admin
-rw-r--r--   1 ksingh  staff  1398 Jun  7 22:07 bootstrap.md
-rw-r--r--   1 ksingh  staff  2222 Jun  7 22:07 calamari-clients.suse.spec
-rw-r--r--   1 ksingh  staff  1170 Jun  7 22:07 clients.spec
drwxr-xr-x  12 ksingh  staff   408 Jun  7 22:07 dashboard
drwxr-xr-x  10 ksingh  staff   340 Jun  7 22:07 debian
-rwxr-xr-x   1 ksingh  staff   874 Jun  7 22:07 get-versions.sh
drwxr-xr-x  14 ksingh  staff   476 Jun  7 22:07 login
drwxr-xr-x  18 ksingh  staff   612 Jun  7 22:07 manage
drwxr-xr-x  11 ksingh  staff   374 Jun  7 22:07 screenshots
-rw-r--r--   1 ksingh  staff   815 Jun  7 22:07 ui.build.instructions.md
drwxr-xr-x   9 ksingh  staff   306 Jun  7 22:07 utils
drwxr-xr-x  10 ksingh  staff   340 Jun  7 22:07 vagrant
teeri:calamari-clients ksingh$ cd ..
teeri:calamari-git ksingh$ ls -la
total 65136
drwxr-xr-x   9 ksingh  staff       306 Jun  7 22:07 .
drwxr-xr-x  10 ksingh  staff       340 Jun  7 22:03 ..
drwxr-xr-x  28 ksingh  staff       952 Jun  7 21:07 Diamond
drwxr-xr-x  33 ksingh  staff      1122 Jun  7 21:05 calamari
drwxr-xr-x  22 ksingh  staff       748 Jun  7 22:07 calamari-clients
-rw-r--r--   1 ksingh  staff   8256819 Jun  7 21:46 calamari-repo-el6.tar.gz
-rw-r--r--   1 ksingh  staff  24194260 Jun  7 21:46 calamari-server-1.3-rc_50_gd6e43c6.el6.x86_64.rpm
-rw-r--r--   1 ksingh  staff    595540 Jun  7 21:46 diamond-3.4.67-0.noarch.rpm
-rw-r--r--   1 ksingh  staff    297532 Jun  7 21:46 diamond-3.4.67-0.src.rpm
teeri:calamari-git ksingh$

Building calamari package silently fails / builds corrupt package

Hello all,
I am following the instructions in http://calamari.readthedocs.org/en/latest/development/building_packages.html

Yesterday no packages were built, I built / destroyed the vagrant environment several times with no results. Today I pulled the latest changes (from master) and built again. This time I got calamari-server_1.2-106-g131b9be_all.deb, but on install and setup I get http://pastie.org/9453749 in httpd_errors.log ( 500 error ) - any way I can troubleshoot whats going on?

Looking at the salt log I don't see any glaring issues.

500 internal server error

Dear all

I followed the installation tutorial and I get this message on the httpd_access.log

[Thu Jan 22 04:26:33.702685 2015] [:error] [pid 8127] [remote ::1:38160] mod_wsgi (pid=8127): Exception occurred processing WSGI script '/opt/calamari/conf/calamari.wsgi'.
[Thu Jan 22 04:26:33.702756 2015] [:error] [pid 8127] [remote ::1:38160] Traceback (most recent call last):
[Thu Jan 22 04:26:33.702777 2015] [:error] [pid 8127] [remote ::1:38160] File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 236, in call
[Thu Jan 22 04:26:33.702888 2015] [:error] [pid 8127] [remote ::1:38160] self.load_middleware()
[Thu Jan 22 04:26:33.702902 2015] [:error] [pid 8127] [remote ::1:38160] File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 45, in load_middleware
[Thu Jan 22 04:26:33.703010 2015] [:error] [pid 8127] [remote ::1:38160] for middleware_path in settings.MIDDLEWARE_CLASSES:
[Thu Jan 22 04:26:33.703023 2015] [:error] [pid 8127] [remote ::1:38160] File "/opt/calamari/venv/lib/python2.7/site-packages/django/conf/init.py", line 53, in getattr
[Thu Jan 22 04:26:33.703109 2015] [:error] [pid 8127] [remote ::1:38160] self._setup(name)
[Thu Jan 22 04:26:33.703121 2015] [:error] [pid 8127] [remote ::1:38160] File "/opt/calamari/venv/lib/python2.7/site-packages/django/conf/init.py", line 49, in _setup
[Thu Jan 22 04:26:33.703138 2015] [:error] [pid 8127] [remote ::1:38160] self._configure_logging()
[Thu Jan 22 04:26:33.703146 2015] [:error] [pid 8127] [remote ::1:38160] File "/opt/calamari/venv/lib/python2.7/site-packages/django/conf/init.py", line 84, in _configure_logging
[Thu Jan 22 04:26:33.703158 2015] [:error] [pid 8127] [remote ::1:38160] logging_config_func(self.LOGGING)
[Thu Jan 22 04:26:33.703165 2015] [:error] [pid 8127] [remote ::1:38160] File "/usr/lib64/python2.7/logging/config.py", line 803, in dictConfig
[Thu Jan 22 04:26:33.704969 2015] [:error] [pid 8127] [remote ::1:38160] dictConfigClass(config).configure()
[Thu Jan 22 04:26:33.704986 2015] [:error] [pid 8127] [remote ::1:38160] File "/usr/lib64/python2.7/logging/config.py", line 585, in configure
[Thu Jan 22 04:26:33.705003 2015] [:error] [pid 8127] [remote ::1:38160] '%r: %s' % (name, e))
[Thu Jan 22 04:26:33.705019 2015] [:error] [pid 8127] [remote ::1:38160] ValueError: Unable to configure handler 'log_file': [Errno 13] Permission denied: '/var/log/calamari/calamari.log'

any answer would be welcome
Regards
F

In devmode, still checking for config file at /etc/calamari/calamari.conf

Similar to the last issue, it looks like the unit tests are expecting a more standard environment than the devmode instructions will yield. Once the django EV was correctly set, the unit tests threw up configuration errors about a missing /etc/calamari/calamari.conf. Worthwhile to failover to the dev/calamari.conf that is already in the source tree, and that the devmode instructions point users to?

3 Ceph servers are connected to Calamari, but no Ceph cluster has been created yet

Hi i am facing this very annoying problem with calamari.

image

I have tried 3 time with each time fresh start but it never worked. Its not only me facing this problem there are other community members facing the exact same problems since few weeks.

Output from my last attempt : http://lists.ceph.com/pipermail/ceph-calamari-ceph.com/2015-June/000169.html

So far there is no concrete solution , really appreciate if someone who knows calamari from core , can pop up and help in troubleshooting.

Output from this attempt :

  • 3 node ceph cluster ( Giant )
  • CentOS7
[root@ceph-node1 calamari]# rpm -qa | egrep -i "calamari|salt|diamond|supervisor"
salt-master-2014.7.5-1.el7.centos.noarch
calamari-server-1.3.0.1-63_g11f74e4.el7.centos.x86_64
salt-2014.7.5-1.el7.centos.noarch
supervisor-3.0-1.el7.noarch
diamond-3.4.582-0.noarch
calamari-clients-1.2.2-32_g931ee58.el7.centos.x86_64
salt-minion-2014.7.5-1.el7.centos.noarch
[root@ceph-node1 calamari]#
[root@ceph-node1 calamari]# salt-key -L
Accepted Keys:
ceph-node1
ceph-node2
ceph-node3
Unaccepted Keys:
Rejected Keys:
[root@ceph-node1 calamari]#
[root@ceph-node1 calamari]# salt '*' test.ping
ceph-node3:
    True
ceph-node2:
    True
ceph-node1:
    True
[root@ceph-node1 calamari]#
[root@ceph-node1 calamari]# salt '*' ceph.get_heartbeats
ceph-node3:
    |_
      ----------
      boot_time:
          1435909024
      ceph_version:
          0.87.2-0.el7.centos
      services:
          ----------
          ceph-mon.ceph-node3:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  ceph-node3
              status:
                  ----------
                  election_epoch:
                      880
                  extra_probe_peers:
                  monmap:
                      ----------
                      created:
                          0.000000
                      epoch:
                          5
                      fsid:
                          9609b429-eee2-4e23-af31-28a24fcf5cbc
                      modified:
                          2015-07-02 21:15:01.654907
                      mons:
                          |_
                            ----------
                            addr:
                                192.168.1.101:6789/0
                            name:
                                ceph-node1
                            rank:
                                0
                          |_
                            ----------
                            addr:
                                192.168.1.102:6789/0
                            name:
                                ceph-node2
                            rank:
                                1
                          |_
                            ----------
                            addr:
                                192.168.1.103:6789/0
                            name:
                                ceph-node3
                            rank:
                                2
                  name:
                      ceph-node3
                  outside_quorum:
                  quorum:
                      - 1
                      - 2
                  rank:
                      2
                  state:
                      peon
                  sync_provider:
              type:
                  mon
              version:
                  0.87.2
          ceph-osd.6:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  6
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
          ceph-osd.7:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  7
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
          ceph-osd.8:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  8
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
    |_
      ----------
ceph-node2:
    |_
      ----------
      boot_time:
          1435908978
      ceph_version:
          0.87.2-0.el7.centos
      services:
          ----------
          ceph-mds.ceph-node2:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  ceph-node2
              status:
                  None
              type:
                  mds
              version:
                  0.87.2
          ceph-mon.ceph-node2:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  ceph-node2
              status:
                  ----------
                  election_epoch:
                      880
                  extra_probe_peers:
                  monmap:
                      ----------
                      created:
                          0.000000
                      epoch:
                          5
                      fsid:
                          9609b429-eee2-4e23-af31-28a24fcf5cbc
                      modified:
                          2015-07-02 21:15:01.654907
                      mons:
                          |_
                            ----------
                            addr:
                                192.168.1.101:6789/0
                            name:
                                ceph-node1
                            rank:
                                0
                          |_
                            ----------
                            addr:
                                192.168.1.102:6789/0
                            name:
                                ceph-node2
                            rank:
                                1
                          |_
                            ----------
                            addr:
                                192.168.1.103:6789/0
                            name:
                                ceph-node3
                            rank:
                                2
                  name:
                      ceph-node2
                  outside_quorum:
                  quorum:
                      - 1
                      - 2
                  rank:
                      1
                  state:
                      leader
                  sync_provider:
              type:
                  mon
              version:
                  0.87.2
          ceph-osd.3:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  3
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
          ceph-osd.4:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  4
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
          ceph-osd.5:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  5
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
    |_
      ----------
ceph-node1:
    |_
      ----------
      boot_time:
          1435908932
      ceph_version:
          0.87.2-0.el7.centos
      services:
          ----------
          ceph-mon.ceph-node1:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  ceph-node1
              status:
                  ----------
                  election_epoch:
                      0
                  extra_probe_peers:
                  monmap:
                      ----------
                      created:
                          0.000000
                      epoch:
                          2
                      fsid:
                          9609b429-eee2-4e23-af31-28a24fcf5cbc
                      modified:
                          2015-07-02 21:15:01.654907
                      mons:
                          |_
                            ----------
                            addr:
                                192.168.1.101:6789/0
                            name:
                                ceph-node1
                            rank:
                                0
                          |_
                            ----------
                            addr:
                                192.168.1.102:6789/0
                            name:
                                ceph-node2
                            rank:
                                1
                          |_
                            ----------
                            addr:
                                192.168.1.103:6789/0
                            name:
                                ceph-node3
                            rank:
                                2
                  name:
                      ceph-node1
                  outside_quorum:
                      - ceph-node1
                  quorum:
                  rank:
                      0
                  state:
                      probing
                  sync_provider:
              type:
                  mon
              version:
                  0.87.2
          ceph-osd.0:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  0
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
          ceph-osd.1:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  1
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
          ceph-osd.2:
              ----------
              cluster:
                  ceph
              fsid:
                  9609b429-eee2-4e23-af31-28a24fcf5cbc
              id:
                  2
              status:
                  None
              type:
                  osd
              version:
                  0.87.2
    |_
      ----------
[root@ceph-node1 calamari]#

Ceph cluster REST API ( http://192.168.1.101/api/v2/cluster )works

image

Cthulhu doesn't work with Salt 2015.5.0

# calamari-common/calamari_common/salt_wrapper.py
from salt.loader import _create_loader

It looks like _create_loader is gone/moved in 2015.5.0, so client_config is defined as returning None and cthulhu promptly crashes.

Workaround is to use the saltstack/salt2014-7 PPA.

Copyright additions?

Kind of a weird one.

There's a coyright section for Red Hat here: https://github.com/ceph/calamari/blob/c64121ab01aef0be6dfc3bef1940e21fe09af45f/COPYING

However...HP has requested that I add HP copyright to any files that I make significant additions to. Trouble is, unlike the Ceph project, Calamari doesn't have the standard chunk of space at the top of source files dedicated to things like:

(c) Copyright 2015 Hewlett-Packard Development Company, L.P.;

Any idea where it would be best to put that sort of thing?

The Centos 6 build failed due to missing dependency "selinux-policy-core"

I tried to build the Centos 6 build with vagrant, in step 5, it failed with the following error message, I am very new in calamari, can any one provide the resolution to solve the problem?

ID: build_deps
ย ย ย  Function: pkg.installed
ย ย ย ย ย  Result: False
ย ย ย ย  Comment: The following package(s) were not found, and no possible matches were found in the package db: selinux-policy-core
ย ย ย ย  Started: 19:50:03.518945
ย ย ย  Duration: 6013.585 ms
ย ย ย ย  Changes:

calamari server starts, but the GUI doesn't show up

I could start the calamari server successfully, accessing the calamari GUI , it shows that the server is not available.
[root@centos7os calamari-clients-1.2.2]# calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Starting/enabling salt...
[INFO] Starting/enabling postgres...
[INFO] Updating database...
[INFO] Initializing web interface...
[INFO] Starting/enabling services...
[INFO] Restarting services...
[INFO] Complete.
[root@centos7os calamari-clients-1.2.2]#
[root@centos7os tmp]# ps -eaf | grep calamari*
root 17001 19099 0 15:28 ? 00:00:03 /opt/calamari/venv/bin/python /opt/calamari/venv/bin/cthulhu-manager
postgres 17014 15255 0 15:28 ? 00:00:00 postgres: calamari calamari ::1(34259) idle
postgres 17021 15255 0 15:28 ? 00:00:00 postgres: calamari calamari ::1(34262) idle
root 18403 17256 0 16:04 pts/0 00:00:00 grep --color=auto calamari*
root 19242 19099 0 14:12 ? 00:00:01 /opt/calamari/venv/bin/python /opt/calamari/venv/bin/carbon-cache.py --debug --config /etc/graphite/carbon.conf start
apache 20425 20422 0 14:12 ? 00:00:00 calamari-httpd -DFOREGROUND
apache 20426 20422 0 14:12 ? 00:00:00 calamari-httpd -DFOREGROUND
apache 20427 20422 0 14:12 ? 00:00:00 calamari-httpd -DFOREGROUND
apache 20428 20422 0 14:12 ? 00:00:00 calamari-httpd -DFOREGROUND
apache 20429 20422 0 14:12 ? 00:00:00 calamari-httpd -DFOREGROUND
apache 20430 20422 0 14:12 ? 00:00:00 calamari-httpd -DFOREGROUND
apache 20431 20422 0 14:12 ? 00:00:00 calamari-httpd -DFOREGROUND
apache 20432 20422 0 14:12 ? 00:00:00 calamari-httpd -DFOREGROUND
[root@centos7os tmp]#

Any suggestion to debug the issue, the guest OS is Centos 7 and build the server code following the instruction in this link:

http://karan-mj.blogspot.com/2014/09/ceph-calamari-survival-guide.html

Build the client code following the instruction:

Note: These instructions are deliberately non-system specific. Please visit the wiki and help us write better more distro and release specific instructions.
โ€ข install nodejs, a recent version like 0.10.
โ€ข install npm, a recent version (1.4 cause troubles building package, use sudo npm install -g npm@next)
โ€ข install grunt-cli globally via npm
โ€ข Ruby gem and compass via gem
โ€ข make sure your system has a recent gnu compatible make binary
โ€ข checkout the code git clone [email protected]:ceph/calamari-clients.git
โ€ข cd into calamari-clients
โ€ข to build: make dist
This will build all the modules.

In the deployment, copy all the items under the subdir (after gunzip and tar -xvf) to /opt/calamari/webapp/content

drwxr-xr-x. 4 root root 4096 Jul 23 16:59 admin
-rw-r--r--. 1 root root 1398 Jul 23 16:59 bootstrap.md
-rw-r--r--. 1 root root 2222 Jul 23 16:59 calamari-clients.suse.spec
-rw-r--r--. 1 root root 1170 Jul 23 16:59 clients.spec
-rw-r--r--. 1 root root 1646 Jul 23 16:59 COPYING
drwxr-xr-x. 5 root root 4096 Jul 23 16:59 dashboard
-rwxr-xr-x. 1 root root 874 Jul 23 16:59 get-versions.sh
-rw-r--r--. 1 root root 1127 Jul 23 16:59 LICENSE.txt
drwxr-xr-x. 4 root root 4096 Jul 23 16:59 login
-rw-r--r--. 1 root root 4569 Jul 23 16:59 Makefile
-rw-r--r--. 1 root root 910 Jul 23 16:59 Makefile.sub
drwxr-xr-x. 5 root root 4096 Jul 23 16:59 manage
-rw-r--r--. 1 root root 856 Jul 23 16:59 README.md
drwxr-xr-x. 2 root root 4096 Jul 23 16:59 screenshots
-rw-r--r--. 1 root root 815 Jul 23 16:59 ui.build.instructions.md
drwxr-xr-x. 3 root root 4096 Jul 23 16:59 utils
drwxr-xr-x. 9 root root 4096 Jul 23 16:59 vagrant
[root@centos7os calamari-clients-1.2.2]#

issue

Dashboard Server 500 Error

root@calamari01 ~]# /opt/calamari/venv/bin/cthulhu-manager
Traceback (most recent call last):
File "/opt/calamari/venv/bin/cthulhu-manager", line 9, in
load_entry_point('calamari-cthulhu==0.1', 'console_scripts', 'cthulhu-manager')()
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_cthulhu-0.1-py2.7.egg/cthulhu/manager/manager.py", line 399, in main
m.start()
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_cthulhu-0.1-py2.7.egg/cthulhu/manager/manager.py", line 322, in start
self._rpc_thread.bind()
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_cthulhu-0.1-py2.7.egg/cthulhu/manager/rpc.py", line 462, in bind
self._server.bind(config.get('cthulhu', 'rpc_url'))
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/socket.py", line 43, in bind
return self._events.bind(endpoint, resolve)
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/events.py", line 226, in bind
r.append(self.socket.bind(endpoint))
File "socket.pyx", line 448, in zmq.backend.cython.socket.Socket.bind (zmq/backend/cython/socket.c:4127)
File "checkrc.pxd", line 21, in zmq.backend.cython.checkrc._check_rc (zmq/backend/cython/socket.c:6083)
zmq.error.ZMQError: Address already in use

==> calamari/calamari.log <==
2015-11-04 12:57:38,596 - ERROR - django.request Internal Server Error: /dashboard/
Traceback (most recent call last):
File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
return view_func(request, _args, *_kwargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_web-0.1-py2.7.egg/calamari_web/views.py", line 38, in dashboard
clusters = client.list_clusters()
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 260, in
return lambda _args, *_kargs: self(method, _args, *_kargs)
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 245, in call
return self._process_response(request_event, bufchan, timeout)
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 217, in _process_response
reply_event = bufchan.recv(timeout)
File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/channel.py", line 267, in recv
event = self._input_queue.get(timeout=timeout)
File "/opt/calamari/venv/lib/python2.7/site-packages/gevent/queue.py", line 200, in get
result = waiter.get()
File "/opt/calamari/venv/lib/python2.7/site-packages/gevent/hub.py", line 575, in get
return self.hub.switch()
File "/opt/calamari/venv/lib/python2.7/site-packages/gevent/hub.py", line 338, in switch
return greenlet.switch(self)
LostRemote: Lost remote after 10s heartbeat

[root@calamari01 ~]# yum list salt*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.cogentco.com
  • epel: mirror.cogentco.com
  • extras: mirror.us.leaseweb.net
  • updates: mirror.umd.edu
    Installed Packages
    salt.noarch 2015.5.5-1.el7 @epel
    salt-master.noarch 2015.5.5-1.el7 @epel
    salt-minion.noarch 2015.5.5-1.el7 @epel

[root@calamari01 ~]# rpm -qa | grep calamari
calamari-server-1.3.1.1-101_g945d16a.el7.centos.x86_64

[root@calamari01 ~]# salt-key -L
Accepted Keys:
Denied Keys:
Unaccepted Keys:
ceph1
Rejected Keys:

built packages using these instructions http://karan-mj.blogspot.fi/2014/09/ceph-calamari-survival-guide.html

I've tried installing calamari on centos 6 & 7 using either packages built from git or from https://github.com/ksingh7/ceph-calamari-packages. No matter what I do as soon as a ceph node sends it's salt key I get 500 errors. I've tried salt 2014 on centos 6 as well.

Test failed happened at user admin is not exists

Hi, I followed the Document (http://ceph.com/calamari/docs/development/dev_env.html#by-hand) to set up a development environment. When executing "nosetests tests/test_permissions.py", a error is occured and the message as follow:

(foo)vagrant@calamari-1:~/calamari$ nosetests tests/test_permissions.py
[ERROR] User admin does not exist
E
======================================================================
ERROR: Check that we restrict readonly role from delete, put, patch, post
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vagrant/calamari/tests/test_permissions.py", line 16, in setUp
    self.change_role('admin', 'superuser')
  File "/home/vagrant/calamari/tests/test_permissions.py", line 28, in change_role
    assign_role(args)
  File "/home/vagrant/calamari/cthulhu/cthulhu/calamari_ctl.py", line 102, in assign_role
    raise CalamariUserError(str(e))
CalamariUserError: User matching query does not exist. Lookup parameters were {'username': 'admin'}
-------------------- >> begin captured logging << --------------------
calamari_ctl: ERROR: User admin does not exist
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 1 test in 0.213s

FAILED (errors=1)

After reading the test file, I think the reason is the test use a fixed username 'admin' and this username is not exists on my development environment.

self.change_role('admin', 'superuser')

Maybe I should send a pull request to fix this?

Problem Building Packages via "For Users" Instructions

I am currently evaluating Calamari in an enterprise environment and have been following the instructions given in this guide: http://calamari.readthedocs.org/en/latest/development/building_packages.html
Additionally, I have referenced this article: http://ceph.com/category/ceph-calamari/

I am running into a problem with salt-call in the VM, however. Running "vagrant ssh" and "sudo salt-call state.highstate" gives me the following error.

Error

I am unsure how to get around this, as the VM is re-provisioned each time "vagrant up" is called. A common problem I face in development is that, being in an enterprise environment, I am behind a proxy. This is my first suspect on the issue, but I am unsure how to resolve.

FATAL: Ident authentication failed for user "calamari"

Guys

I am getting this problem on CentOS6 , Centos7 , Salt version 2014 and 2015. This shows that this problem has to do with Calamari.

The problem look like , postgresql database and user are not getting created for some reason.
All the relevant services are getting started but calamari-ctl initialize is throwing error when it comes to database and its user.

Could you please tell me at which step the postgresql database and user is supposed to get created , is it the responsibility of calamari-ctl initialize command to create database and user ?

Could you please verify my sequence of steps :

  1. install salt , salt-master , salt-minion package
  2. install calamari-server package ( which will install supervisor , postgresql and httpd as dependencies )
  3. calamari-ctl initialize command
  4. If everything is OK , open dashboard
Installing calamari-server package 

Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : httpd-2.4.6-31.el7.centos.x86_64                                                                                                                                            1/6
  Installing : postgresql-9.2.10-2.el7_1.x86_64                                                                                                                                            2/6
  Installing : postgresql-server-9.2.10-2.el7_1.x86_64                                                                                                                                     3/6
  Installing : mod_wsgi-3.4-12.el7_0.x86_64                                                                                                                                                4/6
  Installing : supervisor-3.0-1.el7.noarch                                                                                                                                                 5/6
  Installing : calamari-server-1.3.0.1-49_g828960a.el7.centos.x86_64                                                                                                                       6/6
setsebool:  SELinux is disabled.
setsebool:  SELinux is disabled.
Redirecting to /bin/systemctl restart  salt-master.service
Redirecting to /bin/systemctl stop  supervisord.service
Redirecting to /bin/systemctl start  supervisord.service
Redirecting to /bin/systemctl stop  httpd.service
Redirecting to /bin/systemctl start  httpd.service
Thank you for installing Calamari.

Please run 'calamari-ctl initialize' as root to complete the installation.
  Verifying  : mod_wsgi-3.4-12.el7_0.x86_64                                                                                                                                                1/6
  Verifying  : postgresql-server-9.2.10-2.el7_1.x86_64                                                                                                                                     2/6
  Verifying  : postgresql-9.2.10-2.el7_1.x86_64                                                                                                                                            3/6
  Verifying  : supervisor-3.0-1.el7.noarch                                                                                                                                                 4/6
  Verifying  : calamari-server-1.3.0.1-49_g828960a.el7.centos.x86_64                                                                                                                       5/6
  Verifying  : httpd-2.4.6-31.el7.centos.x86_64                                                                                                                                            6/6

Installed:
  calamari-server.x86_64 0:1.3.0.1-49_g828960a.el7.centos

Dependency Installed:
  httpd.x86_64 0:2.4.6-31.el7.centos    mod_wsgi.x86_64 0:3.4-12.el7_0    postgresql.x86_64 0:9.2.10-2.el7_1    postgresql-server.x86_64 0:9.2.10-2.el7_1    supervisor.noarch 0:3.0-1.el7

Complete!


[root@ceph-node1 ~]# systemctl status postgresql
postgresql.service - PostgreSQL database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled)
   Active: inactive (dead)

[root@ceph-node1 ~]# supervisorctl status
carbon-cache                     RUNNING    pid 5116, uptime 0:01:25
cthulhu                          STARTING
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Starting/enabling salt...
[INFO] Starting/enabling postgres...
[ERROR] (OperationalError) could not connect to server: Connection refused
    Is the server running on host "localhost" (::1) and accepting
    TCP/IP connections on port 5432?
could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
 None None
[ERROR] We are sorry, an unexpected error occurred.  Debugging information has
been written to a file at '/tmp/2015-06-25_1419.txt', please include this when seeking technical
support.
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# supervisorctl status
carbon-cache                     RUNNING    pid 5116, uptime 0:02:45
cthulhu                          RUNNING    pid 6308, uptime 0:00:01
[root@ceph-node1 ~]#

[root@ceph-node1 ~]# service postgresql status
Redirecting to /bin/systemctl status  postgresql.service
postgresql.service - PostgreSQL database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled)
   Active: inactive (dead)

[root@ceph-node1 ~]#
[root@ceph-node1 ~]#


After restarting the node

[root@ceph-node1 calamari]#
[root@ceph-node1 calamari]# calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Starting/enabling salt...
[INFO] Starting/enabling postgres...
[ERROR] (OperationalError) FATAL:  Ident authentication failed for user "calamari"
 None None
[ERROR] We are sorry, an unexpected error occurred.  Debugging information has
been written to a file at '/tmp/2015-06-25_1426.txt', please include this when seeking technical
support.
[root@ceph-node1 calamari]#



[root@ceph-node1 calamari]# service postgresql status
Redirecting to /bin/systemctl status  postgresql.service
postgresql.service - PostgreSQL database server
   Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled)
   Active: active (running) since Thu 2015-06-25 17:22:07 EEST; 6min ago
 Main PID: 1322 (postgres)
   CGroup: /system.slice/postgresql.service
           โ”œโ”€1322 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432
           โ”œโ”€1358 postgres: logger process
           โ”œโ”€1397 postgres: checkpointer process
           โ”œโ”€1398 postgres: writer process
           โ”œโ”€1399 postgres: wal writer process
           โ”œโ”€1400 postgres: autovacuum launcher process
           โ””โ”€1401 postgres: stats collector process

Jun 25 17:22:06 ceph-node1 systemd[1]: Starting PostgreSQL database server...
Jun 25 17:22:07 ceph-node1 systemd[1]: Started PostgreSQL database server.
[root@ceph-node1 calamari]#
[root@ceph-node1 calamari]#
[root@ceph-node1 calamari]# supervisorctl status
carbon-cache                     RUNNING    pid 4546, uptime 0:04:26
cthulhu                          STARTING
[root@ceph-node1 calamari]#

types.py: Missing crush_node_by_id initialization in None case

The other three *by_id entries have matching empty dict initializations in the else case, but this guy doesn't: https://github.com/ceph/calamari/blob/master/calamari-common/calamari_common/types.py#L59

I'm not sure if it's realistic that data would ever be None, but I noticed this while I was adding a "metadata_by_id" entry for the disk metadata stuff featureset. Worth the trivial patch to update it (I'll submit it if you think it's worth doing)?

Installing requirements.txt on Fedora 20 fails

Running: "pip install -r requirements/rh/requirements.txt" fails with the following error:
Please advise/fix the instructions in the readme.

Downloading/unpacking importlib==1.0.1 (from -r requirements/rh/requirements.txt (line 17))
Downloading importlib-1.0.1.tar.bz2
Running setup.py egg_info for package importlib
Traceback (most recent call last):
File "", line 16, in
File "/root/calamari/server/calamari/calamari/build/importlib/setup.py", line 6, in
raise Exception("importlib is included in Python 2.7 and newer for 2.x")
Exception: importlib is included in Python 2.7 and newer for 2.x
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 16, in

File "/root/calamari/server/calamari/calamari/build/importlib/setup.py", line 6, in

raise Exception("importlib is included in Python 2.7 and newer for 2.x")

Exception: importlib is included in Python 2.7 and newer for 2.x

Trusty Build Failures using "For Users" Instructions

Trusty build fails 2 of 11 (i.e. - 9 successes of 11) when using the build instructions here:
http://calamari.readthedocs.org/en/latest/development/building_packages.html

I am specifically missing the "calamari-server__all.deb" package which I expect as an output.

I redirected the output of the command to a log file but do not see how to upload it here. I do see a build error, however, when building calamari-server, the package I am missing:
"../venv/bin/python ./setup.py install
../venv/bin/python: can't open file './setup.py': [Errono 2] No such file or directory"

calamari-ctl initialize [ERROR] Updating already connected nodes. failed with rc=2

Hello Developers

I am trying to run calamari-ctl initialize and getting errors [ERROR] Updating already connected nodes. failed with rc=2

Has any one seen this error before ?? Need help
Full Logs here : http://pastebin.com/pZjSC0Kj

[root@ceph-node1 ~]# calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Starting/enabling salt...
[INFO] Starting/enabling postgres...
[INFO] Initializing database...
[INFO] You will now be prompted for login details for the administrative user account.  This is the account you will use to log into the web interface once setup is complete.
Username (leave blank to use 'root'):
Email address: [email protected]
Password:
Password (again):
Superuser created successfully.
[INFO] Initializing web interface...
[INFO] Starting/enabling services...
[INFO] Updating already connected nodes.
[ERROR] Updating already connected nodes. failed with rc=2
[ERROR] We are sorry, an unexpected error occurred.  Debugging information has
been written to a file at '/tmp/2015-06-22_1855.txt', please include this when seeking technical
support.

Here are filtered contents of /tmp/2015-06-22_1855.txt

    โ€ข File \"/opt/calamari/venv/lib/python2.7/site-packages/calamari_cthulhu-0.1-py2.7.egg/cthulhu/calamari_ctl.py\", line 189, in update_connected_minions\n    raise RuntimeError(\"{message} failed with rc={rc}\".format(message=message, rc=p.returncode))\nRuntimeError: Updating already connected nodes. failed with rc=2\n",
    โ€ข  
    โ€ข [ERROR   ] {'pid': 7528, 'retcode': 1, 'stderr': \"chmod: cannot access '/var/cache/salt/jobs': No such file or directory\\nchmod:
    โ€ข  
    โ€ข [INFO    ] Executing command 'systemctl status httpd.service' in directory '/root'\n[ERROR   ] Command 'systemctl status httpd.service' failed with return code: 3\n
    โ€ข [ERROR   ] output: httpd.service - The Apache HTTP Server\n   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)\n   Active: inactive (dead)\n[INFO    ] Executing command 'systemctl is-active httpd.service' in directory '/root'\n
    โ€ข [ERROR   ] Command 'systemctl is-active httpd.service' failed with return code: 3\n[ERROR   ] output: unknown\n
    โ€ข  
    โ€ข [ERROR   ] Command 'systemctl status httpd.service' failed with return code: 3\n[ERROR   ] output: httpd.service - The Apache HTTP Server\n   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)\n   Active: inactive (dead)\n
    โ€ข  
    โ€ข [ERROR   ] Command 'systemctl status supervisord.service' failed with return code: 3\n
    โ€ข [ERROR   ] output: supervisord.service - Process Monitoring and Control Daemon\n   Loaded: loaded (/usr/lib/systemd/system/supervisord.service; disabled)\n   Active: inactive (dead)\n
    โ€ข  
    โ€ข [ERROR   ] Command 'systemctl is-active supervisord.service' failed with return code: 3\n
    โ€ข [ERROR   ] output: unknown\n
    โ€ข [INFO    ] Executing command 'systemctl --all --full --no-legend --no-pager list-units | col -b' in directory '/root'\n
    โ€ข [INFO    ] Executing command 'systemctl --full --no-legend --no-pager list-unit-files | col -b' in directory '/root'\n
    โ€ข  
    โ€ข [ERROR   ] Command 'systemctl status supervisord.service' failed with return code: 3\n
    โ€ข [ERROR   ] output: supervisord.service - Process Monitoring and Control Daemon\n   Loaded: loaded (/usr/lib/systemd/system/supervisord.service; disabled)\n   Active: inactive (dead)\n
    โ€ข  
    โ€ข [ERROR   ] Command 'systemctl status salt-master.service' failed with return code: 3\n
    โ€ข [ERROR   ] output: salt-master.service - The Salt Master Server\n   Loaded: loaded (/usr/lib/systemd/system/salt-master.service; disabled)\n   Active: inactive (dead)\n
    โ€ข  
    โ€ข [ERROR   ] Command 'systemctl is-active salt-master.service' failed with return code: 3\n
    โ€ข [ERROR   ] output: unknown\n
    โ€ข  
    โ€ข [ERROR   ] Command 'systemctl status salt-master.service' failed with return code: 3\n
    โ€ข [ERROR   ] output: salt-master.service - The Salt Master Server\n   Loaded: loaded (/usr/lib/systemd/system/salt-master.service; disabled)\n   Active: inactive (dead)\n
    โ€ข  
    โ€ข INFO - calamari_ctl Updating already connected nodes.\n2015-06-22 13:55:41,747 - DEBUG - calamari_ctl Updating already connected nodes. salt stdout: No minions matched the target. No command was sent, no jid was assigned.\n\n2015-06-22 13:55:41,747 - DEBUG - calamari_ctl Updating already connected nodes. salt stderr: \n2015-06-22 13:55:41,747 - ERROR - calamari_ctl Updating already connected nodes. failed with rc=2\n",

My environment details

[root@ceph-node1 ~]# rpm -qa | grep -i supervisor
supervisor-3.0-1.el7.noarch
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# rpm -qa | grep -i calamari
calamari-server-1.3.0.1-49_g828960a.el7.centos.x86_64
calamari-clients-1.2.2-32_g931ee58.el7.centos.x86_64
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# ceph -v
ceph version 0.87.1 (283c2e7cfa2457799f534744d7d549f83ea1335e)
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# rpm -qa | grep -i salt
salt-2015.5.0-1.el7.noarch
salt-master-2015.5.0-1.el7.noarch
salt-minion-2015.5.0-1.el7.noarch
[root@ceph-node1 ~]#

Trusty calamari-clients build failure

When building the calamari-clients, it appears to expect calamari-clients-$build.tar.gz to exist before it actually does:

[INFO    ] Executing command 'git rev-parse HEAD' as user 'vagrant' in directory '/home/vagrant/clients'
[INFO    ] Repository /git/calamari-clients cloned to /home/vagrant/clients
[INFO    ] {'new': '/git/calamari-clients', 'revision': 'de7bc85c099b7aa9256f0ef61b10fc8b199daecc'}
[INFO    ] Completed state [/git/calamari-clients] at time 17:56:13.734040
[INFO    ] Running state [cp /git/calamari-clients*tar.gz /home/vagrant/clients] at time 17:56:13.734531
[INFO    ] Executing state cmd.run for cp /git/calamari-clients*tar.gz /home/vagrant/clients
[INFO    ] Executing command 'cp /git/calamari-clients*tar.gz /home/vagrant/clients' as user 'vagrant' in directory '/home/vagrant'
[ERROR   ] Command 'cp /git/calamari-clients*tar.gz /home/vagrant/clients' failed with return code: 1
[ERROR   ] stderr: cp: cannot stat '/git/calamari-clients*tar.gz': No such file or directory
[ERROR   ] retcode: 1
[ERROR   ] {'pid': 10272, 'retcode': 1, 'stderr': "cp: cannot stat '/git/calamari-clients*tar.gz': No such file or directory", 'stdout': ''}
[INFO    ] Completed state [cp /git/calamari-clients*tar.gz /home/vagrant/clients] at time 17:56:13.768101
[INFO    ] Running state [devscripts] at time 17:56:13.768539
[INFO    ] Executing state pkg.installed for devscripts
[INFO    ] Package devscripts is already installed.
[INFO    ] Completed state [devscripts] at time 17:56:13.770116
[INFO    ] Running state [make dpkg] at time 17:56:13.770796
[INFO    ] Executing state cmd.run for make dpkg
[INFO    ] Executing command 'make dpkg' as user 'vagrant' in directory '/home/vagrant/clients'
[ERROR   ] Command 'make dpkg' failed with return code: 2

this is built from master, after building the calamari (calamari-server). Building precise works fine for both.

Why point on a fork of graphite-web ?

I guess this is more a question than an actual issue but why does the README instruct to clone a version of graphite-web in Inktank's repo as opposed to upstream ?

The README says:

pip install git+https://github.com/inktankstorage/graphite-web.git@calamari --install-option="--prefix=$VIRTUAL_ENV" --install-option="--install-lib=$VIRTUAL_ENV/lib/python2.7/site-packages"

In the requirements.txt we don't fetch from Inktank's fork:
https://github.com/ceph/calamari/blob/master/requirements/debian/requirements.txt#L36

graphite-web is available on pypi:
https://pypi.python.org/pypi/graphite-web

It's also on github:
https://github.com/graphite-project/graphite-web

Thanks !

Documentation improvements

Hi,

Since manifestly the .deb packages are no longer available on http://download.ceph.com/calamari, it should be useful to replace this link (page operations/server_install) by the development/building_packages page.

Two other things that could be improved:

  • the documentation is focused on precise, while most Ceph users are now on trusty, the best might be to write "Ubuntu LTS"
  • calamari-client was renamed, documentation must be modified accordingly

Thanks a lot,
Mathieu

Some object on dashborad is blank.

Hi,
Some objects on dashboard is blank. Like below๏ผš
Usage๏ผš
usage
Graph of Monitor (OSDs not blank, only monitor)
mon

But graphite have data.

graphite

Here are parameters of cluster.
-----------------start-------------------
OS๏ผšUbuntu 14.04.03
Calamari๏ผš1.3.1.1-1trusty
Diamond๏ผšdiamond_3.4.67_all
Salt๏ผš0.17.5
Browser๏ผšFirefox v.42 / Chrome v.46
--------------------end-----------------
Try to fix this problem, where should I get start๏ผŸ
Please give a hint. Thank you.

No such file or directory: 'env/webapp/content'

Title shortened for brevity's sake. The gist is that Calamari (at least in devmode) seems to complain if you haven't created a directory for the webapp. It is specified as a required step in the instructions (see: http://ceph.com/calamari/docs/development/dev_env.html) for setting up a dev environment, but...should that be a requirement for getting Calamari up and running? Also, I created the directory and the issue went away (without populating the directory with anything). If there's a reason why we need the GUI code for now, feel free to close the issue and let me know.

RFE: Custom cluster name templated in DiskSpaceTargets.ejs?

This file is currently hardcoding the cluster name in

servers.<%- hostname %>.diskspace._var_lib_ceph_osd_ceph-<%- id %>.<%- metric %>

Is it possible to template the cluster name as well? E.g.,

servers.<%- hostname %>.diskspace.var_lib_ceph_osd<%- cluster %>-<%- id %>.<%- metric %>

Graphite graphs for diskspace are empty for a custom cluster name "myname"; diamond is sending
_var_lib_ceph_osd_myname- * (the mount point), but graphite is only rendering if myname == ceph.

Cannot Find Ceph Cluster

I have install a ceph cluster of 4 nodes {mon,osd} on CentOS 7.1, Ceph 0.80.9. And I install Calamari on CentOS 7.1 , add mon on it , use ceph-deploy give admin to it, running "ceph -s" is ok. But Calamari UI tells me that "4 Ceph servers are connected to Calamari, but no Ceph cluster has been created yet. Please use ceph-deploy to create a cluster; please see the Inktank Ceph Enterprise documentation for more details.". How can I solve this problem ? Thanks :).

problem with vagrant up

Dear all,
I am following the steps described in the ceph/Calamari tutorial, I installed git, vagrant and cloned the projects as indicated.

But when I execute the "vagrant up" command in the "centOs-build" folder, I get this message when the VM is booting

sudo vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'centos6'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2210 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period. This can
mean a number of things.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
/***********************************************************************************************/

I tried to deal with the problem using the virutalBox GUI as recommanded but unfortunately, I did not have any result

Please can anyone help me.

cheers
Javarminator

pip install --no-install carbon

/root/calamari/rpmbuild/BUILD/calamari-server-1.3.1.1/venv/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

  • ./bin/python ./bin/pip install --no-install carbon

Usage:
pip install [options] [package-index-options] ...
pip install [options] -r [package-index-options] ...
pip install [options] [-e] ...
pip install [options] [-e] ...
pip install [options] <archive url/path> ...

no such option: --no-install
make: *** [build-venv-carbon] Error 1

i build calamari rpm on centos6 but dispaly this,pip install --no-install carbon ,but my pip does not has --no-install option

Incident of Calamari web.

Hi,
In test environment only one monitor. When ceph daemon on monitor goes down that calamari web "host" section will display 0 MON.
But after monitor's daemon come back, the web still display 0 MON. And this status will not recovery.

ceph๏ผš0.94
calamari-server๏ผš1.3.0.1-11
calamari-client๏ผš1.3-rc-12

Calamari server RPM build failed due to httpd package dependency

I was trying to build calamari server RPM today using the centos vagrant image.Ended up with this error.

So it would be nice if you add a line yum install -y httpd in salt config. So that others should not get this error.

----------
          ID: build-calamari-server
    Function: cmd.run
        Name: ./build-rpm.sh
      Result: False
     Comment: Command "./build-rpm.sh" run
     Started: 13:58:02.721384
    Duration: 1310.291 ms
     Changes:
              ----------
              pid:
                  9605
              retcode:
                  1
              stderr:
                  41169 blocks
                  error: Failed build dependencies:
                    httpd is needed by calamari-server-1.3-rc_46_gc64121a.el6.x86_64
              stdout:
                  target: dist
                  making dist tarball in ../calamari-server_1.3.tar.gz
                  tar file made in ../calamari-server_1.3.tar.gz
----------

rpmbuild fails: calamari.conf is not a directory

Hi,

I'm trying to build rpm on CentOS 7 following the instructions.

It seems there is a wrong install command somewher:

./build-rpm.sh
[lot of build logs]
target: install-conf
# wsgi conf for graphite constructed in postinst
# log dirs for Django apps
/usr/bin/install: target '/tmp/calamari-repo/rpmbuild/BUILDROOT/calamari-server-1.2.1-104_gec86085.el7.centos.x86_64/etc/calamari/calamari.conf' is not a directory
make: *** [install-conf] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.iXCaP2 (%install)

I don't find yet where.

Diamond Ceph Stats not received in calamari

Everything is working except the ceph and pool graph stats in the calamari gui, the host stats are working fine

image

image

image

root@calamari:~# dpkg -l | egrep -i "calamari|salt" | awk '{print $2 "\t\t" $3}'
calamari-clients        1.3.1.1-1trusty
calamari-server         1.3.0.1-11-g9fb65ae
salt-common             2014.7.5+ds-1ubuntu1
salt-master             2014.7.5+ds-1ubuntu1
salt-minion             2014.7.5+ds-1ubuntu1
root@calamari:~#
root@ceph1:~# dpkg -l | egrep -i "ceph|salt|diamond" | awk '{print $2 "\t\t" $3}'
ceph                    9.2.0-1trusty
ceph-common             9.2.0-1trusty
ceph-mds                9.2.0-1trusty
diamond                 3.4.67
libcephfs1              9.2.0-1trusty
python-cephfs           9.2.0-1trusty
python-rados            9.2.0-1trusty
python-rbd              9.2.0-1trusty
salt-common             0.17.5+ds-1
salt-minion             0.17.5+ds-1
root@ceph1:~#

Let me know what more I should be checking

Regards, Daniel

Question of graphite timezone.

Hi,
I want to change the timezone setting of graphite. But I can not find /opt/graphite/webapp/graphite/local_settings.py. How can I do that ๏ผŸ

Server Error 500 : ERROR - django.request Internal Server Error

Hello Developers

Could you extend your help in fixing this issue

image

Calamari.log

2015-06-23 13:53:41,317 - metric_access - django.request No graphite data for ceph.cluster.9609b429-eee2-4e23-af31-28a24fcf5cbc.df.total_used_bytes
2015-06-23 13:53:41,329 - metric_access - django.request No graphite data for ceph.cluster.9609b429-eee2-4e23-af31-28a24fcf5cbc.df.total_used
2015-06-23 13:53:41,330 - metric_access - django.request No graphite data for ceph.cluster.9609b429-eee2-4e23-af31-28a24fcf5cbc.df.total_space
2015-06-23 13:53:41,330 - metric_access - django.request No graphite data for ceph.cluster.9609b429-eee2-4e23-af31-28a24fcf5cbc.df.total_avail
2015-06-23 13:53:41,394 - ERROR - django.request Internal Server Error: /api/v1/cluster/9609b429-eee2-4e23-af31-28a24fcf5cbc/health_counters
Traceback (most recent call last):
  File "/opt/calamari/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/opt/calamari/venv/lib/python2.7/site-packages/rest_framework/viewsets.py", line 78, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/calamari/venv/lib/python2.7/site-packages/calamari_rest_api-0.1-py2.7.egg/calamari_rest/views/rpc_view.py", line 94, in dispatch
    self.client.close()
  File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 292, in close
    ClientBase.close(self)
  File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/core.py", line 194, in close
    self._multiplexer.close()
  File "/opt/calamari/venv/lib/python2.7/site-packages/zerorpc/channel.py", line 61, in close
    self._channel_dispatcher_task.kill()
  File "/opt/calamari/venv/lib/python2.7/site-packages/gevent/greenlet.py", line 235, in kill
    waiter.get()
  File "/opt/calamari/venv/lib/python2.7/site-packages/gevent/hub.py", line 575, in get
    return self.hub.switch()
  File "/opt/calamari/venv/lib/python2.7/site-packages/gevent/hub.py", line 338, in switch
    return greenlet.switch(self)
LostRemote: Lost remote after 10s heartbeat

My environment details

[root@ceph-node1 ~]# rpm -qa | grep -i supervisor
supervisor-3.0-1.el7.noarch
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# rpm -qa | grep -i calamari
calamari-server-1.3.0.1-49_g828960a.el7.centos.x86_64
calamari-clients-1.2.2-32_g931ee58.el7.centos.x86_64
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# ceph -v
ceph version 0.87.1 (283c2e7cfa2457799f534744d7d549f83ea1335e)
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
[root@ceph-node1 ~]#
[root@ceph-node1 ~]# rpm -qa | grep -i salt
salt-2015.5.0-1.el7.noarch
salt-master-2015.5.0-1.el7.noarch
salt-minion-2015.5.0-1.el7.noarch
[root@ceph-node1 ~]#

Calamari client package build failed for RHEL

Someone has a bad code
Couldn't open file /home/jenkins-build/rhel64.box

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  if ENV['RHEL64_BOX_PATH'] == nil
    box_url = "file:/home/jenkins-build/rhel64.box"
  else
    box_url = ENV['RHEL64_BOX_PATH']
  end
teeri:vagrant ksingh$ ls -la
total 8
drwxr-xr-x  10 ksingh  staff  340 Jun  7 22:07 .
drwxr-xr-x  22 ksingh  staff  748 Jun  7 22:07 ..
drwxr-xr-x   4 ksingh  staff  136 Jun  7 22:10 centos-package
drwxr-xr-x   4 ksingh  staff  136 Jun  7 22:07 precise-build
drwxr-xr-x   3 ksingh  staff  102 Jun  7 22:07 rhel-package
drwxr-xr-x   3 ksingh  staff  102 Jun  7 22:07 rhel7-package
drwxr-xr-x   4 ksingh  staff  136 Jun  7 22:07 salt
drwxr-xr-x   3 ksingh  staff  102 Jun  7 22:07 trusty-package
-rwxr-xr-x   1 ksingh  staff  344 Jun  7 22:07 urllib-bootstrap-salt.sh
drwxr-xr-x   3 ksingh  staff  102 Jun  7 22:07 wheezy-package
teeri:vagrant ksingh$
teeri:vagrant ksingh$
teeri:vagrant ksingh$
teeri:vagrant ksingh$ cd rhel-package/
teeri:rhel-package ksingh$ ls -la
total 8
drwxr-xr-x   3 ksingh  staff  102 Jun  7 22:07 .
drwxr-xr-x  10 ksingh  staff  340 Jun  7 22:07 ..
-rw-r--r--   1 ksingh  staff  980 Jun  7 22:07 Vagrantfile
teeri:rhel-package ksingh$
teeri:rhel-package ksingh$ vim Vagrantfile
teeri:rhel-package ksingh$
teeri:rhel-package ksingh$
teeri:rhel-package ksingh$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'rhel64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Adding box 'rhel64' (v0) for provider: virtualbox
    default: Downloading: file:/home/jenkins-build/rhel64.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /home/jenkins-build/rhel64.box
teeri:rhel-package ksingh$
teeri:rhel-package ksingh$
teeri:rhel-package ksingh$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  if ENV['RHEL64_BOX_PATH'] == nil
    box_url = "file:/home/jenkins-build/rhel64.box"
  else
    box_url = ENV['RHEL64_BOX_PATH']
  end
  config.vm.box_url = box_url
  config.vm.box = "rhel64"

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "512"]
    vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
  end

  config.vm.synced_folder "../../../", "/git"
  config.vm.synced_folder "../salt/roots/", "/srv/salt/"
  config.vm.provision :salt do |salt|
    salt.bootstrap_script = "../urllib-bootstrap-salt.sh"
    salt.minion_config = "../salt/minion"
    salt.run_highstate = true
  end
  config.vm.network :forwarded_port, guest: 22, host: 2204, id: "ssh", auto_correct: true
end
teeri:rhel-package ksingh$

nosetests: ../teuthology/archive/info.yaml file error

Sorry it took me a bit to get back to this one.

I run: 'sudo nosetests tests'
I get (for all tests that fail, at the bottom of the error block):

with open(config.get('testing', 'external_cluster_path')) as f:
IOError: [Errno 2] No such file or directory: '/home/jhandz/wip-osd-metadata-calamari/../teuthology/archive/info.yaml'
----------------- >> begin captured logging << -------------------
tests.calamari_ctl: INFO: CalamariControl.init
----------------- >> end captured logging << ---------------------

Mind you, I have done nothing to configure this node to point to any cluster at all (I was trying to see how many tests I could run without going that far). I wouldn't have expected a hard requirement on teuthology though, and it seems like you guys agreed during the CDS session. Let me know if you need more detail.

AttributeError: 'module' object has no attribute 'Minion'

I'd just like to note that as I write these errors up, I am intending to look into these myself, not just farming this stuff out. :)

This is probably an issue with upgrading to the more recent salt version (our favorite, 2015.5.1), but here's what I see when running 'sudo minion-sim --count=3':

DEBUG - minion_sim Waiting for simulator...
Traceback (most recent call last):
File "/bin/minion-child", line 9 in
load_entry_point('minion-sim==0.1', 'console_scripts', 'minion-child')()
File "/home/jhandz/wip-osd-metadata-calamari/minion-sim/minion_sim/child.py",
line 213, in main
minion = salt.Minion()
AttributeError: 'module' object has no attribute 'Minion'

Found a similar issue: saltstack/salt@6b81e2a

It would be nice if our salt friends stopped moving things.

With Salt 2015.5.1: [Error ] Failed to persist the updated schedule

Leaving this here so I don't forget that the issue exists while I drop back to 2014.

For whatever reason, when running 'sudo minion-sim --count=8' (count is irrelevant, just giving an example), the message in the title pops up once for each minion. Here's a link to the location in the current saltstack github repo where that message emanates from: https://github.com/saltstack/salt/blob/develop/salt/utils/schedule.py#L347

There's a lot there, looks like either that fopen is failing, the write operation is failing, or something about yaml.dump isn't working out. I confirmed that the directory <>/minion.d exists for all the minions, but the _schedule.conf file does not. I tried creating a _schedule.conf file myself, that doesn't seem to change the behavior at all.

rhel7.box does not exist

I'd like to build the calamari RPM's for RHEL7 and when I go to bring up the vm, vagrant cannot find the rhel7.box.

In calamari/vagrant/rhel7-build/Vagrantfile, the box_url is set to "file:/home/jenkins-build/rhel7.box" which does not exist in my env.

I tried building my own rhel7 box but it was one problem after another when running the salt command to build the RPM's. If you can point me to a URL that I can download the rhel7.box from, I would greatly appreciate it.

thanks,
Bob

calamari-ctl initialize hang

When i execute the following command:

[louis@centos65 content]$ sudo calamari-ctl initialize
[INFO] Loading configuration..
[INFO] Starting/enabling salt...
[INFO] Starting/enabling postgres...
[INFO] Initializing database...
[INFO] Initializing web interface...
[INFO] Starting/enabling services...
[INFO] Restarting services...

the command hang and the /var/log/calamari/cthulhu.log log the warnings:

2014-10-10 01:17:23,821 - WARNING - cthulhu.salt Re-opening connection to salt-master
2014-10-10 01:17:23,877 - WARNING - cthulhu.server_monitor.salt Re-opening connection to salt-master
2014-10-10 01:17:48,828 - WARNING - cthulhu.salt Re-opening connection to salt-master
2014-10-10 01:17:48,882 - WARNING - cthulhu.server_monitor.salt Re-opening connection to salt-master
2014-10-10 01:18:13,834 - WARNING - cthulhu.salt Re-opening connection to salt-master

There is no python-msgpack-python on Ubuntu

Installation of calamari-server on Ubuntu gives me the following error:

dpkg: dependency problems prevent configuration of calamari-server:
 calamari-server depends on python-msgpack-python; however:
  Package python-msgpack-python is not installed.

It seems the package python-msgpack-python exists on OpenSUSE. Ubuntu Precise provides msgpack-python and since Ubuntu Trusty we have python-msgpack.

calamari_web should allow for DB port to be configured

When installing calamari-server on a system with a postgres db that already exists and which listens on an alternate port (5433 vs 5432, for example), initialization fails because the calamari_web settings does not check the PORT value when setting up the default values.

In calamari_web/settings.py , the DATABASES['default'] dictionary needs a "PORT" k/v entry such as:

config.get("calamari_web", "db_port") 

so the admin can configure it to use PG databases on alternate ports.

Make calamari-clients package on debian wheezy fails

root@orca:~/calamari# git clone https://github.com/ceph/calamari-clients.git
Cloning into 'calamari-clients'...
remote: Counting objects: 16650, done.
remote: Total 16650 (delta 0), reused 0 (delta 0), pack-reused 16650
Receiving objects: 100% (16650/16650), 28.92 MiB | 7.33 MiB/s, done.
Resolving deltas: 100% (9743/9743), done.
root@orca:~/calamari# cd calamari-clients/vagrant/wheezy-package/
root@orca:~/calamari/calamari-clients/vagrant/wheezy-package# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'wheezy64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: wheezy-package_default_1425279390286_26415
==> default: Clearing any previously set forwarded ports...
==> default: Fixed port collision for 22 => 2206. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2200 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2200
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /git => /root/calamari
    default: /vagrant => /root/calamari/calamari-clients/vagrant/wheezy-package
    default: /srv/salt => /root/calamari/calamari-clients/vagrant/salt/roots
==> default: Running provisioner: salt...
Copying salt minion config to vm.
Checking if salt-minion is installed
salt-minion was not found.
Checking if salt-call is installed
salt-call was not found.
Bootstrapping Salt... (this may take a while)
Salt successfully configured and installed!
run_overstate set to false. Not running state.overstate.
run_highstate set to false. Not running state.highstate.
root@orca:~/calamari/calamari-clients/vagrant/wheezy-package# vagrant ssh
sudo salt-call state.highstateLinux debian-7 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have mail.
Last login: Sun Oct 20 04:50:52 2013 from 10.0.2.2
vagrant@debian-7:~$ sudo salt-call state.highstate
[INFO    ] Loading fresh modules for state activity
[INFO    ] Fetching file from saltenv 'base', ** done ** 'top.sls'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/modules'
[INFO    ] Syncing modules for environment 'base'
[INFO    ] Loading cache from salt://_modules, for base)
[INFO    ] Caching directory '_modules/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/states'
[INFO    ] Syncing states for environment 'base'
[INFO    ] Loading cache from salt://_states, for base)
[INFO    ] Caching directory '_states/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/grains'
[INFO    ] Syncing grains for environment 'base'
[INFO    ] Loading cache from salt://_grains, for base)
[INFO    ] Caching directory '_grains/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/renderers'
[INFO    ] Syncing renderers for environment 'base'
[INFO    ] Loading cache from salt://_renderers, for base)
[INFO    ] Caching directory '_renderers/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/returners'
[INFO    ] Syncing returners for environment 'base'
[INFO    ] Loading cache from salt://_returners, for base)
[INFO    ] Caching directory '_returners/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/outputters'
[INFO    ] Syncing outputters for environment 'base'
[INFO    ] Loading cache from salt://_outputters, for base)
[INFO    ] Caching directory '_outputters/' for environment 'base'
[INFO    ] Creating module dir '/var/cache/salt/minion/extmods/utils'
[INFO    ] Syncing utils for environment 'base'
[INFO    ] Loading cache from salt://_utils, for base)
[INFO    ] Caching directory '_utils/' for environment 'base'
[INFO    ] Loading fresh modules for state activity
[INFO    ] Fetching file from saltenv 'base', ** done ** 'deb_repackage_deps.sls'
[INFO    ] Fetching file from saltenv 'base', ** done ** 'git_clone.sls'
[INFO    ] Fetching file from saltenv 'base', ** done ** 'setvars'
[INFO    ] Fetching file from saltenv 'base', ** done ** 'copyin_build_product.sls'
[INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://setvars'
[INFO    ] Fetching file from saltenv 'base', ** done ** 'make_deb.sls'
[INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://setvars'
[INFO    ] Running state [deb_repackage_deps] at time 07:01:56.635652
[INFO    ] Executing state pkg.installed for deb_repackage_deps
[INFO    ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/root'
[INFO    ] Executing command ['apt-cache', '-q', 'policy', 'build-essential'] in directory '/root'
[INFO    ] Executing command ['apt-cache', '-q', 'policy', 'devscripts'] in directory '/root'
[INFO    ] Executing command ['apt-cache', '-q', 'policy', 'git'] in directory '/root'
[INFO    ] Executing command ['apt-cache', '-q', 'policy', 'debhelper'] in directory '/root'
[INFO    ] Executing command 'apt-get -q update' in directory '/root'
[INFO    ] Executing command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'build-essential', 'devscripts', 'git', 'debhelper'] in directory '/root'
[INFO    ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/root'
[INFO    ] Installed Packages:
build-essential changed from absent to 11.5
c++-compiler changed from absent to 1
libparse-debcontrol-perl changed from absent to 2.005-3
libencode-locale-perl changed from absent to 1.03-1
libnet-ssleay-perl changed from absent to 1.48-1+b1
libsys-hostname-long-perl changed from absent to 1.4-2
libxml-sax-expat-perl changed from absent to 0.40-2
libcroco3 changed from absent to 0.6.6-2
libmime-tools-perl changed from absent to 5.503-1
libtie-ixhash-perl changed from absent to 1.21-2
git-man changed from absent to 1:1.7.10.4-1+wheezy1
libmail-sendmail-perl changed from absent to 0.79.16-1
libdata-uuid-perl changed from absent to 1
libconvert-binhex-perl changed from absent to 1.119+pristine-3
libapt-pkg-perl changed from absent to 0.1.26+b1
python2.6-magic changed from absent to 1
debian-maintainers changed from absent to 1
git changed from absent to 1:1.7.10.4-1+wheezy1
liberror-perl changed from absent to 0.17-1
libexporter-lite-perl changed from absent to 0.02-2
libio-pty-perl changed from absent to 1:1.08-1+b2
diffstat changed from absent to 1.55-3
libsocket-perl changed from 1 to 2.002-1
patchutils changed from absent to 0.3.2-1.1
libmime-perl changed from absent to 1
libjson-perl changed from absent to 2.53-1
python-magic changed from absent to 5.11-2+deb7u7
libnet-ip-perl changed from absent to 1.25-3
debian-keyring changed from absent to 2013.04.21
git-core changed from absent to 1
libglib2.0-data changed from absent to 2.33.12+really2.32.4-5
intltool-debian changed from absent to 0.35.0+20060710.1
libunistring0 changed from absent to 0.9.3-5
libipc-run-perl changed from absent to 0.92-1
liburi-perl changed from absent to 1.60-1
mailtools changed from absent to 1
libnet-http-perl changed from absent to 6.03-2
libio-tty-perl changed from absent to 1
python2.7-magic changed from absent to 1
libfcgi-perl changed from absent to 0.74-1+b1
libcurl3-gnutls changed from absent to 7.26.0-1+wheezy12
libfile-listing-perl changed from absent to 6.04-1
libtask-weaken-perl changed from absent to 1.03-1
libdistro-info-perl changed from absent to 0.10
liblwp-mediatypes-perl changed from absent to 6.02-1
libio-stringy-perl changed from absent to 2.110-5
equivs changed from absent to 2.0.9
libsub-name-perl changed from absent to 0.05-1+b2
libxml-namespacesupport-perl changed from absent to 1.09-3
c++abi2-dev changed from absent to 1
wdiff changed from absent to 1.1.2-1
libwww-robotrules-perl changed from absent to 6.01-1
libhtml-template-perl changed from absent to 2.91-1
html2text changed from absent to 1.3.2a-15
libnet-dns-perl changed from absent to 0.66-2+b2
libxml-sax-perl changed from absent to 0.99+dfsg-2
libmailtools-perl changed from absent to 2.09-1
hardening-includes changed from absent to 2.2
g++-4.7 changed from absent to 4.7.2-5
libxml-simple-perl changed from absent to 2.20-1
libglib2.0-0 changed from absent to 2.33.12+really2.32.4-5
shared-mime-info changed from absent to 1.0-1+b1
libasprintf-dev changed from absent to 1
libsoap-lite-perl changed from absent to 0.714-1
libhttp-negotiate-perl changed from absent to 6.00-2
libio-socket-ssl-perl changed from absent to 1.76-2
libfont-afm-perl changed from absent to 1.20-1
libemail-valid-perl changed from absent to 0.190-1
libmail-perl changed from absent to 1
libclone-perl changed from absent to 0.31-1+b2
file changed from 5.11-2 to 5.11-2+deb7u7
lintian changed from absent to 2.5.10.4
libparse-debianchangelog-perl changed from absent to 1.2.0-1
libwww-perl changed from absent to 6.04-1
libclass-accessor-perl changed from absent to 0.34-1
libio-socket-ip-perl changed from absent to 0.16-2
libhttp-date-perl changed from absent to 6.02-1
libdigest-hmac-perl changed from absent to 1.03+dfsg-1
libhttp-daemon-perl changed from absent to 6.01-1
distro-info-data changed from absent to 0.17~deb7u1
gettext changed from absent to 0.18.1.1-9
git-completion changed from absent to 1
libossp-uuid16 changed from absent to 1.6.2-1.3
g++ changed from absent to 4:4.7.2-1
libxml-sax-base-perl changed from absent to 1.07-1
dput changed from absent to 0.9.6.3+nmu2
libhtml-format-perl changed from absent to 2.10-1
libarchive-zip-perl changed from absent to 1.30-6
libossp-uuid-perl changed from absent to 1.6.2-1.3
libmagic1 changed from 5.11-2 to 5.11-2+deb7u7
libhtml-parser-perl changed from absent to 3.69-2
libhttp-message-perl changed from absent to 6.03-1
libcrypt-ssleay-perl changed from absent to 0.58-1
debhelper changed from absent to 9.20120909
libstdc++-dev changed from absent to 1
devscripts changed from absent to 2.12.6+deb7u2
libio-string-perl changed from absent to 1.08-2
libgettextpo0 changed from absent to 0.18.1.1-9
libstdc++6-4.7-dev changed from absent to 4.7.2-5
libhtml-form-perl changed from absent to 6.03-1
libnet-domain-tld-perl changed from absent to 1.69-1
libhttp-cookies-perl changed from absent to 6.00-2
libxml-parser-perl changed from absent to 2.41-1+b1
libclass-inspector-perl changed from absent to 1.27-1
strace changed from absent to 4.5.20-2.3
autopoint changed from absent to 0.18.1.1-9
libhtml-tree-perl changed from absent to 5.02-1
libjson-xs-perl changed from absent to 2.320-1+b1
liblwp-protocol-https-perl changed from absent to 6.03-1
libcommon-sense-perl changed from absent to 3.6-1
libgettextpo-dev changed from absent to 1
libhtml-tagset-perl changed from absent to 3.20-2
po-debconf changed from absent to 1.0.16+nmu2

[INFO    ] Loading fresh modules for state activity
[INFO    ] Completed state [deb_repackage_deps] at time 07:03:49.689232
[INFO    ] Running state [/git/calamari-clients] at time 07:03:49.689627
[INFO    ] Executing state git.latest for /git/calamari-clients
[INFO    ] Executing command "git clone /git/calamari-clients '/home/vagrant/clients' " as user 'vagrant' in directory '/home/vagrant'
[INFO    ] Executing command 'git rev-parse HEAD' as user 'vagrant' in directory '/home/vagrant/clients'
[INFO    ] Repository /git/calamari-clients cloned to /home/vagrant/clients
[INFO    ] {'new': '/git/calamari-clients', 'revision': 'b1fe77cb8cab5b76431b60e592e9a34ad63eae4d'}
[INFO    ] Completed state [/git/calamari-clients] at time 07:03:51.286149
[INFO    ] Running state [cp /git/calamari-clients*tar.gz /home/vagrant/clients] at time 07:03:51.286893
[INFO    ] Executing state cmd.run for cp /git/calamari-clients*tar.gz /home/vagrant/clients
[INFO    ] Executing command 'cp /git/calamari-clients*tar.gz /home/vagrant/clients' as user 'vagrant' in directory '/home/vagrant'
[ERROR   ] Command 'cp /git/calamari-clients*tar.gz /home/vagrant/clients' failed with return code: 1
[ERROR   ] stderr: cp: cannot stat `/git/calamari-clients*tar.gz': No such file or directory
[ERROR   ] retcode: 1
[ERROR   ] {'pid': 13955, 'retcode': 1, 'stderr': "cp: cannot stat `/git/calamari-clients*tar.gz': No such file or directory", 'stdout': ''}
[INFO    ] Completed state [cp /git/calamari-clients*tar.gz /home/vagrant/clients] at time 07:03:51.372284
[INFO    ] Running state [devscripts] at time 07:03:51.372546
[INFO    ] Executing state pkg.installed for devscripts
[INFO    ] Package devscripts is already installed.
[INFO    ] Completed state [devscripts] at time 07:03:51.373585
[INFO    ] Running state [make dpkg] at time 07:03:51.374053
[INFO    ] Executing state cmd.run for make dpkg
[INFO    ] Executing command 'make dpkg' as user 'vagrant' in directory '/home/vagrant/clients'
[ERROR   ] Command 'make dpkg' failed with return code: 2
[ERROR   ] stdout: [email protected] dch \
                --newversion 1.2.2-30-gb1fe77c"" \
                -D unstable --force-bad-version --force-distribution "built on Mon Mar  2 07:03:51 UTC 2015"
# don't require Build-Depends if not Ubuntu
if [ "" = y ] ; then \
                dpkg-buildpackage -b -us -uc ; \
        else \
                dpkg-buildpackage -d -b -us -uc ; \
        fi
dpkg-buildpackage: source package calamari-clients
dpkg-buildpackage: source version 1.2.2-30-gb1fe77c
dpkg-buildpackage: source changed by Vagrant User <[email protected]>
dpkg-buildpackage: host architecture amd64
make[1]: Entering directory `/home/vagrant/clients'
# keep your *(# hands off my venvs
dh clean --without python2 --without python3 --without pycentral --without pysupport
   dh_testdir
   dh_auto_clean
        make -j1 clean
make[2]: Entering directory `/home/vagrant/clients'
if [ "" = y ] ; then \
                make clean-real; \
        fi
make[2]: Leaving directory `/home/vagrant/clients'
   dh_clean
        rm -f debian/calamari-clients.substvars
        rm -f debian/calamari-clients.*.debhelper
        rm -rf debian/calamari-clients/
        rm -f debian/*.debhelper.log
        rm -f debian/files
        find .  \( \( -type f -a \
                \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
                 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
                 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
                 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
                \) -exec rm -f {} \; \) -o \
                \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) \)
        rm -f *-stamp
make[1]: Leaving directory `/home/vagrant/clients'
make[1]: Entering directory `/home/vagrant/clients'
# keep your *(# hands off my venvs
dh build --without python2 --without python3 --without pycentral --without pysupport
   dh_testdir
   dh_auto_configure
   dh_auto_build
        make -j1
make[2]: Entering directory `/home/vagrant/clients'
if [ "" = y ] ; then \
                make build-real; \
        fi
make[2]: Leaving directory `/home/vagrant/clients'
   dh_auto_test
make[1]: Leaving directory `/home/vagrant/clients'
make[1]: Entering directory `/home/vagrant/clients'
# keep your *(# hands off my venvs
dh binary --without python2 --without python3 --without pycentral --without pysupport
   dh_testroot
   dh_prep
        rm -f debian/calamari-clients.substvars
        rm -f debian/calamari-clients.*.debhelper
        rm -rf debian/calamari-clients/
   dh_installdirs
        install -d debian/calamari-clients
   dh_auto_install
        make -j1 install DESTDIR=/home/vagrant/clients/debian/calamari-clients AM_UPDATE_INFO_DIR=no
make[2]: Entering directory `/home/vagrant/clients'
if [ "" = y ] ; then \
                make build-real; \
        fi
target: install
install
if [ "" = y ] ; then \
                for d in manage admin login dashboard; do \
                        instdir=$(basename $d); \
                        /usr/bin/install -d /home/vagrant/clients/debian/calamari-clients/opt/calamari/webapp/content/$instdir; \
                        cp -rp $d/dist/* /home/vagrant/clients/debian/calamari-clients/opt/calamari/webapp/content/$instdir; \
                done; \
        else \
                cd /home/vagrant/clients/debian/calamari-clients; \
                tar xvfz /home/vagrant/clients/calamari-clients-build-output.tar.gz; \
        fi
make[2]: Leaving directory `/home/vagrant/clients'
make[1]: Leaving directory `/home/vagrant/clients'
[ERROR   ] stderr:  dpkg-source --before-build clients
 fakeroot debian/rules clean
 debian/rules build
 fakeroot debian/rules binary
tar (child): /home/vagrant/clients/calamari-clients-build-output.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
make[2]: *** [install] Error 2
dh_auto_install: make -j1 install DESTDIR=/home/vagrant/clients/debian/calamari-clients AM_UPDATE_INFO_DIR=no returned exit code 2
make[1]: *** [binary] Error 29
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
make: *** [dpkg] Error 2
[ERROR   ] retcode: 2
[ERROR   ] {'pid': 13960, 'retcode': 2, 'stderr': ' dpkg-source --before-build clients\n fakeroot debian/rules clean\n debian/rules build\n fakeroot debian/rules binary\ntar (child): /home/vagrant/clients/calamari-clients-build-output.tar.gz: Cannot open: No such file or directory\ntar (child): Error is not recoverable: exiting now\ntar: Child returned status 2\ntar: Error is not recoverable: exiting now\nmake[2]: *** [install] Error 2\ndh_auto_install: make -j1 install DESTDIR=/home/vagrant/clients/debian/calamari-clients AM_UPDATE_INFO_DIR=no returned exit code 2\nmake[1]: *** [binary] Error 29\ndpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2\nmake: *** [dpkg] Error 2', 'stdout': '[email protected] dch \\\n\t\t--newversion 1.2.2-30-gb1fe77c"" \\\n\t\t-D unstable --force-bad-version --force-distribution "built on Mon Mar  2 07:03:51 UTC 2015"\n# don\'t require Build-Depends if not Ubuntu\nif [ "" = y ] ; then \\\n\t\tdpkg-buildpackage -b -us -uc ; \\\n\telse \\\n\t\tdpkg-buildpackage -d -b -us -uc ; \\\n\tfi\ndpkg-buildpackage: source package calamari-clients\ndpkg-buildpackage: source version 1.2.2-30-gb1fe77c\ndpkg-buildpackage: source changed by Vagrant User <[email protected]>\ndpkg-buildpackage: host architecture amd64\nmake[1]: Entering directory `/home/vagrant/clients\'\n# keep your *(# hands off my venvs\ndh clean --without python2 --without python3 --without pycentral --without pysupport\n   dh_testdir\n   dh_auto_clean\n\tmake -j1 clean\nmake[2]: Entering directory `/home/vagrant/clients\'\nif [ "" = y ] ; then \\\n\t\tmake clean-real; \\\n\tfi\nmake[2]: Leaving directory `/home/vagrant/clients\'\n   dh_clean\n\trm -f debian/calamari-clients.substvars\n\trm -f debian/calamari-clients.*.debhelper\n\trm -rf debian/calamari-clients/\n\trm -f debian/*.debhelper.log\n\trm -f debian/files\n\tfind .  \\( \\( -type f -a \\\n\t        \\( -name \'#*#\' -o -name \'.*~\' -o -name \'*~\' -o -name DEADJOE \\\n\t\t -o -name \'*.orig\' -o -name \'*.rej\' -o -name \'*.bak\' \\\n\t\t -o -name \'.*.orig\' -o -name .*.rej -o -name \'.SUMS\' \\\n\t\t -o -name TAGS -o \\( -path \'*/.deps/*\' -a -name \'*.P\' \\) \\\n\t\t\\) -exec rm -f {} \\; \\) -o \\\n\t\t\\( -type d -a -name autom4te.cache -prune -exec rm -rf {} \\; \\) \\)\n\trm -f *-stamp\nmake[1]: Leaving directory `/home/vagrant/clients\'\nmake[1]: Entering directory `/home/vagrant/clients\'\n# keep your *(# hands off my venvs\ndh build --without python2 --without python3 --without pycentral --without pysupport\n   dh_testdir\n   dh_auto_configure\n   dh_auto_build\n\tmake -j1\nmake[2]: Entering directory `/home/vagrant/clients\'\nif [ "" = y ] ; then \\\n\t\tmake build-real; \\\n\tfi\nmake[2]: Leaving directory `/home/vagrant/clients\'\n   dh_auto_test\nmake[1]: Leaving directory `/home/vagrant/clients\'\nmake[1]: Entering directory `/home/vagrant/clients\'\n# keep your *(# hands off my venvs\ndh binary --without python2 --without python3 --without pycentral --without pysupport\n   dh_testroot\n   dh_prep\n\trm -f debian/calamari-clients.substvars\n\trm -f debian/calamari-clients.*.debhelper\n\trm -rf debian/calamari-clients/\n   dh_installdirs\n\tinstall -d debian/calamari-clients\n   dh_auto_install\n\tmake -j1 install DESTDIR=/home/vagrant/clients/debian/calamari-clients AM_UPDATE_INFO_DIR=no\nmake[2]: Entering directory `/home/vagrant/clients\'\nif [ "" = y ] ; then \\\n\t\tmake build-real; \\\n\tfi\ntarget: install\ninstall\nif [ "" = y ] ; then \\\n\t\tfor d in manage admin login dashboard; do \\\n\t\t\tinstdir=$(basename $d); \\\n\t\t\t/usr/bin/install -d /home/vagrant/clients/debian/calamari-clients/opt/calamari/webapp/content/$instdir; \\\n\t\t\tcp -rp $d/dist/* /home/vagrant/clients/debian/calamari-clients/opt/calamari/webapp/content/$instdir; \\\n\t\tdone; \\\n\telse \\\n\t\tcd /home/vagrant/clients/debian/calamari-clients; \\\n\t\ttar xvfz /home/vagrant/clients/calamari-clients-build-output.tar.gz; \\\n\tfi\nmake[2]: Leaving directory `/home/vagrant/clients\'\nmake[1]: Leaving directory `/home/vagrant/clients\''}
[INFO    ] Completed state [make dpkg] at time 07:03:52.783471
local:
----------
          ID: deb_repackage_deps
    Function: pkg.installed
      Result: True
     Comment: 4 targeted packages were installed/updated. The following packages were already installed: make.
     Started: 07:01:56.635652
    Duration: 113053.58 ms
     Changes:   
              ----------
              autopoint:
                  ----------
                  new:
                      0.18.1.1-9
                  old:

              build-essential:
                  ----------
                  new:
                      11.5
                  old:

              c++-compiler:
                  ----------
                  new:
                      1
                  old:

              c++abi2-dev:
                  ----------
                  new:
                      1
                  old:

              debhelper:
                  ----------
                  new:
                      9.20120909
                  old:

              debian-keyring:
                  ----------
                  new:
                      2013.04.21
                  old:

              debian-maintainers:
                  ----------
                  new:
                      1
                  old:

              devscripts:
                  ----------
                  new:
                      2.12.6+deb7u2
                  old:

              diffstat:
                  ----------
                  new:
                      1.55-3
                  old:

              distro-info-data:
                  ----------
                  new:
                      0.17~deb7u1
                  old:

              dput:
                  ----------
                  new:
                      0.9.6.3+nmu2
                  old:

              equivs:
                  ----------
                  new:
                      2.0.9
                  old:

              file:
                  ----------
                  new:
                      5.11-2+deb7u7
                  old:
                      5.11-2
              g++:
                  ----------
                  new:
                      4:4.7.2-1
                  old:

              g++-4.7:
                  ----------
                  new:
                      4.7.2-5
                  old:

              gettext:
                  ----------
                  new:
                      0.18.1.1-9
                  old:

              git:
                  ----------
                  new:
                      1:1.7.10.4-1+wheezy1
                  old:

              git-completion:
                  ----------
                  new:
                      1
                  old:

              git-core:
                  ----------
                  new:
                      1
                  old:

              git-man:
                  ----------
                  new:
                      1:1.7.10.4-1+wheezy1
                  old:

              hardening-includes:
                  ----------
                  new:
                      2.2
                  old:

              html2text:
                  ----------
                  new:
                      1.3.2a-15
                  old:

              intltool-debian:
                  ----------
                  new:
                      0.35.0+20060710.1
                  old:

              libapt-pkg-perl:
                  ----------
                  new:
                      0.1.26+b1
                  old:

              libarchive-zip-perl:
                  ----------
                  new:
                      1.30-6
                  old:

              libasprintf-dev:
                  ----------
                  new:
                      1
                  old:

              libclass-accessor-perl:
                  ----------
                  new:
                      0.34-1
                  old:

              libclass-inspector-perl:
                  ----------
                  new:
                      1.27-1
                  old:

              libclone-perl:
                  ----------
                  new:
                      0.31-1+b2
                  old:

              libcommon-sense-perl:
                  ----------
                  new:
                      3.6-1
                  old:

              libconvert-binhex-perl:
                  ----------
                  new:
                      1.119+pristine-3
                  old:

              libcroco3:
                  ----------
                  new:
                      0.6.6-2
                  old:

              libcrypt-ssleay-perl:
                  ----------
                  new:
                      0.58-1
                  old:

              libcurl3-gnutls:
                  ----------
                  new:
                      7.26.0-1+wheezy12
                  old:

              libdata-uuid-perl:
                  ----------
                  new:
                      1
                  old:

              libdigest-hmac-perl:
                  ----------
                  new:
                      1.03+dfsg-1
                  old:

              libdistro-info-perl:
                  ----------
                  new:
                      0.10
                  old:

              libemail-valid-perl:
                  ----------
                  new:
                      0.190-1
                  old:

              libencode-locale-perl:
                  ----------
                  new:
                      1.03-1
                  old:

              liberror-perl:
                  ----------
                  new:
                      0.17-1
                  old:

              libexporter-lite-perl:
                  ----------
                  new:
                      0.02-2
                  old:

              libfcgi-perl:
                  ----------
                  new:
                      0.74-1+b1
                  old:

              libfile-listing-perl:
                  ----------
                  new:
                      6.04-1
                  old:

              libfont-afm-perl:
                  ----------
                  new:
                      1.20-1
                  old:

              libgettextpo-dev:
                  ----------
                  new:
                      1
                  old:

              libgettextpo0:
                  ----------
                  new:
                      0.18.1.1-9
                  old:

              libglib2.0-0:
                  ----------
                  new:
                      2.33.12+really2.32.4-5
                  old:

              libglib2.0-data:
                  ----------
                  new:
                      2.33.12+really2.32.4-5
                  old:

              libhtml-form-perl:
                  ----------
                  new:
                      6.03-1
                  old:

              libhtml-format-perl:
                  ----------
                  new:
                      2.10-1
                  old:

              libhtml-parser-perl:
                  ----------
                  new:
                      3.69-2
                  old:

              libhtml-tagset-perl:
                  ----------
                  new:
                      3.20-2
                  old:

              libhtml-template-perl:
                  ----------
                  new:
                      2.91-1
                  old:

              libhtml-tree-perl:
                  ----------
                  new:
                      5.02-1
                  old:

              libhttp-cookies-perl:
                  ----------
                  new:
                      6.00-2
                  old:

              libhttp-daemon-perl:
                  ----------
                  new:
                      6.01-1
                  old:

              libhttp-date-perl:
                  ----------
                  new:
                      6.02-1
                  old:

              libhttp-message-perl:
                  ----------
                  new:
                      6.03-1
                  old:

              libhttp-negotiate-perl:
                  ----------
                  new:
                      6.00-2
                  old:

              libio-pty-perl:
                  ----------
                  new:
                      1:1.08-1+b2
                  old:

              libio-socket-ip-perl:
                  ----------
                  new:
                      0.16-2
                  old:

              libio-socket-ssl-perl:
                  ----------
                  new:
                      1.76-2
                  old:

              libio-string-perl:
                  ----------
                  new:
                      1.08-2
                  old:

              libio-stringy-perl:
                  ----------
                  new:
                      2.110-5
                  old:

              libio-tty-perl:
                  ----------
                  new:
                      1
                  old:

              libipc-run-perl:
                  ----------
                  new:
                      0.92-1
                  old:

              libjson-perl:
                  ----------
                  new:
                      2.53-1
                  old:

              libjson-xs-perl:
                  ----------
                  new:
                      2.320-1+b1
                  old:

              liblwp-mediatypes-perl:
                  ----------
                  new:
                      6.02-1
                  old:

              liblwp-protocol-https-perl:
                  ----------
                  new:
                      6.03-1
                  old:

              libmagic1:
                  ----------
                  new:
                      5.11-2+deb7u7
                  old:
                      5.11-2
              libmail-perl:
                  ----------
                  new:
                      1
                  old:

              libmail-sendmail-perl:
                  ----------
                  new:
                      0.79.16-1
                  old:

              libmailtools-perl:
                  ----------
                  new:
                      2.09-1
                  old:

              libmime-perl:
                  ----------
                  new:
                      1
                  old:

              libmime-tools-perl:
                  ----------
                  new:
                      5.503-1
                  old:

              libnet-dns-perl:
                  ----------
                  new:
                      0.66-2+b2
                  old:

              libnet-domain-tld-perl:
                  ----------
                  new:
                      1.69-1
                  old:

              libnet-http-perl:
                  ----------
                  new:
                      6.03-2
                  old:

              libnet-ip-perl:
                  ----------
                  new:
                      1.25-3
                  old:

              libnet-ssleay-perl:
                  ----------
                  new:
                      1.48-1+b1
                  old:

              libossp-uuid-perl:
                  ----------
                  new:
                      1.6.2-1.3
                  old:

              libossp-uuid16:
                  ----------
                  new:
                      1.6.2-1.3
                  old:

              libparse-debcontrol-perl:
                  ----------
                  new:
                      2.005-3
                  old:

              libparse-debianchangelog-perl:
                  ----------
                  new:
                      1.2.0-1
                  old:

              libsoap-lite-perl:
                  ----------
                  new:
                      0.714-1
                  old:

              libsocket-perl:
                  ----------
                  new:
                      2.002-1
                  old:
                      1
              libstdc++-dev:
                  ----------
                  new:
                      1
                  old:

              libstdc++6-4.7-dev:
                  ----------
                  new:
                      4.7.2-5
                  old:

              libsub-name-perl:
                  ----------
                  new:
                      0.05-1+b2
                  old:

              libsys-hostname-long-perl:
                  ----------
                  new:
                      1.4-2
                  old:

              libtask-weaken-perl:
                  ----------
                  new:
                      1.03-1
                  old:

              libtie-ixhash-perl:
                  ----------
                  new:
                      1.21-2
                  old:

              libunistring0:
                  ----------
                  new:
                      0.9.3-5
                  old:

              liburi-perl:
                  ----------
                  new:
                      1.60-1
                  old:

              libwww-perl:
                  ----------
                  new:
                      6.04-1
                  old:

              libwww-robotrules-perl:
                  ----------
                  new:
                      6.01-1
                  old:

              libxml-namespacesupport-perl:
                  ----------
                  new:
                      1.09-3
                  old:

              libxml-parser-perl:
                  ----------
                  new:
                      2.41-1+b1
                  old:

              libxml-sax-base-perl:
                  ----------
                  new:
                      1.07-1
                  old:

              libxml-sax-expat-perl:
                  ----------
                  new:
                      0.40-2
                  old:

              libxml-sax-perl:
                  ----------
                  new:
                      0.99+dfsg-2
                  old:

              libxml-simple-perl:
                  ----------
                  new:
                      2.20-1
                  old:

              lintian:
                  ----------
                  new:
                      2.5.10.4
                  old:

              mailtools:
                  ----------
                  new:
                      1
                  old:

              patchutils:
                  ----------
                  new:
                      0.3.2-1.1
                  old:

              po-debconf:
                  ----------
                  new:
                      1.0.16+nmu2
                  old:

              python-magic:
                  ----------
                  new:
                      5.11-2+deb7u7
                  old:

              python2.6-magic:
                  ----------
                  new:
                      1
                  old:

              python2.7-magic:
                  ----------
                  new:
                      1
                  old:

              shared-mime-info:
                  ----------
                  new:
                      1.0-1+b1
                  old:

              strace:
                  ----------
                  new:
                      4.5.20-2.3
                  old:

              wdiff:
                  ----------
                  new:
                      1.1.2-1
                  old:

----------
          ID: git_clone
    Function: git.latest
        Name: /git/calamari-clients
      Result: True
     Comment: Repository /git/calamari-clients cloned to /home/vagrant/clients
     Started: 07:03:49.689627
    Duration: 1596.522 ms
     Changes:   
              ----------
              new:
                  /git/calamari-clients
              revision:
                  b1fe77cb8cab5b76431b60e592e9a34ad63eae4d
----------
          ID: copyin_build_product
    Function: cmd.run
        Name: cp /git/calamari-clients*tar.gz /home/vagrant/clients
      Result: False
     Comment: Command "cp /git/calamari-clients*tar.gz /home/vagrant/clients" run
     Started: 07:03:51.286893
    Duration: 85.391 ms
     Changes:   
              ----------
              pid:
                  13955
              retcode:
                  1
              stderr:
                  cp: cannot stat `/git/calamari-clients*tar.gz': No such file or directory
              stdout:

----------
          ID: devscripts
    Function: pkg.installed
      Result: True
     Comment: Package devscripts is already installed.
     Started: 07:03:51.372546
    Duration: 1.039 ms
     Changes:   
----------
          ID: build_calamari_clients
    Function: cmd.run
        Name: make dpkg
      Result: False
     Comment: Command "make dpkg" run
     Started: 07:03:51.374053
    Duration: 1409.418 ms
     Changes:   
              ----------
              pid:
                  13960
              retcode:
                  2
              stderr:
                   dpkg-source --before-build clients
                   fakeroot debian/rules clean
                   debian/rules build
                   fakeroot debian/rules binary
                  tar (child): /home/vagrant/clients/calamari-clients-build-output.tar.gz: Cannot open: No such file or directory
                  tar (child): Error is not recoverable: exiting now
                  tar: Child returned status 2
                  tar: Error is not recoverable: exiting now
                  make[2]: *** [install] Error 2
                  dh_auto_install: make -j1 install DESTDIR=/home/vagrant/clients/debian/calamari-clients AM_UPDATE_INFO_DIR=no returned exit code 2
                  make[1]: *** [binary] Error 29
                  dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
                  make: *** [dpkg] Error 2
              stdout:
                  [email protected] dch \
                                --newversion 1.2.2-30-gb1fe77c"" \
                                -D unstable --force-bad-version --force-distribution "built on Mon Mar  2 07:03:51 UTC 2015"
                  # don't require Build-Depends if not Ubuntu
                  if [ "" = y ] ; then \
                                dpkg-buildpackage -b -us -uc ; \
                        else \
                                dpkg-buildpackage -d -b -us -uc ; \
                        fi
                  dpkg-buildpackage: source package calamari-clients
                  dpkg-buildpackage: source version 1.2.2-30-gb1fe77c
                  dpkg-buildpackage: source changed by Vagrant User <[email protected]>
                  dpkg-buildpackage: host architecture amd64
                  make[1]: Entering directory `/home/vagrant/clients'
                  # keep your *(# hands off my venvs
                  dh clean --without python2 --without python3 --without pycentral --without pysupport
                     dh_testdir
                     dh_auto_clean
                        make -j1 clean
                  make[2]: Entering directory `/home/vagrant/clients'
                  if [ "" = y ] ; then \
                                make clean-real; \
                        fi
                  make[2]: Leaving directory `/home/vagrant/clients'
                     dh_clean
                        rm -f debian/calamari-clients.substvars
                        rm -f debian/calamari-clients.*.debhelper
                        rm -rf debian/calamari-clients/
                        rm -f debian/*.debhelper.log
                        rm -f debian/files
                        find .  \( \( -type f -a \
                                \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
                                 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
                                 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
                                 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
                                \) -exec rm -f {} \; \) -o \
                                \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) \)
                        rm -f *-stamp
                  make[1]: Leaving directory `/home/vagrant/clients'
                  make[1]: Entering directory `/home/vagrant/clients'
                  # keep your *(# hands off my venvs
                  dh build --without python2 --without python3 --without pycentral --without pysupport
                     dh_testdir
                     dh_auto_configure
                     dh_auto_build
                        make -j1
                  make[2]: Entering directory `/home/vagrant/clients'
                  if [ "" = y ] ; then \
                                make build-real; \
                        fi
                  make[2]: Leaving directory `/home/vagrant/clients'
                     dh_auto_test
                  make[1]: Leaving directory `/home/vagrant/clients'
                  make[1]: Entering directory `/home/vagrant/clients'
                  # keep your *(# hands off my venvs
                  dh binary --without python2 --without python3 --without pycentral --without pysupport
                     dh_testroot
                     dh_prep
                        rm -f debian/calamari-clients.substvars
                        rm -f debian/calamari-clients.*.debhelper
                        rm -rf debian/calamari-clients/
                     dh_installdirs
                        install -d debian/calamari-clients
                     dh_auto_install
                        make -j1 install DESTDIR=/home/vagrant/clients/debian/calamari-clients AM_UPDATE_INFO_DIR=no
                  make[2]: Entering directory `/home/vagrant/clients'
                  if [ "" = y ] ; then \
                                make build-real; \
                        fi
                  target: install
                  install
                  if [ "" = y ] ; then \
                                for d in manage admin login dashboard; do \
                                        instdir=$(basename $d); \
                                        /usr/bin/install -d /home/vagrant/clients/debian/calamari-clients/opt/calamari/webapp/content/$instdir; \
                                        cp -rp $d/dist/* /home/vagrant/clients/debian/calamari-clients/opt/calamari/webapp/content/$instdir; \
                                done; \
                        else \
                                cd /home/vagrant/clients/debian/calamari-clients; \
                                tar xvfz /home/vagrant/clients/calamari-clients-build-output.tar.gz; \
                        fi
                  make[2]: Leaving directory `/home/vagrant/clients'
                  make[1]: Leaving directory `/home/vagrant/clients'
----------
          ID: copy_calamari_clients
    Function: cmd.run
        Name: cp calamari-clients*.deb /git
      Result: False
     Comment: One or more requisite failed: {'make_deb.build_calamari_clients': 'Command "make dpkg" run'}
     Started: 
    Duration: 
     Changes:   

Summary
------------
Succeeded: 3 (changed=4)
Failed:    3
------------
Total states run:     6
vagrant@debian-7:~$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.