Code review comment for lp:~thomnico/orange-box/newnet

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :

Test it on Ubuntu 14.04.2 X64 server + MAAS 1.8 and Ubuntu 14.04.2 X64 Desktop + MAAS 1.7, both are stop at:

+ run-one-until-success maas admin node-group-interface update 3b3deac8-ce39-4fb6-b0a2-74ab32474fce br0 ip_range_low=172.27.9.1 ip_range_high=172.27.9.254 static_ip_range_low=172.27.10.1 static_ip_range_high=172.27.10.254 management=2 broadcast_ip=172.27.11.255 router_ip=172.27.8.1
Not FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot FoundNot Found^Cdpkg: error processing package orange-box (--configure):
subprocess installed post-installation script was interrupted
E: Sub-process /usr/bin/dpkg exited unexpectedly
W: Operation was interrupted before it could finish

The problem seems of matching in "br0" and "eth1"

ubuntu@OrangeBox8:~$ sudo maas admin node-groups list
Success.
Machine-readable output follows:
[
    {
        "cluster_name": "Cluster master",
        "status": 1,
        "name": "maas",
        "uuid": "3b3deac8-ce39-4fb6-b0a2-74ab32474fce"
    }
]
ubuntu@OrangeBox8:~$ sudo maas admin node-group-interfaces list 3b3deac8-ce39-4fb6-b0a2-74ab32474fce
Success.
Machine-readable output follows:
[
    {
        "ip_range_high": null,
        "ip_range_low": null,
        "broadcast_ip": "172.27.255.255",
        "static_ip_range_low": null,
        "name": "eth1",
        "ip": "172.27.252.8",
        "subnet_mask": "255.255.252.0",
        "management": 0,
        "static_ip_range_high": null,
        "interface": "eth1"
    }
]

It cab update as below:

ubuntu@OrangeBox8:~$ sudo maas admin node-group-interface update 3b3deac8-ce39-4fb6-b0a2-74ab32474fce eth1 ip_range_low=172.27.9.1 ip_range_high=172.27.9.254 static_ip_range_low=172.27.10.1 static_ip_range_high=172.27.10.254 management=2 broadcast_ip=172.27.11.255 router_ip=172.27.8.1
{"ip_range_high": ["172.27.9.254 not in the 172.27.252.0/22 network"], "ip_range_low": ["172.27.9.1 not in the 172.27.252.0/22 network"], "broadcast_ip": ["172.27.11.255 not in the 172.27.252.0/22 network"], "static_ip_range_low": ["172.27.10.1 not in the 172.27.252.0/22 network"], "router_ip": ["172.27.8.1 not in the 172.27.252.0/22 network"], "static_ip_range_high": ["172.27.10.254 not in the 172.27.252.0/22 network"]}

The br0 interface seem correct, but I didn't command which created the interface listed by the command of '$ sudo maas admin node-group-interfaces list 3b3deac8-ce39-4fb6-b0a2-74ab32474fce'

« Back to merge proposal