Below are general steps to deploy/un-deploy blueprints through Cloudify cli.
Note: This assume DCAE is already installed (with cloudify).
- Login to DCAE bootstrap container (alternatively you can install virtualenv on you local vm and proceed with steps below)
- Create a virtual python environment for yourself for running cfy
virtualenv <name>
source ./<name>/bin/activate
cd <name>
pip install cloudify==3.4.0
cfy init
cfy use -t <CloudifyServer FQDN/IP>
3. Copy the blueprint and inputs to your working directory
4. Validate the blueprint
cfy blueprints validate -p <blueprintfilename>
5. Install through cloudify
cfy install -p <blueprintfilename> -b <blueprint_id> -d <deployment_id> -i <input_file>
Example :
cfy install -p ves.yaml -b vescollector -d vescollector -i ves-ip.yaml
6. For undeploy, specify the deployment name to undeploy
cfy uninstall -d <deployment_id>
Example :
cfy uninstall -d vescollector -v
7. You can check the docker host to see more on the Application container/logs
8. After you are done, exit from the virtual environment
deactivate
2 Comments
Thamlur Raju
Hi Vijay Venkatesh Kumar,
What IP should i provide in this step, cfy use -t <CloudifyServer FQDN/IP>.Because i used public and private IP, but it is not connecting. i set-up the environment in the same tenant.
dcaegen2-dcae-cloudify-manager-59755d85cf-c24p9 1/1 Running 0 9d 10.42.95.127 onap-onap-oom-tm-k8s-03 <none>
(test) ubuntu@cloudify:~/test$ cfy use -t 10.42.95.127
('Connection aborted.', error(113, 'No route to host'))
Vijay Venkatesh Kumar
The instruction provided here was suitable for heat deployment setup. For connection to OOM/deployed Cloudify - pls refer to steps here - Cloudify Blueprint validation under OOM