Commit Graph

39 Commits

Author SHA1 Message Date
Fupan Li
cb1849cd2c
Merge pull request #84 from ericho/ci-and-rustfmt
agent: Fix CI and rustfmt issues
2019-11-11 11:01:51 +08:00
Fupan Li
60609cacd0
Merge pull request #74 from yyyeerbo/wip
netlink: Fix invalid route crashes agent
2019-11-11 10:59:59 +08:00
Erich Cordoba
8834e3a759 agent: Fix CI and rustfmt issues
The CI was failing due to two problems.

1. The `ci/static-checks.sh` was run from an incorrect place.
2. `rustfmt` was failing as some code wasn't correctly formatted.

This patch address all the changed requested by rustfmt and the
`static-checks.sh` script was updated

Fixes: #83

Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-11-08 15:58:59 -06:00
Yang Bo
9dce527793
Merge pull request #77 from awprice/issue-62
config: add hotplug timeout option
2019-11-08 15:05:55 +08:00
Yang Bo
089f3b4651
Merge pull request #72 from ericho/master
agent: Move test macros to a separate module to be commonly used.
2019-11-08 15:02:56 +08:00
Alex Price
e06a230c30 config: add hotplug timeout option
This adds an option to the agent to control the hotplug timeout of block devices.
Retains the previous behaviour of defaulting to 3 seconds if not specified.
Can be increased when block device hot plugging is taking longer than expected.

fixes #62

Signed-off-by: Alex Price <aprice@atlassian.com>
2019-11-06 21:12:27 +11:00
Yang Bo
777cee5436
Merge pull request #71 from jodh-intel/allow-gnu-target-build
build: Allow building with gnu target
2019-11-06 10:27:25 +08:00
Erich Cordoba
b14f5a1f89 agent: Move test macros to a separate module to be commonly used.
The `skip_*` macros will be useful across the different tests so having
them in a separate module can help with code duplication. This change
creates a new module and exports the macros at crate level.

Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-11-05 10:01:43 -06:00
Yang Bo
d33c2f84a8 netlink: Fix invalid route crashes agent
Invalid routes in update_routes request crash agent, fix it

Fixes: #73

Signed-off-by: Yang Bo <bo@hyper.sh>
2019-11-05 10:45:35 +08:00
James O. D. Hunt
f55667df38 build: Allow building with gnu target
Fixes to allow the rust agent to be built using a gnu target.
Specifically, remove assumptions about musl-specific types.

Fixes: #70.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2019-11-01 14:05:34 +00:00
Yang Bo
d045169476
Merge pull request #68 from yyyeerbo/wip
rust-agent: Set BUILDTYPE to debug.
2019-11-01 19:16:42 +08:00
Yang Bo
783cb13f8d
Merge pull request #66 from ericho/master
agent: Remove `get_key_value` to enable building in stable rust.
2019-11-01 18:59:31 +08:00
Fupan Li
ae211e5bba
Merge pull request #65 from jodh-intel/create-config-module
main: Split config code into separate module
2019-11-01 18:10:35 +08:00
Yang Bo
9df1d0e002 rust-agent: Set BUILDTYPE to debug.
Since build with --release produces corrupted binary in ci, we removed
--release. However, the make install target cannot find the binary,
set BUILDTYPE to debug

Fixes: #67

Signed-off-by: Yang Bo <bo@hyper.sh>
2019-11-01 17:17:38 +08:00
Erich Cordoba
5c96a920bd agent: Remove get_key_value to enable building in stable rust.
The get_key_value method is currently only avaiable in nightly rust.
As only this feature is required it worth to refactor and enable building
in the stable channel.

The method was removed by first getting the value from the CGROUPS hashmap,
then key is get by iterating over all the keys. The checks for an empty key and
key == "devices" were moved out of the hashmap block.

The README.md was updated as well to detail the instructions for stable rust.

Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-10-31 12:25:34 -06:00
James O. D. Hunt
2787c545ac main: Split config code into separate module
Create a config module and add more tests. Also enable setting the log
level from the kernel command-line.

Fixes: #59, #63.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2019-10-31 15:07:49 +00:00
Eric Ernst
a19f07b017
Merge pull request #57 from yyyeerbo/wip
rust-agent: Land rust agent into kata-containers
2019-10-31 07:44:09 -07:00
Yang Bo
f8ced638d2 rust-agent: Land rust agent into kata-containers
Fixes: #56

