Skip to content

Commit d6604bf

Browse files
committed
Move packaging stuff into a dir
1 parent 8d7fc92 commit d6604bf

File tree

12 files changed

+552
-0
lines changed

12 files changed

+552
-0
lines changed

packaging/debian/README.Debian

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cASO Debian/Ubuntu notes
2+
========================
3+
4+
This package will create an hourly cron that will execute caso. This file is
5+
normally placed in /etc/cron.hourly/caso

packaging/debian/changelog

Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
python3-caso (3.0.0-1) stable; urgency=medium
2+
3+
[ Alvaro Lopez Garcia]
4+
* Support only for Python 3
5+
* Code improvements and bugfixes
6+
7+
-- Alvaro Lopez Garcia <[email protected]> Wed, 16 Mar 2022 00:50:00 +0100
8+
9+
python3-caso (2.1.1-1) stable; urgency=medium
10+
11+
[ Alvaro Lopez Garcia]
12+
* [d1bd16b] Do not rely on f-strings
13+
14+
-- Alvaro Lopez Garcia <[email protected]> Fri, 04 Feb 2021 16:43:35 +0100
15+
16+
python3-caso (2.1.0-1) stable; urgency=medium
17+
18+
[ Alvaro Lopez Garcia]
19+
* [80870b6] Remove ceilometer code
20+
* [2495353] extractor: new per-project base extractor
21+
* [57c00f5] nova extractor: refactor code to make it simpler
22+
* [e4de156] Fix record format, and use correct message format for publication
23+
24+
-- Alvaro Lopez Garcia <[email protected]> Fri, 04 Feb 2021 16:09:35 +0100
25+
26+
python3-caso (2.0.0-7) stable; urgency=medium
27+
28+
[ Aida Palacio Hoz ]
29+
* [5cb2ba3] Add Ip Accounting
30+
* [9279e3e] IP Accounting: Fixes and some comments
31+
* [64914aa] Format IP record following JSON schema
32+
33+
[ Alessandro Costantini ]
34+
* [968462a] Support for multi-region + documentation
35+
36+
[ Alvaro Lopez Garcia ]
37+
* [ee3035d] Allow projects to be specified as IDs
38+
* [e858386] Change error to warning when a VM cannot be loaded
39+
* [f4b594a] Generate a warning if a VO mapping is not found
40+
* [1576b04] Update LOG message with link to documentation
41+
* [592bde5] ssm: add entrypoints for V2 and V4 messengers
42+
* [53a3da3] Manage release notes through documentation
43+
* [203aeaf] Drop Python 2 support
44+
* [36a47c7] Update pbr required version
45+
* [d7444ff] Update cASO requirements
46+
* [9ee7e17] Fix requirements with proper versions
47+
48+
-- Alvaro Lopez Garcia <[email protected]> Fri, 15 Jan 2021 13:07:16 +0100
49+
50+
caso (1.4.3-1) stable; urgency=medium
51+
52+
[ Alvaro Lopez Garcia ]
53+
* [c8325f5] Ensure that we return integers for wall/cpu duration
54+
* [34a7fc6] Fix bug that made cASO report only last project configured
55+
56+
-- Alvaro Lopez Garcia <[email protected]> Tue, 24 Mar 2020 11:38:12 +0100
57+
58+
caso (1.4.2-1) stable; urgency=medium
59+
60+
[ Alvaro Lopez Garcia ]
61+
* [3b88759] Servers deleted with end_time=None must have an end time
62+
63+
-- Alvaro Lopez Garcia <[email protected]> Mon, 09 Mar 2020 17:29:52 +0100
64+
65+
caso (1.4.0-1) stable; urgency=medium
66+
67+
* [38013fd] Add "max-size" to limit output records sent to the messenger
68+
* [c8a6870] Update sample cfg file
69+
70+
-- Alvaro Lopez Garcia <[email protected]> Tue, 10 Dec 2019 12:55:10 +0100
71+
72+
caso (1.3.3-1) stable; urgency=medium
73+
74+
* [3503e5c] Do not fail if querying for a server throws an error in the API
75+
76+
-- Alvaro Lopez Garcia <[email protected]> Tue, 15 Oct 2019 10:46:16 +0200
77+
78+
caso (1.3.2-1) stable; urgency=medium
79+
80+
* [796c50e] Fix wrong record generation
81+
82+
-- Alvaro Lopez Garcia <[email protected]> Fri, 04 Oct 2019 13:07:55 +0200
83+
84+
caso (1.3.1-1) stable; urgency=medium
85+
86+
[ Alvaro Lopez Garcia ]
87+
* [a9d2e7a] Update configuration files
88+
* [a77e54e] Add locking so that cASO does not run in parallel
89+
* [6f68e12] Fix lock path management
90+
* [181aa81] Use correct server's start time
91+
* [6df46e9] record: use properties for {start,end}_time
92+
* [0e8cadb] Improve and fix duration calculation and server status
93+
* [bd228ae] tox: remove py34
94+
* [540b4e7] Document keystone policy configuration
95+
* [4b73f19] setup: set proper content type for description
96+
* [723d8fd] Use correct version string
97+
98+
[ Enol Fernandez ]
99+
* [a6cd2d9] Use the public keystone interface
100+
* [4f475f3] Avoid iteritems
101+
102+
-- Alvaro Lopez Garcia <[email protected]> Tue, 01 Oct 2019 09:32:11 +0200
103+
104+
caso (1.2.0-1) stable; urgency=medium
105+
106+
[ Alvaro Lopez Garcia ]
107+
* [34cc6dc] Remove old references to "tenant(s)" in the docs and examples
108+
* [a86c638] Add and change some meta files to the repository
109+
* [c703585] Add python 3.6 as supported version
110+
* [ae6eb97] Do not lazy-load the extra specs for each flavor
111+
* [2161a33] Fix record extraction and do not request only deleted records
112+
113+
-- Alvaro Lopez Garcia <[email protected]> Fri, 01 Jun 2018 13:51:58 +0200
114+
115+
caso (1.1.1-1) stable; urgency=medium
116+
117+
* [11520c0] Do not create records for instances outside the reporting period
118+
119+
-- Alvaro Lopez Garcia <[email protected]> Thu, 03 Aug 2017 11:56:16 +0200
120+
121+
caso (1.1.0-1) stable; urgency=medium
122+
123+
[ Alvaro Lopez Garcia ]
124+
* [6c4c7e5] remove old helper script
125+
* [6b99fdb] fix test failure due to oslo.cfg update
126+
* [c873858] Take pagination into account
127+
* [d35fefc] Report correct durations using periods
128+
* [345da26] Deprecate underscored options
129+
130+
-- Alvaro Lopez Garcia <[email protected]> Wed, 24 May 2017 11:11:20 +0200
131+
132+
caso (1.0.1-1) stable; urgency=medium
133+
134+
* [50e1dee] Use scope in flavor properties
135+
* [bb3605b] Include "OpenStack" string in the user agent
136+
137+
-- Alvaro Lopez Garcia <[email protected]> Mon, 27 Feb 2017 10:25:51 +0100
138+
139+
caso (1.0.0-1) stable; urgency=medium
140+
141+
[ Alvaro Lopez Garcia ]
142+
* [ceb2049] Deprecate old ssm messager
143+
* [ef7199f] Implement a base SSM messenger
144+
* [cbd80f2] Implement v0.4 of the CloudRecord
145+
* [f4093be] Implement version 0.4 of the SSM messenger
146+
* [1ad5142] Add service name to the nova extractor
147+
* [3a720f6] Do not put extractors options under CONF.extractor
148+
* [fd08e4f] remove redundant help message
149+
* [d013ec2] Use keystoneauth1 and sessions for authentication
150+
* [4d8511f] Improve documentation
151+
* [9ab70fb] Fix typo in log message
152+
* [b049137] update python3 version
153+
* [87e55e2] add bandit security linter
154+
* [debee59] do not use absolute path for cfg files
155+
* [ad79a63] do not use nova.images but glance client
156+
* [cb625c8] do not use tenant_id but project_id
157+
* [66ae4f4] log additional message before extracting records
158+
* [d551b86] doc: Update user creation section in configuration
159+
* [786d5c3] Fix missing flavor name in logging
160+
* [822d5bf] update sample configuration file
161+
* [586484d] extract benchmark information
162+
163+
[ Luis Pigueiras ]
164+
* [6b35f60] Add option --extract-to to the parameters
165+
* [328516e] Adapt extractors to use the new extract_to parameter
166+
* [a4995fb] Fix pep8 and flake8
167+
168+
[ Mario David ]
169+
* [178ee50] Fix failure when server does not have image_id
170+
171+
-- Alvaro Lopez Garcia <[email protected]> Fri, 24 Feb 2017 11:30:09 +0100
172+
173+
caso (0.3.3-1) stable; urgency=medium
174+
175+
* [c335ed0] Use a list for the tenant mapping
176+
* [1638298] update sample configuration file
177+
178+
-- Alvaro Lopez Garcia <[email protected]> Tue, 18 Oct 2016 10:01:34 +0200
179+
180+
caso (0.3.2-1) stable; urgency=medium
181+
182+
* [d0178d2] Switch to using oslo_* instead of oslo.*
183+
* [afe8cfd] Switch logging to oslo.log
184+
* [2017336] Generate config samples directly from oslo
185+
* [f28b27b] Do not use deprecated get_client_class() function
186+
* [8c0174e] Handle exceptions getting records
187+
188+
-- Alvaro Lopez Garcia <[email protected]> Mon, 21 Dec 2015 11:54:46 +0100
189+
190+
caso (0.3.1-1) stable; urgency=medium
191+
192+
* [1236322] Fix TZ not being actually removed
193+
194+
-- Alvaro Lopez Garcia <[email protected]> Tue, 30 Jun 2015 12:12:39 +0200
195+
196+
caso (0.3-1) stable; urgency=medium
197+
198+
* [1540d13] Initial debian packaging stuff
199+
* [e1aaa0e] Add license information to pbr metadata
200+
* [cb2cec0] Add unit tests for base extractor manager
201+
* [97faea1] Add missing method on BaseExtractor
202+
* [6474f1d] Add docstrings
203+
* [227921c] Fix CPU duration reporting
204+
205+
-- Alvaro Lopez Garcia <[email protected]> Tue, 09 Jun 2015 09:11:07 +0200
206+
207+
caso (0.2-1) stable; urgency=medium
208+
209+
[ Adam Huffman ]
210+
* [b8bdd16] Update installation.rst
211+
212+
[ Enol Fernandez ]
213+
* [a090ff9] Use coherent capitalization of cASO.
214+
* [47cb63a] Added info on migration from osssm.
215+
* [909f2a4] Improve CentOS 6 information.
216+
* [53da27c] Update to support python3.
217+
* [68a81f3] Added information about SSL certificate checking.
218+
* [3e52724] Ceilometer extractor now extends nova information.
219+
220+
-- Alvaro Lopez Garcia <[email protected]> Mon, 09 Feb 2015 10:35:05 +0100
221+
222+
caso (0.1.1) stable; urgency=medium
223+
224+
* UNRELEASED
225+
226+
[ Alvaro Lopez Garcia ]
227+
228+
-- Alvaro Lopez Garcia <[email protected]> Mon, 09 Feb 2015 10:34:26 +0100

