Merge lp:~gandelman-a/charms/precise/nova-compute/trunk into lp:~charmers/charms/precise/nova-compute/trunk

Proposed by Adam Gandelman
Status: Merged
Merge reported by: Adam Gandelman
Merged at revision: not available
Proposed branch: lp:~gandelman-a/charms/precise/nova-compute/trunk
Merge into: lp:~charmers/charms/precise/nova-compute/trunk
Diff against target: 92 lines (+27/-11)
4 files modified
config.yaml (+1/-1)
hooks/nova-compute-common (+18/-6)
hooks/nova-compute-relations (+8/-2)
metadata.yaml (+0/-2)
To merge this branch: bzr merge lp:~gandelman-a/charms/precise/nova-compute/trunk
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+86846@code.launchpad.net

Description of the change

Adds nova-api to run on compute nodes to serve as a local meta data service to the instances running on that host.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.yaml'
--- config.yaml 2011-09-30 22:52:20 +0000
+++ config.yaml 2012-01-09 15:31:23 +0000
@@ -26,7 +26,7 @@
26 virt-type:26 virt-type:
27 default: kvm27 default: kvm
28 type: string28 type: string
29 description: "Virtualization flavor. Supported: kvm, xen, uml, lxc"29 description: "Virtualization flavor. Supported: kvm, xen, uml, lxc. qemu"
3030
31 # needed if using flatmanager31 # needed if using flatmanager
32 bridge-interface:32 bridge-interface:
3333
=== modified file 'hooks/nova-compute-common'
--- hooks/nova-compute-common 2011-10-12 06:22:46 +0000
+++ hooks/nova-compute-common 2012-01-09 15:31:23 +0000
@@ -1,5 +1,5 @@
1#!/bin/bash1#!/bin/bash
2SERVICES="nova-compute nova-network"2SERVICES="nova-compute nova-network nova-api"
3NOVA_RELEASE=$(config-get nova-release)3NOVA_RELEASE=$(config-get nova-release)
4NOVA_CONF=$(config-get nova-config)4NOVA_CONF=$(config-get nova-config)
5RABBIT_USER=$(config-get rabbit-user)5RABBIT_USER=$(config-get rabbit-user)
@@ -121,11 +121,23 @@
121}121}
122122
123function add_ppa {123function add_ppa {
124 # don't setup PPA, install from archive124 # Install from archive instead of PPA.
125 [[ $PPA == "distro" ]] && return 0125 [[ $PPA == "distro" ]] && return 0
126 juju-log "nova-compute: Configuring PPA access for $PPA"
127 . /etc/lsb-release126 . /etc/lsb-release
128 PPA_URL="deb http://ppa.launchpad.net/nova-core/$PPA/ubuntu $DISTRIB_CODENAME main"127 [[ -z $PPA ]] && return 0
129 echo "Executing: add-apt-repository \"$PPA_URL\"" || exit 1128 # if referenced by name, setup ppa to upstream PPAs
130 add-apt-repository "$PPA_URL" || exit 1129 if [[ "$PPA" == "trunk" ]] ||
130 [[ "$PPA" == "milestone" ]] ||
131 [[ "$PPA" == "milestone-proposed" ]] ; then
132 juju-log "nova: Configuring installation from upstream PPA ($PPA)"
133 PPA_URL="deb http://ppa.launchpad.net/nova-core/$PPA/ubuntu $DISTRIB_CODENAME main"
134 add-apt-repository "$PPA_URL" || exit 1
135 return
136 fi
137 if [[ "${PPA:0:4}" == "ppa:" ]] ; then
138 juju-log "nova: Configuring installation from custom PPA ($PPA)"
139 add-apt-repository -y "$PPA" || exit 1
140 return
141 fi
142 juju-log "nova: No PPA specified. Falling back to installation from Ubuntu archive."
131}143}
132144
=== modified file 'hooks/nova-compute-relations'
--- hooks/nova-compute-relations 2011-10-12 06:22:46 +0000
+++ hooks/nova-compute-relations 2012-01-09 15:31:23 +0000
@@ -11,7 +11,7 @@
11function install_hook {11function install_hook {
12 [[ -z $VIRT_TYPE ]] && VIRT_TYPE="kvm"12 [[ -z $VIRT_TYPE ]] && VIRT_TYPE="kvm"
13 case $VIRT_TYPE in13 case $VIRT_TYPE in
14 "kvm") COMPUTE_PKG="nova-compute-kvm";;14 "kvm"|"qemu") COMPUTE_PKG="nova-compute-kvm";;
15 "xen") COMPUTE_PKG="nova-compute-xen";;15 "xen") COMPUTE_PKG="nova-compute-xen";;
16 "uml") COMPUTE_PKG="nova-compute-uml";;16 "uml") COMPUTE_PKG="nova-compute-uml";;
17 "lxc") COMPUTE_PKG="nova-compute-lxc";;17 "lxc") COMPUTE_PKG="nova-compute-lxc";;
@@ -20,7 +20,13 @@
20 apt-get -y install python-software-properties || exit 120 apt-get -y install python-software-properties || exit 1
21 add_ppa21 add_ppa
22 apt-get update || exit 122 apt-get update || exit 1
23 apt-get -y install $COMPUTE_PKG nova-network || exit 123 apt-get -y install $COMPUTE_PKG nova-api nova-network || exit 1
24
25 # there is no nova-compute-qemu pkg. Install kvm and reconfigure
26 # manually for qemu.
27 if [[ "$VIRT_TYPE" == "qemu" ]] ; then
28 sed -i 's/\(\-\-libvirt_type=\).*/\1qemu/g' /etc/nova/nova-compute.conf
29 fi
2430
25 # XXX sudo on the juju sample AMI doesnt function31 # XXX sudo on the juju sample AMI doesnt function
26 # as it should (doesn't include suoders.d/*). do this32 # as it should (doesn't include suoders.d/*). do this
2733
=== modified file 'metadata.yaml'
--- metadata.yaml 2011-10-12 06:22:46 +0000
+++ metadata.yaml 2012-01-09 15:31:23 +0000
@@ -15,7 +15,5 @@
15 interface: rabbitmq15 interface: rabbitmq
16 image-service:16 image-service:
17 interface: glance17 interface: glance
18 cloud-controller:
19 interface: nova
20 nova-network:18 nova-network:
21 interface: nova19 interface: nova

Subscribers

People subscribed via source and target branches