Comments (4)
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:
- indigo_custom_types: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/custom_types.yaml
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.
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:
- indigo_custom_types: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/custom_types.yaml
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.
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.
This is currently working so I am closing this issue.
from im.
Related Issues (20)
- Uniform metadata in IM and Dashboard HOT 6
- Search VM Images in sites using name
- Enable to define dependencies in OSCAR conn
- Error deleting OST infras with dydns name
- Error with OpenSSL in contextualization
- Enable use STS security token in EC2 connector
- Enable to install ansible collections
- unable to deploy on OKD HOT 4
- Delete (but not destroy resources) of unused Infrastructures
- Enable to use wildcards in the instance type
- Rename ansible.modules to ansible.roles
- Enhance proxy host support in contextualization
- Unconfigured state in case of checking infra state during VMs creation HOT 1
- Enable set volumes in EC2 devices
- Error in OSCAR or Lambda cons with env variables with ":"
- OpenStack network list is not project restricted
- No error is returned if instance is not get in stop, start, reboot ops in EC2 conn HOT 1
- Enable to set root disk size in EC2, Azure and GCE conns
- Fix node_filter in TOSCA
- Error resizing VMs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from im.