Ubuntu14.04安装calamari

Ubuntu14.04安装calamari

目前创新互联已为上千家的企业提供了网站建设、域名、网页空间、网站托管、服务器托管、企业网站设计、上犹网站维护等服务,公司将坚持客户导向、应用为本的策略,正道将秉承"和谐、参与、激情"的文化,与客户和合作伙伴齐心协力一起成长,共同发展。

操作系统安装

……省略……

配置服务器信任

……省略……

Calamari服务端部署

1、配置ubuntu默认仓库为阿里云镜像库

deb http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverse

debhttp://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universemultiverse

2、配置ceph calamari salt仓库

echo“debhttp://mirrors.aliyun.com/ceph/calamari/1.3.1/ubuntu/trusty/ trusty main” > /etc/apt/sources.list.d/calamari.list

echo "debhttp://ppa.launchpad.net/saltstack/salt2014-7/ubuntu trusty main" >/etc/apt/sources.list.d/saltstack-salt-trusty.list

3、添加仓库密钥

wget-q -O- 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc' |sudo apt-key add -

gpg--keyserver keyserver.ubuntu.com --recv-key 0E27C0A6 && gpg -a --export0E27C0A6 | sudo apt-key add -

4、更新仓库元信息

root@calamari:/etc/apt/sources.list.d# apt-getupdate

Ign http://mirrors.aliyun.com trusty InRelease

Hit http://mirrors.aliyun.com trusty-securityInRelease

Hit http://mirrors.aliyun.com trusty-updatesInRelease                        

Hit http://mirrors.aliyun.com trusty-proposedInRelease                       

Hit http://mirrors.aliyun.com trusty-backportsInRelease                      

Get:1 http://mirrors.aliyun.com trusty InRelease[4,803 B]                    

Ign http://mirrors.aliyun.com trustyInRelease                                

Hit http://mirrors.aliyun.com trustyRelease.gpg                              

Hit http://mirrors.aliyun.comtrusty-security/main amd64 Packages        

Hit http://mirrors.aliyun.com trusty-security/restrictedamd64 Packages       

Hit http://mirrors.aliyun.comtrusty-security/universe amd64 Packages         

Hit http://mirrors.aliyun.comtrusty-security/multiverse amd64 Packages

Hit http://mirrors.aliyun.comtrusty-security/main i386 Packages              

Hit http://mirrors.aliyun.comtrusty-security/restricted i386 Packages        

Hit http://mirrors.aliyun.comtrusty-security/universe i386 Packages          

Hit http://mirrors.aliyun.comtrusty-security/multiverse i386 Packages  

Hit http://mirrors.aliyun.comtrusty-security/main Translation-en             

Hit http://mirrors.aliyun.comtrusty-security/multiverse Translation-en       

Hit http://mirrors.aliyun.comtrusty-security/restricted Translation-en  

Hit http://mirrors.aliyun.comtrusty-security/universe Translation-en   

Hit http://mirrors.aliyun.com trusty-updates/mainamd64 Packages       

Hit http://mirrors.aliyun.comtrusty-updates/restricted amd64 Packages

Hit http://mirrors.aliyun.comtrusty-updates/universe amd64 Packages

Hit http://mirrors.aliyun.comtrusty-updates/multiverse amd64 Packages

Hit http://mirrors.aliyun.com trusty-updates/maini386 Packages

Hit http://mirrors.aliyun.comtrusty-updates/restricted i386 Packages

Hit http://mirrors.aliyun.com trusty-updates/universei386 Packages

Hit http://mirrors.aliyun.comtrusty-updates/multiverse i386 Packages

Hit http://mirrors.aliyun.com trusty-updates/mainTranslation-en   

Hit http://mirrors.aliyun.comtrusty-updates/multiverse Translation-en

Hit http://mirrors.aliyun.comtrusty-updates/restricted Translation-en

Ign http://ppa.launchpad.net trusty InRelease

Hit http://mirrors.aliyun.comtrusty-updates/universe Translation-en

Hit http://mirrors.aliyun.comtrusty-proposed/main amd64 Packages

Hit http://mirrors.aliyun.comtrusty-proposed/restricted amd64 Packages

Hit http://mirrors.aliyun.comtrusty-proposed/universe amd64 Packages

