Code Monkey home page Code Monkey logo

Comments (4)

gmolto avatar gmolto commented on May 23, 2024

This does not appear to be related to Ubuntu 16.04 and the lack of Python. I submitted the enclosed template at the bottom, where ami-5ac2cd4d refers to an Ubuntu 14.04 LTS with Python 2.7.6 and the contextualization does not even start. Files are copied to /tmp/.im but no attempt to contextualization appears to occur.

tosca_definitions_version: tosca_simple_yaml_1_0

imports:

description: TOSCA example for specifying a Mesos Cluster

topology_template:

node_templates:

mesos_master:
  type: tosca.nodes.indigo.MesosMaster
  properties:
    marathon_password: test_pass
    chronos_password: test_pass
  requirements:
    - host: mesos_master_server

mesos_slave:
  type: tosca.nodes.indigo.MesosSlave
  properties:
    master_ips: { get_attribute: [ mesos_master_server, public_address ] }
  requirements:
    - host: mesos_slave_server
    
mesos_load_balancer:
  type: tosca.nodes.indigo.MesosLoadBalancer
  properties:
    master_ips: { get_attribute: [ mesos_master_server, public_address ] }
  requirements:
    - host: mesos_lb_server        

mesos_master_server:
  type: tosca.nodes.indigo.Compute
  capabilities:
    endpoint:
      properties:
        network_name: vpc-6366c106.subnet-de5252f6.PUBLIC 
    scalable:
      properties:
        count: 1
    host:
      properties:
        num_cpus: 2
        mem_size: 2 GB
    os:
      properties:
        type: linux
        distribution: ubuntu
        version: 14.04
        image: aws://us-east-1/ami-5ac2cd4d
        credential:
           user: ubuntu
           token: anything


mesos_slave_server:
  type: tosca.nodes.indigo.Compute
  capabilities:
    endpoint:
      properties:
        network_name: vpc-6366c106.subnet-de5252f6.PUBLIC 
    scalable:
      properties:
        count: 1
    host:
      properties:
        num_cpus: 1
        mem_size: 1 GB
    os:
      properties:
        type: linux
        distribution: ubuntu
        version: 14.04
        image: aws://us-east-1/ami-5ac2cd4d
        credential:
           user: ubuntu
           token: anything
        
mesos_lb_server:
  type: tosca.nodes.indigo.Compute
  capabilities:
    endpoint:
      properties:
        network_name: vpc-6366c106.subnet-de5252f6.PUBLIC 
    scalable:
      properties:
        count: 1
    host:
      properties:
        num_cpus: 1
        mem_size: 1 GB
    os:
      properties:
        type: linux
        distribution: ubuntu
        version: 14.04
        image: aws://us-east-1/ami-5ac2cd4d
        credential:
           user: ubuntu
           token: anything

outputs:
mesos_lb_ips:
value: { get_attribute: [ mesos_lb_server, public_address ] }
mesos_master_ips:
value: { get_attribute: [ mesos_master_server, public_address ] }

from im.

gmolto avatar gmolto commented on May 23, 2024

For the sake of completeness, the same behaviour is obtained with simpler templates, different AMIs and deploying on EC2-Classic.

Enclosed a sample template.

tosca_definitions_version: tosca_simple_yaml_1_0

imports:

description: >
TOSCA test for launching the Wine Cellar Application (PHP Version)
(https://github.com/ccoenraets/wine-cellar-php) using the simple
in memory DB with a single web server node.

topology_template:

inputs:
download_url:
type: string
default: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/webapps/cellar-webapp-mem.tgz

node_templates:
apache:
type: tosca.nodes.WebServer.Apache
requirements:
- host: web_server
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/webapps/cellar-mem.yml
inputs:
download_url: { get_input: download_url }

web_server:
  type: tosca.nodes.indigo.Compute
  capabilities:
    endpoint:
      properties:
        network_name: PUBLIC
        ports:
          http_port:
            protocol: tcp
            source: 80
          https_port:
            protocol: tcp
            source: 443
    # Host container properties
    host:
     properties:
       num_cpus: 1
       mem_size: 500 MB
    # Guest Operating System properties
    os:
      properties:
        # host Operating System image properties
        type: linux
        distribution: ubuntu
        version: 14.04
        image: aws://us-east-1/ami-a95044be
        credential:
           user: ubuntu
           token: anything

from im.

gmolto avatar gmolto commented on May 23, 2024

After rebooting the IM server, the contextualization starts, Ansible gets installed BUT, apparently, the contextualization stops. No other packages are installed and an empty log is obtained when querying:
http://servproject.i3m.upv.es:8811/infrastructures/{{IM_INF_ID}}/vms/0/contmsg

I tried with the very same template in my early post. Let's discuss this next week.

from im.

gmolto avatar gmolto commented on May 23, 2024

This is currently working so I am closing this issue.

from im.

Related Issues (20)

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.