creating lxc containers on arm devices fails

Bug #1703612 reported by Martin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Wishlist
Unassigned

Bug Description

I am setting up openstack-ansible on a heterogeneous cluster consisting of an x86 control node and arm compute nodes. For services (e.g. a repo service) to also run on the arm nodes containers need to be created on the arm nodes.

Encountered failure:
Container creation of openstack-ansible fails with the following error during TASK [lxc_hosts : Create base container]:
fatal: [odroid]: FAILED! => {"changed": false, "command": "/usr/bin/lxc-create --name LXC_NAME --quiet --template download --bdev dir -- --dist ubuntu --release xenial --arch --force-cache --server images.linuxcontainers.org --variant default \n --keyserver hkp://p80.pool.sks-keyservers.net:80", "err": "", "failed": true, "msg": "Failed executing lxc-create.", "rc": 1}

Reason for failure:
lxc-create cannot resolve the template argument arch=''.

Suggested fix:
Add an architecture mapping for arm:
 lxc_architecture_mapping:
      x86_64: amd64
      ppc64le: ppc64el
      armv7l: armhf

This mapping update needs (at least) to be applied to:
- ansible/roles/lxc_hosts/defaults/main.yml
- ansible/roles/lxc_container_create/defaults/main.yml

Please note that the above list may not be complete. I chose to redefine the mentioned variable in user_variables which allowed successful container creation on the arm host.

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → Jean-Philippe Evrard (jean-philippe-evrard)
tags: added: low-hanging-fruit
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-lxc_container_create (master)

Fix proposed to branch: master
Review: https://review.openstack.org/496337

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-lxc_hosts (master)

Fix proposed to branch: master
Review: https://review.openstack.org/496339

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-lxc_hosts (master)

Reviewed: https://review.openstack.org/496339
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-lxc_hosts/commit/?id=9aad71a02b75b73b836d9146891e1a0955833426
Submitter: Jenkins
Branch: master

commit 9aad71a02b75b73b836d9146891e1a0955833426
Author: Jean-Philippe Evrard <email address hidden>
Date: Tue Aug 22 17:46:38 2017 +0000

    Add ARM node support

    ARM nodes will need an updated lxc_architecture_mapping.

    Change-Id: I8b60fd74bc8831c3e707a32cb01146484c9a8dcc
    Partial-Bug: #1703612

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-lxc_container_create (master)

Reviewed: https://review.openstack.org/496337
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-lxc_container_create/commit/?id=c2244e88fb32a99b12c19c7c9dc8128e52f6ee7b
Submitter: Jenkins
Branch: master

commit c2244e88fb32a99b12c19c7c9dc8128e52f6ee7b
Author: Jean-Philippe Evrard <email address hidden>
Date: Tue Aug 22 17:41:30 2017 +0000

    Add ARM node support

    ARM nodes will need an updated lxc_architecture_mapping.

    Change-Id: I1026450df76ae98ecfd35ad6bcfd15db05ca6c6e
    Partial-Bug: #1703612

Changed in openstack-ansible:
status: In Progress → Fix Released
assignee: Jean-Philippe Evrard (jean-philippe-evrard) → nobody
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.