Cloudify 学习(二):实践安装Cloudify4.5.0

版权声明:本文为博主原创文章,可以转载分享,希望大家相互学习,共同进步 https://blog.csdn.net/shenhonglei1234/article/details/84961423

根据官方文档安装Cloudify4.5.0

参考官方文档

安装环境

在这里插入图片描述

  1. centos7.3
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-862.6.3.el7.x86_64 #1 SMP Tue Jun 26 16:32:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  1. Cloudify4.5.0
[root@localhost cloudify4.5.0]# ls
cloudify-manager-install-4.5ga.rpm

从官网或者百度云下载安装文件

1.从官网下载rmp文件,需要注册下Cloudify Manager RPM文件
2.从百度云下载链接:https://pan.baidu.com/s/1aEx9IIq7EoLCgw4P-U_BcA 密码:n911
3.命令:wget http://repository.cloudifysource.org/cloudify/4.5.0/ga-release/cloudify-manager-install-4.5ga.rpm

开始安装

#将RPM文件复制到目标主机
[root@localhost cloudify4.5.0]# ls
cloudify-manager-install-4.5ga.rpm

安装rmp

#运行命令安装:
yum install cloudify-manager-install-4.5ga.rpm

在config.yaml文件中配置Cloudify Manager网络

#这一步是不需要做任何操作的。

查看config.yaml文件中的配置设置并进行必要的更改

#这一步是不需要做任何操作的。

要安装Cloudify Manager,请运行

#这个ip修改为自己的主机IP,登录密码是:admin/password
[root@localhost cloudify]# cfy_manager install --private-ip 10.10.31.201 --public-ip 10.10.31.201 --admin-password password

cfy_manager安装日志信息

