Merge lp:~verterok/canonical-identity-provider/bionic-support into lp:~ubuntuone-pqm-team/canonical-identity-provider/charm

Proposed by Guillermo Gonzalez
Status: Rejected
Rejected by: Guillermo Gonzalez
Proposed branch: lp:~verterok/canonical-identity-provider/bionic-support
Merge into: lp:~ubuntuone-pqm-team/canonical-identity-provider/charm
Diff against target: 89 lines (+8/-10)
5 files modified
metadata.yaml (+1/-0)
playbook.yaml (+3/-4)
roles/directories-and-permissions/tasks/main.yaml (+1/-3)
roles/nrpe-external-master/handlers/main.yml (+1/-1)
roles/nrpe-external-master/tasks/main.yaml (+2/-2)
To merge this branch: bzr merge lp:~verterok/canonical-identity-provider/bionic-support
Reviewer Review Type Date Requested Status
Maximiliano Bertacchini Approve
Review via email: mp+406191@code.launchpad.net

Commit message

Add bionic support: fix playbook and update series in metadata.yaml

To post a comment you must log in.
Revision history for this message
Maximiliano Bertacchini (maxiberta) wrote :

+1

review: Approve
Revision history for this message
Guillermo Gonzalez (verterok) wrote :

So, I went ahead and used this patch in my scratch1 deployment, of course it was not enough to get it working.

Bionic ships with Ansible 2.5, and obvously it breaks a couple of things that works on Xenial. The problem is that the fixes/ported tasks are not compatible with the ansible version in Xenial...

So, we need to do a forced upgrade to bionic...which is not trivial given this is not a switch-deploy, etc.

something to discuss with management.

98. By Guillermo Gonzalez

fix roles and playbook to work on ansible 2.5 (bionic version)

99. By Guillermo Gonzalez

fix directories-and-permissions role

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

pushed all the changes to make it work on bionic, but also dependencies need to be updated.
will put this on the shelve and continue with the PS5 porting

Unmerged revisions

99. By Guillermo Gonzalez

fix directories-and-permissions role

98. By Guillermo Gonzalez

fix roles and playbook to work on ansible 2.5 (bionic version)

97. By Guillermo Gonzalez

fix playbook to work on bionic, and add it to the list of series

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'metadata.yaml'
2--- metadata.yaml 2019-08-15 18:48:30 +0000
3+++ metadata.yaml 2021-07-26 19:20:02 +0000
4@@ -3,6 +3,7 @@
5 maintainer: Simon Davy <simon.davy@canonical.com>
6 series:
7 - xenial
8+ - bionic
9 description: ""
10 categories:
11 - authentication
12
13=== modified file 'playbook.yaml'
14--- playbook.yaml 2021-06-23 14:38:23 +0000
15+++ playbook.yaml 2021-07-26 19:20:02 +0000
16@@ -119,8 +119,7 @@
17 - upgrade-charm
18 pip:
19 executable: pip2
20- chdir: "{{ charm_dir }}"
21- name: lib/virtualenv-tools
22+ name: "{{ charm_dir }}/lib/virtualenv-tools"
23 extra_args: "--upgrade --no-index"
24
25 - name: check postfix relayhost
26@@ -296,7 +295,7 @@
27 relation-set -r {{ item.__relid__ }}
28 hostname={{ local_unit.split('/')[0] }}
29 port={{ port }}
30- with_items: relations.website
31+ loop: "{{ relations.website|flatten(levels=1) }}"
32
33 - name: write conn-check config
34 tags:
35@@ -311,7 +310,7 @@
36 environment:
37 PYTHONPATH: ".:lib:{{ conf_dir }}"
38 DJANGO_SETTINGS_MODULE: "{{ DJANGO_SETTINGS_MODULE }}"
39- with_items: relations['conn-check']
40+ loop: "{{ relations['conn-check']|flatten(levels=1) }}"
41 when: build_label != "" and payload.stat.exists
42
43 - name: Write rsyslog logrotate configuration
44
45=== modified file 'roles/directories-and-permissions/tasks/main.yaml'
46--- roles/directories-and-permissions/tasks/main.yaml 2019-04-18 20:09:21 +0000
47+++ roles/directories-and-permissions/tasks/main.yaml 2021-07-26 19:20:02 +0000
48@@ -16,9 +16,7 @@
49 - upgrade-charm
50 - config-changed
51 command: mkdir -p {{ item }}
52- with_flattened:
53- - readonly_dirs
54- - writable_dirs
55+ loop: "{{ readonly_dirs|zip(writable_dirs)|list }}"
56
57 - name: Force permissions
58 tags:
59
60=== modified file 'roles/nrpe-external-master/handlers/main.yml'
61--- roles/nrpe-external-master/handlers/main.yml 2014-08-19 16:36:07 +0000
62+++ roles/nrpe-external-master/handlers/main.yml 2021-07-26 19:20:02 +0000
63@@ -3,4 +3,4 @@
64 relation-set -r {{ item.__relid__ }}
65 timestamp={{ ansible_date_time.iso8601_micro }}
66 when: relations['nrpe-external-master']
67- with_items: relations['nrpe-external-master']
68+ loop: "{{ relations['nrpe-external-master']|flatten(levels=1) }}"
69
70=== modified file 'roles/nrpe-external-master/tasks/main.yaml'
71--- roles/nrpe-external-master/tasks/main.yaml 2015-07-22 10:24:10 +0000
72+++ roles/nrpe-external-master/tasks/main.yaml 2021-07-26 19:20:02 +0000
73@@ -9,7 +9,7 @@
74 group: nagios
75 mode: 0644
76 when: relations['nrpe-external-master']
77- with_items: checks
78+ loop: "{{ checks|flatten(levels=1) }}"
79 notify:
80 - nrpe config changes
81
82@@ -25,6 +25,6 @@
83 group: nagios
84 mode: 0644
85 when: relations['nrpe-external-master']
86- with_items: checks
87+ loop: "{{ checks|flatten(levels=1) }}"
88 notify:
89 - nrpe config changes

Subscribers

People subscribed via source and target branches