Commit Graph

565 Commits

Author SHA1 Message Date
Andreas Jaeger 797016c54b Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

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/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: Icc6a810696788e65e9afd8be691400d4d39de313
2019-12-18 09:38:51 +01:00
OpenDev Sysadmins 861acf9240 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:34:28 +00:00
Jenkins 92baf4b2d5 Merge "Replaces yaml.load() with yaml.safe_load() for fuel-agent" 2017-04-25 13:22:00 +00:00
Jenkins 55a0abb6fb Merge "Drop py34 target in tox.ini" 2017-04-25 12:26:43 +00:00
Jenkins 18b834e52c Merge "Use new Ironic's heartbeat API" 2017-04-25 11:52:05 +00:00
Jenkins 2df314ec83 Merge "[Multitenancy] Add logic to work with network providers" 2017-04-25 11:49:51 +00:00
Vasyl Saienko 0d058150ad [Multitenancy] Add logic to work with network providers
This patch adds logic to work with network providers to fuel_* ironic drivers.

Depends-On: I742a52c991058d1f8bd9170f9b583c28dff22839

Change-Id: Ic3f831a9a9e5ec9031bf1a588df62c9338c47d20
Related-Bug: #1588380
2017-04-03 17:11:50 +00:00
Jenkins 2929226671 Merge "Packages for distributed serialization added to bootstrap" 2017-03-24 16:46:08 +00:00
Georgy Kibardin ea8fc2bdfe Sync mcollective config with /etc/nailgun_uid
The contents of /etc/nailgun_uid can be changed by nailgun agent. We need to
synchronize the change to mcollective config.

Closes-Bug: #1675668
Change-Id: Idabc7be6181bc89c09e4d0caa4a7cf0c22767bfe
2017-03-24 13:48:02 +03:00
Alexander Kislitsky 1b8728539c Packages for distributed serialization added to bootstrap
All packages required for fuel-nailgun added to the bootstrap image.
Dask worker startup added.

Change-Id: I7155601a0f95c891a40f3c9d02d1758936ffbb45
Implements: blueprint distributed-serialization
2017-03-23 14:03:16 +00:00
M V P Nitesh 57d64fa6eb Drop py34 target in tox.ini
We do not have python 3.4 in setup.cfg which declares the explicit
supported versions. So it is no need to keep the supoort for py34.

Change-Id: I71150ea413e6a59ca3c5712382fc980b1c279d70
2017-03-23 17:09:30 +05:30
Georgy Kibardin 6288a593e2 Fix requests dependency
Change-Id: I742a52c991058d1f8bd9170f9b583c28dff22839
2017-03-23 14:15:28 +03:00
gengchc2 31c2a87e61 Replaces yaml.load() with yaml.safe_load() for fuel-agent
Yaml.load() return Python object may be dangerous if you receive
a YAML document from an untrusted source such as the Internet.
The function yaml.safe_load() limits this ability to simple Python
objects like integers or lists.

Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html

Change-Id: I5fb95063402e5adffeee0c2ead7adfd44eb76179
2017-03-10 01:08:02 +00:00
Igor Gajsin 5ca9406f49 Add to bootstrap image packages for distributed serialization
There are packges python-dispy and python-psutil that requares for
the distributed serialization.

Change-Id: Ife24b7de4eb1146cbe2a5a0c936f61a586d97e95
Implements: blueprint distributed-serialization
2017-03-09 18:48:36 +03:00
Georgy Kibardin fe2a888abd Remove nodiscover file from bootstrap
It is not used anymore during bootstrap boot phase to syncronize mcollective
service startup.

Change-Id: I4997e3cb8aa57f9ffac22f8d7c01de8447b640be
Partial-Bug: #1585671
Depends-On: Ic8e31d6381d8ffb8f7fdfd1aa8ebc655bb4535ec
2017-02-22 12:28:40 +03:00
Jenkins 7d1bb708d1 Merge "Add FCoE rules to fix env renaming" 2017-02-21 14:20:30 +00:00
Georgy Kibardin b9842ce714 Do not use separate partition for cloudinit configuration
In our usecases the separate partition is not needed. It is enough just
to put cloudinit configuration into the root filesystem.
This also allows to avoid a race condition which sometimes happens: some
process deletes the folder in tmp where the configuration partition is
mounted resulting in cloudinit failure to read its configuration.

Change-Id: Ib3efb4f517a5cf86dbf91ee53ac00108d4624dcd
Closes-Bug: #1652002
2017-02-21 09:01:12 +00:00
azvyagintsev 9f40d27bbe Add rsync dependency for fuel-agent
Change-Id: I05e0b33420058772216220bb9fcd5f61c40f3e27
Co-Authored-By: Ivan Suzdal <isuzdal@mirantis.com>
Partial-Bug: 1664152
2017-02-16 11:44:51 +02:00
Jenkins d9390fb3d6 Merge "Disable Recommends and Suggests packages" 2017-02-15 13:54:01 +00:00
Jenkins c2e6e802cb Merge "Change the way how we instantiate fuel client" 2017-02-15 13:40:14 +00:00
Vladimir Kuklin 179b418661 Add FCoE rules to fix env renaming
Add a special rule for fcoe devices to reuse ID and net_name
to avoid renaming issues in bootstrap.

