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@ceph3:/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@ceph3:/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<kormoc@gmail.com>

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@ceph3:~# 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@ceph3:~#cat /etc/salt/minion.d/calamari.conf

master: 10.20.0.185

6、重启服务

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

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

root@ceph2:/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@ceph2:/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:

ceph2.domain.tld

messaging-ceph1.domain.tld

Unaccepted Keys:

messaging-ceph3.domain.tld

Rejected Keys:

root@calamari:~# salt-key -A

The following keys are going to be accepted:

Unaccepted Keys:

messaging-ceph3.domain.tld

Proceed? [n/Y] Y

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

2、查看

本文出自 “清风明月” 博客,请务必保留此出处http://coolsky.blog.51cto.com/177347/1919657

转载于:https://blog.51cto.com/132408/1920298

Ubuntu14.04安装calamari相关推荐

  1. 解决Ubuntu14.04安装Chrome浏览器打不开的问题

    解决Ubuntu14.04安装Chrome浏览器打不开的问题 参考文章: (1)解决Ubuntu14.04安装Chrome浏览器打不开的问题 (2)https://www.cnblogs.com/li ...

  2. Ubuntu14.04安装Torch7笔记

    Ubuntu14.04安装Torch7笔记 利用快捷键Ctrl+Alt+T打开Ubuntu终端 第一步: 获取安装LuauJIT(C语言编写的Lua的解释器)和Torch所必需的依赖包. 代码如下: ...

  3. ubuntu14.04安装hadoop2.7.1伪分布式和错误解决

    ubuntu14.04安装hadoop2.7.1伪分布式和错误解决 需要说明的是我下载的是源码,通过编译源码并安装 一.需要准备的软件: 1.JDK和GCC     设置JAVA_HOME:      ...

  4. 编译android 7.1 jdk版本,ubuntu14.04 安装 open-jdk-1.8,下载编译 android nougat 7.1.1

    一,ubuntu14.04 安装 open-jdk-1.8 在 ubuntu 下,把jdk 解压到 /usr/lib/jvm/ 目录下,配置环境变量,就ok. 下面是我已经安装的jdk crg@crg ...

  5. Ubuntu14.04安装build-essential失败,包依赖问题如何解决?

    Ubuntu14.04安装build-essential失败,包依赖问题如何解决? 参考文章: (1)Ubuntu14.04安装build-essential失败,包依赖问题如何解决? (2)http ...

  6. Ubuntu14.04安装中文输入法以及解决Gedit中文乱码问题

    Ubuntu14.04安装中文输入法以及解决Gedit中文乱码问题 参考文章: (1)Ubuntu14.04安装中文输入法以及解决Gedit中文乱码问题 (2)https://www.cnblogs. ...

  7. ubuntu14.04安装tensorflow-gpu

    ubuntu14.04 安装anaconda+tensorflow-gpu版本 本电脑为cuda-8.0,cudnn-6.0.21,安装tensorflow-gpu=1.3.0 更多匹配版本见  ht ...

  8. linux集显驱动程序,Ubuntu14.04安装intel集显驱动

    Made with Remarkable! Ubuntu14.04安装intel集显驱动 标签(空格分隔): ubuntu linux 驱动安装 1.查看本机显卡型号 使用lspci命令来获取PCI接 ...

  9. ubuntu14.04安装与软件重装说明

    1.  安装ubuntu14.04 1)利用U盘安装号系统:ssd盘作/ 20G  /HOME  100G   swap分区用机械硬盘10G 2)装好后,打开软件更新,选最优服务器,跟新软件.. su ...

最新文章

  1. Ubuntu安装MongoDB
  2. 快速傅里叶变换Matlab示例
  3. 微软向丰田授权专利 欲成为车联网技术关键供应商
  4. FreeBSD学习笔记15-FreeBSD下安装Apache
  5. BZOJ 4736 温暖会指引我们前行 LCT+最优生成树+并查集
  6. [排版题] 例4.2 叠框
  7. 盖瑞特金属探测门受多个严重漏洞影响,可遭篡改
  8. 4个mos管驱动的全桥电路原理_逆变器工作原理
  9. (译)Windows Azure:移动后端开发的主要更新
  10. 【20171227】json
  11. Matlab7.0安装教程
  12. 【资源分享】《软件工程-原理、方法与应用(第3版)》(顺便分享查找资料小技巧)
  13. Unity Android汉化
  14. java分词支持拼音_ik中文分词器及拼音分词器试用
  15. 操作系统存储管理之虚拟存储与分页式虚拟存储系统
  16. WAL日志磁盘空间占用大小分析
  17. 一些服务器常见漏洞的修复方法
  18. java无响应_Java HttpClient请求无响应解决方案
  19. 开发者除了技术硬实力之外,还有哪些不可或缺的软实力
  20. 计算机专业的可迁移技能,动词可迁移技能的发现.PPT

热门文章

  1. 拿番茄炒鸡蛋来讲解一下大数据项目的流程
  2. 计算机组成原理与结构
  3. XShell SecueCTR工具远程安装激活 连接使用
  4. 集成平台Ensemble环境搭建(HealthShare) 及MIRROR镜像(主备机)的配置
  5. 人工智能( AI )将如何颠覆项目管理?看看这六大关键领域
  6. 版本管理工具 git和SVN 忽略文件和目录
  7. 偷偷学K3S,然后惊呆所有人
  8. DeepLearning | 图卷积神经网络(GCN)解析(论文、算法、代码)
  9. Blender 建模案例一(2)
  10. 侯捷先生的Design Patterns高级课程