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-servercalamari-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

iisalt-common2014.7.5+ds-1ubuntu1all shared libraries thatsalt requires for all packages

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

rcsalt-minion2015.5.3+ds-1trusty1all 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

iisalt-common2014.7.5+ds-1ubuntu1all shared libraries thatsalt requires for all packages

iisalt-master2014.7.5+ds-1ubuntu1all remote manager toadminister servers via salt

iisalt-minion2014.7.5+ds-1ubuntu1all 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

binCHANGELOG debian gentoomakefile README.md setup.cfgsrc test.watchr version.sh

build_doc.pyconf docs LICENSEMANIFEST.in rpm setup.py test.pytox.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,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、查看

wKiom1kATXijnEetAAF3PcBtY3w898.png-wh_50


本文出自 “清风明月” 博客,请务必保留此出处http://www.jb51.cc/article/p-cvedvbep-bqk.html

Ubuntu14.04安装calamari的更多相关文章

  1. ios – 从Live Photo中提取视频部分

    有没有人想出如何从LivePhoto中提取视频部分?

  2. ios – 使用Swift的Lumberjack 2.0记录器

    我以前使用物镜C的Lumberjack记录器,我喜欢它.现在我开始学习Swift,我不能在那里使用我最喜欢的记录器.有人可以一步一步地写出我能做到的事吗?在Lumberjack2.0发布之前,我尝试在这里找到一些东西,但所有主题都是自定义包装器.我做了什么:>我用Cocoapods添加了Lumberjack;>我将“#import”添加到Bridging-Header文件中.我不知道接下来该怎么办?因为在ObjC中我有宏:staticconstintddLogLevel=LOG_LEVEL_INFO;el

  3. XCode 3.2 Ruby和Python模板

    在xcode3.2下,我的ObjectiveCPython/Ruby项目仍然可以打开更新和编译,但是你无法创建新项目.鉴于xcode3.2中缺少ruby和python的所有痕迹(即创建项目并添加新的ruby/python文件),是否有一种简单的方法可以再次安装模板?我发现了一些关于将它们复制到某个文件夹的信息,但我似乎无法让它工作,我怀疑文件夹的位置已经改变为3.2.解决方法3.2中的应用程序模板

  4. ios – 从embedded.mobileprovision配置文件获取证书到期日期

    谁可以帮我进一步?

  5. swift语言IOS8开发战记22 Core Data3

    上一话我们定义了与coredata有关的变量和方法,做足了准备工作,这一话我们来试试能不能成功。首先打开上一话中生成的Info类,在其中引用头文件的地方添加一个@objc,不然后面会报错,我也不知道为什么。

  6. Swift基本使用-函数和闭包(三)

    声明函数和其他脚本语言有相似的地方,比较明显的地方是声明函数的关键字swift也出现了Python中的组元,可以通过一个组元返回多个值。传递可变参数,函数以数组的形式获取参数swift中函数可以嵌套,被嵌套的函数可以访问外部函数的变量。可以通过函数的潜逃来重构过长或者太复杂的函数。

  7. Swift_UIImagePickerController选择图片显示

    Swift_UIImagePickerController选择图片显示代码如下:

  8. 10 个Python中Pip的使用技巧分享

    众所周知,pip 可以安装、更新、卸载 Python 的第三方库,非常方便。本文小编为大家总结了Python中Pip的使用技巧,需要的可以参考一下

  9. swift分享到微信

    申请微信开发平台AppId地址:open.weixin.qq.com下载微信终端sdk文件包括以下文件:将sdk文件导入到工程4.微信开放平台新增了微信模块用户统计功能,便于开发者统计微信功能模块的用户使用和活跃情况。BuildSettings->All->SearchPaths7.在Xcode中,选择你的工程设置项,选中“TARGETS”一栏,在“info”标签栏的“URLtype“添加“URLscheme”为你所注册的应用程序id。8.注册AppId9.编写代码调试的时候必须装有微信才行!!!

  10. Swift-UITableViewCell:设置表格的accessoryType属性

    >UPDATE2015/12/24:UpdatedforXcode7.2andSwift2UITableViewCell的---accessoryType属性代码示例:

