Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Proposing Lean OpenWhisk (#3886)" #4161

Merged
merged 1 commit into from
Dec 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,6 @@ This is usually not necessary, however in case you want to uninstall all prereqs
ansible-playbook -i environments/<environment> prereq.yml -e mode=clean
```

### Lean Setup
To have a lean setup (no Kafka, Zookeeper and no Invokers as separate entities):

At [Deploying Using CouchDB](ansible/README.md#deploying-using-cloudant) step, replace:
```
ansible-playbook -i environments/<environment> openwhisk.yml
```
by:
```
ansible-playbook -i environments/<environment> openwhisk-lean.yml
```

### Troubleshooting
Some of the more common problems and their solution are listed here.
Expand Down
39 changes: 0 additions & 39 deletions ansible/controller-lean.yml

This file was deleted.

12 changes: 0 additions & 12 deletions ansible/openwhisk-lean.yml

This file was deleted.

43 changes: 18 additions & 25 deletions ansible/roles/controller/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@

- import_tasks: docker_login.yml

- name: get controller name, index and image name
- name: get controller name and index
set_fact:
controller_name: "{{ name_prefix ~ host_group.index(inventory_hostname) }}"
controller_index:
"{{ (controller_index_base|int) + host_group.index(inventory_hostname) }}"
image_name: "{{ image_name | default('controller') }}"

- name: pull the {{ image_name }}:{{ docker.image.tag }} image of controller
shell: "docker pull {{docker_registry}}{{ docker.image.prefix }}/{{image_name}}:{{docker.image.tag}}"
- name: "pull the {{ docker.image.tag }} image of controller"
shell: "docker pull {{docker_registry}}{{ docker.image.prefix }}/controller:{{docker.image.tag}}"
when: docker_registry != ""
register: result
until: (result.rc == 0)
Expand Down Expand Up @@ -277,32 +276,26 @@
controller_volumes: "{{ controller_volumes|default({}) + [coverage_logs_dir+'/controller:/coverage'] }}"
when: coverage_enabled

- name: populate controller docker container parameters
set_fact:
controller_container_params:
name: "{{ controller_name }}"
image: "{{docker_registry~docker.image.prefix}}/{{ image_name }}:{{ 'cov' if (coverage_enabled) else docker.image.tag }}"
state: started
recreate: true
restart_policy: "{{ docker.restart.policy }}"
hostname: "{{ controller_name }}"
command:
/bin/sh -c
"exec /init.sh {{ controller_index }}
>> /logs/{{ controller_name }}_logs.log 2>&1"

- name: include plugins
include_tasks: "{{ item }}.yml"
with_items: "{{ controller_plugins | default([]) }}"

- name: (re)start controller
vars:
params:
env: "{{ env }}"
volumes: "{{ controller_volumes }}"
ports: "{{ ports_to_expose }}"

docker_container: "{{ controller_container_params | combine(params) }}"
docker_container:
name: "{{ controller_name }}"
image:
"{{docker_registry~docker.image.prefix}}/controller:{{ 'cov' if (coverage_enabled) else docker.image.tag }}"
state: started
recreate: true
restart_policy: "{{ docker.restart.policy }}"
hostname: "{{ controller_name }}"
env: "{{ env }}"
volumes: "{{ controller_volumes }}"
ports: "{{ ports_to_expose }}"
command:
/bin/sh -c
"exec /init.sh {{ controller_index }}
>> /logs/{{ controller_name }}_logs.log 2>&1"

- name: wait until the Controller in this host is up and running
uri:
Expand Down
56 changes: 0 additions & 56 deletions ansible/roles/controller/tasks/lean.yml

This file was deleted.

2 changes: 0 additions & 2 deletions ansible/roles/invoker/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@
volumes: "{{ volumes }}"
ports: "{{ ports_to_expose }}"
command: /bin/sh -c "exec /init.sh --id {{ invoker_index }} --uniqueName {{ invoker_index }} >> /logs/{{ invoker_name }}_logs.log 2>&1"
when: lean is undefined

- name: wait until Invoker is up and running
uri:
Expand All @@ -321,4 +320,3 @@
until: result.status == 200
retries: 12
delay: 5
when: lean is undefined
4 changes: 0 additions & 4 deletions ansible/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,3 @@
- name: generate invoker certificates
when: invoker.protocol == 'https'
local_action: shell "{{ playbook_dir }}/files/genssl.sh" "{{ invoker.ssl.cn }}" "server" "{{ playbook_dir }}/roles/invoker/files" {{ invoker.ssl.keystore.password }} {{ invoker.ssl.keyPrefix }} "generateKey"

- name: generate lean controller plugin invoker certificates
when: invoker.protocol == 'https'
local_action: shell "{{ playbook_dir }}/files/genssl.sh" "{{ invoker.ssl.cn }}" "server" "{{ playbook_dir }}/files" {{ invoker.ssl.keystore.password }} {{ invoker.ssl.keyPrefix }} "generateKey"

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion core/controller/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ dependencies {
compile 'com.lightbend.akka.discovery:akka-discovery-kubernetes-api_2.12:0.11.0'
compile 'com.lightbend.akka.discovery:akka-discovery-marathon-api_2.12:0.11.0'
compile project(':common:scala')
compile project(':core:invoker')
scoverage gradle.scoverage.deps
}

Expand Down
Loading