Hit http://mirrors.aliyun.comtrusty-proposed/multiverse amd64 Packages  

Hit http://mirrors.aliyun.com trusty-proposed/maini386 Packages         

Hit http://mirrors.aliyun.comtrusty-proposed/restricted i386 Packages

Hit http://mirrors.aliyun.comtrusty-proposed/universe i386 Packages     

Hit http://mirrors.aliyun.comtrusty-proposed/multiverse i386 Packages   

Hit http://mirrors.aliyun.comtrusty-proposed/main Translation-en 

Hit http://mirrors.aliyun.comtrusty-proposed/multiverse Translation-en

Hit http://mirrors.aliyun.comtrusty-proposed/restricted Translation-en

Hit http://mirrors.aliyun.com trusty-proposed/universeTranslation-en 

Hit http://mirrors.aliyun.comtrusty-backports/main amd64 Packages      

Hit http://mirrors.aliyun.comtrusty-backports/restricted amd64 Packages

Hit http://mirrors.aliyun.comtrusty-backports/universe amd64 Packages

Hit http://ppa.launchpad.net trustyRelease.gpg                  

Hit http://mirrors.aliyun.comtrusty-backports/multiverse amd64 Packages

Hit http://mirrors.aliyun.comtrusty-backports/main i386 Packages 

Hit http://mirrors.aliyun.comtrusty-backports/restricted i386 Packages

Hit http://mirrors.aliyun.comtrusty-backports/universe i386 Packages

Hit http://mirrors.aliyun.comtrusty-backports/multiverse i386 Packages

Hit http://mirrors.aliyun.comtrusty-backports/main Translation-en

Hit http://mirrors.aliyun.com trusty-backports/multiverseTranslation-en

Hit http://mirrors.aliyun.comtrusty-backports/restricted Translation-en

Hit http://mirrors.aliyun.comtrusty-backports/universe Translation-en

Get:2 http://mirrors.aliyun.com trusty/main amd64Packages [1,132 B]   

Get:3 http://mirrors.aliyun.com trusty/main i386Packages [729 B]     

Hit http://ppa.launchpad.net trusty Release                           

Hit http://mirrors.aliyun.com trusty Release    

Hit http://mirrors.aliyun.com trusty/main amd64Packages              

Hit http://mirrors.aliyun.com trusty/restrictedamd64 Packages     

Hit http://mirrors.aliyun.com trusty/universeamd64 Packages       

Hit http://mirrors.aliyun.com trusty/multiverseamd64 Packages

Hit http://mirrors.aliyun.com trusty/main i386Packages

Hit http://mirrors.aliyun.com trusty/restrictedi386 Packages

Hit http://mirrors.aliyun.com trusty/universei386 Packages

Hit http://mirrors.aliyun.com trusty/multiversei386 Packages

Hit http://mirrors.aliyun.com trusty/mainTranslation-en          

Hit http://ppa.launchpad.net trusty/main amd64Packages           

Hit http://mirrors.aliyun.com trusty/multiverseTranslation-en

Hit http://mirrors.aliyun.com trusty/restrictedTranslation-en

Hit http://mirrors.aliyun.com trusty/universeTranslation-en

Hit http://ppa.launchpad.net trusty/main i386Packages

Ign http://mirrors.aliyun.com trusty/mainTranslation-en_US

Ign http://mirrors.aliyun.com trusty/mainTranslation-en

Ign http://mirrors.aliyun.com trusty/mainTranslation-en_US        

Ign http://mirrors.aliyun.com trusty/multiverseTranslation-en_US  

Ign http://mirrors.aliyun.com trusty/restrictedTranslation-en_US 

Ign http://mirrors.aliyun.com trusty/universeTranslation-en_US    

Hit http://ppa.launchpad.net trusty/mainTranslation-en

Fetched 6,664 B in 3s (2,107 B/s)           

Readingpackage lists... Done

5、安装Calamari-server,calamari-clients

root@calamari:/etc/apt/sources.list.d# sudoapt-get install calamari-server calamari-clients

Reading package lists... Done

Building dependency tree      

Reading state information... Done

The following packages were automaticallyinstalled and are no longer required:

 python-croniter sqlite3

