目录
一:centos7.4初始化安装环境
- 安装setuptools
sudo tar zxvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
sudo python2.7 setup.py build
sudo python2.7 setup.py install
- 可以不执行
sudo easy_install django
sudo easy_install numpy
- 安装pip
yum -y install epel-release
yum install python-pip
二:安装
2.1 下载cloudify-manager-install-4.5ga.rpm安装包
wget http://repository.cloudifysource.org/cloudify/4.5.0/ga-release/cloudify-manager-install-4.5ga.rpm
链接:https://pan.baidu.com/s/1Ol5EIAL7cFSu61mPgAVJhA
提取码:2ed2
2.2 安装cloudify-manager-install-4.5ga.rpm
yum install cloudify-manager-install-4.5ga.rpm
安装过程
[root@localhost software]# yum install cloudify-manager-install-4.5ga.rpm
Loaded plugins: fastestmirror
Examining cloudify-manager-install-4.5ga.rpm: cloudify-manager-install-4.5.0-ga.x86_64
Marking cloudify-manager-install-4.5ga.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package cloudify-manager-install.x86_64 0:4.5.0-ga will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================
Installing:
cloudify-manager-install x86_64 4.5.0-ga /cloudify-manager-install-4.5ga 504 M
Transaction Summary
===================================================================================================================================================================================
Install 1 Package
Total size: 504 M
Installed size: 504 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : cloudify-manager-install-4.5.0-ga.x86_64 1/1
###########################################################################
Cloudify installer is ready!
To install Cloudify Manager, run:
cfy_manager install --private-ip <PRIVATE_IP> --public-ip <PUBLIC_IP>
(Use cfy_manager -h for a full list of options)
You can specify more installation settings in /etc/cloudify/config.yaml. If you
specify the public and private IP addresses in the config.yaml file, run:
cfy_manager install
###########################################################################
Verifying : cloudify-manager-install-4.5.0-ga.x86_64 1/1
Installed:
cloudify-manager-install.x86_64 0:4.5.0-ga
Complete!
2.3 Cloudify manager部署并设置登陆账号和密码(Ip设置为自己的ip)
cfy_manager install --private-ip 192.168.254.111 --public-ip 192.168.254.111 --admin-password password
安装过程:
[root@localhost software]# cfy_manager install --private-ip 192.168.254.118 --public-ip 192.168.254.118 --admin-password password
2020-01-06 16:19:03,571 - [MAIN] - NOTICE - Installing desired components...
2020-01-06 16:19:03,572 - [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...
2020-01-06 16:19:05,451 - [VALIDATIONS] - NOTICE - Validating local machine...
2020-01-06 16:19:05,452 - [VALIDATIONS] - INFO - Validating private IP address...
2020-01-06 16:19:05,452 - [VALIDATIONS] - INFO - Validating Python version...
2020-01-06 16:19:05,453 - [VALIDATIONS] - INFO - Validating supported distributions...
2020-01-06 16:19:05,453 - [VALIDATIONS] - INFO - Validating memory requirement...
2020-01-06 16:19:05,454 - [VALIDATIONS] - INFO - Validating disk space requirement...
2020-01-06 16:19:05,454 - [VALIDATIONS] - INFO - Validating OpenSSL version...
2020-01-06 16:19:05,481 - [VALIDATIONS] - INFO - Validating user `root` has sudo permissions...
2020-01-06 16:19:05,492 - [VALIDATIONS] - NOTICE - All validations passed successfully!
2020-01-06 16:19:05,493 - [GLOBALS] - INFO - SSL is disabled, setting rest port to 80 and rest protocols to http...
2020-01-06 16:19:05,494 - [GLOBALS] - WARNING - Admin password: password
2020-01-06 16:19:05,494 - [GLOBALS] - INFO - Generating random hash salt and secret key...
2020-01-06 16:19:05,495 - [POSTGRESQL_SERVER] - NOTICE - Installing PostgreSQL Server...
2020-01-06 16:19:05,578 - [YUM] - INFO - Installing postgresql95-libs...
2020-01-06 16:19:07,152 - [YUM] - INFO - Installing postgresql95...
2020-01-06 16:19:08,620 - [YUM] - INFO - Installing postgresql95-contrib...
2020-01-06 16:19:11,526 - [YUM] - INFO - Installing postgresql95-server...
2020-01-06 16:19:13,757 - [YUM] - INFO - Installing postgresql95-devel...
2020-01-06 16:19:20,935 - [POSTGRESQL_SERVER] - INFO - Starting PostgreSQL Server service...
2020-01-06 16:19:23,005 - [POSTGRESQL_SERVER] - INFO - Updating PostgreSQL Server configuration...
2020-01-06 16:19:25,183 - [POSTGRESQL_SERVER] - NOTICE - PostgreSQL Server successfully installed
2020-01-06 16:19:25,184 - [MANAGER] - NOTICE - Installing Cloudify Manager resources...
2020-01-06 16:19:25,185 - [USERS] - INFO - Creating group cfyuser
2020-01-06 16:19:25,222 - [USERS] - INFO - Creating user cfyuser, home: /etc/cloudify...
2020-01-06 16:19:25,399 - [MANAGER] - INFO - SELinux is enforcing, setting permissive state...
2020-01-06 16:19:25,502 - [MANAGER] - NOTICE - Cloudify Manager resources successfully installed
2020-01-06 16:19:25,502 - [MANAGER-IP-SETTER] - NOTICE - Installing Manager IP Setter...
2020-01-06 16:19:25,553 - [YUM] - INFO - Installing cloudify-manager-ip-setter...
2020-01-06 16:19:26,434 - [MANAGER-IP-SETTER] - INFO - Set manager ip on boot is disabled.
2020-01-06 16:19:26,435 - [MANAGER-IP-SETTER] - NOTICE - Manager IP Setter successfully installed
2020-01-06 16:19:26,435 - [NGINX] - NOTICE - Installing NGINX...
2020-01-06 16:19:26,486 - [YUM] - INFO - Installing nginx...
2020-01-06 16:19:28,029 - [NGINX] - INFO - Handling CA certificate...
2020-01-06 16:19:28,030 - [NGINX] - INFO - Generating CA certificate...
2020-01-06 16:19:28,107 - [NGINX] - INFO - Handling internal certificate...
2020-01-06 16:19:28,107 - [NGINX] - INFO - Generating internal certificate...
2020-01-06 16:19:28,349 - [NGINX] - INFO - Handling external certificate...
2020-01-06 16:19:28,349 - [NGINX] - INFO - Generating external certificate...
2020-01-06 16:19:28,505 - [NGINX] - INFO - Deploying Nginx configuration files...
2020-01-06 16:19:29,035 - [NGINX] - INFO - Starting NGINX service...
2020-01-06 16:19:29,191 - [NGINX] - NOTICE - NGINX successfully installed
2020-01-06 16:19:29,192 - [PYTHON] - NOTICE - Installing Python dependencies...
2020-01-06 16:19:29,205 - [PYTHON] - NOTICE - Python dependencies successfully installed
2020-01-06 16:19:29,205 - [POSTGRESQL_CLIENT] - NOTICE - Installing PostgreSQL Client...
2020-01-06 16:19:29,328 - [YUM] - INFO - Installing python-psycopg2...
2020-01-06 16:19:30,278 - [POSTGRESQL_CLIENT] - NOTICE - Creating postgres group
2020-01-06 16:19:30,293 - [POSTGRESQL_CLIENT] - INFO - Group postgres already exists
2020-01-06 16:19:30,293 - [POSTGRESQL_CLIENT] - NOTICE - Creating postgres user
2020-01-06 16:19:30,307 - [POSTGRESQL_CLIENT] - INFO - User postgres already exists
2020-01-06 16:19:30,385 - [POSTGRESQL_CLIENT] - NOTICE - PostgreSQL successfully installed
2020-01-06 16:19:30,385 - [RABBITMQ] - NOTICE - Installing RabbitMQ...
2020-01-06 16:19:30,434 - [YUM] - INFO - Installing erlang...
2020-01-06 16:19:34,749 - [YUM] - INFO - Installing socat...
2020-01-06 16:19:35,815 - [YUM] - INFO - Installing rabbitmq-server...
2020-01-06 16:19:37,314 - [YUM] - INFO - Installing cloudify-rabbitmq...
2020-01-06 16:19:38,308 - [RABBITMQ] - INFO - Initializing RabbitMQ...
2020-01-06 16:19:43,167 - [NETWORK] - INFO - Waiting for localhost:5671 to become available...
2020-01-06 16:19:43,171 - [NETWORK] - INFO - localhost:5671 is open!
2020-01-06 16:19:44,592 - [RABBITMQ] - INFO - Creating new user and setting permissions...
2020-01-06 16:19:46,883 - [RABBITMQ] - INFO - Starting RabbitMQ Service...
2020-01-06 16:19:58,236 - [NETWORK] - INFO - Waiting for localhost:5671 to become available...
2020-01-06 16:19:58,238 - [NETWORK] - INFO - localhost:5671 is open!
2020-01-06 16:19:58,238 - [RABBITMQ] - INFO - Setting RabbitMQ Policies...
2020-01-06 16:20:11,523 - [RABBITMQ] - INFO - Making sure RabbitMQ is live...
2020-01-06 16:20:12,294 - [RABBITMQ] - NOTICE - RabbitMQ successfully installed
2020-01-06 16:20:12,294 - [RESTSERVICE] - NOTICE - Installing Rest Service...
2020-01-06 16:20:12,366 - [YUM] - INFO - Installing cloudify-rest-service...
2020-01-06 16:20:22,495 - [YUM] - INFO - Installing cloudify-agents...
2020-01-06 16:20:30,584 - [RESTSERVICE] - NOTICE - Installing Cloudify Premium...
2020-01-06 16:20:30,647 - [YUM] - INFO - Installing cloudify-premium...
2020-01-06 16:20:38,868 - [RESTSERVICE] - INFO - Deploying REST Service Configuration file...
2020-01-06 16:20:39,030 - [RESTSERVICE] - INFO - Deploying REST Security configuration file...
2020-01-06 16:20:39,093 - [RESTSERVICE] - INFO - Deploying REST authorization configuration file...
2020-01-06 16:20:39,156 - [DB] - NOTICE - Configuring SQL DB...
2020-01-06 16:20:40,295 - [DB] - NOTICE - SQL DB successfully configured
2020-01-06 16:20:40,296 - [DB] - NOTICE - Populating DB and creating AMQP resources...
2020-01-06 16:20:43,779 - [DB] - INFO - Finished creating bootstrap admin, default tenant and provider ctx
2020-01-06 16:20:43,779 - [DB] - NOTICE - DB populated and AMQP resources successfully created
2020-01-06 16:20:44,152 - [RESTSERVICE] - INFO - Verifying Rest service is working as expected...
2020-01-06 16:20:44,153 - [NETWORK] - INFO - Waiting for localhost:8100 to become available...
2020-01-06 16:20:44,153 - [NETWORK] - INFO - localhost:8100 is not available yet, retrying... (1/24)
2020-01-06 16:20:46,158 - [NETWORK] - INFO - localhost:8100 is open!
2020-01-06 16:20:47,424 - [RESTSERVICE] - NOTICE - Rest Service successfully installed
2020-01-06 16:20:47,425 - [AMQP-POSTGRES] - NOTICE - Configuring AMQP-Postgres...
2020-01-06 16:20:47,425 - [AMQP-POSTGRES] - INFO - Starting AMQP-PostgreSQL Broker Service...
2020-01-06 16:20:47,810 - [AMQP-POSTGRES] - NOTICE - AMQP-Postgres successfully configured
2020-01-06 16:20:47,810 - [STAGE] - NOTICE - Installing Stage...
2020-01-06 16:20:47,874 - [STAGE] - INFO - Extracting Stage package...
2020-01-06 16:20:50,105 - [STAGE] - INFO - Creating symlink to /usr/bin/node...
2020-01-06 16:20:50,408 - [USERS] - INFO - Creating group stage_group
2020-01-06 16:20:50,449 - [USERS] - INFO - Creating user stage_user, home: /opt/cloudify-stage...
2020-01-06 16:20:50,669 - [STAGE] - INFO - Installing NodeJS...
2020-01-06 16:20:53,392 - [SUDOERS] - INFO - Allowing user `cfyuser` to run `/opt/cloudify/stage/restore-snapshot.py`
2020-01-06 16:20:53,585 - [SUDOERS] - INFO - Allowing user `cfyuser` to run `/opt/cloudify/stage/make-auth-token.py`
2020-01-06 16:21:01,476 - [STAGE] - INFO - Starting Stage service...
2020-01-06 16:21:01,572 - [NETWORK] - INFO - Waiting for localhost:8088 to become available...
2020-01-06 16:21:01,573 - [NETWORK] - INFO - localhost:8088 is not available yet, retrying... (1/24)
2020-01-06 16:21:03,576 - [NETWORK] - INFO - localhost:8088 is open!
2020-01-06 16:21:03,576 - [STAGE] - NOTICE - Stage successfully installed
2020-01-06 16:21:03,576 - [COMPOSER] - NOTICE - Installing Cloudify Composer...
2020-01-06 16:21:03,604 - [COMPOSER] - INFO - Installing Cloudify Composer...
2020-01-06 16:21:05,366 - [USERS] - INFO - Creating group composer_group
2020-01-06 16:21:05,420 - [USERS] - INFO - Creating user composer_user, home: /opt/cloudify-composer...
2020-01-06 16:21:07,250 - [COMPOSER] - INFO - Starting Composer service...
2020-01-06 16:21:07,340 - [NETWORK] - INFO - Waiting for localhost:3000 to become available...
2020-01-06 16:21:07,341 - [NETWORK] - INFO - localhost:3000 is not available yet, retrying... (1/24)
2020-01-06 16:21:09,344 - [NETWORK] - INFO - localhost:3000 is open!
2020-01-06 16:21:09,344 - [COMPOSER] - NOTICE - Cloudify Composer successfully installed
2020-01-06 16:21:09,345 - [MGMTWORKER] - NOTICE - Installing Management Worker...
2020-01-06 16:21:09,797 - [YUM] - INFO - Installing cloudify-management-worker...
2020-01-06 16:21:20,623 - [MGMTWORKER] - NOTICE - Management Worker successfully installed
2020-01-06 16:21:20,624 - [CLI] - NOTICE - Installing Cloudify CLI...
2020-01-06 16:21:20,725 - [YUM] - INFO - Installing cloudify...
2020-01-06 16:21:31,922 - [CLI] - INFO - Setting CLI for the current user (root)...
2020-01-06 16:21:35,839 - [CLI] - NOTICE - Cloudify CLI successfully installed
2020-01-06 16:21:35,839 - [USAGE_COLLECTOR] - NOTICE - Installing Usage Collector...
2020-01-06 16:21:35,840 - [USAGE_COLLECTOR] - INFO - Deploying Usage Collector scripts...
2020-01-06 16:21:36,525 - [USAGE_COLLECTOR] - INFO - Usage Collector scripts successfully deployed
2020-01-06 16:21:36,548 - [USAGE_COLLECTOR] - INFO - Removing cron jobs of Usage Collector...
2020-01-06 16:21:37,029 - [USAGE_COLLECTOR] - INFO - Usage Collector cron jobs successfully removed
2020-01-06 16:21:37,030 - [USAGE_COLLECTOR] - INFO - Creating cron jobs for Usage Collector...
2020-01-06 16:21:37,074 - [USAGE_COLLECTOR] - INFO - Usage Collector cron jobs successfully created
2020-01-06 16:21:37,074 - [USAGE_COLLECTOR] - NOTICE - Usage Collector successfully installed
2020-01-06 16:21:37,075 - [SANITY] - NOTICE - Running Sanity...
2020-01-06 16:21:37,075 - [SANITY] - INFO - Creating SSH key for sanity...
2020-01-06 16:21:37,770 - [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
2020-01-06 16:21:39,785 - [SANITY] - INFO - Deploying sanity app...
Creating new deployment from blueprint sanity...
Deployment created. The deployment's id is sanity
2020-01-06 16:21:41,317 - [SANITY] - INFO - Installing sanity app...
Executing workflow `install` on deployment `sanity` [timeout=900 seconds]
Deployment environment creation is in progress...
2020-01-06 08:21:42.205 CFY <sanity> Starting 'create_deployment_environment' workflow execution
2020-01-06 08:21:42.803 CFY <sanity> Skipping starting deployment policy engine core - no policies defined
2020-01-06 08:21:42.803 CFY <sanity> Creating deployment work directory
2020-01-06 08:21:42.803 CFY <sanity> 'create_deployment_environment' workflow execution succeeded
2020-01-06 08:21:47.224 CFY <sanity> Starting 'install' workflow execution
2020-01-06 08:21:47.892 CFY <sanity> [vm_ufmykr] Creating node
2020-01-06 08:21:48.458 CFY <sanity> [vm_ufmykr] Configuring node
2020-01-06 08:21:49.038 CFY <sanity> [vm_ufmykr] Starting node
2020-01-06 08:21:49.038 CFY <sanity> [vm_ufmykr] Creating Agent
2020-01-06 08:21:49.668 CFY <sanity> [vm_ufmykr.create] Sending task 'cloudify_agent.installer.operations.create'
2020-01-06 08:21:49.668 CFY <sanity> [vm_ufmykr.create] Task started 'cloudify_agent.installer.operations.create'
2020-01-06 08:21:52.500 LOG <sanity> [vm_ufmykr.create] INFO: Creating Agent vm_ufmykr
2020-01-06 08:22:00.322 LOG <sanity> [vm_ufmykr.create] INFO: Downloading https://192.168.254.118:53333/resources/packages/agents/centos-core-agent.tar.gz...
2020-01-06 08:22:00.967 LOG <sanity> [vm_ufmykr.create] INFO: % Total % Received % Xferd Average Speed Time Time Time Current
2020-01-06 08:22:00.967 LOG <sanity> [vm_ufmykr.create] INFO:
2020-01-06 08:22:00.967 LOG <sanity> [vm_ufmykr.create] INFO: Dload Upload Total Spent Left Speed
2020-01-06 08:22:02.261 LOG <sanity> [vm_ufmykr.create] INFO: Download ended successfully
2020-01-06 08:22:01.562 LOG <sanity> [vm_ufmykr.create] INFO: 100 21.3M 100 21.3M 0 0 20.5M 0 0:00:01 0:00:01 --:--:-- 20.5M
2020-01-06 08:22:01.562 LOG <sanity> [vm_ufmykr.create] INFO: 6 21.3M 6 1423k 0 0 6473k 0 0:00:03 --:--:-- 0:00:03 6471k
2020-01-06 08:22:01.562 LOG <sanity> [vm_ufmykr.create] INFO: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2020-01-06 08:22:02.261 LOG <sanity> [vm_ufmykr.create] INFO: Auto-correcting virtualenv /root/vm_ufmykr/env
2020-01-06 08:22:03.233 LOG <sanity> [vm_ufmykr.create] INFO: No custom env configured
2020-01-06 08:22:03.233 LOG <sanity> [vm_ufmykr.create] INFO: Successfully disabled requiretty for cfy-agent
2020-01-06 08:22:03.233 LOG <sanity> [vm_ufmykr.create] INFO: Disabling requiretty directive in sudoers file
2020-01-06 08:22:03.233 LOG <sanity> [vm_ufmykr.create] INFO: Successfully corrected cfy-agent`s virtualenv
2020-01-06 08:22:02.261 LOG <sanity> [vm_ufmykr.create] INFO: Auto-correcting virtualenv /root/vm_ufmykr/env
2020-01-06 08:22:03.829 LOG <sanity> [vm_ufmykr.create] INFO: Successfully created daemon: vm_ufmykr
2020-01-06 08:22:04.423 LOG <sanity> [vm_ufmykr.create] INFO: Starting daemon with command: sudo systemctl start cloudify-worker-vm_ufmykr
2020-01-06 08:22:04.423 LOG <sanity> [vm_ufmykr.create] INFO: Starting...
2020-01-06 08:22:04.423 LOG <sanity> [vm_ufmykr.create] INFO: Successfully configured daemon: vm_ufmykr
2020-01-06 08:22:03.829 LOG <sanity> [vm_ufmykr.create] INFO: Deploying broker configuration.
2020-01-06 08:22:03.829 LOG <sanity> [vm_ufmykr.create] INFO: Configuring...
2020-01-06 08:22:05.018 LOG <sanity> [vm_ufmykr.create] INFO: No handlers could be found for logger "cloudify.amqp_client"
2020-01-06 08:22:05.018 LOG <sanity> [vm_ufmykr.create] INFO: 16:21:58 [WARNING] [cloudify.utils.is_agent_alive] Could not send a ping task to vm_ufmykr: (404, "NOT_FOUND - no exchange 'vm_ufmykr' in vhost 'rabbitmq_vhost_default_tenant'")
2020-01-06 08:22:05.018 LOG <sanity> [vm_ufmykr.create] INFO: Successfully started daemon: vm_ufmykr
2020-01-06 08:22:05.699 LOG <sanity> [vm_ufmykr.create] INFO: Agent created, configured and started successfully
2020-01-06 08:22:05.699 CFY <sanity> [vm_ufmykr.create] Task succeeded 'cloudify_agent.installer.operations.create'
2020-01-06 08:22:06.485 CFY <sanity> [http_web_server_5qfwr3] Creating node
2020-01-06 08:22:07.107 CFY <sanity> [http_web_server_5qfwr3] Configuring node
2020-01-06 08:22:07.843 CFY <sanity> [http_web_server_5qfwr3.configure] Sending task 'script_runner.tasks.run'
2020-01-06 08:22:08.361 CFY <sanity> [http_web_server_5qfwr3.configure] Task started 'script_runner.tasks.run'
2020-01-06 08:22:08.873 LOG <sanity> [http_web_server_5qfwr3.configure] INFO: Downloaded scripts/configure.sh to /tmp/D3997/configure.sh
2020-01-06 08:22:09.469 LOG <sanity> [http_web_server_5qfwr3.configure] INFO: Executing: /tmp/D3997/configure.sh, stdout: /root/vm_ufmykr/work/logs/tasks/fe2c8f2e-7b66-4a54-87a5-975b603d1ffd.out, stderr: /root/vm_ufmykr/work/logs/tasks/fe2c8f2e-7b66-4a54-87a5-975b603d1ffd.err
2020-01-06 08:22:09.469 LOG <sanity> [http_web_server_5qfwr3.configure] INFO: Process created, PID: 26255
2020-01-06 08:22:09.469 LOG <sanity> [http_web_server_5qfwr3.configure] INFO: Creating HTTP server root directory at /tmp/cloudify-hello-world.12774
2020-01-06 08:22:10.063 LOG <sanity> [http_web_server_5qfwr3.configure] INFO: Downloading blueprint resources...
2020-01-06 08:22:10.063 LOG <sanity> [http_web_server_5qfwr3.configure] INFO: Downloaded hello-webpage/index.html to /tmp/cloudify-hello-world.12774/index.html
2020-01-06 08:22:10.063 LOG <sanity> [http_web_server_5qfwr3.configure] INFO: Downloaded hello-webpage/cloudify-logo.png to /tmp/cloudify-hello-world.12774/cloudify-logo.png
2020-01-06 08:22:10.745 LOG <sanity> [http_web_server_5qfwr3.configure] INFO: Execution done (PID=26255, return_code=0): /tmp/D3997/configure.sh
2020-01-06 08:22:10.745 CFY <sanity> [http_web_server_5qfwr3.configure] Task succeeded 'script_runner.tasks.run'
2020-01-06 08:22:11.327 CFY <sanity> [http_web_server_5qfwr3] Starting node
2020-01-06 08:22:11.327 CFY <sanity> [http_web_server_5qfwr3.start] Sending task 'script_runner.tasks.run'
2020-01-06 08:22:11.943 CFY <sanity> [http_web_server_5qfwr3.start] Task started 'script_runner.tasks.run'
2020-01-06 08:22:12.659 LOG <sanity> [http_web_server_5qfwr3.start] INFO: Downloaded scripts/start.sh to /tmp/1LLWS/start.sh
2020-01-06 08:22:13.254 LOG <sanity> [http_web_server_5qfwr3.start] INFO: Executing: /tmp/1LLWS/start.sh, stdout: /root/vm_ufmykr/work/logs/tasks/6b4b7628-7329-4935-b638-ed08110601e0.out, stderr: /root/vm_ufmykr/work/logs/tasks/6b4b7628-7329-4935-b638-ed08110601e0.err
2020-01-06 08:22:13.254 LOG <sanity> [http_web_server_5qfwr3.start] INFO: Process created, PID: 26335
2020-01-06 08:22:13.254 LOG <sanity> [http_web_server_5qfwr3.start] INFO: Starting HTTP server from /tmp/cloudify-hello-world.12774
2020-01-06 08:22:13.899 LOG <sanity> [http_web_server_5qfwr3.start] INFO: Starting SimpleHTTPServer
2020-01-06 08:22:13.899 LOG <sanity> [http_web_server_5qfwr3.start] INFO: Waiting for server to launch on port 12774
2020-01-06 08:22:13.899 LOG <sanity> [http_web_server_5qfwr3.start] INFO: Server is up at http://:12774.
2020-01-06 08:22:14.529 LOG <sanity> [http_web_server_5qfwr3.start] INFO: Execution done (PID=26335, return_code=0): /tmp/1LLWS/start.sh
2020-01-06 08:22:14.529 CFY <sanity> [http_web_server_5qfwr3.start] Task succeeded 'script_runner.tasks.run'
2020-01-06 08:22:15.146 CFY <sanity> 'install' workflow execution succeeded
Finished executing workflow install on deployment sanity
* Run 'cfy events list -e 76e804a9-efa9-4244-98dd-7a75f805d492' to retrieve the execution's events/logs
2020-01-06 16:22:15,638 - [NETWORK] - INFO - Waiting for localhost:12774 to become available...
2020-01-06 16:22:15,639 - [NETWORK] - INFO - localhost:12774 is open!
2020-01-06 16:22:15,639 - [SANITY] - INFO - Removing sanity...
Executing workflow `uninstall` on deployment `sanity` [timeout=900 seconds]
2020-01-06 08:22:17.814 CFY <sanity> Starting 'uninstall' workflow execution
2020-01-06 08:22:18.445 CFY <sanity> [http_web_server_5qfwr3] Stopping node
2020-01-06 08:22:18.445 CFY <sanity> [http_web_server_5qfwr3.stop] Sending task 'script_runner.tasks.run'
2020-01-06 08:22:19.011 CFY <sanity> [http_web_server_5qfwr3.stop] Task started 'script_runner.tasks.run'
2020-01-06 08:22:20.017 LOG <sanity> [http_web_server_5qfwr3.stop] INFO: Downloaded scripts/stop.sh to /tmp/JLV2R/stop.sh
2020-01-06 08:22:20.662 LOG <sanity> [http_web_server_5qfwr3.stop] INFO: Executing: /tmp/JLV2R/stop.sh, stdout: /root/vm_ufmykr/work/logs/tasks/bec2f3ad-240e-48a1-a4f8-15a555a688ba.out, stderr: /root/vm_ufmykr/work/logs/tasks/bec2f3ad-240e-48a1-a4f8-15a555a688ba.err
2020-01-06 08:22:20.662 LOG <sanity> [http_web_server_5qfwr3.stop] INFO: Process created, PID: 26386
2020-01-06 08:22:20.662 LOG <sanity> [http_web_server_5qfwr3.stop] INFO: Shutting down file server. pid = 26339
2020-01-06 08:22:21.292 LOG <sanity> [http_web_server_5qfwr3.stop] INFO: Deleting file server root directory (/tmp/cloudify-hello-world.12774)
2020-01-06 08:22:21.292 LOG <sanity> [http_web_server_5qfwr3.stop] INFO: Execution done (PID=26386, return_code=0): /tmp/JLV2R/stop.sh
2020-01-06 08:22:21.859 CFY <sanity> [http_web_server_5qfwr3.stop] Task succeeded 'script_runner.tasks.run'
2020-01-06 08:22:22.475 CFY <sanity> [http_web_server_5qfwr3] Deleting node
2020-01-06 08:22:23.091 CFY <sanity> [vm_ufmykr] Stopping node
2020-01-06 08:22:23.635 CFY <sanity> [vm_ufmykr] Stopping agent
2020-01-06 08:22:23.635 CFY <sanity> [vm_ufmykr.stop] Sending task 'cloudify_agent.installer.operations.stop'
2020-01-06 08:22:23.635 CFY <sanity> [vm_ufmykr.stop] Task started 'cloudify_agent.installer.operations.stop'
2020-01-06 08:22:24.552 LOG <sanity> [vm_ufmykr.stop] INFO: Stopping Agent vm_ufmykr
2020-01-06 08:22:25.571 LOG <sanity> [vm_ufmykr.stop] INFO: Stopping...
2020-01-06 08:22:26.251 LOG <sanity> [vm_ufmykr.stop] INFO: Stopping daemon with command: sudo systemctl stop cloudify-worker-vm_ufmykr
2020-01-06 08:22:26.251 LOG <sanity> [vm_ufmykr.stop] INFO: Successfully stopped daemon: vm_ufmykr
2020-01-06 08:22:26.832 CFY <sanity> [vm_ufmykr.stop] Task succeeded 'cloudify_agent.installer.operations.stop'
2020-01-06 08:22:26.832 CFY <sanity> [vm_ufmykr] Deleting agent
2020-01-06 08:22:27.524 CFY <sanity> [vm_ufmykr.delete] Sending task 'cloudify_agent.installer.operations.delete'
2020-01-06 08:22:27.524 CFY <sanity> [vm_ufmykr.delete] Task started 'cloudify_agent.installer.operations.delete'
2020-01-06 08:22:28.680 LOG <sanity> [vm_ufmykr.delete] INFO: Deleting Agent vm_ufmykr
2020-01-06 08:22:33.780 LOG <sanity> [vm_ufmykr.delete] INFO: 16:22:32 [INFO] [cloudify.utils.is_agent_alive] No ping response from vm_ufmykr: No response received for task 71cc48a3235843499a743f6c6e9661bc
2020-01-06 08:22:33.100 LOG <sanity> [vm_ufmykr.delete] INFO: Deleting...
2020-01-06 08:22:33.780 LOG <sanity> [vm_ufmykr.delete] INFO: Successfully deleted daemon: vm_ufmykr
2020-01-06 08:22:34.314 CFY <sanity> [vm_ufmykr.delete] Task succeeded 'cloudify_agent.installer.operations.delete'
2020-01-06 08:22:34.930 CFY <sanity> [vm_ufmykr] Deleting node
2020-01-06 08:22:35.546 CFY <sanity> 'uninstall' workflow execution succeeded
Finished executing workflow uninstall on deployment sanity
* Run 'cfy events list -e 0fb7c5d2-2bb5-4b4e-8f07-eeac612bdebb' to retrieve the execution's events/logs
Trying to delete deployment sanity...
Deployment deleted
Deleting blueprint sanity...
Blueprint deleted
2020-01-06 16:22:44,897 - [SANITY] - NOTICE - Sanity completed successfully
2020-01-06 16:22:44,897 - [MAIN] - NOTICE - Installation finished successfully!
2020-01-06 16:22:44,970 - [MAIN] - NOTICE - Manager is up at http://192.168.254.118
2020-01-06 16:22:44,970 - [GLOBALS] - WARNING - Admin password: password
2020-01-06 16:22:44,970 - [MAIN] - NOTICE - ##################################################
2020-01-06 16:22:44,970 - [MAIN] - NOTICE - To install the default plugins bundle run:
2020-01-06 16:22:44,970 - [MAIN] - NOTICE - 'cfy plugins bundle-upload'
2020-01-06 16:22:44,971 - [MAIN] - NOTICE - ##################################################
2020-01-06 16:22:44,971 - [MAIN] - NOTICE - Finished in 3 minutes and 42 seconds
2.4 验证
- cfy status
三:登录
3.1 关闭防火墙
systemctl disable firewalld
service firewalld stop
3.2 浏览器中输入http://192.168.254.111