Commit Graph

116 Commits

Author SHA1 Message Date
Andreas Jaeger dd8f769631 Retire repository
Fuel repositories are all retired in openstack namespace, retire
remaining fuel repos in x namespace since they are unused now.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011675.html

A related change is: https://review.opendev.org/699752 .

Change-Id: I02c43446ad3d94e77008e67ff5bae3b000c9911b
2019-12-20 21:40:09 +01:00
OpenDev Sysadmins 590f2ad408 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:32:44 +00:00
georgy 43b5d6d905 Check /var/dump existence
Before removing contents of /var/dump the shotgun now checks that the
directory exists.

Change-Id: Ie503a17144452dcab97b31a4dd4dd5bfa2a4c46b
Closes-Bug: #1574695
2016-06-17 12:12:51 +03:00
Jenkins 8fc566b822 Merge "Out of space detection during compression" 2016-05-23 09:35:55 +00:00
Georgy Kibardin d8b167eddc Out of space detection during compression
Since compression command is actually a pipeline
we cannot use return code to detect out of space condition
so, the only way is to parse stderr

Change-Id: I2a95333bcabb73d0716d9790e14851cfefd47478
Partial-Bug: #1543491
2016-05-18 15:58:48 +03:00
Jenkins d20aa7afeb Merge "Fail with encoding problems as early as possible." 2016-05-18 12:49:43 +00:00
Krzysztof Szukiełojć 6d53c7c423 Fail with encoding problems as early as possible.
We decode stdout from utf-8 to detect potential unicode problems
as early as possible.

Change-Id: If8fe35801d398eb5dbbd04f5f92317228df10ee9
Partly-bug: 1573638
2016-05-16 10:55:06 +02:00
Georgy Kibardin 5afd0ac1e1 Use gzip for snapshots
On the 15G snapshot data gz is 10 times faster than xz while compression
rate is just 36% against 50% with gzip.
For the pattern "create once - download once" this looks like a
reasonable solution.

Change-Id: I5d2ce3681ec6555a8994bb39def907006be8b79f
Closes-Bug: #1546023
2016-05-12 13:13:33 +03:00
Igor Yozhikov 230d84cacf Add python-pbr as build time dependency
Change-Id: I426895f6895d302e999567d0a87e9c910d6ada22
Related-Bug: #1570252
2016-04-14 13:58:33 +03:00
Sergey Kulanov 70c03d8570 Bump version to 10.0
Change-Id: I36c2886131b857629872f80769f2e81b8fb2c86e
Related-bug: #1558589
2016-03-31 12:14:58 +03:00
Roman Prykhodchenko 6ba2521f90 Use common tools to run tests
In order to correspond to global requirements and integrate
depper with OpenStack CI this patch switches shotgun from
py.test and unittest2 to testrepository and oslotest.

Change-Id: I08e31a5c16f4ad55c096d340eb2e2bff4fdb0a36
Partial-bug: #1469045
2016-03-31 10:32:22 +02:00
Roman Prykhodchenko a936a4b194 Synchronize with global requirements
This patch allignes both versions and order of packages in requirements.txt
and test-requirements.txt with master revision of OpenStack's global
requirements in Mitaka release cycle.

In order to perform the soft sync all settings from setup.py were moved to
setup.cfg and setup.py was autogenerated using cookiecutter and the default
project template for OpenStack projects.

Change-Id: Iabf7a0fd8e3b01ea1712a663782399631b186f10
Partial-bug: #1469045
2016-03-30 15:59:54 +00:00
Sergey Kulanov 5d07ed6c18 Update fuel packages changelog reporting
* We have several packages:
     - nailgun-agent
     - nailgun-mcagents
     - python-packetary
  changes to which should be reflected in changelog reports

* increase number of records to show from packages changelog
  (in case full report)

Change-Id: I155f106edeab2e4cf99e5debf2e60bafeb058d28
Partial-bug: #1557162
2016-03-21 15:01:47 +02:00
Jenkins bd7a089f97 Merge "Add short-report command, fix logging" 2016-03-17 11:53:07 +00:00
Volodymyr Shypyguzov 126cfecf2b Add short-report command, fix logging
1. Fix logging for cli part to get use of builtin cliff commands -v, -q
2. Add short-report command for shorter and cleaner output
3. Fix built-in name shadowing