Use 'apt-get autoremove' to remove them.

The following extra packages will be installed:

 python-gevent python-greenlet python-sqlalchemy python-sqlalchemy-ext

Suggested packages:

 python-gevent-doc python-gevent-dbg python-greenlet-docpython-greenlet-dev

 python-greenlet-dbg python-sqlalchemy-doc python-psycopg2 python-MySQLdb

 python-kinterbasdb python-pymssql

The following NEW packages will be installed:

 calamari-clients calamari-server python-gevent python-greenlet

 python-sqlalchemy python-sqlalchemy-ext

0 upgraded, 6 newly installed, 0 to remove and118 not upgraded.

Need to get 11.9 MB/12.7 MB of archives.

After this operation, 88.5 MB of additional diskspace will be used.

Do you want to continue? [Y/n] y

WARNING: The following packages cannot beauthenticated!

 calamari-server calamari-clients

Install these packages without verification?[y/N] y

Get:1http://mirrors.aliyun.com/ceph/calamari/1.3.1/ubuntu/trusty/ trusty/maincalamari-server amd64 1.3.1.1-1trusty [11.1 MB]

Get:2http://mirrors.aliyun.com/ceph/calamari/1.3.1/ubuntu/trusty/ trusty/maincalamari-clients all 1.3.1.1-1trusty [839 kB]

Fetched 11.8 MB in 16s (717 kB/s)                                             

Selecting previously unselected packagepython-sqlalchemy.

(Reading database ... 77618 files and directoriescurrently installed.)

Preparing to unpack.../python-sqlalchemy_0.8.4-1build1_all.deb ...

Unpacking python-sqlalchemy (0.8.4-1build1) ...

Selecting previously unselected packagepython-sqlalchemy-ext.

Preparing to unpack.../python-sqlalchemy-ext_0.8.4-1build1_amd64.deb ...

Unpacking python-sqlalchemy-ext (0.8.4-1build1)...

Selecting previously unselected packagepython-greenlet.

Preparing to unpack.../python-greenlet_0.4.2-1ubuntu0.1_amd64.deb ...

Unpacking python-greenlet (0.4.2-1ubuntu0.1) ...

Selecting previously unselected packagepython-gevent.

Preparing to unpack.../python-gevent_1.0-1ubuntu1.1_amd64.deb ...

Unpacking python-gevent (1.0-1ubuntu1.1) ...

Selecting previously unselected packagecalamari-server.

Preparing to unpack .../calamari-server_1.3.1.1-1trusty_amd64.deb...

Unpacking calamari-server (1.3.1.1-1trusty) ...

dpkg: warning: unable to delete old directory'/etc/calamari/ssl/certs': Directory not empty

dpkg: warning: unable to delete old directory'/etc/calamari/ssl/private': Directory not empty

dpkg: warning: unable to delete old directory'/etc/calamari/ssl': Directory not empty

Selecting previously unselected packagecalamari-clients.

Preparing to unpack.../calamari-clients_1.3.1.1-1trusty_all.deb ...

Unpacking calamari-clients (1.3.1.1-1trusty) ...

Setting up python-sqlalchemy (0.8.4-1build1) ...

Setting up python-sqlalchemy-ext (0.8.4-1build1)...

Setting up python-greenlet (0.4.2-1ubuntu0.1) ...

Setting up python-gevent (1.0-1ubuntu1.1) ...

Setting up calamari-server (1.3.1.1-1trusty) ...

Installing new version of config file/etc/calamari/calamari.conf ...

Installing new version of config file/etc/calamari/alembic.ini ...

ERROR: Module version does not exist!

salt-master stop/waiting

salt-master: no process found

salt-master start/running, process 5762

Stopping supervisor: supervisord.

Starting supervisor: supervisord.

 * Stoppingweb server apache2                                                                                *

 * Startingweb server apache2                                                                                 *

Thank you for installing Calamari.

Please run 'sudo calamari-ctl initialize' tocomplete the installation.

Setting up calamari-clients (1.3.1.1-1trusty) ...

6、calamari初始化

        root@calamari:/etc/apt/sources.list.d#calamari-ctl initialize

[INFO]Loading configuration..

[INFO]Starting/enabling salt...