随机推荐

  1. crontab发送一个月份的电子邮件

    ubuntu14.04邮件服务器:Postfixroot收到来自crontab的十几封电子邮件.这些邮件包含PHP警告.>我已经解决了这些警告的原因.>我已修复每个cronjobs不发送电子邮件(输出发送到>/dev/null2>&1)>我删除了之前的所有电子邮件/var/mail/root/var/spool/mail/root但我仍然每小时收到十几封电子邮件.这些电子邮件来自cronjobs,

  2. 模拟两个ubuntu服务器计算机之间的慢速连接

    我想模拟以下场景:假设我有4台ubuntu服务器机器A,B,C和D.我想在机器A和机器C之间减少20%的网络带宽,在A和B之间减少10%.使用网络模拟/限制工具来做到这一点?

  3. ubuntu-12.04 – 如何在ubuntu 12.04中卸载从源安装的redis?

    我从源代码在Ubuntu12.04上安装了redis-server.但在某些时候它无法完全安装,最后一次makeinstallcmd失败.然后我刚刚通过apt包安装.现在我很困惑哪个安装正在运行哪个conf文件?实际上我想卸载/删除通过源安装的所有内容,只是想安装一个包.转到源代码树并尝试以下命令:如果这不起作用,您可以列出软件自行安装所需的步骤:

  4. ubuntu – “apt-get source”无法找到包但“apt-get install”和“apt-get cache”可以找到它

    我正在尝试下载软件包的源代码,但是当我运行时它无法找到.但是当我运行apt-cache搜索squid3时,它会找到它.它也适用于apt-getinstallsquid3.我使用的是Ubuntu11.04服务器,这是我的/etc/apt/sources.list我已经多次更新了.我尝试了很多不同的debs,并没有发现任何其他地方的错误.这里的问题是你的二进制包(deb)与你的源包(deb-src)不

  5. ubuntu – 有没有办法检测nginx何时完成正常关闭?

    &&touchrestarted),因为即使Nginx没有完成其关闭,touch命令也会立即执行.有没有好办法呢?这样的事情怎么样?因此,pgrep将查找任何Nginx进程,而while循环将让它坐在那里直到它们全部消失.你可以改变一些有用的东西,比如睡1;/etc/init.d/Nginx停止,以便它会休眠一秒钟,然后尝试使用init.d脚本停止Nginx.你也可以在某处放置一个计数器,这样你就可以在需要太长时间时发出轰击信号.

  6. ubuntu – 如何将所有外发电子邮件从postfix重定向到单个地址进行测试

    我正在为基于Web的应用程序设置测试服务器,该应用程序发送一些电子邮件通知.有时候测试是使用真实的客户数据进行的,因此我需要保证服务器在我们测试时无法向真实客户发送电子邮件.我想要的是配置postfix,以便它接收任何外发电子邮件并将其重定向到一个电子邮件地址,而不是传递到真正的目的地.我正在运行ubuntu服务器9.10.先感谢您设置本地用户以接收所有被困邮件:你需要在main.cf中添加:然后

  7. ubuntu – vagrant无法连接到虚拟框

    当我使用基本的Vagrantfile,只配置了两条线:我看到我的虚拟框打开,但是我的流氓日志多次显示此行直到超时:然后,超时后的一段时间,虚拟框框终于要求我登录,但是太久了!所以我用流氓/流氓记录.然后在我的物理机器上,如果我“流氓ssh”.没有事情发生,直到:怎么了?

  8. ubuntu – Nginx – 转发HTTP AUTH – 用户?

    我和Nginx和Jenkins有些麻烦.我尝试使用Nginx作为Jenkins实例的反向代理,使用HTTP基本身份验证.它到目前为止工作,但我不知道如何传递带有AUTH用户名的标头?}尝试将此指令添加到您的位置块

  9. Debian / Ubuntu – 删除后如何恢复/ var / cache / apt结构?

    我在ubuntu服务器上的空间不足,所以我做了这个命令以节省空间但是现在在尝试使用apt时,我会收到以下错误:等等显然我删除了一些目录结构.有没有办法做apt-getrebuild-var-tree或类似的?

  10. 检查ubuntu上安装的rubygems版本?

    如何查看我的ubuntu盒子上安装的rubygems版本?只是一个想法,列出已安装的软件包和grep为ruby或宝石或其他:)dpkg–get-selections

返回
顶部