From 6f52acb66879578e142074c0e1a726839bdb4fa8 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 25 Mar 2016 16:09:03 -0400 Subject: [PATCH] add release notes links for mitaka Add a script to check deliverables and add release notes links where needed and available. Use the script to update the deliverable files for mitaka. Change-Id: I9b8cd4984532a7d7a1b3689c509e4f7003eb5ca8 Signed-off-by: Doug Hellmann --- deliverables/mitaka/aodh.yaml | 1 + deliverables/mitaka/barbican.yaml | 1 + deliverables/mitaka/bifrost.yaml | 1 + deliverables/mitaka/ceilometer.yaml | 1 + deliverables/mitaka/cinder.yaml | 1 + deliverables/mitaka/designate.yaml | 1 + deliverables/mitaka/glance.yaml | 1 + deliverables/mitaka/heat.yaml | 1 + deliverables/mitaka/horizon.yaml | 1 + deliverables/mitaka/ironic-python-agent.yaml | 1 + deliverables/mitaka/ironic.yaml | 1 + deliverables/mitaka/keystone.yaml | 1 + deliverables/mitaka/manila.yaml | 1 + deliverables/mitaka/mistral.yaml | 1 + deliverables/mitaka/murano-agent.yaml | 1 + deliverables/mitaka/murano-dashboard.yaml | 1 + deliverables/mitaka/murano.yaml | 1 + deliverables/mitaka/neutron.yaml | 1 + deliverables/mitaka/nova.yaml | 1 + deliverables/mitaka/os-brick.yaml | 1 + deliverables/mitaka/os-client-config.yaml | 1 + deliverables/mitaka/python-cinderclient.yaml | 1 + deliverables/mitaka/python-ironicclient.yaml | 1 + deliverables/mitaka/python-saharaclient.yaml | 1 + deliverables/mitaka/sahara.yaml | 1 + deliverables/mitaka/searchlight.yaml | 1 + deliverables/mitaka/senlin.yaml | 1 + deliverables/mitaka/trove.yaml | 1 + deliverables/mitaka/zaqar.yaml | 1 + tools/add_release_note_links.sh | 53 ++++++++++++++++++++ 30 files changed, 82 insertions(+) create mode 100755 tools/add_release_note_links.sh diff --git a/deliverables/mitaka/aodh.yaml b/deliverables/mitaka/aodh.yaml index 0016a6afc9..df645fbd83 100644 --- a/deliverables/mitaka/aodh.yaml +++ b/deliverables/mitaka/aodh.yaml @@ -1,6 +1,7 @@ --- launchpad: aodh send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/aodh/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/deliverables/mitaka/barbican.yaml b/deliverables/mitaka/barbican.yaml index e191e92a81..9522234cec 100644 --- a/deliverables/mitaka/barbican.yaml +++ b/deliverables/mitaka/barbican.yaml @@ -1,6 +1,7 @@ --- launchpad: barbican send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/barbican/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/deliverables/mitaka/bifrost.yaml b/deliverables/mitaka/bifrost.yaml index 8c3c56b611..9770c1c0dd 100644 --- a/deliverables/mitaka/bifrost.yaml +++ b/deliverables/mitaka/bifrost.yaml @@ -1,6 +1,7 @@ --- launchpad: bifrost send-announcements-to: openstack-dev@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/bifrost/mitaka.html releases: - version: 0.1.0 projects: diff --git a/deliverables/mitaka/ceilometer.yaml b/deliverables/mitaka/ceilometer.yaml index 4d1fde3915..469dc8ad72 100644 --- a/deliverables/mitaka/ceilometer.yaml +++ b/deliverables/mitaka/ceilometer.yaml @@ -1,6 +1,7 @@ --- launchpad: ceilometer send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/ceilometer/mitaka.html releases: - version: 6.0.0.0b1 projects: diff --git a/deliverables/mitaka/cinder.yaml b/deliverables/mitaka/cinder.yaml index 24fcaf5895..f41677b427 100644 --- a/deliverables/mitaka/cinder.yaml +++ b/deliverables/mitaka/cinder.yaml @@ -1,6 +1,7 @@ --- launchpad: cinder send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/cinder/mitaka.html releases: - version: 8.0.0.0b1 projects: diff --git a/deliverables/mitaka/designate.yaml b/deliverables/mitaka/designate.yaml index b811666e3a..7861379166 100644 --- a/deliverables/mitaka/designate.yaml +++ b/deliverables/mitaka/designate.yaml @@ -1,6 +1,7 @@ --- launchpad: designate send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/designate/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/deliverables/mitaka/glance.yaml b/deliverables/mitaka/glance.yaml index 340dd9dfb9..0e44b9367a 100644 --- a/deliverables/mitaka/glance.yaml +++ b/deliverables/mitaka/glance.yaml @@ -1,6 +1,7 @@ --- launchpad: glance send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/glance/mitaka.html releases: - version: 12.0.0.0b1 projects: diff --git a/deliverables/mitaka/heat.yaml b/deliverables/mitaka/heat.yaml index e9d1667eca..4d6457215f 100644 --- a/deliverables/mitaka/heat.yaml +++ b/deliverables/mitaka/heat.yaml @@ -1,6 +1,7 @@ --- launchpad: heat send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/heat/mitaka.html releases: - version: 6.0.0.0b1 projects: diff --git a/deliverables/mitaka/horizon.yaml b/deliverables/mitaka/horizon.yaml index 9d6878d1a3..8ce5900746 100644 --- a/deliverables/mitaka/horizon.yaml +++ b/deliverables/mitaka/horizon.yaml @@ -1,6 +1,7 @@ --- launchpad: horizon send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/horizon/mitaka.html releases: - version: 9.0.0.0b1 projects: diff --git a/deliverables/mitaka/ironic-python-agent.yaml b/deliverables/mitaka/ironic-python-agent.yaml index ec7e794741..77e2df1b9d 100644 --- a/deliverables/mitaka/ironic-python-agent.yaml +++ b/deliverables/mitaka/ironic-python-agent.yaml @@ -1,6 +1,7 @@ --- launchpad: ironic-python-agent send-announcements-to: openstack-dev@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/ironic-python-agent/mitaka.html releases: - version: 1.1.0 projects: diff --git a/deliverables/mitaka/ironic.yaml b/deliverables/mitaka/ironic.yaml index 6ea6fffe14..006c6631d2 100644 --- a/deliverables/mitaka/ironic.yaml +++ b/deliverables/mitaka/ironic.yaml @@ -1,6 +1,7 @@ --- launchpad: ironic send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/ironic/mitaka.html releases: - version: 4.3.0 projects: diff --git a/deliverables/mitaka/keystone.yaml b/deliverables/mitaka/keystone.yaml index 0ddee5846b..e8c7bb84f4 100644 --- a/deliverables/mitaka/keystone.yaml +++ b/deliverables/mitaka/keystone.yaml @@ -1,6 +1,7 @@ --- launchpad: keystone send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/keystone/mitaka.html releases: - version: 9.0.0.0b1 projects: diff --git a/deliverables/mitaka/manila.yaml b/deliverables/mitaka/manila.yaml index e2973af7f0..d9c1996431 100644 --- a/deliverables/mitaka/manila.yaml +++ b/deliverables/mitaka/manila.yaml @@ -1,6 +1,7 @@ --- launchpad: manila send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/manila/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/deliverables/mitaka/mistral.yaml b/deliverables/mitaka/mistral.yaml index 0406c849b8..65fb45c9eb 100644 --- a/deliverables/mitaka/mistral.yaml +++ b/deliverables/mitaka/mistral.yaml @@ -1,6 +1,7 @@ --- launchpad: mistral send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/mistral/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/deliverables/mitaka/murano-agent.yaml b/deliverables/mitaka/murano-agent.yaml index 9ebebe3456..6bb50cad27 100644 --- a/deliverables/mitaka/murano-agent.yaml +++ b/deliverables/mitaka/murano-agent.yaml @@ -1,6 +1,7 @@ --- launchpad: murano send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/murano-agent/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/deliverables/mitaka/murano-dashboard.yaml b/deliverables/mitaka/murano-dashboard.yaml index b55ecd2d24..e37d5b6781 100644 --- a/deliverables/mitaka/murano-dashboard.yaml +++ b/deliverables/mitaka/murano-dashboard.yaml @@ -1,6 +1,7 @@ --- launchpad: murano send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/murano-dashboard/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/deliverables/mitaka/murano.yaml b/deliverables/mitaka/murano.yaml index c56d940cc2..d96c0ab313 100644 --- a/deliverables/mitaka/murano.yaml +++ b/deliverables/mitaka/murano.yaml @@ -1,6 +1,7 @@ --- launchpad: murano send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/murano/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/deliverables/mitaka/neutron.yaml b/deliverables/mitaka/neutron.yaml index 971b001814..6c9eb3ac48 100644 --- a/deliverables/mitaka/neutron.yaml +++ b/deliverables/mitaka/neutron.yaml @@ -1,6 +1,7 @@ --- launchpad: neutron send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/neutron/mitaka.html releases: - version: 8.0.0.0b1 projects: diff --git a/deliverables/mitaka/nova.yaml b/deliverables/mitaka/nova.yaml index 8f23357c57..c541be4885 100644 --- a/deliverables/mitaka/nova.yaml +++ b/deliverables/mitaka/nova.yaml @@ -1,6 +1,7 @@ --- launchpad: nova send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/nova/mitaka.html releases: - version: 13.0.0.0b1 projects: diff --git a/deliverables/mitaka/os-brick.yaml b/deliverables/mitaka/os-brick.yaml index 96a444b08f..21fb56364e 100644 --- a/deliverables/mitaka/os-brick.yaml +++ b/deliverables/mitaka/os-brick.yaml @@ -2,6 +2,7 @@ launchpad: os-brick send-announcements-to: openstack-dev@lists.openstack.org include-pypi-link: yes +release-notes: http://docs.openstack.org/releasenotes/os-brick/mitaka.html releases: - version: 0.6.0 projects: diff --git a/deliverables/mitaka/os-client-config.yaml b/deliverables/mitaka/os-client-config.yaml index 8b3a05949e..16f877aa88 100644 --- a/deliverables/mitaka/os-client-config.yaml +++ b/deliverables/mitaka/os-client-config.yaml @@ -2,6 +2,7 @@ launchpad: os-client-config send-announcements-to: openstack-dev@lists.openstack.org include-pypi-link: yes +release-notes: http://docs.openstack.org/releasenotes/os-client-config/mitaka.html releases: - version: 1.8.0 projects: diff --git a/deliverables/mitaka/python-cinderclient.yaml b/deliverables/mitaka/python-cinderclient.yaml index d1da5ab3ab..caab4a583e 100644 --- a/deliverables/mitaka/python-cinderclient.yaml +++ b/deliverables/mitaka/python-cinderclient.yaml @@ -2,6 +2,7 @@ launchpad: python-cinderclient send-announcements-to: openstack-announce@lists.openstack.org include-pypi-link: yes +release-notes: http://docs.openstack.org/releasenotes/python-cinderclient/mitaka.html releases: - version: 1.5.0 projects: diff --git a/deliverables/mitaka/python-ironicclient.yaml b/deliverables/mitaka/python-ironicclient.yaml index 54daca178f..6d1a30e98e 100644 --- a/deliverables/mitaka/python-ironicclient.yaml +++ b/deliverables/mitaka/python-ironicclient.yaml @@ -2,6 +2,7 @@ launchpad: python-ironicclient send-announcements-to: openstack-announce@lists.openstack.org include-pypi-link: yes +release-notes: http://docs.openstack.org/releasenotes/python-ironicclient/mitaka.html releases: - version: 0.9.0 projects: diff --git a/deliverables/mitaka/python-saharaclient.yaml b/deliverables/mitaka/python-saharaclient.yaml index bd883bb744..7591bf5f69 100644 --- a/deliverables/mitaka/python-saharaclient.yaml +++ b/deliverables/mitaka/python-saharaclient.yaml @@ -1,6 +1,7 @@ --- launchpad: python-saharaclient send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/python-saharaclient/mitaka.html releases: - version: 0.12.0 projects: diff --git a/deliverables/mitaka/sahara.yaml b/deliverables/mitaka/sahara.yaml index 643580cf74..4ca2d683cb 100644 --- a/deliverables/mitaka/sahara.yaml +++ b/deliverables/mitaka/sahara.yaml @@ -1,6 +1,7 @@ --- launchpad: sahara send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/sahara/mitaka.html releases: - version: 4.0.0.0b1 projects: diff --git a/deliverables/mitaka/searchlight.yaml b/deliverables/mitaka/searchlight.yaml index da45d8fedb..0e9c044cb1 100644 --- a/deliverables/mitaka/searchlight.yaml +++ b/deliverables/mitaka/searchlight.yaml @@ -1,6 +1,7 @@ --- launchpad: searchlight send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/searchlight/mitaka.html releases: - version: 0.2.0.0b1 projects: diff --git a/deliverables/mitaka/senlin.yaml b/deliverables/mitaka/senlin.yaml index 2dd87315a6..fa4dce6a00 100644 --- a/deliverables/mitaka/senlin.yaml +++ b/deliverables/mitaka/senlin.yaml @@ -1,6 +1,7 @@ --- launchpad: senlin send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/senlin/mitaka.html releases: - version: 1.0.0.0b2 projects: diff --git a/deliverables/mitaka/trove.yaml b/deliverables/mitaka/trove.yaml index fb8940ea40..280e643711 100644 --- a/deliverables/mitaka/trove.yaml +++ b/deliverables/mitaka/trove.yaml @@ -1,6 +1,7 @@ --- launchpad: trove send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/trove/mitaka.html releases: - version: 5.0.0.0b1 projects: diff --git a/deliverables/mitaka/zaqar.yaml b/deliverables/mitaka/zaqar.yaml index 90a2986930..ca036972a6 100644 --- a/deliverables/mitaka/zaqar.yaml +++ b/deliverables/mitaka/zaqar.yaml @@ -1,6 +1,7 @@ --- launchpad: zaqar send-announcements-to: openstack-announce@lists.openstack.org +release-notes: http://docs.openstack.org/releasenotes/zaqar/mitaka.html releases: - version: 2.0.0.0b1 projects: diff --git a/tools/add_release_note_links.sh b/tools/add_release_note_links.sh new file mode 100755 index 0000000000..82d5ba6b6c --- /dev/null +++ b/tools/add_release_note_links.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# +# Add release notes links to deliverable files when they page exists +# and the link is not already in the file. +# +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +if [ -z "$1" ]; then + echo "Usage: $0 SERIES" + exit 1 +fi + +SERIES="$1" + +function url_exists { + local url="$1" + + code=$(curl --silent -I -w "%{http_code}" -o /dev/null "$url") + if [[ $code = 200 ]]; then + return 0 + else + return 1 + fi +} + +for filename in deliverables/$SERIES/*.yaml; do + deliverable=$(basename $filename .yaml) + echo -n $deliverable + if grep -q 'release-notes' $filename; then + echo " already linked" + continue + fi + url="http://docs.openstack.org/releasenotes/${deliverable}/${SERIES}.html" + if ! url_exists $url; then + echo " no release notes page at $url" + else + sed -i -e "/releases:/i \ +release-notes: $url" $filename + echo + fi +done