[INFO]Starting/enabling postgres...

[INFO]Initializing database...

[INFO] Youwill now be prompted for login details for the administrative useraccount.  This is the account you willuse to log into the web interface once setup is complete.

Username(leave blank to use 'root'): root

Emailaddress: root@localhost

Error:Enter a valid email address.

Emailaddress: root@localhost.localdomain

Password:

Password(again):

Superusercreated successfully.

[INFO]Initializing web interface...

[INFO]Starting/enabling services...

[INFO]Restarting services...

[INFO]Complete.

7、安装salt-master,salt-minion

root@calamari:/etc/apt/sources.list.d# apt-getinstall salt-master

Reading package lists... Done

Building dependency tree      

Reading state information... Done

The following package was automatically installedand is no longer required:

 python-croniter

Use 'apt-get autoremove' to remove it.

The following extra packages will be installed:

 python-mako salt-common

Suggested packages:

 python-beaker python-mako-doc salt-doc

The following NEW packages will be installed:

 python-mako salt-common salt-master

0 upgraded, 3 newly installed, 0 to remove and118 not upgraded.

Need to get 2,037 kB of archives.

After this operation, 9,526 kB of additional diskspace will be used.

Do you want to continue? [Y/n] y

Get:1 http://mirrors.aliyun.com/ubuntu/trusty/main python-mako all 0.9.1-1 [59.6 kB]

Get:2http://ppa.launchpad.net/saltstack/salt2014-7/ubuntu/ trusty/main salt-commonall 2014.7.5+ds-1ubuntu1 [1,939 kB]

Get:3http://ppa.launchpad.net/saltstack/salt2014-7/ubuntu/ trusty/main salt-masterall 2014.7.5+ds-1ubuntu1 [38.4 kB]

Fetched 2,037 kB in 24s (81.9 kB/s)                                           

Selecting previously unselected packagepython-mako.

(Reading database ... 94300 files and directoriescurrently installed.)

Preparing to unpack .../python-mako_0.9.1-1_all.deb...

Unpacking python-mako (0.9.1-1) ...

Selecting previously unselected packagesalt-common.

Preparing to unpack.../salt-common_2014.7.5+ds-1ubuntu1_all.deb ...

Unpacking salt-common (2014.7.5+ds-1ubuntu1) ...

Selecting previously unselected packagesalt-master.

Preparing to unpack.../salt-master_2014.7.5+ds-1ubuntu1_all.deb ...

Unpacking salt-master (2014.7.5+ds-1ubuntu1) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1)...

Processing triggers for ufw (0.34~rc-0ubuntu2)...

Processing triggers for ureadahead (0.100.0-16)...

Setting up python-mako (0.9.1-1) ...

Setting up salt-common (2014.7.5+ds-1ubuntu1) ...

Setting up salt-master (2014.7.5+ds-1ubuntu1) ...

Installing new version of config file/etc/salt/master ...

salt-master start/running, process 4043

root@calamari:/etc/apt/sources.list.d# dpkg -l|grep salt

ii salt-common                       2014.7.5+ds-1ubuntu1            all          shared libraries thatsalt requires for all packages

ii salt-master                        2014.7.5+ds-1ubuntu1             all          remote manager to administer serversvia salt

rc salt-minion                       2015.5.3+ds-1trusty1            all          client package forsalt, the distributed remote execution system

root@calamari:/etc/apt/sources.list.d# apt-getinstall salt-minion

Reading package lists... Done

Building dependency tree      

Reading state information... Done

The following package was automatically installedand is no longer required:

 python-croniter

Use 'apt-get autoremove' to remove it.

Suggested packages:

 python-augeas

The following NEW packages will be installed:

 salt-minion

0 upgraded, 1 newly installed, 0 to remove and118 not upgraded.

Need to get 28.3 kB of archives.

After this operation, 134 kB of additional diskspace will be used.

Get:1http://ppa.launchpad.net/saltstack/salt2014-7/ubuntu/ trusty/main salt-minionall 2014.7.5+ds-1ubuntu1 [28.3 kB]

Fetched 28.3 kB in 1s (18.8 kB/s)     

Selecting previously unselected packagesalt-minion.

