Issue: A fresh installed maas with latest updates will not have maas-enlist shows up on the maas menu.
Steps to reproduce:
1. Fresh install maas with latest update to 12.04.1
2. Install the necessary packages: $ sudo apt-get install maas $ sudo apt-get install maas-dhcp $ sudo maas-import-isos
3. Reboot
4. Check the maas menu by running the command:
$ sudo cobbler profile list
5. It only shows:
profiles: maas-precise-i386 maas-precise-i386-commissioning maas-precise-x86_64 maas-precise-x86_64-commissioning precise-i386 precise-i386-auto precise-x86_64 precise-x86_64-auto
Root Cause:
After enabling the -x in the maas-import-isos, it gives the error below:
+ PARENT_PROFILE=quantal-i386 + grep -qs maas-enlist + cobbler profile list + cobbler profile add --name=maas-enlist --parent=quantal-i386 --kopts=priority=critical locale=en_US netcfg/choose_interface=auto log_host=10.232.36.101 log_port=514 --kickstart=/var/lib/cobbler/kickstarts/maas-enlist.preseed profile quantal-i386 not found, inheritance not possible + grep -qs default + cobbler system list + cobbler system add --name=default --profile=maas-enlist invalid profile name: maas-enlist + cobbler sync
Workaround:
Open the file /usr/sbin/maas-import-isos with your favourite editor, at line 106, Where it says STABLE=$(distro-info --stable), change it to "precise"
add_enlist_profile(){ STABLE=precise DEVEL=$(distro-info --devel)
Run the command again, then the issue is resolved.
Issue:
A fresh installed maas with latest updates will not have maas-enlist shows up on the maas menu.
Steps to reproduce:
1. Fresh install maas with latest update to 12.04.1
2. Install the necessary packages:
$ sudo apt-get install maas
$ sudo apt-get install maas-dhcp
$ sudo maas-import-isos
3. Reboot
4. Check the maas menu by running the command:
$ sudo cobbler profile list
5. It only shows:
profiles: precise- i386 precise- i386-commission ing precise- x86_64 precise- x86_64- commissioning i386-auto x86_64- auto
maas-
maas-
maas-
maas-
precise-i386
precise-
precise-x86_64
precise-
Root Cause:
After enabling the -x in the maas-import-isos, it gives the error below:
+ PARENT_ PROFILE= quantal- i386 quantal- i386 --kopts= priority= critical locale=en_US netcfg/ choose_ interface= auto log_host= 10.232. 36.101 log_port=514 --kickstart= /var/lib/ cobbler/ kickstarts/ maas-enlist. preseed maas-enlist
+ grep -qs maas-enlist
+ cobbler profile list
+ cobbler profile add --name=maas-enlist --parent=
profile quantal-i386 not found, inheritance not possible
+ grep -qs default
+ cobbler system list
+ cobbler system add --name=default --profile=
invalid profile name: maas-enlist
+ cobbler sync
Workaround:
Open the file /usr/sbin/ maas-import- isos with your favourite editor, at line 106, Where it says STABLE= $(distro- info --stable), change it to "precise"
add_enlist_ profile( ){
STABLE= precise
DEVEL= $(distro- info --devel)
Run the command again, then the issue is resolved.