Example usage:
    shotgun2 short-report - shows short report version

Change-Id: I465eca3c509196d6bdc850d0b73fed1e5fb3a3d7
Closes-Bug: #1551762
2016-03-16 10:58:15 +02:00
tatyana-leontovich e04143b927 Revert "Synchronize with global requirements"
This reverts commit 9300fdbbaa.

Change-Id: I279ec752f616961cfea7838f2951949999168875
Closes-Bug: #1555577
2016-03-10 16:51:22 +00:00
tatyana-leontovich 4283dd3bab Revert "Use common tools to run tests"
This reverts commit a9e5b7644a.

Change-Id: I67ddedcb100a52e82ce6bfd39fabaff33d33d0c3
Related-Bug: #1555577
2016-03-10 16:33:19 +00:00
Roman Prykhodchenko a9e5b7644a Use common tools to run tests
In order to correspond to global requirements and integrate
depper with OpenStack CI this patch switches shotgun from
py.test and unittest2 to testrepository and oslotest.

Partial-bug: #1469045
Change-Id: Ic0abb5e8e62113be300f871b065f9cc48cd381a5
2016-03-10 11:30:15 +01:00
Jenkins 5bae66f476 Merge "Synchronize with global requirements" 2016-03-09 17:17:07 +00:00
Maksim Malchuk 7256484e5c Add an empty line separator to the shotgun2 report
Sometimes is hard to read shotgun2 report, especially when one of
the packages doesn't contain the changelog. This commit adds an
empty line separator in the report output.

Change-Id: I504dcfffed0f88c57aa9f1956abd173eb39d7262
Closes-Bug: #1548541
2016-02-24 08:37:40 +00:00
Roman Prykhodchenko 9300fdbbaa Synchronize with global requirements
This patch  allignes both versions and order of packages in requirements.txt
and test-requirements.txt with master revision of OpenStack's global
requirements in Mitaka release cycle.

In order to perform the soft sync all settings from setup.py were moved to
setup.cfg and setup.py was autogenerated using cookiecutter and the default
project template for OpenStack projects.

Partial-bug: #1469045
Change-Id: I9d99517b9016f61904ab5e25d8ffb39cfb0c1119
2016-02-18 16:42:40 +01:00
Maciej Kwiek 68812bebd7 Return error codes other than 1.
If exception has 'errno' attribute, it is returned instead of '1'.

Change-Id: I77ef6e91cb5a1ee99dfd3f078e8f7e961ffcf555
Related-bug: 1496842
2016-02-16 12:43:17 +01:00
Maciej Kwiek 4d0fa1ce2a Delete snasphot on out of space error.
If generating snapshot throws an IOError with 28 error code
(errno.ENOSPC) whole snapshot is deleted to not clutter drive.

Change-Id: I442b6bfe7ea5d3b3661351ed36f973f870d4d95d
Partial-bug: 1529182
2016-02-12 12:51:06 +01:00
Jenkins d453d56187 Merge "Getting local files creates symlinks instead of copying" 2016-02-10 09:53:27 +00:00
Maciej Kwiek 6930543c70 Getting local files creates symlinks instead of copying
Dumping shotgun resources is now done through symlinks. All local
resources are symlinked in dump directory, after that dump is compressed
with tar using -h option (--dereference).

Excluding files from tarball is now done by passing --exclude option to
tar instead of removing files before taring to avoid deleting logs.

Symlinks are created by 'ln -s' command because of wildcards used in
shotgun settings.

Change-Id: Ie9a0ab51d5874cd46a3919179def0aef407e7340
Partial-bug: 1529182
2016-02-03 14:02:45 +01:00
Vladimir Kozhukalov 0d5f343781 Remove docker containers from the master node
As we got rid of using docker containers on the
Fuel master node, we don't need anymore to
run any commands inside docker containers.

Depends-On: I9c2a3b1f988ba9bb937546eab2a0dbe84d19b18b
Implements blueprint: get-rid-docker-containers
Change-Id: I345fcadc3dd138251657571641bc505b721bd76f
2016-01-29 14:48:42 +03:00
Vladimir Kozhukalov 0682f20c42 Add report subcommand
This subcommand is to be used instead of version.yaml