(Reading database ... 95142 files and directoriescurrently installed.)

Preparing to unpack.../salt-minion_2014.7.5+ds-1ubuntu1_all.deb ...

Unpacking salt-minion (2014.7.5+ds-1ubuntu1) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1)...

Processing triggers for ureadahead (0.100.0-16)...

Setting up salt-minion (2014.7.5+ds-1ubuntu1) ...

Installing new version of config file/etc/salt/minion ...

salt-minion start/running, process 4981

root@calamari:/etc/apt/sources.list.d# dpkg -l|grep salt

ii salt-common                       2014.7.5+ds-1ubuntu1            all          shared libraries thatsalt requires for all packages

ii salt-master                       2014.7.5+ds-1ubuntu1            all          remote manager toadminister servers via salt

ii salt-minion                       2014.7.5+ds-1ubuntu1            all          client package forsalt, the distributed remote execution system

Ceph客户端部署

1、仓库配置同上

……省略……

2、更新仓库元信息

root@ceph4:/etc/apt# apt-get update

Ign http://ppa.launchpad.net trustyInRelease                         

Get:1 http://ppa.launchpad.net trusty Release.gpg[316 B] 

Get:2 http://ppa.launchpad.net trusty Release[15.1 kB]               

Get:3 http://ppa.launchpad.net trusty/main amd64Packages [2,235 B]  

Ign http://mirrors.aliyun.com trustyInRelease                                

Get:4 http://mirrors.aliyun.com trusty-securityInRelease [65.9 kB]           

Get:5 http://mirrors.aliyun.com trusty-updatesInRelease [65.9 kB]            

Get:6 http://mirrors.aliyun.com trusty-proposedInRelease [65.9 kB]           

Get:7 http://mirrors.aliyun.com trusty-backportsInRelease [65.9 kB]          

Get:8 http://mirrors.aliyun.com trustyRelease.gpg [933 B]                    

Get:9 http://mirrors.aliyun.comtrusty-security/main amd64 Packages [609 kB]  

Get:10 http://mirrors.aliyun.comtrusty-security/restricted amd64 Packages [14.0 kB]

Get:11 http://mirrors.aliyun.comtrusty-security/universe amd64 Packages [155 kB]

Get:12 http://mirrors.aliyun.comtrusty-security/multiverse amd64 Packages [4,135 B]

Get:13 http://mirrors.aliyun.com trusty-updates/mainamd64 Packages [976 kB]  

Get:14 http://mirrors.aliyun.comtrusty-updates/restricted amd64 Packages [17.1 kB]

Get:15 http://mirrors.aliyun.comtrusty-updates/universe amd64 Packages [404 kB]

Get:16 http://mirrors.aliyun.com trusty-updates/multiverseamd64 Packages [14.3 kB]

Get:17 http://mirrors.aliyun.comtrusty-proposed/main amd64 Packages [77.9 kB]

Get:18 http://mirrors.aliyun.comtrusty-proposed/restricted amd64 Packages [769 B]

Get:19 http://mirrors.aliyun.comtrusty-proposed/universe amd64 Packages [10.8 kB]

Get:20 http://mirrors.aliyun.comtrusty-proposed/multiverse amd64 Packages [28 B]

Get:21 http://mirrors.aliyun.comtrusty-backports/main amd64 Packages [13.3 kB]

Get:22 http://mirrors.aliyun.comtrusty-backports/restricted amd64 Packages [28 B]

Get:23 http://mirrors.aliyun.comtrusty-backports/universe amd64 Packages [43.2 kB]

Get:24 http://mirrors.aliyun.comtrusty-backports/multiverse amd64 Packages [1,571 B]

Get:25 http://mirrors.aliyun.com trusty Release[58.5 kB]                      

Get:26 http://mirrors.aliyun.com trusty/mainamd64 Packages [1,350 kB]        

Get:27 http://mirrors.aliyun.comtrusty/restricted amd64 Packages [13.0 kB]   

Get:28 http://mirrors.aliyun.com trusty/universeamd64 Packages [5,859 kB]    

Get:29 http://mirrors.aliyun.comtrusty/multiverse amd64 Packages [132 kB]    

Fetched 10.0 MB in 20s (499 kB/s)                                             

Reading package lists... Done

