Merge lp://staging/~thomnico/orange-box/newnet into lp://staging/orange-box
- newnet
- Merge into trunk
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~thomnico/orange-box/newnet |
Merge into: | lp://staging/orange-box |
Diff against target: |
1828 lines (+204/-672) 22 files modified
debian/changelog (+57/-11) debian/control (+6/-4) debian/install (+3/-0) debian/links (+1/-1) debian/postinst (+0/-310) debian/postrm (+0/-23) debian/preinst (+0/-136) debian/source/format (+1/-1) etc/apt/orange-box-mirror.list (+1/-1) usr/bin/orange-box-add-node (+7/-4) usr/bin/orange-box-add-physical-nodes (+7/-2) usr/bin/orange-box-add-virtual-nodes (+31/-12) usr/bin/orange-box-amt-monitor (+3/-1) usr/bin/orange-box-apm-power-fix (+0/-38) usr/bin/orange-box-bootstrap-juju (+5/-1) usr/bin/orange-box-create-package-mirror (+14/-1) usr/bin/orange-box-demo-cleanup (+3/-1) usr/bin/orange-box-hacks (+32/-0) usr/bin/orange-box-purge-everything (+1/-0) usr/bin/orange-box-run (+21/-18) usr/bin/orange-box-setup-nat (+0/-99) usr/bin/orange-box-status-all-nodes (+11/-8) |
To merge this branch: | bzr merge lp://staging/~thomnico/orange-box/newnet |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nicolas Thomas (community) | Needs Information | ||
Review via email: mp+261775@code.staging.launchpad.net |
Commit message
Description of the change
Tested version of the orange-box package to work with the new network setup.
Active review/test needed.
Nicolas Thomas (thomnico) wrote : | # |
Mao,
You network setup seems odd and not align with our rework doc.
Please purge Maas package reboot and restart if you can or send us your
network configuration.
Le dim. 14 juin 2015 07:00, Zhanglei Mao <email address hidden> a
écrit :
> 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-
> 3b3deac8-
> ip_range_
> static_
> router_
> 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@
> Success.
> Machine-readable output follows:
> [
> {
> "cluster_name": "Cluster master",
> "status": 1,
> "name": "maas",
> "uuid": "3b3deac8-
> }
> ]
> ubuntu@
> 3b3deac8-
> Success.
> Machine-readable output follows:
> [
> {
> "ip_range_high": null,
> "ip_range_low": null,
> "broadcast_ip": "172.27.255.255",
> "static_
> "name": "eth1",
> "ip": "172.27.252.8",
> "subnet_mask": "255.255.252.0",
> "management": 0,
> "static_
> "interface": "eth1"
> }
> ]
>
> It cab update as below:
>
> ubuntu@
> 3b3deac8-
> ip_range_
> static_
> router_
> {"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_
> network"], "router_ip": ["172.27.8.1 not in the 172.27.252.0/22
> network"], "static_
> 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-
> list 3b3deac8-
>
> --
> https:/
> You are the owner of lp:~thomnico/orange-box/newnet.
>
Zhanglei Mao (zhanglei-mao) wrote : | # |
Nicolas,
I agree. It should be caused by the problem of my network. Here is output
of ifconfig and brctl. The eth1 is my usb-lan-card port, eth0 is system
board lan-card port. I configured eth1 with 172.27.252.8 and was able to
reach internet via gateway of 172.27.252.1 before running #apt-get install
orange-box.
ubuntu@
br0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
inet addr:172.27.8.1 Bcast:172.27.11.255 Mask:255.255.252.0
inet6 addr: fe80::eea8:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:7671 (7.6 KB)
eth0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:8015 (8.0 KB)
eth1 Link encap:Ethernet HWaddr 00:24:9b:0e:1e:ad
inet addr:172.27.252.8 Bcast:172.
inet6 addr: fe80::224:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9734872 errors:0 dropped:0 overruns:0 frame:0
TX packets:5699043 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:14599384523 (14.5 GB) TX bytes:443971610 (443.9 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:107516 errors:0 dropped:0 overruns:0 frame:0
TX packets:107516 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:27072199 (27.0 MB) TX bytes:27072199 (27.0 MB)
virbr0 Link encap:Ethernet HWaddr da:cf:d4:c0:b0:b7
inet addr:192.168.122.1 Bcast:192.
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ubuntu@
ubuntu@
bridge name bridge id STP enabled interfaces
br0 8000.eca86bfe1822 no eth0
virbr0 8000.000000000000 yes
thanks,
Mao
On Sun, Jun 14, 2015 at 5:15 PM, Nicolas Thomas <
<email address hidden>> wrote:
> Mao,
>
> You network setup seems odd and not align with our rework doc.
>
> Please purge Maas package reboot and restart if you can or send us your
> network configuration.
>
> Le dim. 14 juin 2015 07:00, Zhanglei Mao <email address hidden> a
> écrit :
>
> > 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-o...
Nicolas Thomas (thomnico) wrote : | # |
Hello Mao,
With a laptop keyboard (not a phone) this time:
Your network setup should show em1 and not eth0 .. (might not be related).
Can you run :
sudo biosdevname -i eth1
And rerun the install package to confirm ??
My Box seems totally dead now (node0) so difficult to confirm
On 14/06/2015 12:54, Zhanglei Mao wrote:
> Nicolas,
>
> I agree. It should be caused by the problem of my network. Here is output
> of ifconfig and brctl. The eth1 is my usb-lan-card port, eth0 is system
> board lan-card port. I configured eth1 with 172.27.252.8 and was able to
> reach internet via gateway of 172.27.252.1 before running #apt-get install
> orange-box.
>
> ubuntu@
> br0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
> inet addr:172.27.8.1 Bcast:172.27.11.255 Mask:255.255.252.0
> inet6 addr: fe80::eea8:
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:7671 (7.6 KB)
>
> eth0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 B) TX bytes:8015 (8.0 KB)
> Interrupt:20 Memory:
>
> eth1 Link encap:Ethernet HWaddr 00:24:9b:0e:1e:ad
> inet addr:172.27.252.8 Bcast:172.
> inet6 addr: fe80::224:
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:9734872 errors:0 dropped:0 overruns:0 frame:0
> TX packets:5699043 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:14599384523 (14.5 GB) TX bytes:443971610 (443.9 MB)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:65536 Metric:1
> RX packets:107516 errors:0 dropped:0 overruns:0 frame:0
> TX packets:107516 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:27072199 (27.0 MB) TX bytes:27072199 (27.0 MB)
>
> virbr0 Link encap:Ethernet HWaddr da:cf:d4:c0:b0:b7
> inet addr:192.168.122.1 Bcast:192.
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
> ubuntu@
>
> ubuntu@
> bridge name bridge id STP enabled interfaces
> br0 8000.eca86bfe1822 no eth0
> virbr0 8000.000000000000 yes
>
> thanks,
> Mao
>
> On Sun, Jun 14, 2015 at 5:15 P...
- 540. By Nicolas Thomas
-
* Add biosdevname cmd in scripts
* Add a check/heal for VMs powermanagement ssh keys
*
Nicolas Thomas (thomnico) wrote : | # |
Mao / all
I upload a 2.9 version to experimental ppa that should fix the pb and
the VM power issues we might face time to time..
Will restart a review on that one
On Mon, Jun 15, 2015 at 9:12 AM, Nicolas Thomas
<email address hidden> wrote:
> Hello Mao,
>
> With a laptop keyboard (not a phone) this time:
>
> Your network setup should show em1 and not eth0 .. (might not be related).
>
> Can you run :
> sudo biosdevname -i eth1
>
> And rerun the install package to confirm ??
>
> My Box seems totally dead now (node0) so difficult to confirm
>
>
> On 14/06/2015 12:54, Zhanglei Mao wrote:
>> Nicolas,
>>
>> I agree. It should be caused by the problem of my network. Here is output
>> of ifconfig and brctl. The eth1 is my usb-lan-card port, eth0 is system
>> board lan-card port. I configured eth1 with 172.27.252.8 and was able to
>> reach internet via gateway of 172.27.252.1 before running #apt-get install
>> orange-box.
>>
>> ubuntu@
>> br0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
>> inet addr:172.27.8.1 Bcast:172.27.11.255 Mask:255.255.252.0
>> inet6 addr: fe80::eea8:
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0
>> RX bytes:0 (0.0 B) TX bytes:7671 (7.6 KB)
>>
>> eth0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:0 (0.0 B) TX bytes:8015 (8.0 KB)
>> Interrupt:20 Memory:
>>
>> eth1 Link encap:Ethernet HWaddr 00:24:9b:0e:1e:ad
>> inet addr:172.27.252.8 Bcast:172.
>> inet6 addr: fe80::224:
>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> RX packets:9734872 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:5699043 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:1000
>> RX bytes:14599384523 (14.5 GB) TX bytes:443971610 (443.9 MB)
>>
>> lo Link encap:Local Loopback
>> inet addr:127.0.0.1 Mask:255.0.0.0
>> inet6 addr: ::1/128 Scope:Host
>> UP LOOPBACK RUNNING MTU:65536 Metric:1
>> RX packets:107516 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:107516 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:0
>> RX bytes:27072199 (27.0 MB) TX bytes:27072199 (27.0 MB)
>>
>> virbr0 Link encap:Ethernet HWaddr da:cf:d4:c0:b0:b7
>> inet addr:192.168.122.1 Bcast:192.
>> UP BROADCAST MULTICAST MTU:1500 Metric:1
>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>> collisions:0 txqueuelen:...
- 541. By Nicolas Thomas
-
releasing 2.8~ppa1
- 542. By Nicolas Thomas
-
releasing 2.9~ppa1
- 543. By Nicolas Thomas
-
Update source/format so zbr-buildpackages works
make ssh works correctly in add-virutal-nodesmodified:
debian/source/ format
usr/bin/orange- box-add- virtual- nodes - 544. By Nicolas Thomas
-
releasing 2.9~ppa2
- 545. By Nicolas Thomas
-
updates on ssh maas to ubuntu automation
modified:
debian/changelog
usr/bin/orange- box-add- virtual- nodes
Zhanglei Mao (zhanglei-mao) wrote : | # |
Nicolas,
No sure I have used the new version you had uploaded. I test it again, it
stop at same step of "Not Found". I check the GUI, both the eth1 network
and eth1 interface were created. I delete it from the GUI and rerun the
'dpkg --configure -a' again, still get "Not Found"
In the MAAS document, this interface seems was created automatically. So it
should related to my network. Here is my rough steps for test:
1)To setup 14.04.2 X86 Desktop without network from usb stick. The hostname
set to OrangeBox8 and region is to Hongkong.
2)After install finish, I mount /srv and change locale and set eth1 static
ip via network manager.
3)install biosnamedev and reboot. The eth0 will be em1 now.
4)Add rep and install ornage-box as below:
sudo apt-add-repository ppa:maas-
sudo add-apt-repository ppa:orange-
sudo apt-add-repository ppa:juju/stable
sudo apt-get update
sudo apt-get -V install orange-box | tee /var/log/
thanks,
Mao
On Mon, Jun 15, 2015 at 5:00 PM, Nicolas Thomas <
<email address hidden>> wrote:
> Mao / all
>
> I upload a 2.9 version to experimental ppa that should fix the pb and
> the VM power issues we might face time to time..
>
> Will restart a review on that one
>
>
> On Mon, Jun 15, 2015 at 9:12 AM, Nicolas Thomas
> <email address hidden> wrote:
> > Hello Mao,
> >
> > With a laptop keyboard (not a phone) this time:
> >
> > Your network setup should show em1 and not eth0 .. (might not be
> related).
> >
> > Can you run :
> > sudo biosdevname -i eth1
> >
> > And rerun the install package to confirm ??
> >
> > My Box seems totally dead now (node0) so difficult to confirm
> >
> >
> > On 14/06/2015 12:54, Zhanglei Mao wrote:
> >> Nicolas,
> >>
> >> I agree. It should be caused by the problem of my network. Here is
> output
> >> of ifconfig and brctl. The eth1 is my usb-lan-card port, eth0 is system
> >> board lan-card port. I configured eth1 with 172.27.252.8 and was able to
> >> reach internet via gateway of 172.27.252.1 before running #apt-get
> install
> >> orange-box.
> >>
> >> ubuntu@
> >> br0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
> >> inet addr:172.27.8.1 Bcast:172.27.11.255 Mask:255.255.252.0
> >> inet6 addr: fe80::eea8:
> >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >> TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
> >> collisions:0 txqueuelen:0
> >> RX bytes:0 (0.0 B) TX bytes:7671 (7.6 KB)
> >>
> >> eth0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
> >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >> TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
> >> collisions:0 txqueuelen:1000
> >> RX bytes:0 (0.0 B) TX bytes:8015 (8.0 KB)
> >> Interrupt:20 Memory:
> >>
> >> eth1 Link encap:Ethernet HWaddr 00:24:9b:0e:1e:ad
> >> inet addr:172.27.252.8 Bcast:172.
> Mask:255.
Nicolas Thomas (thomnico) wrote : | # |
You should not have eth0 !
Please purge maas, do an update and reinstall to confirm .
On Mon, Jun 15, 2015 at 3:54 PM, Zhanglei Mao
<email address hidden> wrote:
> Nicolas,
>
> No sure I have used the new version you had uploaded. I test it again, it
> stop at same step of "Not Found". I check the GUI, both the eth1 network
> and eth1 interface were created. I delete it from the GUI and rerun the
> 'dpkg --configure -a' again, still get "Not Found"
>
> In the MAAS document, this interface seems was created automatically. So it
> should related to my network. Here is my rough steps for test:
> 1)To setup 14.04.2 X86 Desktop without network from usb stick. The hostname
> set to OrangeBox8 and region is to Hongkong.
> 2)After install finish, I mount /srv and change locale and set eth1 static
> ip via network manager.
> 3)install biosnamedev and reboot. The eth0 will be em1 now.
> 4)Add rep and install ornage-box as below:
> sudo apt-add-repository ppa:maas-
> sudo add-apt-repository ppa:orange-
> sudo apt-add-repository ppa:juju/stable
> sudo apt-get update
> sudo apt-get -V install orange-box | tee /var/log/
>
>
> thanks,
> Mao
>
> On Mon, Jun 15, 2015 at 5:00 PM, Nicolas Thomas <
> <email address hidden>> wrote:
>
>> Mao / all
>>
>> I upload a 2.9 version to experimental ppa that should fix the pb and
>> the VM power issues we might face time to time..
>>
>> Will restart a review on that one
>>
>>
>> On Mon, Jun 15, 2015 at 9:12 AM, Nicolas Thomas
>> <email address hidden> wrote:
>> > Hello Mao,
>> >
>> > With a laptop keyboard (not a phone) this time:
>> >
>> > Your network setup should show em1 and not eth0 .. (might not be
>> related).
>> >
>> > Can you run :
>> > sudo biosdevname -i eth1
>> >
>> > And rerun the install package to confirm ??
>> >
>> > My Box seems totally dead now (node0) so difficult to confirm
>> >
>> >
>> > On 14/06/2015 12:54, Zhanglei Mao wrote:
>> >> Nicolas,
>> >>
>> >> I agree. It should be caused by the problem of my network. Here is
>> output
>> >> of ifconfig and brctl. The eth1 is my usb-lan-card port, eth0 is system
>> >> board lan-card port. I configured eth1 with 172.27.252.8 and was able to
>> >> reach internet via gateway of 172.27.252.1 before running #apt-get
>> install
>> >> orange-box.
>> >>
>> >> ubuntu@
>> >> br0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
>> >> inet addr:172.27.8.1 Bcast:172.27.11.255 Mask:255.255.252.0
>> >> inet6 addr: fe80::eea8:
>> >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> >> TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
>> >> collisions:0 txqueuelen:0
>> >> RX bytes:0 (0.0 B) TX bytes:7671 (7.6 KB)
>> >>
>> >> eth0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
>> >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>> >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>> >> TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
>> >> collisions:0 tx...
Zhanglei Mao (zhanglei-mao) wrote : | # |
Yes, no eth0 anymore. I gonna test it again Tomorrow.
2015年6月15日 下午10:09于 "Nicolas Thomas" <email address hidden>写道:
> You should not have eth0 !
>
> Please purge maas, do an update and reinstall to confirm .
>
> On Mon, Jun 15, 2015 at 3:54 PM, Zhanglei Mao
> <email address hidden> wrote:
> > Nicolas,
> >
> > No sure I have used the new version you had uploaded. I test it again, it
> > stop at same step of "Not Found". I check the GUI, both the eth1 network
> > and eth1 interface were created. I delete it from the GUI and rerun the
> > 'dpkg --configure -a' again, still get "Not Found"
> >
> > In the MAAS document, this interface seems was created automatically. So
> it
> > should related to my network. Here is my rough steps for test:
> > 1)To setup 14.04.2 X86 Desktop without network from usb stick. The
> hostname
> > set to OrangeBox8 and region is to Hongkong.
> > 2)After install finish, I mount /srv and change locale and set eth1
> static
> > ip via network manager.
> > 3)install biosnamedev and reboot. The eth0 will be em1 now.
> > 4)Add rep and install ornage-box as below:
> > sudo apt-add-repository ppa:maas-
> > sudo add-apt-repository ppa:orange-
> > sudo apt-add-repository ppa:juju/stable
> > sudo apt-get update
> > sudo apt-get -V install orange-box | tee /var/log/
> >
> >
> > thanks,
> > Mao
> >
> > On Mon, Jun 15, 2015 at 5:00 PM, Nicolas Thomas <
> > <email address hidden>> wrote:
> >
> >> Mao / all
> >>
> >> I upload a 2.9 version to experimental ppa that should fix the pb and
> >> the VM power issues we might face time to time..
> >>
> >> Will restart a review on that one
> >>
> >>
> >> On Mon, Jun 15, 2015 at 9:12 AM, Nicolas Thomas
> >> <email address hidden> wrote:
> >> > Hello Mao,
> >> >
> >> > With a laptop keyboard (not a phone) this time:
> >> >
> >> > Your network setup should show em1 and not eth0 .. (might not be
> >> related).
> >> >
> >> > Can you run :
> >> > sudo biosdevname -i eth1
> >> >
> >> > And rerun the install package to confirm ??
> >> >
> >> > My Box seems totally dead now (node0) so difficult to confirm
> >> >
> >> >
> >> > On 14/06/2015 12:54, Zhanglei Mao wrote:
> >> >> Nicolas,
> >> >>
> >> >> I agree. It should be caused by the problem of my network. Here is
> >> output
> >> >> of ifconfig and brctl. The eth1 is my usb-lan-card port, eth0 is
> system
> >> >> board lan-card port. I configured eth1 with 172.27.252.8 and was
> able to
> >> >> reach internet via gateway of 172.27.252.1 before running #apt-get
> >> install
> >> >> orange-box.
> >> >>
> >> >> ubuntu@
> >> >> br0 Link encap:Ethernet HWaddr ec:a8:6b:fe:18:22
> >> >> inet addr:172.27.8.1 Bcast:172.27.11.255
> Mask:255.255.252.0
> >> >> inet6 addr: fe80::eea8:
> >> >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> >> >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >> >> TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
> >> >> collisions:0 txqueuelen:0
> >> >> RX bytes:0 (0.0 B) TX bytes:7671 (7.6 KB)
> >> >>
> ...
Zhanglei Mao (zhanglei-mao) wrote : | # |
Nicolas,
I though the right logic might as:
1) preinst script of the orange-box -- adjust network according
2) maas packages install --auto create mas-cluster-
3) postinst script of the orange-box
But it was actually happened as:
1)maas pacakge install ( in case of deps by ornage-box)
2)preinst script of the orange-box
3)postinst script of the orange-box
So this is cause that unnecessary interfaces was added by maas during
install. There seems no easy method to let network setup scripts runs
before the maas. So we may just delete all interface added by maas
automatically and create br0 interface inside the orange-box postinst
scripts.
thanks,
Mao
On Mon, Jun 15, 2015 at 10:21 PM, Zhanglei Mao <email address hidden>
wrote:
> Yes, no eth0 anymore. I gonna test it again Tomorrow.
> 2015年6月15日 下午10:09于 "Nicolas Thomas" <email address hidden>写道:
>
> > You should not have eth0 !
> >
> > Please purge maas, do an update and reinstall to confirm .
> >
> > On Mon, Jun 15, 2015 at 3:54 PM, Zhanglei Mao
> > <email address hidden> wrote:
> > > Nicolas,
> > >
> > > No sure I have used the new version you had uploaded. I test it again,
> it
> > > stop at same step of "Not Found". I check the GUI, both the eth1
> network
> > > and eth1 interface were created. I delete it from the GUI and rerun the
> > > 'dpkg --configure -a' again, still get "Not Found"
> > >
> > > In the MAAS document, this interface seems was created automatically.
> So
> > it
> > > should related to my network. Here is my rough steps for test:
> > > 1)To setup 14.04.2 X86 Desktop without network from usb stick. The
> > hostname
> > > set to OrangeBox8 and region is to Hongkong.
> > > 2)After install finish, I mount /srv and change locale and set eth1
> > static
> > > ip via network manager.
> > > 3)install biosnamedev and reboot. The eth0 will be em1 now.
> > > 4)Add rep and install ornage-box as below:
> > > sudo apt-add-repository ppa:maas-
> > > sudo add-apt-repository ppa:orange-
> > > sudo apt-add-repository ppa:juju/stable
> > > sudo apt-get update
> > > sudo apt-get -V install orange-box | tee /var/log/
> > >
> > >
> > > thanks,
> > > Mao
> > >
> > > On Mon, Jun 15, 2015 at 5:00 PM, Nicolas Thomas <
> > > <email address hidden>> wrote:
> > >
> > >> Mao / all
> > >>
> > >> I upload a 2.9 version to experimental ppa that should fix the pb and
> > >> the VM power issues we might face time to time..
> > >>
> > >> Will restart a review on that one
> > >>
> > >>
> > >> On Mon, Jun 15, 2015 at 9:12 AM, Nicolas Thomas
> > >> <email address hidden> wrote:
> > >> > Hello Mao,
> > >> >
> > >> > With a laptop keyboard (not a phone) this time:
> > >> >
> > >> > Your network setup should show em1 and not eth0 .. (might not be
> > >> related).
> > >> >
> > >> > Can you run :
> > >> > sudo biosdevname -i eth1
> > >> >
> > >> > And rerun the install package to confirm ??
> > >> >
> > >> > My Box seems totally dead now (node0) so difficult to confirm
> > >> >
> > >> >
> > >> > On 14/06/2015 12:54, Zhanglei Mao wrote:
> > >> >> Nicolas,
> > >> >>
> > >> >> I agree. It should be caused by the prob...
Nicolas Thomas (thomnico) wrote : | # |
That was not the intent to change behavior yet .. intent is to have a
common baseline for enhancing as a team.
Procedure is : orange-
If you don't like the sequence propose a branch :)
On Wed, Jun 17, 2015 at 4:12 PM, Zhanglei Mao
<email address hidden> wrote:
> Nicolas,
>
> I though the right logic might as:
> 1) preinst script of the orange-box -- adjust network according
> 2) maas packages install --auto create mas-cluster-
> 3) postinst script of the orange-box
>
> But it was actually happened as:
> 1)maas pacakge install ( in case of deps by ornage-box)
> 2)preinst script of the orange-box
> 3)postinst script of the orange-box
>
> So this is cause that unnecessary interfaces was added by maas during
> install. There seems no easy method to let network setup scripts runs
> before the maas. So we may just delete all interface added by maas
> automatically and create br0 interface inside the orange-box postinst
> scripts.
>
> thanks,
> Mao
>
>
> On Mon, Jun 15, 2015 at 10:21 PM, Zhanglei Mao <email address hidden>
> wrote:
>
>> Yes, no eth0 anymore. I gonna test it again Tomorrow.
>> 2015年6月15日 下午10:09于 "Nicolas Thomas" <email address hidden>写道:
>>
>> > You should not have eth0 !
>> >
>> > Please purge maas, do an update and reinstall to confirm .
>> >
>> > On Mon, Jun 15, 2015 at 3:54 PM, Zhanglei Mao
>> > <email address hidden> wrote:
>> > > Nicolas,
>> > >
>> > > No sure I have used the new version you had uploaded. I test it again,
>> it
>> > > stop at same step of "Not Found". I check the GUI, both the eth1
>> network
>> > > and eth1 interface were created. I delete it from the GUI and rerun the
>> > > 'dpkg --configure -a' again, still get "Not Found"
>> > >
>> > > In the MAAS document, this interface seems was created automatically.
>> So
>> > it
>> > > should related to my network. Here is my rough steps for test:
>> > > 1)To setup 14.04.2 X86 Desktop without network from usb stick. The
>> > hostname
>> > > set to OrangeBox8 and region is to Hongkong.
>> > > 2)After install finish, I mount /srv and change locale and set eth1
>> > static
>> > > ip via network manager.
>> > > 3)install biosnamedev and reboot. The eth0 will be em1 now.
>> > > 4)Add rep and install ornage-box as below:
>> > > sudo apt-add-repository ppa:maas-
>> > > sudo add-apt-repository ppa:orange-
>> > > sudo apt-add-repository ppa:juju/stable
>> > > sudo apt-get update
>> > > sudo apt-get -V install orange-box | tee /var/log/
>> > >
>> > >
>> > > thanks,
>> > > Mao
>> > >
>> > > On Mon, Jun 15, 2015 at 5:00 PM, Nicolas Thomas <
>> > > <email address hidden>> wrote:
>> > >
>> > >> Mao / all
>> > >>
>> > >> I upload a 2.9 version to experimental ppa that should fix the pb and
>> > >> the VM power issues we might face time to time..
>> > >>
>> > >> Will restart a review on that one
>> > >>
>> > >>
>> > >> On Mon, Jun 15, 2015 at 9:12 AM, Nicolas Thomas
>> > >> <email address hidden> wrote:
>> > >> > Hello Mao,
>> > >> >
>> > >> > With a laptop keyboard (not a phone) this time:
>> > >> >
>> > >> > Your ne...
Zhanglei Mao (zhanglei-mao) wrote : | # |
Procedure is : orange-
orange-box
Yes, it works at last. But I have to say it is not easy.
The rough steps are:
sudo apt-get purge maas-cluster-
sudo apt-get purge maas-region-
sudo apt-get purge maas-proxy
sudo apt-get purge maas orange-box
sudo apt-get autoremove
#reboot
sudo apt-get install
during the process you may need to:
sudo rm /etc/apache2/
/etc/apache2/
sudo cat id_rsa.pub >> /home/ubuntu/
by not exist of this file)
sudo apachectl start (if apache restart failed)
I didn't verify above and may test it again after back from trip and share
it next week.
thanks,
Mao
On Wed, Jun 17, 2015 at 11:51 PM, Nicolas Thomas <
<email address hidden>> wrote:
> That was not the intent to change behavior yet .. intent is to have a
> common baseline for enhancing as a team.
>
> Procedure is : orange-
> orange-box
>
> If you don't like the sequence propose a branch :)
>
>
> On Wed, Jun 17, 2015 at 4:12 PM, Zhanglei Mao
> <email address hidden> wrote:
> > Nicolas,
> >
> > I though the right logic might as:
> > 1) preinst script of the orange-box -- adjust network according
> > 2) maas packages install --auto create mas-cluster-
> > 3) postinst script of the orange-box
> >
> > But it was actually happened as:
> > 1)maas pacakge install ( in case of deps by ornage-box)
> > 2)preinst script of the orange-box
> > 3)postinst script of the orange-box
> >
> > So this is cause that unnecessary interfaces was added by maas during
> > install. There seems no easy method to let network setup scripts runs
> > before the maas. So we may just delete all interface added by maas
> > automatically and create br0 interface inside the orange-box postinst
> > scripts.
> >
> > thanks,
> > Mao
> >
> >
> > On Mon, Jun 15, 2015 at 10:21 PM, Zhanglei Mao <
> <email address hidden>>
> > wrote:
> >
> >> Yes, no eth0 anymore. I gonna test it again Tomorrow.
> >> 2015年6月15日 下午10:09于 "Nicolas Thomas" <email address hidden>写道:
> >>
> >> > You should not have eth0 !
> >> >
> >> > Please purge maas, do an update and reinstall to confirm .
> >> >
> >> > On Mon, Jun 15, 2015 at 3:54 PM, Zhanglei Mao
> >> > <email address hidden> wrote:
> >> > > Nicolas,
> >> > >
> >> > > No sure I have used the new version you had uploaded. I test it
> again,
> >> it
> >> > > stop at same step of "Not Found". I check the GUI, both the eth1
> >> network
> >> > > and eth1 interface were created. I delete it from the GUI and rerun
> the
> >> > > 'dpkg --configure -a' again, still get "Not Found"
> >> > >
> >> > > In the MAAS document, this interface seems was created
> automatically.
> >> So
> >> > it
> >> > > should related to my network. Here is my rough steps for test:
> >> > > 1)To setup 14.04.2 X86 Desktop without network from usb stick. The
> >> > hostname
> >> > > set to OrangeBox8 and region is to Hongkong.
> >> > > 2)After install finish, I mount /srv and change locale and set eth1
> >> > stat...
Nicolas Thomas (thomnico) wrote : | # |
Mao
: orange-
I disagree that reordering will change anything.. If maas is there and set
up differently than what orange box expect we must stop and raise an issue
... I do not want to end up with unnoticed change of this nature...
On a side note purging Maas is painfull due to Maas packaging and we should
log bugs on those
Le 18 juin 2015 07:00, "Zhanglei Mao" <email address hidden> a écrit :
> Procedure is : orange-
> orange-box
>
> Yes, it works at last. But I have to say it is not easy.
>
> The rough steps are:
> sudo apt-get purge maas-cluster-
> sudo apt-get purge maas-region-
> sudo apt-get purge maas-proxy
> sudo apt-get purge maas orange-box
> sudo apt-get autoremove
> #reboot
> sudo apt-get install
>
> during the process you may need to:
> sudo rm /etc/apache2/
> /etc/apache2/
> sudo cat id_rsa.pub >> /home/ubuntu/
> by not exist of this file)
> sudo apachectl start (if apache restart failed)
>
> I didn't verify above and may test it again after back from trip and share
> it next week.
>
> thanks,
> Mao
>
>
> On Wed, Jun 17, 2015 at 11:51 PM, Nicolas Thomas <
> <email address hidden>> wrote:
>
> > That was not the intent to change behavior yet .. intent is to have a
> > common baseline for enhancing as a team.
> >
> > Procedure is : orange-
> > orange-box
> >
> > If you don't like the sequence propose a branch :)
> >
> >
> > On Wed, Jun 17, 2015 at 4:12 PM, Zhanglei Mao
> > <email address hidden> wrote:
> > > Nicolas,
> > >
> > > I though the right logic might as:
> > > 1) preinst script of the orange-box -- adjust network according
> > > 2) maas packages install --auto create mas-cluster-
> > > 3) postinst script of the orange-box
> > >
> > > But it was actually happened as:
> > > 1)maas pacakge install ( in case of deps by ornage-box)
> > > 2)preinst script of the orange-box
> > > 3)postinst script of the orange-box
> > >
> > > So this is cause that unnecessary interfaces was added by maas during
> > > install. There seems no easy method to let network setup scripts runs
> > > before the maas. So we may just delete all interface added by maas
> > > automatically and create br0 interface inside the orange-box postinst
> > > scripts.
> > >
> > > thanks,
> > > Mao
> > >
> > >
> > > On Mon, Jun 15, 2015 at 10:21 PM, Zhanglei Mao <
> > <email address hidden>>
> > > wrote:
> > >
> > >> Yes, no eth0 anymore. I gonna test it again Tomorrow.
> > >> 2015年6月15日 下午10:09于 "Nicolas Thomas" <<email address hidden>
> >写道:
> > >>
> > >> > You should not have eth0 !
> > >> >
> > >> > Please purge maas, do an update and reinstall to confirm .
> > >> >
> > >> > On Mon, Jun 15, 2015 at 3:54 PM, Zhanglei Mao
> > >> > <email address hidden> wrote:
> > >> > > Nicolas,
> > >> > >
> > >> > > No sure I have used the new version you had uploaded. I test it
> > again,
> > >> it
> > >> > > stop at same step o...
Zhanglei Mao (zhanglei-mao) wrote : | # |
Nicolas,
I didn't realise it is a CLI command can used directly :-). It will be a
bit easy now.
thanks,
On Fri, Jun 19, 2015 at 2:51 AM, Nicolas Thomas <
<email address hidden>> wrote:
> Mao
>
> : orange-
>
> I disagree that reordering will change anything.. If maas is there and set
> up differently than what orange box expect we must stop and raise an issue
> ... I do not want to end up with unnoticed change of this nature...
>
> On a side note purging Maas is painfull due to Maas packaging and we should
> log bugs on those
> Le 18 juin 2015 07:00, "Zhanglei Mao" <email address hidden> a
> écrit :
>
> > Procedure is : orange-
> > orange-box
> >
> > Yes, it works at last. But I have to say it is not easy.
> >
> > The rough steps are:
> > sudo apt-get purge maas-cluster-
> > sudo apt-get purge maas-region-
> > sudo apt-get purge maas-proxy
> > sudo apt-get purge maas orange-box
> > sudo apt-get autoremove
> > #reboot
> > sudo apt-get install
> >
> > during the process you may need to:
> > sudo rm /etc/apache2/
> > /etc/apache2/
> > sudo cat id_rsa.pub >> /home/ubuntu/
> > by not exist of this file)
> > sudo apachectl start (if apache restart failed)
> >
> > I didn't verify above and may test it again after back from trip and
> share
> > it next week.
> >
> > thanks,
> > Mao
> >
> >
> > On Wed, Jun 17, 2015 at 11:51 PM, Nicolas Thomas <
> > <email address hidden>> wrote:
> >
> > > That was not the intent to change behavior yet .. intent is to have a
> > > common baseline for enhancing as a team.
> > >
> > > Procedure is : orange-
> > > orange-box
> > >
> > > If you don't like the sequence propose a branch :)
> > >
> > >
> > > On Wed, Jun 17, 2015 at 4:12 PM, Zhanglei Mao
> > > <email address hidden> wrote:
> > > > Nicolas,
> > > >
> > > > I though the right logic might as:
> > > > 1) preinst script of the orange-box -- adjust network according
> > > > 2) maas packages install --auto create mas-cluster-
> > > > 3) postinst script of the orange-box
> > > >
> > > > But it was actually happened as:
> > > > 1)maas pacakge install ( in case of deps by ornage-box)
> > > > 2)preinst script of the orange-box
> > > > 3)postinst script of the orange-box
> > > >
> > > > So this is cause that unnecessary interfaces was added by maas during
> > > > install. There seems no easy method to let network setup scripts runs
> > > > before the maas. So we may just delete all interface added by maas
> > > > automatically and create br0 interface inside the orange-box postinst
> > > > scripts.
> > > >
> > > > thanks,
> > > > Mao
> > > >
> > > >
> > > > On Mon, Jun 15, 2015 at 10:21 PM, Zhanglei Mao <
> > > <email address hidden>>
> > > > wrote:
> > > >
> > > >> Yes, no eth0 anymore. I gonna test it again Tomorrow.
> > > >> 2015年6月15日 下午10:09于 "Nicolas Thomas" <<email address hidden>
> > >写道:
> > > >>
> > > >> > You ...
Nicolas Thomas (thomnico) wrote : | # |
Per Dan request this working package/approach is discarded
- 546. By Nicolas Thomas
-
Fix zone issue
Fix ssh-keyscan for maas asking user intervention - 547. By Nicolas Thomas
-
fix default to em1 for internal_interface
- 548. By Nicolas Thomas
-
Couple of fixes
Add code to avoid issue when no .ssh for ubuntu user is present. - 549. By Nicolas Thomas
-
Remove entries to avoid conflicts
Unmerged revisions
- 549. By Nicolas Thomas
-
Remove entries to avoid conflicts
- 548. By Nicolas Thomas
-
Couple of fixes
Add code to avoid issue when no .ssh for ubuntu user is present. - 547. By Nicolas Thomas
-
fix default to em1 for internal_interface
- 546. By Nicolas Thomas
-
Fix zone issue
Fix ssh-keyscan for maas asking user intervention - 545. By Nicolas Thomas
-
updates on ssh maas to ubuntu automation
modified:
debian/changelog
usr/bin/orange- box-add- virtual- nodes - 544. By Nicolas Thomas
-
releasing 2.9~ppa2
- 543. By Nicolas Thomas
-
Update source/format so zbr-buildpackages works
make ssh works correctly in add-virutal-nodesmodified:
debian/source/ format
usr/bin/orange- box-add- virtual- nodes - 542. By Nicolas Thomas
-
releasing 2.9~ppa1
- 541. By Nicolas Thomas
-
releasing 2.8~ppa1
- 540. By Nicolas Thomas
-
* Add biosdevname cmd in scripts
* Add a check/heal for VMs powermanagement ssh keys
*
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-74ab32474f ce 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
"cluster_ name": "Cluster master", ce39-4fb6- b0a2-74ab32474f ce" OrangeBox8: ~$ sudo maas admin node-group- interfaces list 3b3deac8- ce39-4fb6- b0a2-74ab32474f ce
"ip_range_ high": null,
"ip_range_ low": null,
"broadcast_ ip": "172.27.255.255",
"static_ ip_range_ low": null,
"subnet_ mask": "255.255.252.0",
"management" : 0,
"static_ ip_range_ high": null,
"interface" : "eth1"
Success.
Machine-readable output follows:
[
{
"status": 1,
"name": "maas",
"uuid": "3b3deac8-
}
]
ubuntu@
Success.
Machine-readable output follows:
[
{
"name": "eth1",
"ip": "172.27.252.8",
}
]
It cab update as below:
ubuntu@ OrangeBox8: ~$ sudo maas admin node-group- interface update 3b3deac8- ce39-4fb6- b0a2-74ab32474f ce 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_ 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"]}
{"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_
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-74ab32474f ce'