Version.yaml used to provide short info
about what is installed on the master node.
We've switched to the package based
delivery approach and using build time artifact
(version.yaml) while packages could be easily
updated using yum command does not look rational.

This patch makes it possible to gather a short
report about what is installed on the master node
as well as about the content of some file in
a data driven manner.

One can run

shotgun2 report --config /path/to/report_config.yaml

/etc/shotgun/report.yaml is used by default as a config for
the report subcommand. It is to be provided by
shotgun rpm package.

Change-Id: I304a972c0c275d23ce2896a4d4e60870f9504fb4
Related-Bug: #1515517
2015-12-31 16:13:30 +03:00
Vladimir Kozhukalov 25154fb0b5 Change execute utility to use shell by default
This patch makes it possible to run not
only commands but multiline scripts.

Change-Id: I5c8692d0dcabe0041c1da67e3b4f7818810e3bce
Related-Bug: #1515517
2015-12-31 10:46:45 +00:00
Jenkins b151a65b68 Merge "Add DockerCommand driver" 2015-12-31 10:45:31 +00:00
Jenkins 461475189a Merge "Multiple commands in a single command object" 2015-12-31 10:34:44 +00:00
Jenkins d9f6acb85a Merge "use python-cliff for CLI" 2015-12-31 10:25:46 +00:00
Vladimir Kozhukalov f45f78f4aa Add DockerCommand driver
Introduces a new snapshot driver that is
the same as Command driver but prepends
'docker exec ' to each command in the
object.

Change-Id: I8bf939bdb5a489982bc38257a245b4233103a07a
Related-Bug: #1515517
2015-12-30 13:55:01 +03:00
Vladimir Kozhukalov b4a1c1fa2b Multiple commands in a single command object
This patch makes it possible to define
multiple commands in a single object.

- type: command
  command:
    - cmd1
    - cmd2
  to_file: result.txt

Change-Id: I4c2052551aeddae78e6d6bdedf8080a0389aa4b3
Related-Bug: #1515517
2015-12-30 13:53:47 +03:00
Vladimir Kozhukalov b7224bd244 use python-cliff for CLI
Shotgun now uses python-cliff to provide
CLI like:

shotgun2 snapshot --config /path/to/snopshot_config.yaml

This change will allow us to add other subcommands
like "shotgun2 report" that is to be used for gathering
short report about the master node (instead of version.yaml)

Previous version of shotgun CLI is still available
and deprecated.

Change-Id: I3bc1f711d0e0fcf06f9414df1533d641a0e46595
Related-Bug: #1515517
2015-12-30 12:22:10 +03:00
janonymous 29c69e028f py26 is no longer supported by Infra's CI
Python 2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it too.

Change-Id: I5b849d02826f8af1a1b6efc445fa3026eb30ef9c
2015-12-26 14:38:50 +05:30
Jenkins 0496f04ff9 Merge "Set output for local command" 2015-12-24 15:22:39 +00:00
Jenkins 384ac83213 Merge "Bump version to 9.0" 2015-12-24 10:37:19 +00:00
Oleg Gelbukh 5663fb6b81 Set output for local command
Set 'output' property for local command. This is required for
'mktemp' to work similarly in both cases (local and remote
command).

Change-Id: Ic4efe586683424c7145e811aa3495cf23e8f550e
Closes-bug: 1528815
2015-12-23 12:57:23 +00:00
Jenkins bf79f1ac08 Merge "Spec for packages MUST be reviewed by mos packaging team" 2015-12-22 09:50:42 +00:00
Jenkins ae9a510f11 Merge "Output from fabric.api.run for remote command" 2015-12-21 10:36:32 +00:00
Sergey Kulanov 7469c758e9 Spec for packages MUST be reviewed by mos packaging team
Change-Id: I995a9ab98b54d2e85a00c33061e17f4017361ba1
2015-12-20 20:32:35 +00:00
Sergey Kulanov 0e93e813d3 Bump version to 9.0
Change-Id: Ifcf594e3f422b4621b7bb1c7efe8c6969a79379e
2015-12-17 17:13:57 +02:00
Oleg Gelbukh d5dc87599c Output from fabric.api.run for remote command
The fabric.api.run command returns the string with combined stderr and
stdout. Raw output of the fabric process contains additional line
prefixes to indicate executed command and stdout/stderr stream. Using
raw output to fetch file name of temp file created by 'mktemp' command
is incorrect and causes DB dump to fail.