3、安装salt-minion

root@ceph4:/etc/apt# apt-get install salt-minion

Reading package lists... Done

Building dependency tree      

Reading state information... Done

The following packages were automaticallyinstalled and are no longer required:

 cloud-guest-utils eatmydata python-oauth python-serial python3-pycurl

  python3-software-propertiessoftware-properties-common unattended-upgrades

Use 'apt-get autoremove' to remove them.

The following extra packages will be installed:

 dctrl-tools python-apt python-m2crypto salt-common

Suggested packages:

  debtagspython-apt-dbg python-vte python-apt-doc salt-doc python-augeas

The following NEW packages will be installed:

 dctrl-tools python-apt python-m2crypto salt-common salt-minion

0 upgraded, 5 newly installed, 0 to remove and204 not upgraded.

Need to get 2,365 kB of archives.

After this operation, 11.0 MB of additional diskspace will be used.

Do you want to continue? [Y/n] y

Get:1 http://mirrors.aliyun.com/ubuntu/trusty/main python-m2crypto amd64 0.21.1-3ubuntu5 [156 kB]

Get:2 http://mirrors.aliyun.com/ubuntu/trusty/main dctrl-tools amd64 2.23ubuntu1 [101 kB]

Get:3 http://mirrors.aliyun.com/ubuntu/trusty-updates/main python-apt amd64 0.9.3.5ubuntu2 [141 kB]

Get:4http://ppa.launchpad.net/saltstack/salt2014-7/ubuntu/ trusty/main salt-commonall 2014.7.5+ds-1ubuntu1 [1,939 kB]

Get:5http://ppa.launchpad.net/saltstack/salt2014-7/ubuntu/ trusty/main salt-minionall 2014.7.5+ds-1ubuntu1 [28.3 kB]

Fetched 2,365 kB in 26s (89.0 kB/s)   

Selecting previously unselected packagepython-m2crypto.

(Reading database ... 112280 files anddirectories currently installed.)

Preparing to unpack.../python-m2crypto_0.21.1-3ubuntu5_amd64.deb ...

Unpacking python-m2crypto (0.21.1-3ubuntu5) ...

Selecting previously unselected packagedctrl-tools.

Preparing to unpack .../dctrl-tools_2.23ubuntu1_amd64.deb...

Unpacking dctrl-tools (2.23ubuntu1) ...

Selecting previously unselected packagepython-apt.

Preparing to unpack.../python-apt_0.9.3.5ubuntu2_amd64.deb ...

Unpacking python-apt (0.9.3.5ubuntu2) ...

Selecting previously unselected packagesalt-common.

Preparing to unpack.../salt-common_2014.7.5+ds-1ubuntu1_all.deb ...

Unpacking salt-common (2014.7.5+ds-1ubuntu1) ...

Selecting previously unselected packagesalt-minion.

Preparing to unpack .../salt-minion_2014.7.5+ds-1ubuntu1_all.deb...

Unpacking salt-minion (2014.7.5+ds-1ubuntu1) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1)...

Processing triggers for ufw (0.34~rc-0ubuntu2)...

Processing triggers for ureadahead (0.100.0-16)...

ureadahead will be reprofiled on next reboot

Setting up python-m2crypto (0.21.1-3ubuntu5) ...

Setting up dctrl-tools (2.23ubuntu1) ...

Setting up python-apt (0.9.3.5ubuntu2) ...

Setting up salt-common (2014.7.5+ds-1ubuntu1) ...

Processing triggers for ufw (0.34~rc-0ubuntu2)...

Setting up salt-minion (2014.7.5+ds-1ubuntu1) ...

salt-minion start/running, process 1702253

Processing triggers for ureadahead (0.100.0-16)...

4、编译安装diamond

gitclone https://github.com/ceph/Diamond.git --branch=calamari

Cloning into 'Diamond'...

remote: Counting objects: 18190, done.

remote: Compressing objects: 100% (2/2), done.

remote: Total 18190 (delta 0), reused 0 (delta0), pack-reused 18188

Receiving objects: 100% (18190/18190), 4.00 MiB |2.06 MiB/s, done.

Resolving deltas: 100% (7356/7356), done.

Checking connectivity... done

