Merge ~pjdc/discourse-charm/+git/discourse-charm:use-stable-discourse into discourse-charm:master

Proposed by Paul Collins
Status: Rejected
Rejected by: Paul Collins
Proposed branch: ~pjdc/discourse-charm/+git/discourse-charm:use-stable-discourse
Merge into: discourse-charm:master
Diff against target: 26 lines (+8/-0)
1 file modified
config.yaml (+8/-0)
Reviewer Review Type Date Requested Status
Discourse Charm Maintainers Pending
Review via email: mp+362059@code.launchpad.net

Commit message

config.yaml: deploy Discourse from the stable branch by default

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

a6bb0d2... by Paul Collins

config.yaml: add ruby-version and bump from the layer's default of 2.4.2 to 2.4.4

Discourse stable branch requires at least Ruby 2.4.4.

Revision history for this message
Tom Haddon (mthaddon) wrote :

I'm not sure if it's related to your change, but I see this on the discourse unit for a related CI job:

2019-01-22 04:32:12 INFO juju-log db:3: Invoking reactive handler: reactive/discourse.py:135:prepare_codebase
2019-01-22 04:32:13 INFO juju-log db:3: Ruby error: ['LoadError: cannot load such file -- /usr/share/rubygems-integration/all/specifications/exe/rake', " /usr/local/bin/rake:23:in `load'", " /usr/local/bin/rake:23:in `<top (required)>'"]
2019-01-22 04:32:13 ERROR juju.worker.uniter.operation runhook.go:132 hook "db-relation-changed" failed: exit status 1
2019-01-22 04:32:13 INFO juju.worker.uniter resolver.go:124 awaiting error resolution for "relation-changed" hook

Revision history for this message
Paul Collins (pjdc) wrote :

> I'm not sure if it's related to your change, but I see this on the discourse
> unit for a related CI job:
>
> 2019-01-22 04:32:12 INFO juju-log db:3: Invoking reactive handler:
> reactive/discourse.py:135:prepare_codebase
> 2019-01-22 04:32:13 INFO juju-log db:3: Ruby error: ['LoadError: cannot load
> such file -- /usr/share/rubygems-integration/all/specifications/exe/rake', "
> /usr/local/bin/rake:23:in `load'", " /usr/local/bin/rake:23:in `<top
> (required)>'"]
> 2019-01-22 04:32:13 ERROR juju.worker.uniter.operation runhook.go:132 hook
> "db-relation-changed" failed: exit status 1
> 2019-01-22 04:32:13 INFO juju.worker.uniter resolver.go:124 awaiting error
> resolution for "relation-changed" hook

It's looking like the charm just does not work properly right now! I'm investigating.

Revision history for this message
Paul Collins (pjdc) wrote :

Already merged via another MP - rejecting.

Unmerged commits

a6bb0d2... by Paul Collins

config.yaml: add ruby-version and bump from the layer's default of 2.4.2 to 2.4.4

Discourse stable branch requires at least Ruby 2.4.4.

3c37a66... by Paul Collins

config.yaml: deploy Discourse from the stable branch by default

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/config.yaml b/config.yaml
2index e5aefce..ae76780 100644
3--- a/config.yaml
4+++ b/config.yaml
5@@ -7,6 +7,10 @@ options:
6 type: string
7 default: "/srv/discourse/current"
8 description: "Path to the root of the ruby app."
9+ commit-or-branch:
10+ type: string
11+ default: "stable"
12+ description: "Branch to check out when deploying."
13 repo:
14 type: string
15 default: "https://github.com/discourse/discourse.git"
16@@ -19,6 +23,10 @@ options:
17 type: string
18 default: 'http://cache.ruby-lang.org/pub/ruby'
19 description: "Default mirror to pull Ruby from, choose one closest to your datacenter."
20+ ruby-version:
21+ type: string
22+ default: '2.4.4'
23+ description: "Default Ruby version to install. Choose a version sufficiently new for Discourse."
24 admin-users:
25 type: string
26 default: ''

Subscribers

People subscribed via source and target branches