Add CommandOut.output property and use it to store the output string
produced by fabric.api.run. Use this property to set the name of
temp file in Postgres driver.

Change-Id: I9678a408f5532db1acb8fc36dd4eef4a95b61bfe
Closes-bug: 1526081
2015-12-15 14:57:38 +00:00
Ondřej Nový cacb93cbc2 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Idf94e3ed3645cb664a0a5e4bc18087dd0a5014fa
2015-12-11 23:34:53 +01:00
Andrey Tykhonov a0bd065080 Fix dump for PostgreSQL is missing in a snapshot
This issue was introduced by
https://review.openstack.org/241271. Actually the changes in that
patch doesn't allow to execute a command (or file/dir operation) on a
local host.

This patch fixes:

* execution of a command on a local host (when neither address nor
hostname is specified)
* missing dump for PostgreSQL in a snapshot
* getting network address (address may be absent, but hostname could be
  present, so we need to use hostname in that case)

Change-Id: Iafecfa458372458963abd1e16890fe225454a612
Partial-bug: #1519303
2015-12-01 11:47:29 +02:00
Jenkins 25a0cc461a Merge "Dump shotgun log at the end of snapshot creation" 2015-11-26 13:41:32 +00:00
Ivan Kliuk 34a081508b Add 'six' library to 'requirements.txt'
* Add 'six' library to 'requirements.txt' and 'shotgun.spec' for Python 2.x/3.x
  compatibility.
* The version binding is taken from https://github.com/openstack/requirements

Change-Id: Ic2f160383f6e4ec186ca251ca65e017909b713b0
Closes-bug: #1519688
2015-11-24 13:50:13 +02:00
Maciej Kwiek 41fe7aacc6 Dump shotgun log at the end of snapshot creation
Shotgun dumps /var/log/shotgun.log as normal part of the snapshot, but
it fills it in as the snapshot is created, which resulted in dumping
shotgun log split in half.

This patch makes shotgun dump it's own logs at the end of snapshot
creation process, just before compressing it.

Change-Id: Ie3e9737b2f430fd2f6ff3083b216f0ee62681c97
Closes-Bug: #1496842
2015-11-23 11:38:55 +01:00
Andrey Tykhonov a3d413d1ca Avoid usage of `localhost` and `127.0.0.1`
* Avoid usage of `localhost` and `127.0.0.1`;
* For a remote command execution either `address` or `hostname` could
 be used;
* Execute a command on a shotgun' host if neither `address` nor
  `hostname` is specified;

Change-Id: Iac1d9ea37400e4d202a9bc673c5fa3d3d185701b
Partial-Bug: #1511730
Partial-Bug: #1517844
2015-11-20 16:17:01 +02:00
Alexander Gordeev c377d16351 Skip offline nodes
Apparently, shotgun never tested which nodes are online
prior to execute snapshot method of objects. Therefore, for offline
nodes shotgun will then consume a lot of time waiting for connection
timeouts to be happened on per object basis.

This patch totally rework how shotgun handles the objects:
* objects being processed on per host basis
* on NetworkError, all affected objects on per host basis will be
  postponed for processing at the end of queue.
* if postponed objects still couldn't be proccessed on the last
  attempt, they will then be converted into offline objects.
* adds `Offline` object driver. Being snapshotted, this object just
  creates a file with friendly reminder that particular node was
  offline inside of snapshot target directory. So, one which's
  looking at snapshot archive will effectively realize that node
  was offline without deep diving into shotgun log file.

So, shotgun won't waste time or per object basis, as it was before.

Change-Id: Ib99476c7b67a04d4f472f3fa3803b3fb92d4fec4
Closes-Bug: #1397038
2015-11-16 14:52:24 +03:00