juju-bootstrap with ppc64el cannot be registered in MAAS

Bug #1570218 reported by Nobuto Murata
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
maas-deployer
Fix Committed
High
Felipe Reyes

Bug Description

After this merge (http://bazaar.launchpad.net/~maas-deployers/maas-deployer/next/revision/65), maas-deployer expects ppc64el as ppc64 in the yaml. However registering juju-bootstrap into MAAS fails with:
"architecture": ["'ppc64/generic' is not a valid architecture. It should be one of: 'ppc64el/generic'."]

2016-04-13 17:51:22,310 DEBUG (_create_maas_nodes) Adding node juju-bootstrap ...
2016-04-13 17:51:22,310 DEBUG (execc) Executing: 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ubuntu@172.X.X.X maas maas nodes new autodetect_nodegroup='yes' name='juju-bootstrap' tags='bootstrap' hostname='juju-bootstrap' power_type='virsh' mac_addresses='52:54:00:04:2f:e5' power_parameters_power_address='qemu+ssh://maas-virsh@172.Y.Y.Y/system' architecture='ppc64' power_parameters_power_id='juju-bootstrap'' stdin='LC_ALL=C'
2016-04-13 17:51:23,287 ERROR (execc)
2016-04-13 17:51:23,290 ERROR (_maas_execute) Command 'ssh -i /home/ubuntu/.ssh/id_maas -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=quiet ubuntu@172.X.X.X maas maas nodes new autodetect_nodegroup='yes' name='juju-bootstrap' tags='bootstrap' hostname='juju-bootstrap' power_type='virsh' mac_addresses='52:54:00:04:2f:e5' power_parameters_power_address='qemu+ssh://maas-virsh@172.Y.Y.Y/system' architecture='ppc64' power_parameters_power_id='juju-bootstrap'' failed: rc='2' output=''
2016-04-13 17:51:23,290 WARNING (_create_maas_nodes) >> Failed to add node juju-bootstrap

Tags: sts

Related branches

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Indeed I think we want to explicitly call the arch ppc64el so it's not confusing.

Felipe Reyes (freyes)
Changed in maas-deployer:
importance: Undecided → High
assignee: nobody → Felipe Reyes (freyes)
Felipe Reyes (freyes)
tags: added: sts
Revision history for this message
Felipe Reyes (freyes) wrote :

@nobuto, I have a patch that should fix this, but I have no access to an environment for testing, could you try the package available at ppa:freyes/lp1570218 ?

Revision history for this message
Jason Furmanek (furmanek) wrote :

I tested Felipe's fix with both 'ppc64' and 'ppc64el' in the deployment yaml.
With 'ppc64el', the fix works and the juju-bootstrap VM is created correctly and added into MAAS correctly.
With 'ppc64', I see the warning and the comment about it being converted internally to 'ppc64el'. The VM gets created correctly in this case, but it is not added to MAAS correctly as it still tries to use 'ppc64' in the "maas nodes new" command.

Felipe Reyes (freyes)
Changed in maas-deployer:
status: New → In Progress
Revision history for this message
Jason Furmanek (furmanek) wrote :

Hi Felipe,

I updated to your latest maas-deployer

$ dpkg -s maas-deployer
Package: maas-deployer
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 233
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Version: 0.0.7-0ubuntu2+lp1570218.2
Depends: cloud-image-utils, kvm, python-bson, python-httplib2, python-jinja2, python-libvirt, python-lxml, python-maas-client, python-yaml, virtinst, python (>= 2.7), python (<< 2.8), python:any (>= 2.7.1-0ubuntu2)
Description: MAAS cluster deployment tool.
Homepage: https://launchpad.net/maas-deployer
Original-Maintainer: Edward Hope-Morley <email address hidden>

I'm getting:

$ maas-deployer -c deployment/maas/deployment-no-neutron.yaml --force
2016-08-08 11:34:36,279 ERROR Unable to find target: /usr/bin/maas-deployer

Which is different than before. Do I need a target specifier now?

Revision history for this message
Felipe Reyes (freyes) wrote :

Jason, I just pushed a newer version of the package in the ppa, it solves this problem, please let me know if it works as expected in your environment.

Revision history for this message
Jason Furmanek (furmanek) wrote :

This latest fix (0.0.7-0ubuntu2+lp1570218.3) does work now. Thanks!

Revision history for this message
Felipe Reyes (freyes) wrote :

Jason, Thanks for the confirmation

Felipe Reyes (freyes)
Changed in maas-deployer:
status: In Progress → Fix Committed
milestone: none → 0.0.8
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.