Change-Id: I40c699b37199f93bfdf0157d0eb795b735254990
Closes-bug: #1656892
(cherry picked from commit 9ea6419878)
2017-02-14 10:38:55 +00:00
azvyagintsev 6f6fd2fa42 Disable Recommends and Suggests packages
Disable Recommends and Suggests package installs,
  inside Ubuntu target-image

Change-Id: Ie8a450a960b9b00cd4d2c0545a19678baed147d6
Co-Authored-By: Ivan Suzdal <isuzdal@mirantis.com>
Closes-Bug: 1664152
2017-02-13 18:56:39 +02:00
Georgy Kibardin b419f9a21e Remove nodiscover file
While new nailgun agent is not committed yet we need to explicitly remove
/etc/nailgun-agent/nodiscover to unblock it from starting

Change-Id: I3199591e7da95bac221be3554f97b00757db160a
Partial-Bug: #1585671
2017-02-13 10:53:20 +03:00
Georgy Kibardin 5877315c7f Configure mcollective identity in startup scripts
As a part of handing over control over mcollective from nailgun agent to
startup scripts lets get rid of of nodiscover file flag and perform
mcollective configuration and start

Change-Id: Ia2f984570b38642b1090f6483ed3fa78958550c5
Partial-Bug: #1585671
2017-02-09 14:33:48 +00:00
Vladimir Kozhukalov 5fa98926f5 Change the way how we instantiate fuel client
The issue is that in python-fuelclient API has been
changed and fuelclient.client.APIClient is not available
anymore. It used to be a singleton of fuel client but
now it is deprecated. So, let's use APIClient.default_client
classmethod to instantiate APIClient.

https://github.com/openstack/python-fuelclient/blob/stable/newton/fuelclient/client.py#L51

Change-Id: I5287184c6f1c6abf8ac61894db0bd51fbf730401
Closes-Bug: #1620584
(cherry picked from commit 02b7979845)
2017-02-08 12:53:29 +00:00
Georgy Kibardin 5c612875a6 Use explicit path in Xenial
Nobody promised PATH to be set during rc.local execution by systemd. And
it happens that this is the case on some systems, i.e. the PATH is not
set by the time of rc.local execution.

Change-Id: I4806df3217dd09430ad45b13cda49fab0925cb88
Partial-Bug: #1656150
2017-02-08 10:30:24 +00:00
Jenkins d5ac595f92 Merge "Using sys.exit(main()) instead of main()" 2017-01-16 11:12:13 +00:00
Evgeny L 9488b8a324 Add to bootstrap image dependencies for network checker
Network checker should be able to run on bootstrap nodes
without the access to repositories.

Closes-bug: #1653294
Change-Id: I4fae538968ab4a75269858a73e5065818a9f4f04
2016-12-30 22:23:58 +00:00
Jenkins 451c4b8402 Merge "Revert "Ignore heartbeats lock fails"" 2016-12-28 11:42:18 +00:00
gecong1973 675eb6abaf Using sys.exit(main()) instead of main()
As we known, Exceptions are raised by the sys.exit() function.
When they are not handled, no stack traceback is printed in the Python interpreter.

In this patch we have known main() got return values(eg:0, 1), but it can't
specifies exit status when terminate the main thread by unusing sys.exit().
So when using sys.exit(main()) instead of main() may be more readable and
reasonable.

Change-Id: I6b472e0eb2fceb49bb506785f5188e023e1d3968
2016-12-28 14:35:04 +08:00
Georgy Kibardin f15987c3f2 Revert "Ignore heartbeats lock fails"
It seems that there are at least two level of ruby-stomp brokenness and
the fact that the mutex in original commit is locked actually means
there is no heartbeat received in time and we need to do something about
this.

This reverts commit b50241a7b2.

Closes-Bug: #1644618
Change-Id: I8351abaf0078b094bff2aa20994575c15aec213b
2016-12-27 09:33:51 +00:00
Jenkins 8fb0612f0b Merge "Use assertIsNone(...) instead of assertEqual(None, ...)" 2016-12-23 09:16:32 +00:00
Evgeny L d9f9f377e4 Allow fs creation if mountpoint is not specified
Such services as Swift-storage require partition with file
system without mountpoints, currently fuel-agent prevents
to do that.

Change-Id: Id9e90f81098de3736e0d9b1ca82e434122efd4e8
Closes-bug: #1650622
2016-12-19 18:30:36 +00:00
Cady_Chen 9e1e030c98 Use assertIsNone(...) instead of assertEqual(None, ...)
Refer to:http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises

[H203] Use assertIs(Not)None to check for None (off by default) Unit
test assertions tend to give better messages for more specific assertions.
As a result, assertIsNone(...) is preferred over assertEqual(None, ...)
and assertIs(None, ...)