[root@localhost cloudify]# cfy_manager install --private-ip 10.10.31.201 --public-ip 10.10.31.201 --admin-password password 
2018-12-11 16:38:41,782 - [MAIN] - NOTICE - Installing desired components...
2018-12-11 16:38:41,783 - [VALIDATIONS] - INFO - Validating dependencies for PostgresqlServerComponent,ManagerComponent,ManagerIpSetterComponent,NginxComponent,PythonComponent,PostgresqlClientComponent,RabbitMQComponent,RestServiceComponent,InfluxDBComponent,AmqpInfluxComponent,JavaComponent,AmqpPostgresComponent,StageComponent,ComposerComponent,MgmtWorkerComponent,RiemannComponent,ClusterComponent,CliComponent,UsageCollectorComponent,SanityComponent...
2018-12-11 16:38:50,259 - [VALIDATIONS] - NOTICE - Validating local machine...
2018-12-11 16:38:50,259 - [VALIDATIONS] - INFO - Validating private IP address...
2018-12-11 16:38:50,260 - [VALIDATIONS] - INFO - Validating Python version...
2018-12-11 16:38:50,260 - [VALIDATIONS] - INFO - Validating supported distributions...
2018-12-11 16:38:50,261 - [VALIDATIONS] - INFO - Validating memory requirement...
2018-12-11 16:38:50,261 - [VALIDATIONS] - INFO - Validating disk space requirement...
2018-12-11 16:38:50,262 - [VALIDATIONS] - INFO - Validating OpenSSL version...
2018-12-11 16:38:50,271 - [VALIDATIONS] - INFO - Validating user `root` has sudo permissions...
2018-12-11 16:38:50,288 - [VALIDATIONS] - NOTICE - All validations passed successfully!
2018-12-11 16:38:50,289 - [GLOBALS] - INFO - SSL is disabled, setting rest port to 80 and rest protocols to http...
2018-12-11 16:38:50,289 - [GLOBALS] - WARNING - Admin password: password
2018-12-11 16:38:50,289 - [GLOBALS] - INFO - Generating random hash salt and secret key...
2018-12-11 16:38:50,290 - [POSTGRESQL_SERVER] - NOTICE - Installing PostgreSQL Server...
2018-12-11 16:38:53,565 - [POSTGRESQL_SERVER] - INFO - Starting PostgreSQL Server service...
2018-12-11 16:38:55,638 - [POSTGRESQL_SERVER] - INFO - Updating PostgreSQL Server configuration...
2018-12-11 16:38:58,012 - [POSTGRESQL_SERVER] - NOTICE - PostgreSQL Server successfully installed
2018-12-11 16:38:58,012 - [MANAGER] - NOTICE - Installing Cloudify Manager resources...
2018-12-11 16:38:58,148 - [MANAGER] - NOTICE - Cloudify Manager resources successfully installed
2018-12-11 16:38:58,148 - [MANAGER-IP-SETTER] - NOTICE - Installing Manager IP Setter...
2018-12-11 16:38:58,327 - [MANAGER-IP-SETTER] - INFO - Set manager ip on boot is disabled.
2018-12-11 16:38:58,327 - [MANAGER-IP-SETTER] - NOTICE - Manager IP Setter successfully installed
2018-12-11 16:38:58,328 - [NGINX] - NOTICE - Installing NGINX...
2018-12-11 16:38:58,787 - [NGINX] - INFO - Handling CA certificate...
2018-12-11 16:38:58,788 - [NGINX] - INFO - Generating CA certificate...
2018-12-11 16:38:59,053 - [NGINX] - INFO - Handling internal certificate...
2018-12-11 16:38:59,054 - [NGINX] - INFO - Generating internal certificate...
2018-12-11 16:38:59,532 - [NGINX] - INFO - Handling external certificate...
2018-12-11 16:38:59,533 - [NGINX] - INFO - Generating external certificate...
2018-12-11 16:38:59,942 - [NGINX] - INFO - Deploying Nginx configuration files...
2018-12-11 16:39:00,816 - [NGINX] - INFO - Starting NGINX service...
2018-12-11 16:39:01,048 - [NGINX] - NOTICE - NGINX successfully installed
2018-12-11 16:39:01,048 - [PYTHON] - NOTICE - Installing Python dependencies...
2018-12-11 16:39:01,070 - [PYTHON] - NOTICE - Python dependencies successfully installed
2018-12-11 16:39:01,071 - [POSTGRESQL_CLIENT] - NOTICE - Installing PostgreSQL Client...
2018-12-11 16:39:01,680 - [POSTGRESQL_CLIENT] - NOTICE - Creating postgres group
2018-12-11 16:39:01,699 - [POSTGRESQL_CLIENT] - INFO - Group postgres already exists
2018-12-11 16:39:01,700 - [POSTGRESQL_CLIENT] - NOTICE - Creating postgres user
2018-12-11 16:39:01,720 - [POSTGRESQL_CLIENT] - INFO - User postgres already exists
2018-12-11 16:39:01,885 - [POSTGRESQL_CLIENT] - NOTICE - PostgreSQL successfully installed
2018-12-11 16:39:01,885 - [RABBITMQ] - NOTICE - Installing RabbitMQ...
2018-12-11 16:39:02,896 - [RABBITMQ] - INFO - Initializing RabbitMQ...
2018-12-11 16:39:16,823 - [NETWORK] - INFO - Waiting for localhost:5671 to become available...
2018-12-11 16:39:16,825 - [NETWORK] - INFO - localhost:5671 is open!
2018-12-11 16:39:18,444 - [RABBITMQ] - INFO - Creating new user and setting permissions...
2018-12-11 16:39:20,872 - [RABBITMQ] - INFO - Starting RabbitMQ Service...
2018-12-11 16:39:35,267 - [NETWORK] - INFO - Waiting for localhost:5671 to become available...
2018-12-11 16:39:35,269 - [NETWORK] - INFO - localhost:5671 is open!
2018-12-11 16:39:35,270 - [RABBITMQ] - INFO - Setting RabbitMQ Policies...
2018-12-11 16:39:52,387 - [RABBITMQ] - INFO - Making sure RabbitMQ is live...
2018-12-11 16:39:53,261 - [RABBITMQ] - NOTICE - RabbitMQ successfully installed
2018-12-11 16:39:53,262 - [RESTSERVICE] - NOTICE - Installing Rest Service...
2018-12-11 16:39:53,676 - [RESTSERVICE] - NOTICE - Installing Cloudify Premium...
2018-12-11 16:39:53,849 - [RESTSERVICE] - INFO - Deploying REST Service Configuration file...
2018-12-11 16:39:53,962 - [RESTSERVICE] - INFO - Deploying REST Security configuration file...
2018-12-11 16:39:54,077 - [RESTSERVICE] - INFO - Deploying REST authorization configuration file...
2018-12-11 16:39:54,189 - [DB] - NOTICE - Configuring SQL DB...
2018-12-11 16:39:56,587 - [DB] - NOTICE - SQL DB successfully configured
2018-12-11 16:39:56,587 - [DB] - NOTICE - Populating DB and creating AMQP resources...
2018-12-11 16:40:00,587 - [DB] - INFO - Finished creating bootstrap admin, default tenant and provider ctx
2018-12-11 16:40:00,587 - [DB] - NOTICE - DB populated and AMQP resources successfully created
2018-12-11 16:40:01,159 - [RESTSERVICE] - INFO - Verifying Rest service is working as expected...
2018-12-11 16:40:01,160 - [NETWORK] - INFO - Waiting for localhost:8100 to become available...
2018-12-11 16:40:01,160 - [NETWORK] - INFO - localhost:8100 is not available yet, retrying... (1/24)
2018-12-11 16:40:03,163 - [NETWORK] - INFO - localhost:8100 is open!
2018-12-11 16:40:07,478 - [RESTSERVICE] - NOTICE - Rest Service successfully installed
2018-12-11 16:40:07,479 - [AMQP-POSTGRES] - NOTICE - Configuring AMQP-Postgres...
2018-12-11 16:40:07,479 - [AMQP-POSTGRES] - INFO - Starting AMQP-PostgreSQL Broker Service...
2018-12-11 16:40:08,084 - [AMQP-POSTGRES] - NOTICE - AMQP-Postgres successfully configured
2018-12-11 16:40:08,084 - [STAGE] - NOTICE - Installing Stage...
2018-12-11 16:40:08,214 - [STAGE] - INFO - Extracting Stage package...
2018-12-11 16:40:09,961 - [STAGE] - INFO - Creating symlink to /usr/bin/node...
2018-12-11 16:40:10,374 - [STAGE] - INFO - Installing NodeJS...
2018-12-11 16:40:12,366 - [SUDOERS] - INFO - Allowing user `cfyuser` to run `/opt/cloudify/stage/restore-snapshot.py`
2018-12-11 16:40:12,665 - [SUDOERS] - INFO - Allowing user `cfyuser` to run `/opt/cloudify/stage/make-auth-token.py`
2018-12-11 16:40:17,688 - [STAGE] - INFO - Starting Stage service...
2018-12-11 16:40:17,796 - [NETWORK] - INFO - Waiting for localhost:8088 to become available...
2018-12-11 16:40:17,797 - [NETWORK] - INFO - localhost:8088 is not available yet, retrying... (1/24)
2018-12-11 16:40:19,804 - [NETWORK] - INFO - localhost:8088 is not available yet, retrying... (2/24)
2018-12-11 16:40:21,809 - [NETWORK] - INFO - localhost:8088 is open!
2018-12-11 16:40:21,809 - [STAGE] - NOTICE - Stage successfully installed
2018-12-11 16:40:21,809 - [COMPOSER] - NOTICE - Installing Cloudify Composer...
2018-12-11 16:40:21,863 - [COMPOSER] - INFO - Installing Cloudify Composer...
2018-12-11 16:40:26,028 - [COMPOSER] - INFO - Starting Composer service...
2018-12-11 16:40:26,145 - [NETWORK] - INFO - Waiting for localhost:3000 to become available...
2018-12-11 16:40:26,146 - [NETWORK] - INFO - localhost:3000 is not available yet, retrying... (1/24)
2018-12-11 16:40:28,204 - [NETWORK] - INFO - localhost:3000 is not available yet, retrying... (2/24)
2018-12-11 16:40:30,207 - [NETWORK] - INFO - localhost:3000 is open!
2018-12-11 16:40:30,207 - [COMPOSER] - NOTICE - Cloudify Composer successfully installed
2018-12-11 16:40:30,207 - [MGMTWORKER] - NOTICE - Installing Management Worker...
2018-12-11 16:40:30,456 - [YUM] - INFO - Installing cloudify-management-worker...
2018-12-11 16:40:41,811 - [MGMTWORKER] - NOTICE - Management Worker successfully installed
2018-12-11 16:40:41,811 - [CLI] - NOTICE - Installing Cloudify CLI...
2018-12-11 16:40:42,094 - [YUM] - INFO - Installing cloudify...
2018-12-11 16:41:34,641 - [CLI] - INFO - Setting CLI for the current user (root)...
2018-12-11 16:41:41,090 - [CLI] - NOTICE - Cloudify CLI successfully installed
2018-12-11 16:41:41,090 - [USAGE_COLLECTOR] - NOTICE - Installing Usage Collector...
2018-12-11 16:41:41,091 - [USAGE_COLLECTOR] - INFO - Deploying Usage Collector scripts...
2018-12-11 16:41:41,317 - [USAGE_COLLECTOR] - INFO - Usage Collector scripts successfully deployed
2018-12-11 16:41:41,379 - [USAGE_COLLECTOR] - INFO - Removing cron jobs of Usage Collector...
2018-12-11 16:41:41,436 - [USAGE_COLLECTOR] - INFO - Usage Collector cron jobs successfully removed
2018-12-11 16:41:41,436 - [USAGE_COLLECTOR] - INFO - Creating cron jobs for Usage Collector...
2018-12-11 16:41:41,486 - [USAGE_COLLECTOR] - INFO - Usage Collector cron jobs successfully created
2018-12-11 16:41:41,487 - [USAGE_COLLECTOR] - NOTICE - Usage Collector successfully installed
2018-12-11 16:41:41,487 - [SANITY] - NOTICE - Running Sanity...
2018-12-11 16:41:41,487 - [SANITY] - INFO - Creating SSH key for sanity...
2018-12-11 16:41:43,804 - [SANITY] - INFO - Uploading sanity blueprint...
Uploading blueprint /opt/cloudify/sources/cloudify-hello-world-example-4.5.tar.gz...
 cloudify-hello-wo... |################################################| 100.0%
