I am setting up a private cloud without Internet access using MAAS.

Asked by Dan Rolsma

I have a local Ubuntu repository and edited /etc/apt/sources.list to use it, which works great for Ubuntu Server and Desktop, but MAAS wants an Internet connection. What do I need to do to mirror what it needs locally to get rid of the message "Some of the required system profiles are missing. Run the maas-import-isos script to import Ubuntu isos and create the related profiles: "

Of course, when I run it I get messages that it can't get to some Internet sites, and even though the final exit status is 0 from the sudo maas-import-isos command, that message on the dashboard persists.

What do I need to do to remedy this and be able to use MAAS in this isolated environment?

Dan.

P.S. this is the running of the import:

username@223:~$ sudo maas-import-isos
[sudo] password for username:
precise-x86_64: Up to date
precise-i386: Up to date
failed to get https://maas.ubuntu.com/images/query/precise/ephemeral/released-dl.current.txt
remote query of https://maas.ubuntu.com/images failed
ubuntu-distro-info: Distribution data outdated.
task started: 2012-06-07_205136_sync
task started (id=Sync, time=Thu Jun 7 20:51:36 2012)
running pre-sync triggers
cleaning trees
removing: /var/www/cobbler/images/precise-i386
removing: /var/www/cobbler/images/precise-x86_64
removing: /var/lib/tftpboot/pxelinux.cfg/default
removing: /var/lib/tftpboot/grub/images
removing: /var/lib/tftpboot/grub/efidefault
removing: /var/lib/tftpboot/images/precise-i386
removing: /var/lib/tftpboot/images/memtest86+_multiboot.bin
removing: /var/lib/tftpboot/images/memtest86+.bin
removing: /var/lib/tftpboot/images/precise-x86_64
removing: /var/lib/tftpboot/s390x/profile_list
copying bootloaders
copying: /boot/memtest86+_multiboot.bin -> /var/lib/tftpboot/images/memtest86+_multiboot.bin
copying: /boot/memtest86+.bin -> /var/lib/tftpboot/images/memtest86+.bin
copying distros to tftpboot
copying files for distro: precise-x86_64
trying hardlink /var/www/cobbler/ks_mirror/precise-x86_64/linux -> /var/lib/tftpboot/images/precise-x86_64/linux
trying hardlink /var/www/cobbler/ks_mirror/precise-x86_64/initrd.gz -> /var/lib/tftpboot/images/precise-x86_64/initrd.gz
copying files for distro: precise-i386
trying hardlink /var/www/cobbler/ks_mirror/precise-i386/linux -> /var/lib/tftpboot/images/precise-i386/linux
trying hardlink /var/www/cobbler/ks_mirror/precise-i386/initrd.gz -> /var/lib/tftpboot/images/precise-i386/initrd.gz
copying images
generating GPXE/PXE configuration files
generating PXE menu structure
copying files for distro: precise-x86_64
trying hardlink /var/www/cobbler/ks_mirror/precise-x86_64/linux -> /var/www/cobbler/images/precise-x86_64/linux
trying hardlink /var/www/cobbler/ks_mirror/precise-x86_64/initrd.gz -> /var/www/cobbler/images/precise-x86_64/initrd.gz
copying files for distro: precise-i386
trying hardlink /var/www/cobbler/ks_mirror/precise-i386/linux -> /var/www/cobbler/images/precise-i386/linux
trying hardlink /var/www/cobbler/ks_mirror/precise-i386/initrd.gz -> /var/www/cobbler/images/precise-i386/initrd.gz
rendering TFTPD files
generating /etc/xinetd.d/tftp
cleaning link caches
running post-sync triggers
running python triggers from /var/lib/cobbler/triggers/sync/post/*
running python trigger cobbler.modules.sync_post_restart_services
running shell triggers from /var/lib/cobbler/triggers/sync/post/*
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.scm_track
running shell triggers from /var/lib/cobbler/triggers/change/*
*** TASK COMPLETE ***
cmass@cmass223:~$ echo $?
0

Question information

Language:
English Edit question
Status:
Answered
For:
MAAS Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Julian Edwards (julian-edwards) said :
#1

Hi

Local mirroring is not supported yet unfortunately, it requires direct access to the repos to download the images. This is on the roadmap to fix possibly for 12.10.

As for the message, that's a caching bug and is fixed in trunk. However, trunk is pretty unstable at the moment due to some major work going on, so I'd just ignore that message, it will disappear eventually (or you can restart the appserver).

Regards.

Revision history for this message
Dan Rolsma (dan-rolsma) said :
#2

So is it that I just don't have the latest updates, or am I completely missing the images? I let it run overnight and by morning it said "TASK COMPLETE" with an exit status of zero but it sounds like I am missing the cloud images.

If I run this on a MAAS system that has Internet access, can I use diff to see what changed or got added and rsync that to some media to then rsync into this no-Internet network? That is what I do now anyway for the local repository.

I really appreciate your input on this. MAAS could really save me a lot of time if I just need to get past this initial load.

Dan.

Revision history for this message
Dan Rolsma (dan-rolsma) said :
#3

Is there a way I could contribute to this effort to enhance MAAS to install without the Internet?

What I have done so far is I installed a MAAS server that is Internet connected, got a baseline, ran maas-import-isos, and then tarred over what was new and changed to my MAAS server that is isolated. That didn't work, so I searched the files for the ip address and changed that to be the 10. address in the private isolated network. I may need to do the hostname as well, but I named the host maas, so I'm reinstalling with a more unique name so I can modify the jason files that may reference the host name.

But is there a smarter way to do this?

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Julian Edwards (julian-edwards) said :
#5

jtv, will your new import script help much here? I suspect there's too much Cobbler pokery going on in the original though.

Dan, you could definitely contribute! Can you find join and email <email address hidden> and someone can help you (probably won't be me as I'll be away for a couple of weeks)

Revision history for this message
Julian Edwards (julian-edwards) said :
#6

Editing question status...

Can you help with this problem?

Provide an answer of your own, or ask Dan Rolsma for more information if necessary.

To post a message you must log in.