Commit Graph

15 Commits

Author SHA1 Message Date
Bulat Gaifullin cae6df70bf Added packaging driver to build RPM by using mock
Option 'cache_dir' uses to specify directory where
will be downloaded remote files
The packaging controller allows to use files which
are available via HTTP as source or spec file
Each driver has its own section in input data,
this allows to use same input data for several drivers.

Change-Id: I1fb3b08fe305c3413e5aa4a9213762208a2479da
2016-07-05 16:49:06 +03:00
Bulat Gaifullin f86e3216bd Fixed handling http redirects
Override method 'redirect_request' for patching
new request, that has been created on handling
http redirect.

Closes-Bug: 1592464
Change-Id: Id32bc46cce2c0eabb91f645d01378b6da3128469
2016-06-15 18:16:31 +03:00
Bulat Gaifullin d661055322 Introduced new scheme to declare requirements
the requirements can contain the following sections:
packages - the list of packages that are needed
repositories - the list of repositories, packages from that are needed
mandatory - boolean flag that uses to automatically copy mandatory packages

Change-Id: Ic26f991c0bf1e9819005cd4bbe7ed40228b2ce1b
2016-05-19 15:26:16 +03:00
Bulat Gaifullin d99d1228ef Ignore 404 error on dowloading release file
Some debian repositories does not contain Release file.

Change-Id: Iad69241856e62b74cdee3a68481957ef38c3ab59
Closes-Bug: #1539703
2016-02-02 10:33:54 +03:00
Bulat Gaifullin fb3f8ffe02 Fixed retries for HTTP Errors
The code does not properly handle situation when server returns http error.
Also added option 'retries_delay' to specify timeout between retries

Change-Id: I2908f5d774d6d388085e48a965e5888773578530
Closes-Bug: #1539025
2016-02-01 17:40:49 +03:00
Bulat Gaifullin aff85a919e Introduced API to build DEB and RPM repository
Change-Id: I7abc2705f66228e81b36febe146d06988efb7b00
Implements: blueprint build-repository
2016-01-28 18:22:39 +00:00
Bulat Gaifullin 1ce69b4fef Unify input data format
The input data is described in YAML or JSON format
Also implemented support of priorities for repositories

Change-Id: I02f11714ba8880dd06c3ceeadf230c1d812ff0be
Implements:  blueprint unify-input-data
2016-01-28 17:27:15 +00:00
Bulat Gaifullin 0cb734c002 Updated file-headers 2015-12-29 12:51:14 +03:00
Bulat Gaifullin 15cbcf5e0a Update file-headers 2015-12-29 12:08:39 +03:00
Bulat Gaifullin d0b144b0b2 Introduced fuel-mirror
Avaliable commands:
- create - Creates a new local mirrors.
  fuel-mirror create --input ubuntu.yaml

- apply - Applies local mirrors for Fuel-environments.
  fuel-mirror apply --input centos.yaml -e "ENV1"

Change-Id: I6cbf4e581a93b47cf75fb3c89aa1020a352784c8
Closes-Bug: #1487077
Implements: blueprint refactor-local-mirror-scripts
2015-11-26 16:35:47 +03:00
Bulat Gaifullin 994fed9b1e [packetary] Introduce driver for rpm-repository
Change-Id: Ib9b9208964dba25d585fb9345a6ef95e7782a9ff
Implements: blueprint refactor-local-mirror-scripts
Partial-Bug: #1487077
2015-11-19 16:32:31 +03:00
Bulat Gaifullin aa570b1f98 [packetary] Introduce driver for debian-repository
Change-Id: Icb8f6964bd0a9080ace50b4786ac76ae5dbb9976
Implements: blueprint refactor-local-mirror-scripts
Partial-Bug: #1487077
2015-11-16 15:00:55 +03:00
Bulat Gaifullin 60ba0e6e62 [packetary] Infrastructure improvments.
* Added retry for 404 (HTTP Status).
* Added method for downloading the file to the ConnectionManager.
* AsynchronousSection collects all exceptions with traceback and
     log it after all tasks has been completed.
* generator.gen_relation returns object instead of list
* GzipDecompress: fixed case when there is not enough data to decompress next chunk

Change-Id: Ie2014aeee0c4776ed411ef6f28a996ef2d029c95
2015-11-06 12:24:34 +03:00
Bulat Gaifullin 6a9c463042 [packetary] Packages indexer
Change-Id: I981fe7ae8f0aba8314475c3633f325e18d5e3bb5
Implements: blueprint refactor-local-mirror-scripts
Partial-Bug: #1487077
2015-11-03 17:29:10 +03:00
Bulat Gaifullin 56689ae7cf [packetary] Infrastructure
Introduce infrastructure:
* Executor (The Asynchronous task executor)
* ConnectionsPool (The pool of network connections)
* ResumeableStream - allows resume streaming when error occures

Change-Id: Ia68d60c2b9d685820a4c1916c8f1aa724f3a3f91
Implements: blueprint refactor-local-mirror-scripts
Partial-Bug: #1487077
2015-10-27 17:41:57 +03:00