CentOS boot-resource create fails

Asked by Erich

Asking this here before filing a bug report.

Fresh install Ubuntu 14.x LTS + MAAS 1.7.1 + dpkg of masa-image-builder

1. Created centos7 image for addition to Custom Images in MAAS.

2. run: maas ubuntu-maas boot-resources create -d name=centos/7 title="CentOS 7 Vanilla" architecture=amd64/generic content@=/home/erich/centos_amd64_generic_7

3. Get:
400 BAD REQUEST

         Connection: close
       Content-Type: application/json
               Date: Sun, 22 Mar 2015 20:25:11 GMT
             Server: Apache/2.4.7 (Ubuntu)
             Status: 400
  Transfer-Encoding: chunked
               Vary: Cookie
    X-Frame-Options: SAMEORIGIN

{"architecture": ["amd64/generic' is not a valid architecture. It should be one of: ''."]}

I'm at a loss. Is this error related to the 400 BAD REQUEST? Is there an issue with the final image? Is this a syntax issue in the parameters passed in the command? or has this uncovered a bug?

What am I missing here?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu maas Edit question
Assignee:
No assignee Edit question
Solved by:
Erich
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Have you tried with otherdistributions?

Have you tried with 32bit CentOS?

Revision history for this message
Erich (erich-ubunone) said :
#2

No.

Are you suggesting this is related to the maas-image-builder failing to build a 64 bit image correctly or needing to rule out some other issue that would be clarified by attempting a 32 image import?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Its worth testing them, just to see if it makes any difference. You will then have a better idea of what is causing the issue for you

Revision history for this message
Erich (erich-ubunone) said :
#4

Found the problem = poor documentation.

The original command:
maas ubuntu-maas boot-resources create -d name=centos/7 title="CentOS 7 Vanilla" architecture=amd64/generic content@=/home/erich/centos_amd64_generic_7

The item issue was name=centos/7 ... the required syntax is name=centos/centos70.

Found this buried in a bug report related to regex and the recent additional support for CentOS in 1.7.