Blueprint uploaded. The blueprint's id is sanity
2018-12-11 16:41:47,301 - [SANITY] - INFO - Deploying sanity app...
Creating new deployment from blueprint sanity...
Deployment created. The deployment's id is sanity
2018-12-11 16:41:48,942 - [SANITY] - INFO - Installing sanity app...
Executing workflow `install` on deployment `sanity` [timeout=900 seconds]
Deployment environment creation is in progress...
2018-12-11 08:41:49.921  CFY <sanity> Starting 'create_deployment_environment' workflow execution
2018-12-11 08:41:50.542  CFY <sanity> Skipping starting deployment policy engine core - no policies defined
2018-12-11 08:41:50.542  CFY <sanity> Creating deployment work directory
2018-12-11 08:41:50.542  CFY <sanity> 'create_deployment_environment' workflow execution succeeded
2018-12-11 08:41:55.213  CFY <sanity> Starting 'install' workflow execution
2018-12-11 08:41:55.883  CFY <sanity> [vm_8j36sg] Creating node
2018-12-11 08:41:56.549  CFY <sanity> [vm_8j36sg] Configuring node
2018-12-11 08:41:57.165  CFY <sanity> [vm_8j36sg] Starting node
2018-12-11 08:41:57.905  CFY <sanity> [vm_8j36sg] Creating Agent
2018-12-11 08:41:57.905  CFY <sanity> [vm_8j36sg.create] Sending task 'cloudify_agent.installer.operations.create'
2018-12-11 08:41:57.905  CFY <sanity> [vm_8j36sg.create] Task started 'cloudify_agent.installer.operations.create'
2018-12-11 08:42:03.334  LOG <sanity> [vm_8j36sg.create] INFO: Creating Agent vm_8j36sg
2018-12-11 08:42:02.428  LOG <sanity> [vm_8j36sg.create] INFO: Creating Agent vm_8j36sg
2018-12-11 08:42:10.687  LOG <sanity> [vm_8j36sg.create] INFO: Downloading https://10.10.31.201:53333/resources/packages/agents/centos-core-agent.tar.gz...
2018-12-11 08:42:10.669  LOG <sanity> [vm_8j36sg.create] INFO: Downloading https://10.10.31.201:53333/resources/packages/agents/centos-core-agent.tar.gz...
2018-12-11 08:42:10.687  LOG <sanity> [vm_8j36sg.create] INFO: Downloading https://10.10.31.201:53333/resources/packages/agents/centos-core-agent.tar.gz...
2018-12-11 08:42:10.669  LOG <sanity> [vm_8j36sg.create] INFO: Downloading https://10.10.31.201:53333/resources/packages/agents/centos-core-agent.tar.gz...
2018-12-11 08:42:11.917  LOG <sanity> [vm_8j36sg.create] INFO: Length: 22396799 (21M) [application/octet-stream]
2018-12-11 08:42:11.289  LOG <sanity> [vm_8j36sg.create] INFO: Connecting to 10.10.31.201:53333... connected.
2018-12-11 08:42:11.289  LOG <sanity> [vm_8j36sg.create] INFO: HTTP request sent, awaiting response... 200 OK
2018-12-11 08:42:11.382  LOG <sanity> [vm_8j36sg.create] INFO: HTTP request sent, awaiting response... 200 OK
2018-12-11 08:42:12.394  LOG <sanity> [vm_8j36sg.create] INFO: Length: 22396799 (21M) [application/octet-stream]
2018-12-11 08:42:11.382  LOG <sanity> [vm_8j36sg.create] INFO: Connecting to 10.10.31.201:53333... connected.
2018-12-11 08:42:11.917  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:12.394  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:12.394  LOG <sanity> [vm_8j36sg.create] INFO: Saving to: ‘/root/agent.tar.gz’
2018-12-11 08:42:11.917  LOG <sanity> [vm_8j36sg.create] INFO: Saving to: ‘/root/agent.tar.gz’
2018-12-11 08:42:13.414  LOG <sanity> [vm_8j36sg.create] INFO: 88% [=================================>     ] 19,799,683  29.9MB/s             
2018-12-11 08:42:13.414  LOG <sanity> [vm_8j36sg.create] INFO: 31% [===========>                           ] 7,003,779   28.8MB/s             
2018-12-11 08:42:13.118  LOG <sanity> [vm_8j36sg.create] INFO: 88% [=================================>     ] 19,799,683  29.9MB/s             
2018-12-11 08:42:13.118  LOG <sanity> [vm_8j36sg.create] INFO: 59% [======================>                ] 13,311,619  29.4MB/s             
2018-12-11 08:42:12.522  LOG <sanity> [vm_8j36sg.create] INFO: 31% [===========>                           ] 7,003,779   28.8MB/s             
2018-12-11 08:42:12.522  LOG <sanity> [vm_8j36sg.create] INFO:  0% [                                       ] 0           --.-K/s              
2018-12-11 08:42:12.522  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:12.394  LOG <sanity> [vm_8j36sg.create] INFO:  0% [                                       ] 0           --.-K/s              
2018-12-11 08:42:12.394  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:13.414  LOG <sanity> [vm_8j36sg.create] INFO: 59% [======================>                ] 13,311,619  29.4MB/s             
2018-12-11 08:42:13.414  LOG <sanity> [vm_8j36sg.create] INFO: 100%[======================================>] 22,396,799  31.6MB/s   in 0.7s   
2018-12-11 08:42:13.741  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:13.414  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:13.741  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:13.741  LOG <sanity> [vm_8j36sg.create] INFO: 2018-12-11 16:42:03 (31.6 MB/s) - ‘/root/agent.tar.gz’ saved [22396799/22396799]
2018-12-11 08:42:13.118  LOG <sanity> [vm_8j36sg.create] INFO: 100%[======================================>] 22,396,799  31.6MB/s   in 0.7s   
2018-12-11 08:42:14.342  LOG <sanity> [vm_8j36sg.create] INFO: Download ended successfully
2018-12-11 08:42:13.741  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:13.741  LOG <sanity> [vm_8j36sg.create] INFO: 2018-12-11 16:42:03 (31.6 MB/s) - ‘/root/agent.tar.gz’ saved [22396799/22396799]
2018-12-11 08:42:13.741  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:13.414  LOG <sanity> [vm_8j36sg.create] INFO: 
2018-12-11 08:42:13.414  LOG <sanity> [vm_8j36sg.create] INFO: 100%[======================================>] 22,396,799  31.6MB/s   in 0.7s   
2018-12-11 08:42:14.342  LOG <sanity> [vm_8j36sg.create] INFO: Successfully corrected cfy-agent`s virtualenv
2018-12-11 08:42:14.425  LOG <sanity> [vm_8j36sg.create] INFO: Successfully corrected cfy-agent`s virtualenv
2018-12-11 08:42:14.937  LOG <sanity> [vm_8j36sg.create] INFO: Disabling requiretty directive in sudoers file
2018-12-11 08:42:14.937  LOG <sanity> [vm_8j36sg.create] INFO: Successfully disabled requiretty for cfy-agent
2018-12-11 08:42:14.937  LOG <sanity> [vm_8j36sg.create] INFO: No custom env configured
2018-12-11 08:42:15.434  LOG <sanity> [vm_8j36sg.create] INFO: Disabling requiretty directive in sudoers file
2018-12-11 08:42:15.434  LOG <sanity> [vm_8j36sg.create] INFO: Successfully disabled requiretty for cfy-agent
2018-12-11 08:42:15.434  LOG <sanity> [vm_8j36sg.create] INFO: No custom env configured
2018-12-11 08:42:15.434  LOG <sanity> [vm_8j36sg.create] INFO: Creating...
2018-12-11 08:42:15.434  LOG <sanity> [vm_8j36sg.create] INFO: Successfully created daemon: vm_8j36sg
2018-12-11 08:42:15.558  LOG <sanity> [vm_8j36sg.create] INFO: Creating...
2018-12-11 08:42:15.558  LOG <sanity> [vm_8j36sg.create] INFO: Successfully created daemon: vm_8j36sg
2018-12-11 08:42:15.558  LOG <sanity> [vm_8j36sg.create] INFO: Configuring...
2018-12-11 08:42:16.451  LOG <sanity> [vm_8j36sg.create] INFO: Configuring...
2018-12-11 08:42:16.152  LOG <sanity> [vm_8j36sg.create] INFO: Successfully configured daemon: vm_8j36sg
2018-12-11 08:42:16.152  LOG <sanity> [vm_8j36sg.create] INFO: Starting...
2018-12-11 08:42:16.800  LOG <sanity> [vm_8j36sg.create] INFO: 16:42:08 [WARNING] [cloudify.utils.is_agent_alive] Could not send a ping task to vm_8j36sg: (404, "NOT_FOUND - no exchange 'vm_8j36sg' in vhost 'rabbitmq_vhost_default_tenant'")
2018-12-11 08:42:16.451  LOG <sanity> [vm_8j36sg.create] INFO: Deploying broker configuration.
2018-12-11 08:42:16.451  LOG <sanity> [vm_8j36sg.create] INFO: Successfully configured daemon: vm_8j36sg
2018-12-11 08:42:16.451  LOG <sanity> [vm_8j36sg.create] INFO: Starting...
2018-12-11 08:42:16.451  LOG <sanity> [vm_8j36sg.create] INFO: Starting daemon with command: sudo systemctl start cloudify-worker-vm_8j36sg
2018-12-11 08:42:16.800  LOG <sanity> [vm_8j36sg.create] INFO: Starting daemon with command: sudo systemctl start cloudify-worker-vm_8j36sg
2018-12-11 08:42:16.800  LOG <sanity> [vm_8j36sg.create] INFO: No handlers could be found for logger "cloudify.amqp_client"
2018-12-11 08:42:16.152  LOG <sanity> [vm_8j36sg.create] INFO: Deploying broker configuration.
2018-12-11 08:42:16.451  LOG <sanity> [vm_8j36sg.create] INFO: Starting...
2018-12-11 08:42:16.451  LOG <sanity> [vm_8j36sg.create] INFO: Starting daemon with command: sudo systemctl start cloudify-worker-vm_8j36sg
2018-12-11 08:42:17.526  LOG <sanity> [vm_8j36sg.create] INFO: Agent created, configured and started successfully
2018-12-11 08:42:17.432  LOG <sanity> [vm_8j36sg.create] INFO: Successfully started daemon: vm_8j36sg
2018-12-11 08:42:17.432  LOG <sanity> [vm_8j36sg.create] INFO: Agent created, configured and started successfully
2018-12-11 08:42:17.526  LOG <sanity> [vm_8j36sg.create] INFO: Successfully started daemon: vm_8j36sg
2018-12-11 08:42:17.938  CFY <sanity> [vm_8j36sg.create] Task succeeded 'cloudify_agent.installer.operations.create'
2018-12-11 08:42:18.506  CFY <sanity> [http_web_server_85ajbu] Creating node
2018-12-11 08:42:19.294  CFY <sanity> [http_web_server_85ajbu] Configuring node
2018-12-11 08:42:19.926  CFY <sanity> [http_web_server_85ajbu.configure] Sending task 'script_runner.tasks.run'
2018-12-11 08:42:19.926  CFY <sanity> [http_web_server_85ajbu.configure] Task started 'script_runner.tasks.run'
2018-12-11 08:42:20.822  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Downloaded scripts/configure.sh to /tmp/VE5KX/configure.sh
2018-12-11 08:42:20.844  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Downloaded scripts/configure.sh to /tmp/VE5KX/configure.sh
2018-12-11 08:42:21.446  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Executing: /tmp/VE5KX/configure.sh, stdout: /root/vm_8j36sg/work/logs/tasks/20bf7837-da32-4939-b4e3-a98e8f9e866f.out, stderr: /root/vm_8j36sg/work/logs/tasks/20bf7837-da32-4939-b4e3-a98e8f9e866f.err
2018-12-11 08:42:21.536  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Executing: /tmp/VE5KX/configure.sh, stdout: /root/vm_8j36sg/work/logs/tasks/20bf7837-da32-4939-b4e3-a98e8f9e866f.out, stderr: /root/vm_8j36sg/work/logs/tasks/20bf7837-da32-4939-b4e3-a98e8f9e866f.err
2018-12-11 08:42:21.446  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Process created, PID: 10132
2018-12-11 08:42:21.536  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Process created, PID: 10132
2018-12-11 08:42:21.446  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Creating HTTP server root directory at /tmp/cloudify-hello-world.12774
2018-12-11 08:42:21.536  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Creating HTTP server root directory at /tmp/cloudify-hello-world.12774
2018-12-11 08:42:22.091  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Downloading blueprint resources...
2018-12-11 08:42:22.557  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Downloading blueprint resources...
2018-12-11 08:42:22.557  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Downloaded hello-webpage/index.html to /tmp/cloudify-hello-world.12774/index.html
2018-12-11 08:42:22.091  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Downloaded hello-webpage/index.html to /tmp/cloudify-hello-world.12774/index.html
2018-12-11 08:42:22.091  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Downloaded hello-webpage/cloudify-logo.png to /tmp/cloudify-hello-world.12774/cloudify-logo.png
2018-12-11 08:42:22.557  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Downloaded hello-webpage/cloudify-logo.png to /tmp/cloudify-hello-world.12774/cloudify-logo.png
2018-12-11 08:42:22.557  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Execution done (PID=10132, return_code=0): /tmp/VE5KX/configure.sh
2018-12-11 08:42:22.722  LOG <sanity> [http_web_server_85ajbu.configure] INFO: Execution done (PID=10132, return_code=0): /tmp/VE5KX/configure.sh
2018-12-11 08:42:22.722  CFY <sanity> [http_web_server_85ajbu.configure] Task succeeded 'script_runner.tasks.run'
2018-12-11 08:42:23.390  CFY <sanity> [http_web_server_85ajbu] Starting node
2018-12-11 08:42:23.920  CFY <sanity> [http_web_server_85ajbu.start] Sending task 'script_runner.tasks.run'
2018-12-11 08:42:23.920  CFY <sanity> [http_web_server_85ajbu.start] Task started 'script_runner.tasks.run'
2018-12-11 08:42:24.693  LOG <sanity> [http_web_server_85ajbu.start] INFO: Downloaded scripts/start.sh to /tmp/YQTBJ/start.sh
2018-12-11 08:42:24.698  LOG <sanity> [http_web_server_85ajbu.start] INFO: Downloaded scripts/start.sh to /tmp/YQTBJ/start.sh
2018-12-11 08:42:25.567  LOG <sanity> [http_web_server_85ajbu.start] INFO: Executing: /tmp/YQTBJ/start.sh, stdout: /root/vm_8j36sg/work/logs/tasks/19efba2f-a5ba-427a-923e-9a12982835d8.out, stderr: /root/vm_8j36sg/work/logs/tasks/19efba2f-a5ba-427a-923e-9a12982835d8.err
2018-12-11 08:42:25.346  LOG <sanity> [http_web_server_85ajbu.start] INFO: Executing: /tmp/YQTBJ/start.sh, stdout: /root/vm_8j36sg/work/logs/tasks/19efba2f-a5ba-427a-923e-9a12982835d8.out, stderr: /root/vm_8j36sg/work/logs/tasks/19efba2f-a5ba-427a-923e-9a12982835d8.err
2018-12-11 08:42:25.346  LOG <sanity> [http_web_server_85ajbu.start] INFO: Process created, PID: 10159
2018-12-11 08:42:25.567  LOG <sanity> [http_web_server_85ajbu.start] INFO: Process created, PID: 10159
2018-12-11 08:42:25.567  LOG <sanity> [http_web_server_85ajbu.start] INFO: Starting HTTP server from /tmp/cloudify-hello-world.12774
2018-12-11 08:42:25.346  LOG <sanity> [http_web_server_85ajbu.start] INFO: Starting HTTP server from /tmp/cloudify-hello-world.12774
2018-12-11 08:42:25.567  LOG <sanity> [http_web_server_85ajbu.start] INFO: Starting SimpleHTTPServer
2018-12-11 08:42:25.963  LOG <sanity> [http_web_server_85ajbu.start] INFO: Starting SimpleHTTPServer
2018-12-11 08:42:25.963  LOG <sanity> [http_web_server_85ajbu.start] INFO: Waiting for server to launch on port 12774
2018-12-11 08:42:26.573  LOG <sanity> [http_web_server_85ajbu.start] INFO: Waiting for server to launch on port 12774
2018-12-11 08:42:25.963  LOG <sanity> [http_web_server_85ajbu.start] INFO: Server is up at http://:12774.
2018-12-11 08:42:26.573  LOG <sanity> [http_web_server_85ajbu.start] INFO: Server is up at http://:12774.
2018-12-11 08:42:26.567  LOG <sanity> [http_web_server_85ajbu.start] INFO: Execution done (PID=10159, return_code=0): /tmp/YQTBJ/start.sh
2018-12-11 08:42:26.573  LOG <sanity> [http_web_server_85ajbu.start] INFO: Execution done (PID=10159, return_code=0): /tmp/YQTBJ/start.sh
2018-12-11 08:42:26.567  CFY <sanity> [http_web_server_85ajbu.start] Task succeeded 'script_runner.tasks.run'
2018-12-11 08:42:27.134  CFY <sanity> 'install' workflow execution succeeded
Finished executing workflow install on deployment sanity
* Run 'cfy events list -e c05649f8-60b3-4204-b569-9f3de1093542' to retrieve the execution's events/logs
2018-12-11 16:42:31,157 - [NETWORK] - INFO - Waiting for localhost:12774 to become available...
2018-12-11 16:42:31,158 - [NETWORK] - INFO - localhost:12774 is open!
2018-12-11 16:42:31,158 - [SANITY] - INFO - Removing sanity...
Executing workflow `uninstall` on deployment `sanity` [timeout=900 seconds]
2018-12-11 08:42:33.930  CFY <sanity> Starting 'uninstall' workflow execution
2018-12-11 08:42:34.613  CFY <sanity> [http_web_server_85ajbu] Stopping node
2018-12-11 08:42:34.613  CFY <sanity> [http_web_server_85ajbu.stop] Sending task 'script_runner.tasks.run'
2018-12-11 08:42:35.280  CFY <sanity> [http_web_server_85ajbu.stop] Task started 'script_runner.tasks.run'
2018-12-11 08:42:35.557  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Downloaded scripts/stop.sh to /tmp/P6OUF/stop.sh
2018-12-11 08:42:35.985  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Downloaded scripts/stop.sh to /tmp/P6OUF/stop.sh
2018-12-11 08:42:35.985  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Executing: /tmp/P6OUF/stop.sh, stdout: /root/vm_8j36sg/work/logs/tasks/6fbae4dd-17f1-44b4-9ac0-725976b67cac.out, stderr: /root/vm_8j36sg/work/logs/tasks/6fbae4dd-17f1-44b4-9ac0-725976b67cac.err
2018-12-11 08:42:35.824  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Executing: /tmp/P6OUF/stop.sh, stdout: /root/vm_8j36sg/work/logs/tasks/6fbae4dd-17f1-44b4-9ac0-725976b67cac.out, stderr: /root/vm_8j36sg/work/logs/tasks/6fbae4dd-17f1-44b4-9ac0-725976b67cac.err
2018-12-11 08:42:35.985  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Process created, PID: 10219
2018-12-11 08:42:35.985  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Process created, PID: 10219
2018-12-11 08:42:36.583  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Shutting down file server. pid = 10163
2018-12-11 08:42:36.830  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Shutting down file server. pid = 10163
2018-12-11 08:42:36.830  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Deleting file server root directory (/tmp/cloudify-hello-world.12774)
2018-12-11 08:42:36.583  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Deleting file server root directory (/tmp/cloudify-hello-world.12774)
2018-12-11 08:42:36.830  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Execution done (PID=10219, return_code=0): /tmp/P6OUF/stop.sh
2018-12-11 08:42:36.583  LOG <sanity> [http_web_server_85ajbu.stop] INFO: Execution done (PID=10219, return_code=0): /tmp/P6OUF/stop.sh
2018-12-11 08:42:37.201  CFY <sanity> [http_web_server_85ajbu.stop] Task succeeded 'script_runner.tasks.run'
2018-12-11 08:42:37.762  CFY <sanity> [http_web_server_85ajbu] Deleting node
2018-12-11 08:42:39.816  CFY <sanity> [vm_8j36sg] Stopping node
2018-12-11 08:42:40.450  CFY <sanity> [vm_8j36sg] Stopping agent
2018-12-11 08:42:40.450  CFY <sanity> [vm_8j36sg.stop] Sending task 'cloudify_agent.installer.operations.stop'
2018-12-11 08:42:41.130  CFY <sanity> [vm_8j36sg.stop] Task started 'cloudify_agent.installer.operations.stop'
2018-12-11 08:42:41.825  LOG <sanity> [vm_8j36sg.stop] INFO: Stopping Agent vm_8j36sg
2018-12-11 08:42:41.849  LOG <sanity> [vm_8j36sg.stop] INFO: Stopping Agent vm_8j36sg
2018-12-11 08:42:43.992  LOG <sanity> [vm_8j36sg.stop] INFO: Stopping daemon with command: sudo systemctl stop cloudify-worker-vm_8j36sg
2018-12-11 08:42:43.859  LOG <sanity> [vm_8j36sg.stop] INFO: Stopping daemon with command: sudo systemctl stop cloudify-worker-vm_8j36sg
2018-12-11 08:42:43.859  LOG <sanity> [vm_8j36sg.stop] INFO: Successfully stopped daemon: vm_8j36sg
2018-12-11 08:42:43.992  LOG <sanity> [vm_8j36sg.stop] INFO: Successfully stopped daemon: vm_8j36sg
2018-12-11 08:42:43.324  LOG <sanity> [vm_8j36sg.stop] INFO: Stopping...
2018-12-11 08:42:43.325  LOG <sanity> [vm_8j36sg.stop] INFO: Stopping...
2018-12-11 08:42:44.624  CFY <sanity> [vm_8j36sg.stop] Task succeeded 'cloudify_agent.installer.operations.stop'
2018-12-11 08:42:44.624  CFY <sanity> [vm_8j36sg] Deleting agent
2018-12-11 08:42:44.624  CFY <sanity> [vm_8j36sg.delete] Sending task 'cloudify_agent.installer.operations.delete'
2018-12-11 08:42:45.348  CFY <sanity> [vm_8j36sg.delete] Task started 'cloudify_agent.installer.operations.delete'
2018-12-11 08:42:45.850  LOG <sanity> [vm_8j36sg.delete] INFO: Deleting Agent vm_8j36sg
2018-12-11 08:42:45.865  LOG <sanity> [vm_8j36sg.delete] INFO: Deleting Agent vm_8j36sg
2018-12-11 08:42:50.939  LOG <sanity> [vm_8j36sg.delete] INFO: Successfully deleted daemon: vm_8j36sg
2018-12-11 08:42:50.868  LOG <sanity> [vm_8j36sg.delete] INFO: 16:42:49 [INFO] [cloudify.utils.is_agent_alive] No ping response from vm_8j36sg: No response received for task e4d2e1b083cb429590d12e2b3f9e9216
2018-12-11 08:42:50.868  LOG <sanity> [vm_8j36sg.delete] INFO: Successfully deleted daemon: vm_8j36sg
2018-12-11 08:42:50.939  LOG <sanity> [vm_8j36sg.delete] INFO: 16:42:49 [INFO] [cloudify.utils.is_agent_alive] No ping response from vm_8j36sg: No response received for task e4d2e1b083cb429590d12e2b3f9e9216
2018-12-11 08:42:50.264  LOG <sanity> [vm_8j36sg.delete] INFO: Deleting...
2018-12-11 08:42:50.304  LOG <sanity> [vm_8j36sg.delete] INFO: Deleting...
2018-12-11 08:42:51.505  CFY <sanity> [vm_8j36sg.delete] Task succeeded 'cloudify_agent.installer.operations.delete'
2018-12-11 08:42:52.038  CFY <sanity> [vm_8j36sg] Deleting node
2018-12-11 08:42:52.669  CFY <sanity> 'uninstall' workflow execution succeeded
Finished executing workflow uninstall on deployment sanity
* Run 'cfy events list -e 32e9aece-208f-478f-93cf-9d495f79b23d' to retrieve the execution's events/logs
Trying to delete deployment sanity...
Deployment deleted
Deleting blueprint sanity...
Blueprint deleted
2018-12-11 16:43:02,325 - [SANITY] - NOTICE - Sanity completed successfully
2018-12-11 16:43:02,326 - [MAIN] - NOTICE - Installation finished successfully!
2018-12-11 16:43:02,433 - [MAIN] - NOTICE - Manager is up at http://10.10.31.201
2018-12-11 16:43:02,433 - [GLOBALS] - WARNING - Admin password: password
2018-12-11 16:43:02,433 - [MAIN] - NOTICE - ##################################################
2018-12-11 16:43:02,434 - [MAIN] - NOTICE - To install the default plugins bundle run:
2018-12-11 16:43:02,434 - [MAIN] - NOTICE - 'cfy plugins bundle-upload'
2018-12-11 16:43:02,434 - [MAIN] - NOTICE - ##################################################
2018-12-11 16:43:02,434 - [MAIN] - NOTICE - Finished in 4 minutes and 22 seconds

