User Tools

Site Tools


juju-centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
juju-centos [2015/05/12 19:54]
bteleaga [Using Juju and MaaS with CentOS]
juju-centos [2015/05/13 15:34] (current)
Line 1: Line 1:
 ======= Using Juju and MaaS with CentOS ======= ======= Using Juju and MaaS with CentOS =======
  
-Initial support has landed in master branch for CentOS 7 and is planned to be released with version 1.24 of juju. Keep in mind that this is an initial release that does have slight differences compared to Ubuntu. We will discuss those issues later on.+Initial support has landed in Juju'master branch for CentOS 7 and is planned to be released with version 1.24. Keep in mind that this is an initial release and there are slight differences from using Juju with Ubuntu, which will be discussed later on.
  
-First off, to get started you should follow our other two tutorials:+To start off, you should follow our previous two tutorials on setting up our testing environment:
  
-http://wiki.cloudbase.it/maas+[[http://wiki.cloudbase.it/maas|MaaS installation guide]]
  
-http://wiki.cloudbase.it/juju+[[http://wiki.cloudbase.it/juju|Juju installation guide]]
  
 This will give you a ready to go MaaS and Juju environment. Make sure you can bootstrap a trusty state machine before following the next steps to make debugging easier. This will give you a ready to go MaaS and Juju environment. Make sure you can bootstrap a trusty state machine before following the next steps to make debugging easier.
Line 13: Line 13:
 ===== Generating MaaS images for CentOS 7 ===== ===== Generating MaaS images for CentOS 7 =====
  
- There is a nice project made available by Canonical that will facilitate the creation of a new CentOS image compatible with MaaS. We are using MaaS to test this, because its the easiest way to have a locally working lab for testing. Due to limitations to container support for CentOS, we cannot use the local provider yet. More details on that later.+ There is a nice project made available by Canonical that will facilitate the creation of a new CentOS image compatible with MaaS. We are using MaaS to test this, because it'the easiest way to have a locally working testing environment. Due to limited support for container-based CentOS deplyments, we cannot use the local provider yet. More details on that will be provided as they arise.
  
 Lets get a local copy of maas-iumagebuilder: Lets get a local copy of maas-iumagebuilder:
Line 21: Line 21:
   python setup.py install   python setup.py install
  
-You may need to change the python-stevedore dependency to stevedore in setup.py for the installation to work. Once the image builder is installed, you need to make sure kvm works on the ubuntu machine that you're building the image on. Have a look at https://help.ubuntu.com/community/KVM/Installation for a guide on checking if it's enabled and installing it if necessary.+You may need to change the python-stevedore dependency to stevedore in setup.py for the installation to work. Once the image builder is installed, you need to make sure KVM works on the Ubuntu machine that you're building the image on. Have a look at [[https://help.ubuntu.com/community/KVM/Installation|this guide]] for instructions on checking if it's enabled and installing it if necessary.
  
-  * Run the command for creating the image +  * Run the command for creating the image:
- +
-:!: This will probably take a very long time. You can do the rest of the juju configuration in the meantime. However, before bootstrapping a node with CentOS, the image should be uploaded to MaaS.+
  
   maas-image-builder -o centos7-amd64-root-tgz centos --edition 7   maas-image-builder -o centos7-amd64-root-tgz centos --edition 7
  
-  * Import the image in MaaS+:!: This will probably take a very long time. You can pass on to configuring Juju, but make sure you **stop before** issuing the `juju boostrap` command and come back here to upload the image to MaaS. 
 + 
 +  * Import the image in MaaS:
  
   maas <session-name> boot-resources create title=centos7 name=centos7 architecture=amd64/generic content@=centos7-amd64-root-tgz   maas <session-name> boot-resources create title=centos7 name=centos7 architecture=amd64/generic content@=centos7-amd64-root-tgz
Line 35: Line 35:
 ===== Create jujud agent tools ===== ===== Create jujud agent tools =====
  
-  * While the image is uploading, you can create the tools and make them available to the MaaS machines. You do not need to create the trusty ones if they're already there.+  * While the image is uploading, you can create the tools and make them available to the MaaS machines. You don'need to create the trusty ones if they're already there.
  
   mkdir -p ~/.juju/tools/releases   mkdir -p ~/.juju/tools/releases
Line 44: Line 44:
   rm jujud   rm jujud
  
-  * If you followed the previous tutorials you may have already generated the metadata. In that case there may be some bugsso it is better to remove it first.+  * If you've followed our previous tutorial on installing Juju, you may have already run `juju-metadata generate-tools`. In that case, in order to avoid any issues, please remove the previously created metadata by running the following command:
  
   rm -rf ~/.juju/tools/streams   rm -rf ~/.juju/tools/streams
Line 80: Line 80:
 While these issues are present in this initial release, we are working on remedying them as soon as possible. Some may take longer then others, but we do want to have 1:1 feature set on all supported platforms. While these issues are present in this initial release, we are working on remedying them as soon as possible. Some may take longer then others, but we do want to have 1:1 feature set on all supported platforms.
  
-  * no support for yum mirrors/proxies. At the moment the same mirror used for apt proxies is used for yum as well +  * no support for yum mirrors/proxies. At the moment the same mirror used for apt proxies is used for yum as well. 
-  * no mongo tools(which implies no backups amongst other things)+  * no mongo tools(which implies no backupsamongst other inconveniences)
  
juju-centos.1431449661.txt.gz · Last modified: 2015/05/12 19:54 (external edit)