packaging/debian/clean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.egg-info/*

packaging/debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

packaging/debian/control

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Source: python3-caso
2+
Section: net
3+
Priority: extra
4+
Maintainer: Alvaro Lopez Garcia <[email protected]>
5+
Homepage: https://github.com/IFCA/caso
6+
Build-Depends:
7+
debhelper (>= 7.0.50),
8+
dh-python,
9+
python3-all,
10+
python3-all-dev
11+
Standards-Version: 3.9.3
12+
X-Python3-Version: >=3.5
13+
14+
Package: python3-caso
15+
Architecture: all
16+
Section: python
17+
Depends:
18+
python3-oslo.concurrency,
19+
python3-oslo.config,
20+
python3-oslo.log,
21+
python3-oslo.utils,
22+
python3-neutronclient,
23+
python3-novaclient,
24+
python3-keystoneclient,
25+
python3-keystoneauth1,
26+
python3-glanceclient,
27+
python3-dateutil,
28+
python3-dirq,
29+
python3-six,
30+
${python3:Depends},
31+
${misc:Depends},
32+
Recommends: apel-ssm
33+
Provides: ${python:Provides}
34+
Description: An OpenStack accounting extractor.
35+
.
36+
This program will extract usage records for each tenant and
37+
associate those records to a VO so that they can be sent to the
38+
EGI Accounting system.
39+
40+
Package: caso
41+
Depends: python3-caso, ${misc:Depends}
42+
Architecture: all
43+
Priority: optional
44+
Section: oldlibs
45+
Description: transitional package
46+
This is a transitional package. It can safely be removed.

packaging/debian/copyright

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: ooi
3+
Source: https://github.com/alvarolopez/cASO
4+
5+
Files: *
6+
Copyright: 2015 Spanish National Research Council (CSIC)
7+
Others (See individual files for more details)
8+
License: Apache-2
9+
Licensed under the Apache License, Version 2.0 (the "License");
10+
you may not use this file except in compliance with the License.
11+
You may obtain a copy of the License at
12+
.
13+
http://www.apache.org/licenses/LICENSE-2.0
14+
.
15+
Unless required by applicable law or agreed to in writing, software
16+
distributed under the License is distributed on an "AS IS" BASIS,
17+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
See the License for the specific language governing permissions and
19+
limitations under the License.
20+
.
21+
On Debian-based systems the full text of the Apache version 2.0 license
22+
can be found in `/usr/share/common-licenses/Apache-2.0'.
23+

packaging/debian/cron.hourly

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
/usr/bin/caso-extract

packaging/debian/gbp.conf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[DEFAULT]
2+
debian-branch = master
3+
ignore-branch = True
4+
debian-tag = %(version)s
5+
6+
# Options only affecting gbp dch
7+
[dch]
8+
# include 7 digits of the commit id in the changelog enty:
9+
id-length = 7
10+
11+
# don't include information from meta tags:
12+
meta = True
13+
14+
# what tags to look for to generate bug-closing changelog entries:
15+
meta-closes = closes|Closes
16+
17+
# use author name and email from git-config:
18+
git-author = True

packaging/debian/postinst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/sh
2+
# postinst script for webpy-example
3+
#
4+
# see: dh_installdeb(1)
5+
6+
set -e
7+
8+
# summary of how this script can be called:
9+
# * <postinst> `configure' <most-recently-configured-version>
10+
# * <old-postinst> `abort-upgrade' <new version>
11+
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12+
# <new-version>
13+
# * <postinst> `abort-remove'
14+
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15+
# <failed-install-package> <version> `removing'
16+
# <conflicting-package> <version>
17+
# for details, see http://www.debian.org/doc/debian-policy/ or
18+
# the debian-policy package
19+
20+
# source debconf library
21+
. /usr/share/debconf/confmodule
22+
23+
case "$1" in
24+
configure)
25+
mkdir -p /var/spool/caso
26+
mkdir -p /var/spool/apel/outgoing/openstack
27+
mkdir -p /var/log/caso
28+
;;
29+
30+
abort-upgrade|abort-remove|abort-deconfigure)
31+
exit 0
32+
;;
33+
34+
*)
35+
echo "postinst called with unknown argument \`$1'" >&2
36+
exit 1
37+
;;
38+
esac
39+
40+
# dh_installdeb will replace this with shell code automatically
41+
# generated by other debhelper scripts.
42+
43+
#DEBHELPER#
44+
45+
exit 0

packaging/debian/rules

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /usr/bin/make -f
2+
3+
export DH_VERBOSE=1
4+
export PYBUILD_NAME=caso
5+
6+
%:
7+
dh $@ --with python3 --buildsystem=pybuild
8+
9+
override_dh_auto_test:
10+
tox -epep8,bandit

0 commit comments

Comments
 (0)