验证安装

#法一验证: 用户名:admin ;密码:password

http://10.10.31.201

#法二验证:cfy status

[root@localhost cloudify]# cfy status
Retrieving manager services status... [ip=localhost]

Services:
+--------------------------------+---------+
|            service             |  status |
+--------------------------------+---------+
| Cloudify Composer              | running |
| AMQP-Postgres                  | running |
| RabbitMQ                       | running |
| Webserver                      | running |
| Management Worker              | running |
| PostgreSQL                     | running |
| Cloudify Console               | running |
| Manager Rest-Service           | running |
+--------------------------------+---------+

安装时遇到一个问题

ERROR - ValidationError: restservice is not running

解决办法:关闭防火墙

[root@localhost cloudify]# service firewalld stop
Redirecting to /bin/systemctl stop firewalld.service

然后重新安装,不需要删除或者卸载。

2018-12-11 16:37:54,214 - [YUM] - INFO - Installing cloudify-premium...
2018-12-11 16:38:08,916 - [RESTSERVICE] - INFO - Deploying REST Service Configuration file...
2018-12-11 16:38:09,135 - [RESTSERVICE] - INFO - Deploying REST Security configuration file...
2018-12-11 16:38:09,233 - [RESTSERVICE] - INFO - Deploying REST authorization configuration file...
2018-12-11 16:38:09,332 - [DB] - NOTICE - Configuring SQL DB...
2018-12-11 16:38:11,071 - [DB] - NOTICE - SQL DB successfully configured
2018-12-11 16:38:11,072 - [DB] - NOTICE - Populating DB and creating AMQP resources...
2018-12-11 16:38:15,003 - [DB] - INFO - Finished creating bootstrap admin, default tenant and provider ctx
2018-12-11 16:38:15,004 - [DB] - NOTICE - DB populated and AMQP resources successfully created
2018-12-11 16:38:15,536 - [MAIN] - ERROR - ValidationError: restservice is not running
[root@localhost cloudify]# service firewalld stop
Redirecting to /bin/systemctl stop firewalld.service
[root@localhost cloudify]# cfy_manager install --private-ip 10.10.31.201 --public-ip 10.10.31.201 --admin-password password 
2018-12-11 16:38:41,782 - [MAIN] - NOTICE - Installing desired components...
2018-12-11 16:38:41,783 - [VALIDATIONS] - INFO - Validating dependencies for PostgresqlServerComponent,ManagerComponent,ManagerIpSetterComponent,NginxComponent,PythonComponent,PostgresqlClientComponent,RabbitMQComponent,RestServiceComponent,InfluxDBComponent,AmqpInfluxComponent,JavaComponent,AmqpPostgresComponent,StageComponent,ComposerComponent,MgmtWorkerComponent,RiemannComponent,ClusterComponent,CliComponent,UsageCollectorComponent,SanityComponent...
2018-12-11 16:38:50,259 - [VALIDATIONS] - NOTICE - Validating local machine...
2018-12-11 16:38:50,259 - [VALIDATIONS] - INFO - Validating private IP address...
2018-12-11 16:38:50,260 - [VALIDATIONS] - INFO - Validating Python version...
2018-12-11 16:38:50,260 - [VALIDATIONS] - INFO - Validating supported distributions...
2018-12-11 16:38:50,261 - [VALIDATIONS] - INFO - Validating memory requirement...
2018-12-11 16:38:50,261 - [VALIDATIONS] - INFO - Validating disk space requirement...
2018-12-11 16:38:50,262 - [VALIDATIONS] - INFO - Validating OpenSSL version...

效果图展示

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/shenhonglei1234/article/details/84961423