Signed-off-by: Yang Bo <bo@hyper.sh>
2019-10-31 10:46:45 +08:00
Graham Whaley
f56d26105b
Merge pull request #37 from ttx/packagecloud
Credit packagecloud for package hosting
2019-03-25 16:47:41 +00:00
Thierry Carrez
403fb4c5b0 Credit packagecloud for package hosting
We use a packagecloud OSS account for package hosting.
As part of the arrangement with packagecloud we need to
credit them and add a link back to https://packagecloud.io
on our website and project README.

This repository's README is probably the closest we have to
a "project README", so let's add it here.

Signed-off-by: Thierry Carrez <thierry@openstack.org>
2019-03-15 10:08:22 +01:00
James O. D. Hunt
9875f47e73
Merge pull request #36 from grahamwhaley/20190206_remove_pullapprove
pullapprove: remove it
2019-02-11 11:00:18 +00:00
Graham Whaley
fc2957ca4a pullapprove: remove it
We are moving off pullapprove. Remove its config file.

Fixes: #35

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
2019-02-06 17:05:53 +00:00
Archana Shinde
b4cd380293
Merge pull request #20 from jodh-intel/github-issue-template
github: Add issue template
2018-04-13 15:00:22 -07:00
James O. D. Hunt
23b1cff69c github: Add issue template
Add a template to guide the user on raising github issues.

Fixes #19.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-03-22 17:57:57 +00:00
Graham Whaley
23d9ae0bdb
Merge pull request #14 from jodh-intel/add-docs
docs: Add contributing and code of conduct docs
2018-03-01 15:30:48 +00:00
Graham Whaley
276a1499eb
Merge pull request #11 from jodh-intel/doc-review-comments
docs: Apply doc team review comments to README
2018-03-01 14:47:45 +00:00
James O. D. Hunt
450cbdaf8f docs: Add contributing and code of conduct docs
Add the standard contributing and code of conduct documents.

Fixes #13.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-02-06 10:41:09 +00:00
James O. D. Hunt
04b0977a9f
Merge pull request #12 from jodh-intel/add-pullapprove-config
CI: Enable pullapprove
2018-02-05 10:36:17 +00:00
James O. D. Hunt
502dc3ddaf CI: Enable pullapprove
Add the pullapprove config file to ensure all PRs are approved before
landing.

Fixes #9.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-02-05 09:57:58 +00:00
James O. D. Hunt
a390027452 docs: Apply doc team review comments to README
PR #7 was merged inadvertently, so apply the Documentation Team's
review comments to `README.md`.

Fixes #10.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-02-05 09:49:12 +00:00
James O. D. Hunt
77bb101140
Merge pull request #7 from jodh-intel/add-new-repos
docs: Add references to "ci" and "packaging" repos
2018-02-05 09:44:07 +00:00
James O. D. Hunt
d524e7adf5 docs: Add references to "ci" and "packaging" repos
Add brief details of the new "ci" and "packaging" repositories.

Fixes #6.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-02-02 10:16:34 +00:00
James O. D. Hunt
09373bd2b4 docs: Fix anchor for osbuilder
The HTML anchor generated by github for "osbuilder" wasn't working, so
removed the slash from the title.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-02-02 10:16:34 +00:00
James O. D. Hunt
98844e931e docs: Remove unecessary backticks
Remove backticks from repos that are not the name of files/commands.

Also, mark first instance of "Linux" with asterisk.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-02-02 09:42:31 +00:00
James O. D. Hunt
53856059cb
Merge pull request #4 from jodh-intel/fix-indentation
docs: Fix README TOC formatting
2018-01-30 17:25:24 +00:00
James O. D. Hunt
3954152692 docs: Fix README TOC formatting
Fixed incorrect indentation for the README's table of contents.

Also, sorted alphabetically.

Fixes #3.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-01-26 17:56:07 +00:00
Samuel Ortiz
778c846a83
Merge pull request #2 from jodh-intel/add-readme
docs: Add README
2018-01-26 17:55:06 +01:00
James O. D. Hunt
b2c26cb63c docs: Add README
Add a `README.md` that explains the purpose of this repository along
with pointers to the other repositories.

Fixes #1.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
2018-01-26 14:13:45 +00:00
Xu Wang
b3404d58f6
Initial commit 2017-12-06 23:01:13 -06:00