maniacs-setup fails with MAAS 3.3.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maas-cert-server |
New
|
High
|
Rod Smith |
Bug Description
The maniacs-setup script is failing when run against MAAS 3.3.0. The script crashes, with no error output, after displaying the text "Initializing rack controller." If re-run, the script will run to completion; however, logging into the MAAS server shows no subnets defined.
The cause appears to be a change to the MAAS CLI API. Currently, maniacs-setup's setup_ip_ranges() function includes a number of calls to set up IP address ranges, beginning with:
echo "* Initializing rack controller"
maas admin ipranges create type=dynamic start_ip=
That second line, if entered manually (with suitable variable substitution), produces an error message:
$ maas admin ipranges create type=dynamic start_ip=
{"subnet": ["This field is required."]}
Obviously, maniacs-setup must be updated to cope with this change to MAAS. It's possible that some other lines in this same block of code will need changing, too.
Related branches
- Jeff Lane : Approve
-
Diff: 253 lines (+82/-46)2 files modifieddebian/changelog (+8/-0)
usr/sbin/maniacs-setup (+74/-46)
Changed in maas-cert-server: | |
importance: | Undecided → High |
assignee: | nobody → Rod Smith (rodsmith) |