Giter Site home page Giter Site logo

cloudify-community / blueprint-examples Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 60.0 2.09 MB

This is where you can find officially supported Cloudify blueprints that work with the latest versions of Cloudify. Please make sure to use the blueprints from this repo when you are evaluating Cloudify.

Home Page: https://cloudify.co/

HTML 4.51% Python 66.66% Shell 15.58% HCL 2.95% JavaScript 8.12% Batchfile 0.06% Jinja 1.33% Dockerfile 0.78%
automation blueprints cloudify orchestration

blueprint-examples's People

Contributors

01000101 avatar 0lvin avatar acritelli avatar adarshaked avatar ahmadiesa-abu avatar alexmolev avatar arikyakir avatar bartoszkosciug avatar cloudsurgeon avatar earthmant avatar ig21 avatar ilanad avatar isaac-s avatar jrzeszutek avatar kaplanyaniv avatar michaelshn avatar mryznarcloudify avatar nelynehemia avatar nfisdev avatar szpotona avatar yoniitzhak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

blueprint-examples's Issues

missing mc-localstack.yaml

https://repository.cloudifysource.org/cloudify/blueprints/6.3/other_services.json

The above URL is used by the cloudify manager widget in order to provide the ready-to-go blueprints. The last section of the json file refers to the Multi-Cloud-LocalStack-Application-Server. In the json we refer to the mc-localstac.yaml blueprints which is not present in the repository: https://github.com/cloudify-community/blueprint-examples/tree/master/getting-started

        {
		"id": "Multi-Cloud-LocalStack-Application-Server",
		"name": "Multi-Cloud-LocalStack-Application-Server-Setup",
		"description": "Multi-Cloud examples - Setup a LocalStack service as an Infrastructure-platform abstracted service",
		"html_url": "https://github.com/cloudify-community/blueprint-examples/tree/master/getting-started",
		"zip_url": "https://github.com/cloudify-community/blueprint-examples/releases/latest/download/getting-started.zip",
		"readme_url": "https://raw.githubusercontent.com/cloudify-community/blueprint-examples/master/getting-started/README.md",
		"main_blueprint": "mc-localstack.yaml",
		"image_url": "https://repository.cloudifysource.org/cloudify/blueprints/6.2/images/LocalStack.png",
		"created_at": "2022-01-20T19:32:13Z",
		"updated_at": "2022-01-20T14:25:37Z"
	}

Invalid value for port 0 on example kubernetes openstack

Hello,

I was getting 400 client request errors when running the default example for kubernetes.

When I switched the "port_range_min" value from 0 to 1, I didn't get the error.

blueprint-examples/kubernetes/openstack.yaml

  security-group:
    type: cloudify.nodes.openstack.SecurityGroup
    properties:
      client_config: { get_input: client_config_dict }
      resource_config:
        name: kubernetes-security-group
        description: 'Kubernetes Openstack Group'
      security_group_rules:
        - direction: ingress
          protocol: tcp
          port_range_min: 0
          port_range_max: 65535
        - direction: ingress
          protocol: udp
          port_range_min: 0
          port_range_max: 65535
        - direction: ingress
          protocol: icmp
          port_range_min: null
          port_range_max: null

This was the error I was getting

BadRequestException: BadRequestException: 400: Client Error for url: https://10.200.0.5:9696/v2.0/security-group-rules, Invalid value for port 0
--------------------------------
Traceback (most recent call last):
  File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 813, in main
    payload = handler.handle()
  File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 461, in handle
    result = self._run_operation_func(ctx, kwargs)
  File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 519, in _run_operation_func
    return self.func(*self.args, **kwargs)
  File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-3.2.9/lib/python2.7/site-packages/openstack_plugin/decorators.py", line 147, in wrapper
    func(**kwargs_config)
  File "/opt/mgmtworker/env/plugins/default_tenant/cloudify-openstack-plugin-3.2.9/lib/python2.7/site-packages/openstack_plugin/decorators.py", line 120, in wrapper_inner
    causes=[exception_to_error_cause(errors, tb)])
NonRecoverableError: Failure while trying to run operation:cloudify.interfaces.lifecycle.configure: BadRequestException: 400

I am still working on this, so I will update if I find there is something wrong with this. Do we need port 0 for anything? Is this problem just me?

Kubernetes Ansible Error: OperationRetry: One or more hosts are unreachable.

Hello,

I am trying to use the Kubernetes example blueprint to set up a cluster on OpenStack.

Cloudify successfully creates all of the nodes, but always fails once it gets to the Ansible script. The exact error I get is "OperationRetry: One or more hosts are unreachable."

I have tried to manually SSH into the two instances (kube-master, kube-node) but I am unable to
Ive ran it several times and some times I get connection refused and an Nmap scan shows that there are no open ports on the host, other times I get "permission denied" and an Nmap scan shows that port 22 is open as it should be.

I am using CentOS7 for the images. I do notice that the instances don't have a key pair in OpenStack, is it supposed to work that way?

At what point in the process is the SSH keys installed from the deployment inputs? Are they installed through the OpenStack API or through another process?

I am using the OpenStack v3 plugin

Thank you so much for your help,
Ive been working on this for a while.

This is my input file:

username: { get_secret: openstack_username }
password: { get_secret: openstack_password }
auth_url: { get_secret: auth_url }
kubespray_ansible_playbook_path: kubespray/cluster.yml
project_name:  { get_secret: openstack_project_name }
agent_user: centos
region_name: { get_secret: openstack_region }
external_network_id: External
public_subnet_cidr: 10.10.1.0/24
image_id: CentOS7
kubespray_dns_mode: kubedns
client_config_dict: {insecure: true, project_domain_name: { get_secret: project_domain_name }, user_domain_name: { get_secret: user_domain_name }, username: { get_secret: openstack_username }, project_name: { get_secret: openstack_project_name }, password: { get_secret: openstack_password }, auth_url: { get_secret: auth_url }, region_name: { get_secret: openstack_region }}
kubespray_ansible_ssh_common_args: -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 -o UserKnownHostsFile=/dev/null
kubernetes_helm_ansible_playbook_path: ansible-helm/install.yml
kubespray_ansible_playbook_path_scale: kubespray/scale.yml
kubespray_kube_network_plugin: flannel
kubespray_ansible_playbook_path_removal: kubespray/remove-node.yml
flavor_id: mm1.small

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.