Remove dest_filename from build.ini

We can, and should, figure out the filename dynamically rather than
hardcode that value in build.ini since it is not actually a
configurable paramater.

Change-Id: I496d6555e9fa356ab09e62063fd707f43ed08121
Closes-Bug: #1490386
This commit is contained in:
Sam Yaple 2015-08-31 04:09:59 +00:00
parent 5f621a4fe9
commit 45f625a73e
15 changed files with 15 additions and 33 deletions

View File

@ -1,79 +1,63 @@
[ceilometer-base]
type = url
location = http://tarballs.openstack.org/ceilometer/ceilometer-master.tar.gz
dest_filename = ceilometer.tar
[cinder-base]
type = url
location = http://tarballs.openstack.org/cinder/cinder-master.tar.gz
dest_filename = cinder.tar
[designate-base]
type = url
location = http://tarballs.openstack.org/designate/designate-master.tar.gz
dest_filename = designate.tar
[glance-base]
type = url
location = http://tarballs.openstack.org/glance/glance-master.tar.gz
dest_filename = glance.tar
[gnocchi-base]
type = url
location = http://tarballs.openstack.org/gnocchi/gnocchi-master.tar.gz
dest_filename = gnocchi.tar
[heat-base]
type = url
location = http://tarballs.openstack.org/heat/heat-master.tar.gz
dest_filename = heat.tar
[horizon]
type = url
location = http://tarballs.openstack.org/horizon/horizon-master.tar.gz
dest_filename = horizon.tar
[ironic-base]
type = url
location = http://tarballs.openstack.org/ironic/ironic-master.tar.gz
dest_filename = ironic.tar
[keystone]
type = url
location = http://tarballs.openstack.org/keystone/keystone-master.tar.gz
dest_filename = keystone.tar
[magnum-base]
type = url
location = http://tarballs.openstack.org/magnum/magnum-master.tar.gz
dest_filename = magnum.tar
[murano-base]
type = url
location = http://tarballs.openstack.org/murano/murano-master.tar.gz
dest_filename = murano.tar
[neutron-base]
type = url
location = http://tarballs.openstack.org/neutron/neutron-master.tar.gz
dest_filename = neutron.tar
[nova-base]
type = url
location = http://tarballs.openstack.org/nova/nova-master.tar.gz
dest_filename = nova.tar
[nova-novncproxy]
type = url
location = http://github.com/kanaka/noVNC/tarball/v0.5.1
dest_filename = novnc.tar
[swift-base]
type = url
location = http://tarballs.openstack.org/swift/swift-master.tar.gz
dest_filename = swift.tar
[zaqar]
type = url
location = http://tarballs.openstack.org/zaqar/zaqar-master.tar.gz
dest_filename = zaqar.tar

View File

@ -10,7 +10,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
ADD ceilometer.tar /
ADD ceilometer-base.tar /
RUN ln -s /ceilometer-* ceilometer \
&& useradd --user-group ceilometer \
&& pip --no-cache-dir install /ceilometer \

View File

@ -33,7 +33,7 @@ RUN apt-get install -y --no-install-recommends lvm2 \
{% endif %}
ADD cinder.tar /
ADD cinder-base.tar /
RUN ln -s /cinder-* cinder \
&& useradd --user-group cinder \
&& pip --no-cache-dir install /cinder \

View File

@ -26,7 +26,7 @@ RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
ADD designate.tar /
ADD designate-base.tar /
RUN ln -s /designate-* designate \
&& useradd --user-group designate \
&& pip --no-cache-dir install /designate \

View File

@ -17,7 +17,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
ADD glance.tar /
ADD glance-base.tar /
RUN ln -s /glance-* glance \
&& useradd --user-group glance \
&& pip --no-cache-dir install /glance \

View File

@ -14,7 +14,7 @@ RUN apt-get install -y --no-install-recommends libpq-dev \
{% endif %}
ADD gnocchi.tar /
ADD gnocchi-base.tar /
RUN ln -s /gnocchi-* gnocchi \
&& useradd --user-group gnocchi \
&& pip --no-cache-dir install /gnocchi \

View File

@ -16,7 +16,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
ADD heat.tar /
ADD heat-base.tar /
RUN ln -s /heat-* heat \
&& useradd --user-group heat \
&& pip --no-cache-dir install /heat \

View File

@ -22,7 +22,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
ADD ironic.tar /
ADD ironic-base.tar /
RUN ln -s /ironic-* ironic \
&& useradd --user-group ironic \
&& pip --no-cache-dir install /ironic \

View File

@ -18,7 +18,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% endif %}
{% elif install_type == 'source' %}
ADD magnum.tar /
ADD magnum-base.tar /
RUN ln -s /magnum-* magnum \
&& useradd --user-group magnum \
&& pip --no-cache-dir install /magnum \

View File

@ -8,7 +8,7 @@ RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
{% elif install_type == 'source' %}
ADD murano.tar /
ADD murano-base.tar /
RUN ln -s /murano-* murano \
&& useradd --user-group murano \
&& pip --no-cache-dir install /murano \

View File

@ -31,7 +31,7 @@ RUN apt-get install -y --no-install-recommends \
{% endif %}
ADD neutron.tar /
ADD neutron-base.tar /
RUN ln -s /neutron-* neutron \
&& useradd --user-group neutron \
&& pip --no-cache-dir install /neutron \

View File

@ -39,7 +39,7 @@ RUN apt-get install -y --no-install-recommends \
{% endif %}
ADD nova.tar /
ADD nova-base.tar /
RUN ln -s /nova-* nova \
&& useradd --user-group nova \
&& pip --no-cache-dir install /nova \

View File

@ -20,7 +20,7 @@ RUN yum -y install \
{% elif base_distro in ['ubuntu', 'debian'] %}
ADD novnc.tar /
ADD nova-novncproxy.tar /
RUN ln -s /kanaka-noVNC-* /usr/share/novnc
{% endif %}

View File

@ -15,7 +15,7 @@ RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \
{% elif install_type == 'source' %}
ADD swift.tar /
ADD swift-base.tar /
RUN ln -s /swift-* swift \
&& useradd --user-group swift \
&& pip --no-cache-dir install /swift \

View File

@ -89,7 +89,7 @@ class WorkerThread(Thread):
def process_source(self, image):
source = image['source']
dest_dir = image['path']
dest_tar = os.path.join(dest_dir, source['dest'])
dest_tar = os.path.join(dest_dir, image['name'] + '.tar')
if source.get('type') == 'url':
LOG.debug("{}:Getting tarball from {}".format(image['name'],
@ -135,7 +135,7 @@ class WorkerThread(Thread):
return
# Set time on destination tarball to epoch 0
os.utime(os.path.join(dest_dir, source['dest']), (0, 0))
os.utime(dest_tar, (0, 0))
def builder(self, image):
LOG.debug('{}:Processing'.format(image['name']))
@ -440,8 +440,6 @@ class KollaWorker(object):
'type')
image['source']['source'] = self.config.get(image['name'],
'location')
image['source']['dest'] = self.config.get(image['name'],
'dest_filename')
if image['source']['type'] == 'git':
image['source']['reference'] = \
self.config.get(image['name'], 'reference')