Ubuntu14.04安装calamari


Ubuntu14.04安装calamari……省略…………省略……1、配置ubuntu默认仓库为阿里云镜像库deb http://mirrors.aliyun.com/ubuntu/trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiversedebhttp://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universemultiverse2、配置ceph calamari salt仓库echo debhttp://mirrors.aliyun.com/ceph/calamari/1.3.1/ubuntu/trusty/ trusty main > /etc/apt/sources.list.d/calamari.listecho “debhttp://ppa.launchpad.net/saltstack/salt2014-7/ubuntu trusty main” >/etc/apt/sources.list.d/saltstack-salt-trusty.list3、添加仓库密钥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-getupdateIgn http://mirrors.aliyun.com trusty InReleaseHit http://mirrors.aliyun.com trusty-securityInReleaseHit 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 trustyInReleaseHit http://mirrors.aliyun.com trustyRelease.gpgHit http://mirrors.aliyun.comtrusty-security/main amd64 PackagesHit http://mirrors.aliyun.com trusty-security/restrictedamd64 Packages Hit http://mirrors.aliyun.comtrusty-security/universe amd64 PackagesHit http://mirrors.aliyun.comtrusty-security/multiverse amd64 Packages Hit http://mirrors.aliyun.comtrusty-security/main i386 PackagesHit http://mirrors.aliyun.comtrusty-security/restricted i386 PackagesHit http://mirrors.aliyun.comtrusty-security/universe i386 PackagesHit http://mirrors.aliyun.comtrusty-security/multiverse i386 PackagesHit http://mirrors.aliyun.comtrusty-security/main Translation-enHit http://mirrors.aliyun.comtrusty-security/multiverse Translation-enHit http://mirrors.aliyun.comtrusty-security/restricted Translation-enHit http://mirrors.aliyun.comtrusty-security/universe Translation-enHit http://mirrors.aliyun.com trusty-updates/mainamd64 Packages Hit http://mirrors.aliyun.comtrusty-updates/restricted amd64 PackagesHit http://mirrors.aliyun.comtrusty-updates/universe amd64 PackagesHit http://mirrors.aliyun.comtrusty-updates/multiverse amd64 PackagesHit http://mirrors.aliyun.com trusty-updates/maini386 PackagesHit http://mirrors.aliyun.comtrusty-updates/restricted i386 PackagesHit http://mirrors.aliyun.com trusty-updates/universei386 Packages Hit http://mirrors.aliyun.comtrusty-updates/multiverse i386 PackagesHit http://mirrors.aliyun.com trusty-updates/mainTranslation-en Hit http://mirrors.aliyun.comtrusty-updates/multiverse Translation-enHit http://mirrors.aliyun.comtrusty-updates/restricted Translation-enIgn http://ppa.launchpad.net trusty InRelease Hit http://mirrors.aliyun.comtrusty-updates/universe Translation-enHit http://mirrors.aliyun.comtrusty-proposed/main amd64 PackagesHit http://mirrors.aliyun.comtrusty-proposed/restricted amd64 PackagesHit http://mirrors.aliyun.comtrusty-proposed/universe amd64 PackagesHit http://mirrors.aliyun.comtrusty-proposed/multiverse amd64 PackagesHit http://mirrors.aliyun.com trusty-proposed/maini386 Packages Hit http://mirrors.aliyun.comtrusty-proposed/restricted i386 PackagesHit http://mirrors.aliyun.comtrusty-proposed/universe i386 PackagesHit http://mirrors.aliyun.comtrusty-proposed/multiverse i386 PackagesHit 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-enHit http://mirrors.aliyun.com trusty-proposed/universeTranslation-en Hit http://mirrors.aliyun.comtrusty-backports/main amd64 PackagesHit http://mirrors.aliyun.comtrusty-backports/restricted amd64 PackagesHit http://mirrors.aliyun.comtrusty-backports/universe amd64 PackagesHit http://ppa.launchpad.net trustyRelease.gpg Hit http://mirrors.aliyun.comtrusty-backports/multiverse amd64 PackagesHit http://mirrors.aliyun.comtrusty-backports/main i386 Packages Hit http://mirrors.aliyun.comtrusty-backports/restricted i386 PackagesHit http://mirrors.aliyun.comtrusty-backports/universe i386 PackagesHit http://mirrors.aliyun.comtrusty-backports/multiverse i386 PackagesHit 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-enGet: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 PackagesHit http://mirrors.aliyun.com trusty/main i386PackagesHit http://mirrors.aliyun.com trusty/restrictedi386 PackagesHit http://mirrors.aliyun.com trusty/universei386 PackagesHit http://mirrors.aliyun.com trusty/multiversei386 PackagesHit http://mirrors.aliyun.com trusty/mainTranslation-en Hit http://ppa.launchpad.net trusty/main amd64Packages Hit http://mirrors.aliyun.com trusty/multiverseTranslation-enHit http://mirrors.aliyun.com trusty/restrictedTranslation-enHit http://mirrors.aliyun.com trusty/universeTranslation-enHit http://ppa.launchpad.net trusty/main i386PackagesIgn http://mirrors.aliyun.com trusty/mainTranslation-en_USIgn http://mirrors.aliyun.com trusty/mainTranslation-enIgn 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-enFetched 6,664 B in 3s (2,107 B/s) Readingpackage lists… Done5、安装Calamari-servercalamari-clientsroot@calamari:/etc/apt/sources.list.d# sudoapt-get install calamari-server calamari-clientsReading package lists… DoneBuilding dependency tree Reading state information… DoneThe following packages were automaticallyinstalled and are no longer required:python-croniter sqlite3Use ‘apt-get autoremove’ to remove them.The following extra packages will be installed:python-gevent python-greenlet python-sqlalchemy python-sqlalchemy-extSuggested packages:python-gevent-doc python-gevent-dbg python-greenlet-docpython-greenlet-devpython-greenlet-dbg python-sqlalchemy-doc python-psycopg2 python-mysqldbpython-kinterbasdb python-pymssqlThe following NEW packages will be installed:calamari-clients calamari-server python-gevent python-greenletpython-sqlalchemy python-sqlalchemy-ext0 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] yWARNING: The following packages cannot beauthenticated!calamari-server calamari-clientsInstall these packages without verification?[y/N] yGet: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 emptydpkg: warning: unable to delete old directory’/etc/calamari/ssl/private’: Directory not emptydpkg: warning: unable to delete old directory’/etc/calamari/ssl’: Directory not emptySelecting 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-1u 香港云主机buntu1.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/waitingsalt-master: no process foundsalt-master start/running, process 5762Stopping 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’): rootEmailaddress: root@localhostError:Enter a valid email address.Emailaddress: root@localhost.localdomainPassword: Password(again): Superusercreated successfully.[INFO]Initializing web interface…[INFO]Starting/enabling services…[INFO]Restarting services…[INFO]Complete.7、安装salt-master,salt-minionroot@calamari:/etc/apt/sources.list.d# apt-getinstall salt-masterReading package lists… DoneBuilding dependency tree Reading state information… DoneThe following package was automatically installedand is no longer required:python-croniterUse ‘apt-get autoremove’ to remove it.The following extra packages will be installed:python-mako salt-commonSuggested packages:python-beaker python-mako-doc salt-docThe following NEW packages will be installed:python-mako salt-common salt-master0 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] yGet: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 4043root@calamari:/etc/apt/sources.list.d# dpkg -l|grep saltiisalt-common2014.7.5+ds-1ubuntu1all shared libraries thatsalt requires for all packagesiisalt-master 2014.7.5+ds-1ubuntu1 all remote manager to administer serversvia saltrcsalt-minion2015.5.3+ds-1trusty1all client package forsalt, the distributed remote execution systemroot@calamari:/etc/apt/sources.list.d# apt-getinstall salt-minionReading package lists… DoneBuilding dependency tree Reading state information… DoneThe following package was automatically installedand is no longer required:python-croniterUse ‘apt-get autoremove’ to remove it.Suggested packages:python-augeasThe following NEW packages will be installed:salt-minion0 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 4981root@calamari:/etc/apt/sources.list.d# dpkg -l|grep saltiisalt-common2014.7.5+ds-1ubuntu1all shared libraries thatsalt requires for all packagesiisalt-master2014.7.5+ds-1ubuntu1all remote manager toadminister servers via saltiisalt-minion2014.7.5+ds-1ubuntu1all client package forsalt, the distributed remote execution system1、仓库配置同上……省略……2、更新仓库元信息root@ceph4:/etc/apt# apt-get updateIgn 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 trustyInReleaseGet: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… Done3、安装salt-minionroot@ceph4:/etc/apt# apt-get install salt-minionReading package lists… DoneBuilding dependency tree Reading state information… DoneThe 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-upgradesUse ‘apt-get autoremove’ to remove them.The following extra packages will be installed:dctrl-tools python-apt python-m2crypto salt-commonSuggested packages: debtagspython-apt-dbg python-vte python-apt-doc salt-doc python-augeasThe following NEW packages will be installed:dctrl-tools python-apt python-m2crypto salt-common salt-minion0 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] yGet: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 rebootSetting 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 1702253Processing triggers for ureadahead (0.100.0-16)…4、编译安装diamondgitclone https://github.com/ceph/Diamond.git –branch=calamariCloning into ‘Diamond’…remote: Counting objects: 18190, done.remote: Compressing objects: 100% (2/2), done.remote: Total 18190 (delta 0), reused 0 (delta0), pack-reused 18188Receiving objects: 100% (18190/18190), 4.00 MiB |2.06 MiB/s, done.Resolving deltas: 100% (7356/7356), done.Checking connectivity… doneroot@calamari:~# cd Diamond/root@calamari:~/Diamond# lsbinCHANGELOG debian gentooMakefile README.md setup.cfgsrc test.watchr version.shbuild_doc.pyconf docs LICENSEMANIFEST.in rpm setup.py test.pytox.iniroot@calamari:~/Diamond# root@calamari:~/Diamond# root@calamari:~/Diamond# root@calamari:~/Diamond# apt-get installpython-mock python-configobj cdbs python-supportReading package lists… DoneBuilding dependency tree Reading state information… Donepython-configobj is already the newest version.The following extra packages will be installed: autoconfautomake autotools-dev dh-translations intltool libxml-parser-perl m4python-scourSuggested packages:autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtoolpython-mock-doc python-rsvg python-cairoThe following NEW packages will be installed: autoconfautomake autotools-dev cdbs dh-translations intltoollibxml-parser-perl m4 python-mock python-scour python-support0 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] yGet: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 modeSetting 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-buildpackagedpkg-buildpackage: source package diamonddpkg-buildpackage: source version 3.1.0dpkg-buildpackage: source distribution unstabledpkg-buildpackage: source changed by Rob Smithdpkg-buildpackage: host architecture amd64dpkg-buildpackage: warning: debian/rules is notexecutable; fixing thatdpkg-source –before-build Diamonddebian/rules cleanpyversions: missing X(S)-Python-Version incontrol file, fall back to debian/pyversionstest -x debian/rulesdh_clean cd . && pythonsetup.py clean -aroot@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 1722256Processing triggers for ureadahead (0.100.0-16)…Processing triggers for python-support (1.0.15)…5、配置salt-minionroot@ceph4:~#cat /etc/salt/minion.d/calamari.conf master: 10.20.0.1856、重启服务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/diamondrestartRather than invoking init scripts through/etc/init.d, use the service(8)utility, e.g. service diamond restartSince the script you are attempting to invoke hasbeen converted to anUpstart 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/waitingdiamond start/running, process 30646root@ceph3:/var/log/diamond# /etc/init.d/diamondstatusRather than invoking init scripts through/etc/init.d, use the service(8)utility, e.g. service diamond statusSince the script you are attempting to invoke hasbeen converted to anUpstart job, you may also use the status(8)utility, e.g. status diamonddiamond start/running, process 306461、在服务端接受客户端keyroot@calamari:~#salt-key -LAccepted Keys:ceph3.domain.tldmessaging-ceph2.domain.tldUnaccepted Keys:messaging-ceph4.domain.tldRejected Keys:root@calamari:~# salt-key -AThe following keys are going to be accepted:Unaccepted Keys:messaging-ceph4.domain.tldProceed? [n/Y] YKey for minion messaging-ceph4.domain.tld accepted.2、查看

相关推荐: 怎么在电脑中查看资源占用情况

这篇文章将为大家详细讲解有关怎么在电脑中查看资源占用情况,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。方法/步骤:1.右键任务栏空白处并启动任务管理器,随后切换到进程选项。2.在图中就可以看到进程占用情况,或者可以点击“查看…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 07/23 17:06
下一篇 07/23 17:06

相关推荐