root@calamari:~# cd Diamond/

root@calamari:~/Diamond# ls

bin          CHANGELOG  debian  gentoo  Makefile     README.md  setup.cfg src      test.watchr  version.sh

build_doc.py conf       docs    LICENSE MANIFEST.in  rpm        setup.py   test.py tox.ini

root@calamari:~/Diamond#

root@calamari:~/Diamond#

root@calamari:~/Diamond#

root@calamari:~/Diamond# apt-get installpython-mock python-configobj cdbs python-support

Reading package lists... Done

Building dependency tree      

Reading state information... Done

python-configobj is already the newest version.

The following extra packages will be installed:

  autoconfautomake autotools-dev dh-translations intltool libxml-parser-perl

  m4python-scour

Suggested packages:

 autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool

 python-mock-doc python-rsvg python-cairo

The following NEW packages will be installed:

  autoconfautomake autotools-dev cdbs dh-translations intltool

 libxml-parser-perl m4 python-mock python-scour python-support

0 upgraded, 11 newly installed, 0 to remove and118 not upgraded.

Need to get 1,573 kB of archives.

After this operation, 5,735 kB of additional diskspace will be used.

Do you want to continue? [Y/n] y

Get:1 http://mirrors.aliyun.com/ubuntu/trusty/main m4 amd64 1.4.17-2ubuntu1 [195 kB]

Get:2 http://mirrors.aliyun.com/ubuntu/trusty/main autoconf all 2.69-6 [322 kB]

Get:3 http://mirrors.aliyun.com/ubuntu/trusty/main autotools-dev all 20130810.1 [44.3 kB]

Get:4 http://mirrors.aliyun.com/ubuntu/trusty/main automake all 1:1.14.1-2ubuntu1 [510 kB]

Get:5 http://mirrors.aliyun.com/ubuntu/trusty/main libxml-parser-perl amd64 2.41-1build3 [294 kB]

Get:6 http://mirrors.aliyun.com/ubuntu/trusty/main intltool all 0.50.2-2 [52.0 kB]

Get:7 http://mirrors.aliyun.com/ubuntu/trusty/main dh-translations all 121 [21.6 kB]

Get:8 http://mirrors.aliyun.com/ubuntu/trusty/main python-scour all 0.26-3build1 [40.5 kB]

Get:9 http://mirrors.aliyun.com/ubuntu/trusty/main cdbs all 0.4.122ubuntu2 [42.1 kB]

Get:10 http://mirrors.aliyun.com/ubuntu/trusty/universe python-support all 1.0.15 [26.7 kB]

Get:11 http://mirrors.aliyun.com/ubuntu/trusty/main python-mock all 1.0.1-3 [23.8 kB]

Fetched 1,573 kB in 1s (1,343 kB/s)    

Selecting previously unselected package m4.

(Reading database ... 73155 files and directoriescurrently installed.)

Preparing to unpack.../m4_1.4.17-2ubuntu1_amd64.deb ...

Unpacking m4 (1.4.17-2ubuntu1) ...

Selecting previously unselected package autoconf.

Preparing to unpack .../autoconf_2.69-6_all.deb...

Unpacking autoconf (2.69-6) ...

Selecting previously unselected packageautotools-dev.

Preparing to unpack.../autotools-dev_20130810.1_all.deb ...

Unpacking autotools-dev (20130810.1) ...

Selecting previously unselected package automake.

Preparing to unpack.../automake_1%3a1.14.1-2ubuntu1_all.deb ...

Unpacking automake (1:1.14.1-2ubuntu1) ...

Selecting previously unselected packagelibxml-parser-perl.

Preparing to unpack.../libxml-parser-perl_2.41-1build3_amd64.deb ...

Unpacking libxml-parser-perl (2.41-1build3) ...

Selecting previously unselected package intltool.

Preparing to unpack .../intltool_0.50.2-2_all.deb...

Unpacking intltool (0.50.2-2) ...

Selecting previously unselected packagedh-translations.

Preparing to unpack.../dh-translations_121_all.deb ...

Unpacking dh-translations (121) ...

Selecting previously unselected packagepython-scour.

Preparing to unpack.../python-scour_0.26-3build1_all.deb ...