Change-Id: I9246fac952c59d3ddc1458c16c53fc988ac095d3
2016-12-20 01:33:05 +08:00
Flavio Percoco d80a8dae25 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/df421580f39a939ef9ae3c86dd42f66e

Change-Id: If8a2273df526ae6272259b64cc55e7354f9b782a
2016-11-26 12:10:16 +01:00
Jenkins 766969615a Merge "Fix umount fuse control filesystem error" 2016-11-22 09:56:28 +00:00
Jenkins 35d08b7061 Merge "Delete kernel debug related parameter for performance" 2016-11-21 09:55:20 +00:00
Sergii Golovatiuk fa49edcdae Disable cloud-init network auto configuration
The previos implementation doesn't fix the problem. Cloud-init
creates /etc/network/interfaces.d/50-cloud-init.cfg which prevents
to set static IP.

Change-Id: I49d09dd37403a843adfe34be156e5e265b0f3e08
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2016-11-19 14:57:17 +01:00
Sergii Golovatiuk fee38d0cd9 Revert "Disable cloud-init network auto configuration"
The directory /etc/cloud/cloud.cfg.d/ doesn't exist. Thus fuel-bootstrap fails as it cannot create file that should be inside of that directory.

Closes-Bug: 1643139
This reverts commit b2be687081.

Change-Id: Ie2bef3a83fb02bf7fe9634ede66998c5cf217f20
2016-11-19 13:52:17 +00:00
Sergii Golovatiuk b2be687081 Disable cloud-init network auto configuration
Change-Id: I58af5ded1e852099a358357adbcbc1f46063bc4f
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2016-11-18 12:36:00 +01:00
Sergii Golovatiuk 51d3078157 Revert "Disable cloud-init network auto configuration"
This fix doesn't fix the problem. I still see 50-cloud-init.cfg in /etc/network/interfaces.d/

This reverts commit faa9de1780.

Change-Id: I93a7fa29ae932b0020a4dad17e580808ee3fb117
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2016-11-18 12:35:29 +01:00
Vladimir Kozhukalov 0fd70bb712 Add pbr version hook to fuel_bootstrap
Change-Id: I5f3778c86314c59d90a8f1b74a4aa1bc8e90241e
Closes-Bug: #1642549
2016-11-17 14:07:33 +03:00
Wei Hui babe668c21 Delete kernel debug related parameter for performance
Those deleted kernel parameters are extremely heavy debug.
The boot process is rather slow on machines which has a
complicate motherboard and lots of pci devices(Lenovo RD640).
The debug process costs so much resouce, evetually it will impact
normal functions, such as cpus are so busy dealing with debug
info in kernelspace, they do not have time to reponse udev
event in userspace and failed to bring up pci devices.

Change-Id: I964c5fbc7f5b7d0ba6d1dd0166db3e4234179afa
Closes-bug: #1632592
2016-11-07 13:40:06 +00:00
Wei Hui 01d7633e87 Fix umount fuse control filesystem error
In fuel-agent.log, mountpoint -q /tmp/target/sys/fs/fuse/connections
execute failed.

Fuse is a kernel mechanism, it has a fixed pseudo filesystem
location (/sys/fs/fuse/connection) for user. We do not
need to umount it manually, let kernel take care of that.
In our case, nobody cares about fuse in kernel by
/sys/fs/fuse/connection. So we don't need to mount and umount
in chroot.

https://www.kernel.org/doc/Documentation/filesystems/fuse.txt

Change-Id: I0a9af904b2b65af1af96340c0579dedf979464fc
2016-10-19 17:21:33 +08:00
Cao Xuan Hoang 075fc9e257 Fix LOG.warn to LOG.warning
logging.warn is deprecated in Python 3.
https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I5cef5a11e4802d9244295e2c871a848d14ab7454
2016-09-26 17:49:07 +07:00
Vasyl Saienko 8125d9ecd5 Add ironic-callback systemd script.
This patch replaced ironic-callback upstart script by systemd.

Change-Id: Idfbe2de940f0e99e8d0fcf952a9153631b6789b1
Closes-Bug: #1624011
2016-09-16 15:52:36 +03:00
Jenkins 850606843a Merge "Change an order of executing cloud-init modules" 2016-09-15 12:21:06 +00:00
Jenkins 907b7962f2 Merge "Ignore heartbeats lock fails" 2016-09-14 12:58:01 +00:00
Jenkins 62a7800e26 Merge "Configure admin NIC prior the first system boot" 2016-09-14 12:52:52 +00:00
Georgy Kibardin b50241a7b2 Ignore heartbeats lock fails
Stomp heartbeat handling is quite poorly designed. It happens in a
separate thread which sleeps, then tries to read a heartbeat if reading
mutex is acquired by message receiving thread it fails and increases
lock failure count. Upon reaching the limit (in our packets it is 2 by
default) it forcibly closes the connetion causing reconnect. Setting the
value to 0 turns the feature off.

Change-Id: I2187ce69508c530073582c542c963014acc5123a
Closes-Bug: #1613246
Closes-Bug: #1298262
2016-09-13 18:46:21 +03:00