mongodb charm does not deploy on Xenial

Bug #1575534 reported by Chris Glass
60
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Invalid
High
Mario Splivalo
mongodb (Juju Charms Collection)
Fix Released
High
Mario Splivalo

Bug Description

The mongodb charm (cs:trusty/mongodb) does not install successfully on xenial, since Xenial does not offer python2 out of the box and the charm logic is written in python 2 (relying on "/usr/bin/env python", and that fails on Xenial).

Related branches

Chris Glass (tribaal)
tags: added: kanban-cross-team
description: updated
tags: added: canonical-bootstack
tags: removed: kanban-cross-team
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
assignee: nobody → Antonio Rosales (arosales)
Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

I have tested deploying cs:trusty/mongodb on xenial machine (I first juju deployed cs:xenial/ubuntu, branched cs:trusty/mongodb locally, and then deployed branched charm from 'local' repository). It works fine (haven't run into dependencies issue) unless you want replicaset to be formed. That fails, due to this bug: http://pad.lv/1513094

I am working on a fix for that.

Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → In Progress
importance: Undecided → High
assignee: Antonio Rosales (arosales) → Mario Splivalo (mariosplivalo)
Matt Rae (mattrae)
tags: added: cpec
Revision history for this message
Xav Paice (xavpaice) wrote :

Additional comment here for things that don't just work in Xenial - the nrpe check (hooks/hooks.py, line 1426) hardcodes the check command as check_cmd='check_upstart_job mongodb',

check_upstart_job, of course, doesn't work in Xenial because it's systemd.

Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

Hi, Xav.

Yup, unfortunately this is true. I'll be removing the current check for upstart job and add mongo nrpe check which will work on both init/upstart and systemd systems.

Changed in mongodb (Juju Charms Collection):
assignee: nobody → Mario Splivalo (mariosplivalo)
status: New → In Progress
Changed in mongodb (Juju Charms Collection):
importance: Undecided → High
Ryan Beisner (1chb1n)
tags: added: uosci
Ryan Beisner (1chb1n)
tags: added: arm64 ppc64el s390x
Changed in mongodb (Juju Charms Collection):
status: In Progress → Fix Committed
Changed in mongodb (Juju Charms Collection):
status: Fix Committed → Fix Released
Changed in ubuntu-z-systems:
status: In Progress → Invalid
Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

MongoDB is not available on s390x from the archives, additional PPA needs to be enabled.
The bug tracking that fix is here: https://bugs.launchpad.net/mongodb-charm/+bug/1678183

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.