The openvpn-as charm needs to be ported to ppc64el

Bug #1387872 reported by Matt Bruzek
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openvpn-as (Juju Charms Collection)
New
Low
Unassigned

Bug Description

I tried the openvpn-as charm on power hardware and the install hook failed. According to the log OpenVPN is not built on the ppc64el architecture.

2014-10-30 20:56:26 INFO install Reading package lists...
2014-10-30 20:56:27 INFO install Selecting previously unselected package charm-helper-sh.
2014-10-30 20:56:27 INFO install (Reading database ... 25834 files and directories currently installed.)
2014-10-30 20:56:27 INFO install Preparing to unpack .../charm-helper-sh_0.3+bzr179-3~quantal1_all.deb ...
2014-10-30 20:56:27 INFO install Unpacking charm-helper-sh (0.3+bzr179-3~quantal1) ...
2014-10-30 20:56:27 INFO install Setting up charm-helper-sh (0.3+bzr179-3~quantal1) ...
2014-10-30 20:56:27 INFO juju-log Downloading OpenVPN-AS installer
2014-10-30 20:56:40 INFO juju-log Installing via dpkg
2014-10-30 20:56:40 INFO install dpkg: error processing archive /tmp/ch-downloads.kzaj3V/openvpnas_2.0.3-1+ubuntu12_amd64.deb (--install):
2014-10-30 20:56:40 INFO install package architecture (amd64) does not match system (ppc64el)
2014-10-30 20:56:40 INFO install Errors were encountered while processing:
2014-10-30 20:56:40 INFO install /tmp/ch-downloads.kzaj3V/openvpnas_2.0.3-1+ubuntu12_amd64.deb
2014-10-30 20:56:41 INFO juju-log Performing initial configuration
2014-10-30 20:56:41 INFO install /var/lib/juju/agents/unit-openvpn-as-0/charm/hooks/install: line 27: /usr/local/openvpn_as/bin/ovpn-init: No such file or directory
2014-10-30 20:56:41 INFO juju-log Restarting OpenVPN service
2014-10-30 20:56:41 INFO install openvpnas: unrecognized service
2014-10-30 20:56:41 INFO install openvpnas: unrecognized service
2014-10-30 20:56:41 INFO install openvpnas: unrecognized service
2014-10-30 20:56:41 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1

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

There seems to be a Trusty charm for this:
https://jujucharms.com/u/ibm-demo/openvpn-as/trusty/0

But attempts to test it out fail:
u0016001@sys-72647:~$ sudo juju deploy openvpn-as
ERROR charm not found: cs:trusty/openvpn-as

Notes sent to Canonical.

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

@Johnny,

https://jujucharms.com/u/ibm-demo/openvpn-as/trusty/0 is not a recommended charm, but a personal name space charm. In this case openVPN sits in the ibm-demo namespace in a Trusty branch.

The syntax to deploy a username space charm is:
juju deploy cs:~<user-name>/<series>/<charm-name>

To deploy the openvpn-as charm you would execute the following command:
juju deploy cs:~ibm-demo/trusty/ openvpn-as

One other note. You may have noticed the following charms:
https://jujucharms.com/openvpn-as/precise/6
https://jujucharms.com/openvpn/precise/2

and tried to deploy these but get a "charm not found." The most likely reason is that your Juju environment is set to a Trusty series, and these charms are Precise. This is important for Power8LE users to take not of as Power8LE on Ubuntu is only supported on Trusty and greater.

Thanks for taking a look at this bug, and please feel free to comment here if you have any other questions or ideas you would like to discuss on a fix for this issue.

-thanks,
Antonio

Revision history for this message
Breno Leitão (breno-leitao) wrote :

Openvpn is already built for ppc64el in Ubuntu 15.04

$ apt-cache madison openvpn
   openvpn | 2.3.2-9ubuntu2 | ftp://software.linux.ibm.com/pub/ubuntu-ppc64el-repository/ vivid/main ppc64el Packages
   openvpn | 2.3.2-9ubuntu2 | ftp://software.linux.ibm.com/pub/ubuntu-ppc64el-repository/ vivid/main Sources

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

Took a fresh Ubuntu 14.04 install. This time, new for me, the environment was dual. I was surprised to see a notation that it was one friendly to both precise and trusty. New juju binary?

u0016001@sys-72822:~$ juju bootstrap
uploading tools for series [precise trusty]
Logging to /home/u0016001/.juju/local/cloud-init-output.log on remote host
Bootstrapping Juju machine agent
Starting Juju machine agent (juju-agent-u0016001-local)
u0016001@sys-72822:~$ juju deploy wordpress
Added charm "cs:trusty/wordpress-2" to the environment.
u0016001@sys-72822:~$ juju deploy openvpn-as
Added charm "cs:precise/openvpn-as-6" to the environment.
u0016001@sys-72822:~$ juju status
environment: local
machines:
  "0":
    agent-state: started
    agent-version: 1.20.11.1
    dns-name: localhost
    instance-id: localhost
    series: trusty
    state-server-member-status: has-vote
  "1":
    instance-id: pending
    series: trusty
  "2":
    instance-id: pending
    series: precise
services:
  openvpn-as:
    charm: cs:precise/openvpn-as-6
    exposed: false
    units:
      openvpn-as/0:
        agent-state: pending
        machine: "2"
  wordpress:
    charm: cs:trusty/wordpress-2
    exposed: false
    relations:
      loadbalancer:
      - wordpress
    units:
      wordpress/0:
        agent-state: pending
        machine: "1"

So the facts are:

1) it installs the precise openvpn-as charm onto a trusty machine
2) that is not an officially supported configuration for Power8 LE
3) there is a demo version of this charm, written for trusty, that someone has to do work to officially make it a trusty branch in the charm store.

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

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

Work needed to be done for enablment on 14.04 ppc64el:
- Confirm Openvpn built for ppc64el in Ubuntu 15.04 woOpenvpn is already built for ppc64el in Ubuntu 15.04

rks on Trusty 14.04
- Port the precise version of this charm to TOpenvpn is already built for ppc64el in Ubuntu 15.04

rusty
- Propose the Trusty version of this charm for recommended status.

If there is any folks interested in enabling ppc64el Trusty version of this charm please feel free to comment here so we can collaborate on a charm.

-thanks,
Antonio

Changed in openvpn-as (Juju Charms Collection):
importance: Undecided → Low
Revision history for this message
Antonio Rosales (arosales) wrote :

*** Correction ***

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

Work needed to be done for enablment on 14.04 ppc64el:
- Confirm Openvpn built for ppc64el in Ubuntu 15.04 works on Trusty 14.04
- Port the precise version of this charm to Trusty
- Propose the Trusty version of this charm for recommended status.

If there is any folks interested in enabling ppc64el Trusty version of this charm please feel free to comment here so we can collaborate on a charm.

-thanks,
Antonio

Revision history for this message
Bala Inamadugu (inamad) wrote :

Hi, This is Bala from IBM.

I could not migrate the Openvpn-as to Trusty as there is no installer available for ppc64lel. But I could migrate Openvpn to Trusty on ppc64el. The charm works well.

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.