Unpacking python-scour (0.26-3build1) ...

Selecting previously unselected package cdbs.

Preparing to unpack.../cdbs_0.4.122ubuntu2_all.deb ...

Unpacking cdbs (0.4.122ubuntu2) ...

Selecting previously unselected packagepython-support.

Preparing to unpack.../python-support_1.0.15_all.deb ...

Unpacking python-support (1.0.15) ...

Selecting previously unselected packagepython-mock.

Preparing to unpack.../python-mock_1.0.1-3_all.deb ...

Unpacking python-mock (1.0.1-3) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1)...

Processing triggers for install-info(5.2.0.dfsg.1-2) ...

Setting up m4 (1.4.17-2ubuntu1) ...

Setting up autoconf (2.69-6) ...

Setting up autotools-dev (20130810.1) ...

Setting up automake (1:1.14.1-2ubuntu1) ...

update-alternatives: using /usr/bin/automake-1.14to provide /usr/bin/automake (automake) in auto mode

Setting up libxml-parser-perl (2.41-1build3) ...

Setting up intltool (0.50.2-2) ...

Setting up dh-translations (121) ...

Setting up python-scour (0.26-3build1) ...

Setting up cdbs (0.4.122ubuntu2) ...

Setting up python-support (1.0.15) ...

Setting up python-mock (1.0.1-3) ...

root@calamari:~/Diamond#

root@calamari:~/Diamond#

root@calamari:~/Diamond# dpkg-buildpackage

dpkg-buildpackage: source package diamond

dpkg-buildpackage: source version 3.1.0

dpkg-buildpackage: source distribution unstable

dpkg-buildpackage: source changed by Rob Smith

dpkg-buildpackage: host architecture amd64

dpkg-buildpackage: warning: debian/rules is notexecutable; fixing that

 dpkg-source --before-build Diamond

 debian/rules clean

pyversions: missing X(S)-Python-Version incontrol file, fall back to debian/pyversions

test -x debian/rules

dh_clean

cd . && \

       pythonsetup.py clean \

       -a

root@ceph4:~# dpkg -i  diamond_3.1.0_all.deb

Selecting previously unselected package diamond.

(Reading database ... 113218 files anddirectories currently installed.)

Preparing to unpack diamond_3.1.0_all.deb ...

Unpacking diamond (3.1.0) ...

Setting up diamond (3.1.0) ...

diamond start/running, process 1722256

Processing triggers for ureadahead (0.100.0-16)...

Processing triggers for python-support (1.0.15)...

5、配置salt-minion

root@ceph4:~#cat /etc/salt/minion.d/calamari.conf

master: 10.20.0.185

6、重启服务

root@ceph3:/var/log/diamond#/etc/init.d/salt-minion restart

 *Restarting salt minion control daemon salt-minion                                                  [ OK ]

root@ceph3:/var/log/diamond# /etc/init.d/diamondrestart

Rather than invoking init scripts through/etc/init.d, use the service(8)

utility, e.g. service diamond restart

Since the script you are attempting to invoke hasbeen converted to an

Upstart job, you may also use the stop(8) andthen start(8) utilities,

e.g. stop diamond ; start diamond. The restart(8)utility is also available.

diamond stop/waiting

diamond start/running, process 30646

root@ceph3:/var/log/diamond# /etc/init.d/diamondstatus

Rather than invoking init scripts through/etc/init.d, use the service(8)

utility, e.g. service diamond status

Since the script you are attempting to invoke hasbeen converted to an

Upstart job, you may also use the status(8)utility, e.g. status diamond

diamond start/running, process 30646

测试

1、在服务端接受客户端key

 root@calamari:~#salt-key -L

Accepted Keys:

ceph3.domain.tld

messaging-ceph2.domain.tld

Unaccepted Keys:

messaging-ceph4.domain.tld

Rejected Keys:

root@calamari:~# salt-key -A

The following keys are going to be accepted:

Unaccepted Keys:

messaging-ceph4.domain.tld

Proceed? [n/Y] Y

Key for minion messaging-ceph4.domain.tld accepted.

2、查看

Ubuntu14.04安装calamari


当前题目:Ubuntu14.04安装calamari
网址分享:http://scyanting.com/article/jchgop.html