Charm fails on charm helper PPA for phpmyadmin

Bug #1350023 reported by Jorge Castro
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phpmyadmin (Juju Charms Collection)
High
Unassigned

Bug Description

The install hook does:

# Install the totally awesome charm-helper-sh package
add-apt-repository ppa:juju/pkgs
apt-get update
apt-get install -y charm-helper-sh

This is wrong/deprecated, and also doesn't have ppc64le packages, so it fails. We need to remove this and modernize this charm.

Matt Bruzek (mbruzek)
tags: added: ppc64el
tags: removed: ppc64le
Revision history for this message
Thierry FAUCK (thierry-j) wrote :

To clarify, what it is done in current templates is :
     apt-get install -y python-pip
     pip install charmhelpers

Revision history for this message
Johnny Shieh (jshieh) wrote :

First, tried recreating what Thierry reported:
u0016001@sys-71474:~$ sudo apt-get install -y python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  avahi-daemon libavahi-core7 libdaemon0 libnss-mdns python-boto
  python-pyinotify python-simplestreams socat ubuntu-cloudimage-keyring uvtool
  uvtool-libvirt
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  python-colorama python-distlib python-html5lib
Suggested packages:
  python-genshi
Recommended packages:
  python-dev-all
The following NEW packages will be installed:
  python-colorama python-distlib python-html5lib python-pip
0 upgraded, 4 newly installed, 0 to remove and 21 not upgraded.

u0016001@sys-71474:~$ sudo pip install charmhelpers
Downloading/unpacking charmhelpers
  Downloading charmhelpers-0.2.3.tar.gz (47kB): 47kB downloaded
  Running setup.py (path:/tmp/pip_build_root/charmhelpers/setup.py) egg_info for package charmhelpers

Installing collected packages: charmhelpers
  Running setup.py install for charmhelpers
    changing mode of build/scripts-2.7/chlp from 644 to 755
    changing mode of build/scripts-2.7/charmsupport from 644 to 755
    changing mode of build/scripts-2.7/salt-call from 644 to 755

    changing mode of /usr/local/bin/charmsupport to 755
    changing mode of /usr/local/bin/salt-call to 755
    changing mode of /usr/local/bin/chlp to 755
Successfully installed charmhelpers
Cleaning up...

Then, tried recreating what Matt reported:
u0016001@sys-71474:~$ sudo add-apt-repository ppa:juju/pkgs

 More info: https://launchpad.net/~juju/+archive/ubuntu/pkgs
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp4e057i8h/secring.gpg' created
gpg: keyring `/tmp/tmp4e057i8h/pubring.gpg' created
gpg: requesting key C8068B11 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp4e057i8h/trustdb.gpg: trustdb created
gpg: key C8068B11: public key "Launchpad Ensemble PPA" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

u0016001@sys-71474:~$ sudo apt-get update
E: Malformed line 61 in source list /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
u0016001@sys-71474:~$ sudo apt-get install -y charm-helper-sh
Reading package lists... Error!
E: Malformed line 61 in source list /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
E: The package lists or status file could not be parsed or opened.

Will reload fresh system and see if charm can be installed on current version of Trusty.

Revision history for this message
Johnny Shieh (jshieh) wrote :

URL: https://jujucharms.com/get-started
Commands:

sudo add-apt-repository ppa:juju/stable

sudo apt-get update

sudo apt-get install juju-quickstart

juju-quickstart mediawiki-single

sudo apt-get install juju-local

juju bootstrap

Sanity check:
juju deploy wordpress

worked.

Unfortunately, this bug report doesn't directly report what charm was being tested when the error occurred.
Guessing that it might be phypadmin, I go to the charm details at:
https://jujucharms.com/phpmyadmin/precise/5

And see the following instructions:
juju deploy mysql
juju deploy phpmyadmin
juju add-relation phpmyadmin mysql

u0016001@sys-72647:~$ sudo juju deploy phpmyadmin
ERROR charm not found: cs:trusty/phpmyadmin

Hmmm, is the guess I made wrong?

Jorge, can you clarify what charm was failing when you opened this bug?

Re-ran the commands documented by Thierry and they ran fine, again.

Revision history for this message
Antonio Rosales (arosales) wrote :

We need to confirm charm helpers support power8le, Python on 14.04 should have no issues thus we may need investigate enabling the PPA to support Power8le.

Next action is for Canonical to confirm Power support for charm helpers and adjust if necessary.

-thanks,
Antonio

Changed in phpmyadmin (Juju Charms Collection):
importance: Undecided → High
Revision history for this message
Antonio Rosales (arosales) wrote :

Collaborating with IBM this is an interesting workload, but not a high priority atm.

If there are any folks interested in proposing this charm for Trusty please comment here.

-thanks,
Antonio

Changed in phpmyadmin (Juju Charms Collection):
importance: High → Low
Revision history for this message
Antonio Rosales (arosales) wrote :

Please disregard comment 3, it was meant for a different bug.

Changed in phpmyadmin (Juju Charms Collection):
importance: Low → High
Revision history for this message
Antonio Rosales (arosales) wrote :

Correction, please disregard comment #5, it was meant for a different bug.

summary: - Charm fails on charm helper PPA
+ Charm fails on charm helper PPA for phpmyadmin
Revision history for this message
Mahesh Waidande (mahesh-waidande1248) wrote :

I made couple of changes into hooks/install script to port ‘phpMyAdmin’ charm on Ubuntu trusty (ppc64le). I want to contribute these code changes back to launchpad community, though I have question regarding up stream my code changes to community, I want to know a procedure to submit code change ? Please guide me on this or point me to link which contain procedure to follow.

-Mahesh

Revision history for this message
Ventsislav (ventsislav-yotov) wrote :

I also got this problem and can not find fix for hours. Anyone manage to fix it ?

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

Other bug subscribers