diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-12-05 14:21:54 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-12-05 14:21:54 -0500 |
| commit | 09ed6f8a6d36840c0a8d0bb19560cbfda445d6a4 (patch) | |
| tree | 45bfcf339672945f098d049d6af361fea2de1020 /meta-openstack/recipes-devtools | |
| parent | 6e48f94ec0a482db6cd55fa690601673b0d3ea6f (diff) | |
| parent | e0927d68cb468b43238c799d27237f4649f45e34 (diff) | |
| download | meta-cloud-services-09ed6f8a6d36840c0a8d0bb19560cbfda445d6a4.tar.gz | |
Merge branch 'havana'
Diffstat (limited to 'meta-openstack/recipes-devtools')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cliff/remove-distribute-dependency.patch | 23 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cliff_1.4.5.bb (renamed from meta-openstack/recipes-devtools/python/python-cliff_1.3.2.bb) | 7 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cmd2_0.6.7.bb (renamed from meta-openstack/recipes-devtools/python/python-cmd2_0.6.4.bb) | 6 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-nova/nova.conf | 2 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-nova/nova.init | 3 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-nova_git.bb | 22 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-pyparsing_2.0.1.bb (renamed from meta-openstack/recipes-devtools/python/python-pyparsing_1.5.7.bb) | 4 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-setuptools_1.4.bbappend | 4 |
8 files changed, 30 insertions, 41 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cliff/remove-distribute-dependency.patch b/meta-openstack/recipes-devtools/python/python-cliff/remove-distribute-dependency.patch deleted file mode 100644 index 18aab4c..0000000 --- a/meta-openstack/recipes-devtools/python/python-cliff/remove-distribute-dependency.patch +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | Index: cliff-1.3.2/setup.py | ||
| 2 | =================================================================== | ||
| 3 | --- cliff-1.3.2.orig/setup.py | ||
| 4 | +++ cliff-1.3.2/setup.py | ||
| 5 | @@ -5,10 +5,6 @@ PROJECT = 'cliff' | ||
| 6 | # Change docs/source/conf.py too! | ||
| 7 | VERSION = '1.3.2' | ||
| 8 | |||
| 9 | -# Bootstrap installation of Distribute | ||
| 10 | -import distribute_setup | ||
| 11 | -distribute_setup.use_setuptools() | ||
| 12 | - | ||
| 13 | from setuptools import setup, find_packages | ||
| 14 | |||
| 15 | from distutils.util import convert_path | ||
| 16 | @@ -22,7 +18,6 @@ except IOError: | ||
| 17 | long_description = '' | ||
| 18 | |||
| 19 | install_requires = [ | ||
| 20 | - 'distribute', | ||
| 21 | 'PrettyTable>=0.6,<0.8', | ||
| 22 | 'cmd2==0.6.4', | ||
| 23 | ] | ||
diff --git a/meta-openstack/recipes-devtools/python/python-cliff_1.3.2.bb b/meta-openstack/recipes-devtools/python/python-cliff_1.4.5.bb index 05de68b..793ceca 100644 --- a/meta-openstack/recipes-devtools/python/python-cliff_1.3.2.bb +++ b/meta-openstack/recipes-devtools/python/python-cliff_1.4.5.bb | |||
| @@ -7,11 +7,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | |||
| 7 | PR = "r0" | 7 | PR = "r0" |
| 8 | SRCNAME = "cliff" | 8 | SRCNAME = "cliff" |
| 9 | 9 | ||
| 10 | SRC_URI = "https://pypi.python.org/packages/source/c/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ | 10 | SRC_URI = "https://pypi.python.org/packages/source/c/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" |
| 11 | file://remove-distribute-dependency.patch" | ||
| 12 | 11 | ||
| 13 | SRC_URI[md5sum] = "a42f7894dbc70f42c0979042175f1b8f" | 12 | SRC_URI[md5sum] = "21743e9e800cf526e88e420f366a4c5c" |
| 14 | SRC_URI[sha256sum] = "7c0250b5139993d04dcbb8b9d05376094b7271586b3698b4764c7c6f4697e0f8" | 13 | SRC_URI[sha256sum] = "0ec2c40e899cbb4d478aa946e1430600bf596ca2a3f12162a9514e9d580935ec" |
| 15 | 14 | ||
| 16 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 17 | 16 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-cmd2_0.6.4.bb b/meta-openstack/recipes-devtools/python/python-cmd2_0.6.7.bb index bce95a4..9558cc6 100644 --- a/meta-openstack/recipes-devtools/python/python-cmd2_0.6.4.bb +++ b/meta-openstack/recipes-devtools/python/python-cmd2_0.6.7.bb | |||
| @@ -2,15 +2,15 @@ DESCRIPTION = "Extra features for standard library's cmd module" | |||
| 2 | HOMEPAGE = "http://packages.python.org/cmd2/" | 2 | HOMEPAGE = "http://packages.python.org/cmd2/" |
| 3 | SECTION = "devel/python" | 3 | SECTION = "devel/python" |
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://setup.py;beginline=21;endline=21;md5=25c0f7ede01b1eab41daf880e5791f05" | 5 | LIC_FILES_CHKSUM = "file://setup.py;beginline=21;endline=21;md5=a00047b7e92e0781452d0beba4e7b44e" |
| 6 | 6 | ||
| 7 | PR = "r0" | 7 | PR = "r0" |
| 8 | SRCNAME = "cmd2" | 8 | SRCNAME = "cmd2" |
| 9 | 9 | ||
| 10 | SRC_URI = "http://pypi.python.org/packages/source/c/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" | 10 | SRC_URI = "http://pypi.python.org/packages/source/c/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" |
| 11 | 11 | ||
| 12 | SRC_URI[md5sum] = "60a07255bbcb4342888b1574f46e56ea" | 12 | SRC_URI[md5sum] = "842df29ff2f72d64d7f0d917039c0e51" |
| 13 | SRC_URI[sha256sum] = "ff52cb800d931bbd0ce4b05bac0b024cf34ec3a04f66eadcb7d3f7dda42429ba" | 13 | SRC_URI[sha256sum] = "8e98c7a1cfd106183559240b269e7cd9fe97e8342b5c05295f591aab6fd2f4f0" |
| 14 | 14 | ||
| 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 16 | 16 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova.conf b/meta-openstack/recipes-devtools/python/python-nova/nova.conf index a495a7d..84ef48b 100644 --- a/meta-openstack/recipes-devtools/python/python-nova/nova.conf +++ b/meta-openstack/recipes-devtools/python/python-nova/nova.conf | |||
| @@ -19,6 +19,8 @@ debug = True | |||
| 19 | verbose = True | 19 | verbose = True |
| 20 | my_ip = %CONTROLLER_IP% | 20 | my_ip = %CONTROLLER_IP% |
| 21 | glance_host = %CONTROLLER_IP% | 21 | glance_host = %CONTROLLER_IP% |
| 22 | lock_path=/var/lock/nova/ | ||
| 23 | state_path=/var/run/nova/ | ||
| 22 | 24 | ||
| 23 | #VNC | 25 | #VNC |
| 24 | vnc_enabled = true | 26 | vnc_enabled = true |
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova.init b/meta-openstack/recipes-devtools/python/python-nova/nova.init index 3a2bbac..c2882b6 100644 --- a/meta-openstack/recipes-devtools/python/python-nova/nova.init +++ b/meta-openstack/recipes-devtools/python/python-nova/nova.init | |||
| @@ -30,7 +30,8 @@ start () | |||
| 30 | 30 | ||
| 31 | echo -n "Starting $DESC..." | 31 | echo -n "Starting $DESC..." |
| 32 | 32 | ||
| 33 | start-stop-daemon --start --quiet --background \ | 33 | sudo -u nova \ |
| 34 | start-stop-daemon --start --quiet --background \ | ||
| 34 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} | 35 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} |
| 35 | 36 | ||
| 36 | if [ $? -eq 0 ]; then | 37 | if [ $? -eq 0 ]; then |
diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb index 6a065cb..9fb1daa 100644 --- a/meta-openstack/recipes-devtools/python/python-nova_git.bb +++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb | |||
| @@ -4,7 +4,7 @@ SECTION = "devel/python" | |||
| 4 | LICENSE = "Apache-2.0" | 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2" |
| 6 | 6 | ||
| 7 | DEPENDS = "sudo" | 7 | DEPENDS = "sudo libvirt" |
| 8 | 8 | ||
| 9 | PR = "r0" | 9 | PR = "r0" |
| 10 | SRCNAME = "nova" | 10 | SRCNAME = "nova" |
| @@ -38,7 +38,7 @@ do_install_append() { | |||
| 38 | NOVA_CONF_DIR=${D}/${sysconfdir}/nova | 38 | NOVA_CONF_DIR=${D}/${sysconfdir}/nova |
| 39 | 39 | ||
| 40 | install -d ${NOVA_CONF_DIR} | 40 | install -d ${NOVA_CONF_DIR} |
| 41 | install -m 600 ${S}/etc/nova/policy.json ${NOVA_CONF_DIR}/ | 41 | install -o nova -m 664 ${S}/etc/nova/policy.json ${NOVA_CONF_DIR}/ |
| 42 | 42 | ||
| 43 | # Deploy filters to /etc/nova/rootwrap.d | 43 | # Deploy filters to /etc/nova/rootwrap.d |
| 44 | install -m 755 -d ${NOVA_CONF_DIR}/rootwrap.d | 44 | install -m 755 -d ${NOVA_CONF_DIR}/rootwrap.d |
| @@ -57,8 +57,12 @@ do_install_append() { | |||
| 57 | touch ${D}${sysconfdir}/sudoers.d/nova-rootwrap | 57 | touch ${D}${sysconfdir}/sudoers.d/nova-rootwrap |
| 58 | chmod 0440 ${D}${sysconfdir}/sudoers.d/nova-rootwrap | 58 | chmod 0440 ${D}${sysconfdir}/sudoers.d/nova-rootwrap |
| 59 | chown root:root ${D}${sysconfdir}/sudoers.d/nova-rootwrap | 59 | chown root:root ${D}${sysconfdir}/sudoers.d/nova-rootwrap |
| 60 | # root user setup | ||
| 60 | echo "root ALL=(root) NOPASSWD: ${bindir}/nova-rootwrap" > \ | 61 | echo "root ALL=(root) NOPASSWD: ${bindir}/nova-rootwrap" > \ |
| 61 | ${D}${sysconfdir}/sudoers.d/nova-rootwrap | 62 | ${D}${sysconfdir}/sudoers.d/nova-rootwrap |
| 63 | # nova user setup | ||
| 64 | echo "nova ALL=(root) NOPASSWD: ${bindir}/nova-rootwrap ${sysconfdir}/nova/rootwrap.conf *" >> \ | ||
| 65 | ${D}${sysconfdir}/sudoers.d/nova-rootwrap | ||
| 62 | 66 | ||
| 63 | # Configuration options | 67 | # Configuration options |
| 64 | sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ | 68 | sed -e "s:%SERVICE_TENANT_NAME%:${SERVICE_TENANT_NAME}:g" \ |
| @@ -84,11 +88,11 @@ do_install_append() { | |||
| 84 | sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${WORKDIR}/openrc | 88 | sed -e "s:%CONTROLLER_HOST%:${CONTROLLER_HOST}:g" -i ${WORKDIR}/openrc |
| 85 | 89 | ||
| 86 | # Copy the configuration file | 90 | # Copy the configuration file |
| 87 | install -m 664 ${WORKDIR}/nova.conf ${NOVA_CONF_DIR}/nova.conf | 91 | install -o nova -m 664 ${WORKDIR}/nova.conf ${NOVA_CONF_DIR}/nova.conf |
| 88 | install -m 664 ${WORKDIR}/api-paste.ini ${NOVA_CONF_DIR} | 92 | install -o nova -m 664 ${WORKDIR}/api-paste.ini ${NOVA_CONF_DIR} |
| 89 | install -m 664 ${WORKDIR}/openrc ${NOVA_CONF_DIR} | 93 | install -o nova -m 664 ${WORKDIR}/openrc ${NOVA_CONF_DIR} |
| 90 | 94 | ||
| 91 | install -d ${NOVA_CONF_DIR}/instances | 95 | install -o nova -d ${NOVA_CONF_DIR}/instances |
| 92 | 96 | ||
| 93 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 97 | if ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 94 | install -d ${D}${sysconfdir}/init.d | 98 | install -d ${D}${sysconfdir}/init.d |
| @@ -136,7 +140,7 @@ pkg_postinst_${SRCNAME}-common () { | |||
| 136 | 140 | ||
| 137 | USERADD_PACKAGES = "${PN}" | 141 | USERADD_PACKAGES = "${PN}" |
| 138 | GROUPADD_PARAM_${PN} = "--system nova" | 142 | GROUPADD_PARAM_${PN} = "--system nova" |
| 139 | USERADD_PARAM_${PN} = "--system --home /var/lib/nova -g nova \ | 143 | USERADD_PARAM_${PN} = "--system --home /var/lib/nova -g nova -G libvirt \ |
| 140 | --no-create-home --shell /bin/false nova" | 144 | --no-create-home --shell /bin/false nova" |
| 141 | 145 | ||
| 142 | PACKAGES += " ${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" | 146 | PACKAGES += " ${SRCNAME}-setup ${SRCNAME}-common ${SRCNAME}-compute ${SRCNAME}-controller" |
| @@ -185,7 +189,8 @@ FILES_${SRCNAME}-api = " \ | |||
| 185 | ${sysconfdir}/init.d/nova-api \ | 189 | ${sysconfdir}/init.d/nova-api \ |
| 186 | " | 190 | " |
| 187 | 191 | ||
| 188 | RDEPENDS_${PN} = " python-modules \ | 192 | RDEPENDS_${PN} = " libvirt \ |
| 193 | python-modules \ | ||
| 189 | python-misc \ | 194 | python-misc \ |
| 190 | python-argparse \ | 195 | python-argparse \ |
| 191 | python-amqplib \ | 196 | python-amqplib \ |
| @@ -193,6 +198,7 @@ RDEPENDS_${PN} = " python-modules \ | |||
| 193 | python-babel \ | 198 | python-babel \ |
| 194 | python-boto \ | 199 | python-boto \ |
| 195 | python-cinderclient \ | 200 | python-cinderclient \ |
| 201 | python-cliff \ | ||
| 196 | python-cheetah \ | 202 | python-cheetah \ |
| 197 | python-eventlet \ | 203 | python-eventlet \ |
| 198 | python-feedparser \ | 204 | python-feedparser \ |
diff --git a/meta-openstack/recipes-devtools/python/python-pyparsing_1.5.7.bb b/meta-openstack/recipes-devtools/python/python-pyparsing_2.0.1.bb index 6db9dbf..32d9ebb 100644 --- a/meta-openstack/recipes-devtools/python/python-pyparsing_1.5.7.bb +++ b/meta-openstack/recipes-devtools/python/python-pyparsing_2.0.1.bb | |||
| @@ -9,8 +9,8 @@ SRCNAME = "pyparsing" | |||
| 9 | 9 | ||
| 10 | SRC_URI = "http://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.zip" | 10 | SRC_URI = "http://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.zip" |
| 11 | 11 | ||
| 12 | SRC_URI[md5sum] = "b86854857a368d6ccb4d5b6e76d0637f" | 12 | SRC_URI[md5sum] = "dc7036a6f1ab01c3baed3d97af8d77c0" |
| 13 | SRC_URI[sha256sum] = "8a6329d4679fb249d4e0a4afbae6e041f9abbc299920d6efe5d8c4e9fb1407bc" | 13 | SRC_URI[sha256sum] = "7e1766ee747cca79fe172b670fd53ef58fc55d2b1804fd6c66d857abb62d143a" |
| 14 | 14 | ||
| 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 16 | 16 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-setuptools_1.4.bbappend b/meta-openstack/recipes-devtools/python/python-setuptools_1.4.bbappend new file mode 100644 index 0000000..3c691d3 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-setuptools_1.4.bbappend | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | # conflicting file prevention | ||
| 2 | do_install_append() { | ||
| 3 | rm -f ${D}${libdir}/python*/site-packages/site.py* | ||
| 4 | } \ No newline at end of file | ||
