Commit Graph
84 Commits
Author SHA1 Message Date
Dennis Chen e73fae7cd4 Fix Rook NFS image cross-build issue on AArch64
We need to pull the base image for arm64, not for amd64.
This PR add prefix `arm64v8` of `fedora:26` to pull
the image for arm64.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-09-12 14:01:50 +08:00
Jared Watts d751dca2ee Merge pull request #2085 from arm64b/bump-fedora-to-multi-arch
Fix rook nfs docker image build failure on AArch64
2018-09-06 23:43:21 -07:00
Dennis Chen aab0f043d6 Fix rook nfs docker image build failure on AArch64
The original base image `fedora:25` doesn't support multi-arch,
so we get below error message with `docker pull fedora:25`:
```
25: Pulling from library/fedora
no matching manifest for unknown in the manifest list entries
```

This PR bumps the fedora base image to `:26` which is multi-arch
version, to address the build issue.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-09-04 10:56:12 +08:00
travisn 5f01178e83 mon: set names based on chars instead of integers
Signed-off-by: travisn <tnielsen@redhat.com>
2018-08-30 22:18:53 -06:00
Bassam Tabbara e2fd1eb8e6 Merge pull request #2054 from SUSE/ceph-makefiles-skip-image-save
Image build/release: do not save image for builds; save only for release
2018-08-23 10:09:19 -07:00
Blaine Gardner 60b4a1e4d3 Image make: Move save image step to release builds
The image save step in the image build makefiles takes half or more of
the time of builds, and this step is not necessary for development
builds. Move this functionality to the `build/release/Makefile` so that
images are saved during release builds but not during dev builds. This
will allow developers to iterate more quickly on their builds.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-08-23 09:49:56 -06:00
rohan47 9aec1d3002 nfs: Documentation, user guides, examples
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-08-22 11:57:44 +00:00
rohan47 8d85b6f4a8 nfs: rook/nfs image build
Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-08-22 10:34:40 +00:00
Bassam Tabbara 3741254612 fix perms on docker.sock
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-08-02 23:51:22 -07:00
travisn 27ba0cb3c5 ceph: update to 12.2.7
Signed-off-by: travisn <tnielsen@redhat.com>
2018-07-24 15:15:59 -06:00
Blaine Gardner 8b218dfbe7 make: Remove unused IMAGES from image Makefiles
Many of the `rook/images/<image>/` directory Makefiles defined a
variable called `IMAGES`, which was unused and causing some developer
confusion with the feature adding the ability to specify which backend
images to build. Remove these unused instances.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-07-20 15:49:46 -06:00
Blaine Gardner 483163fc21 make: Allow building select images
Raise the scope of the `IMAGES` config variable in the
`build/release/Makefile` to the `build/makelib/common.mk` file, and use
the `IMAGES` variable in the `images/Makefile` to allow users to build
only select images.

Examples of new use:
  make IMAGES='ceph ceph-toolbox' build
  make -C build/release IMAGES='ceph ceph-toolbox' publish

The 'images/image.mk' clean.build target was changed to use
`CLEAN_IMAGES` instead of `IMAGES`, as it was conflicting with use of
the parameter in image builds.

Added IMAGES option to top-level make's help text. The text for this
option exceeded 80 lines in the `Makefile` itself, so the help text was
refactored to eliminate `    @echo '<text>'`. The `Makefile` text should
now match exactly what is output to the user including line length.

Added IMAGES option to `INSTALL.md` file's "Build" section and also
moved some text around and added a few extra points of clarification
there to hopefully improve readability, especially for first-time
readers.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-07-20 15:49:46 -06:00
Bassam Tabbara 1289bec186 fix arm64 image builds
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-07-13 14:44:10 -07:00
Tony Allen 7442f8713b Implement Minio operator w/ tests.
Signed-off-by: Tony Allen <tony@upbound.io>
2018-06-21 16:41:30 -07:00
Jared Watts a80f05cf51 cockroachdb: rook/cockroachdb image build
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-06-18 17:09:45 -07:00
Blaine Gardner 2a872bf1cd images: Use ceph daemon-base as rook base
Instead of adding Ceph packages to Rook's base image, use
ceph-container's base image, which has Ceph packages preinstalled. Rook
now benefits from the testing the ceph-container project does, and the
scope of the Rook project no longer has to maintain builds of base
images containing Ceph packages.

The only ARM builds of ceph-container are CentOS, and as switching to
CentOS was already a thought, that is easily done at the same time as
this change.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-05-23 15:37:31 -06:00
Jared Watts e48e951d1c Rename toolbox to make it Ceph specific, short names for CRDs, upgrade guide tweaks
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-05-22 12:31:38 -07:00
Jared Watts 3a2a2d2021 build: rook/ceph image build
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-05-18 14:25:39 -07:00
Dennis Chen 872717d879 Add native build support on AArch64
Remove the `amd64` hardcode and the 'amd64 only build support' block.

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-04-19 15:38:23 +08:00
Bassam Tabbara d7bdec5635 build: upgrade to golang 1.10.1
Signed-off-by: Bassam Tabbara <bassam@upbound.io>
2018-03-31 23:44:25 -07:00
travisn 9e4baf4c96 (ichekrygin) Remove the rook api service from production code
Remove controller api component and api daemon
Remove rookctl and  endpoints from Docker image

Signed-off-by: travisn <tnielsen@redhat.com>
2018-03-16 08:30:54 -07:00
Jared Watts c35754ece8 Add golang 1.10 to supported list, minor updates to dev flow instructions
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-02-26 14:41:28 -08:00
Blaine Gardner 286ea82ee4 Update arm builds to more specific variants
There is a deprecation warning in the `armhf` org on DockerHub.

> The armhf organization is deprecated in favor of the more-specific
arm32v7 and arm32v6 organizations, as per
https://github.com/docker-library/official-images#architectures-other-than-amd64.
Please adjust your usages accordingly.

Required changes to Rook:
`armhf` -> `arm32v7`
`aarch64` -> `arm64v8`

Install documentation has been updated as well.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2018-02-02 15:49:16 -07:00
Sébastien Han c591036682 images: bump tiny's version
We now use the latest version of Tini.
Also the version is now configurable.

Signed-off-by: Sébastien Han <seb@redhat.com>
2018-01-29 14:41:28 +01:00
Bassam Tabbara 3487cac3e1 images: switch to ubuntu xenial LTS
zesty is longer supported and now that we are not building ceph from source xenial is more appropriate given that its LTS.
2018-01-17 17:22:39 -08:00
Bassam Tabbara 2b818eefe4 images: use ceph deb packages instead of building from source
Ceph is now installed from deb packages instead of being built from
source. This results in larger images sizes (roughly 60MB increase
compressed) but the maintenance and build burden is reduced. Future
versions of ceph will hopefully optimize for image size.

All support for building native code in containers has been removed,
as it is no longer needed. When we add other backends we will assume
that they can be installed using apt-get too.
2018-01-08 21:06:44 -08:00
Bassam Tabbara 07463fa0dd images: disable armhf image builds
While ceph can build fine on armhf it is not a tested configuration
today nor are debian packages for ceph published. Also ceph requires
more horsepower than is typically available on armhf machines.

We are dropping armhf support for now. arm64 is still supported.
2018-01-08 21:06:11 -08:00
Alexander Trost 0e42343e73 Create http-metrics service for mgrs
Enable prometheus module on mgr with pkg/ceph/client.MgrEnableModule()

Added force option to MgrEnableModule()
2018-01-04 08:47:27 +01:00
Alexander Trost 8f2fdb2c32 Add condition for nproc when one CPU is available 2017-12-30 14:07:49 +01:00
Bassam Tabbara a8846a9209 update ceph to 12.2.2 2017-12-01 17:06:18 -08:00
Alexander Trost 971a552d2b toolbox: Fallback to rook-api dns name when service env vars are not set 2017-11-29 18:04:58 +01:00
Wil Reichert bf891be243 use BSD / GNU agnotic sed & date params 2017-11-17 17:24:02 -07:00
Steve Leon 0e5bec097b Use modprobe and modinfo from the container
Fixes https://github.com/rook/rook/issues/1239
2017-11-16 13:39:42 -08:00
Travis Nielsen 35014f5ce8 toolbox: generate config for mons with double digit names 2017-11-07 10:39:56 -08:00
Bassam Tabbara c36670452c build: upgrade to golang 1.9.2 2017-10-27 11:57:29 -07:00
Travis Nielsen 46d1483468 tools: remove dependence on api service to launch toolbox 2017-10-27 11:00:36 -07:00
Bassam Tabbara 535e227902 build: upgrade golang to 1.9.1 2017-10-23 15:25:26 -07:00
Steve Leon 9f4df4f7ad Renaming flexvolume to rookflex
Fixes https://github.com/rook/rook/issues/1052
2017-10-12 13:19:55 -07:00
Steve Leon b4279e06fb Rook plugin for Kubernetes implemented as flexvolume
- Operator is deployed under namespace rook-system
- Operator deploys rook-agent on all nodes as daemonset also on
  rook-system
- Rook-agent installs flexvolume driver on hosts
- Rook-agent listens on unix socket for driver requests
- Rook-agent perform attach/detach on its node
- Rook-agent creates/delete CRD volumeattach objects
- Added fencing to support ROX and RWO
- Added unit and integration tests
- Updated examples and docks

fixes #432
2017-10-09 09:14:08 -07:00
Bassam Tabbara a976a1e93c ceph: pickup 12.2.1 2017-09-28 11:33:28 -07:00
Alexander Trost a3daea69dc fix rook-api service clusterIP when hostNetwork is used
allow ROOK_API_SERVER_ENDPOINT to be set by user

toolbox: default to rook-api dns name when no k8s service env vars are
given

Added dnsPolicy to rook-tools (K8s required version >1.6)
2017-09-26 16:55:49 +02:00
Bassam Tabbara 33b01e4c10 ceph: update to 12.2.0 2017-08-29 12:32:09 -07:00
Bassam Tabbara 6db575bd00 build: make linux default os for building images 2017-08-28 11:50:20 -07:00
Bassam Tabbara e868693cb1 build: upgrade to golang 1.9 2017-08-24 22:16:09 -07:00
Travis Nielsen 323f82c80a ceph: update to luminous 12.1.3 2017-08-11 10:23:58 -07:00
Bassam Tabbara 556d221c93 build: build helm charts and reorganize demo dir
moved the helm charts and demo files to a `cluster` directory

helm charts are now built by the makefiles, and version tag is updated automagically.
2017-08-09 12:57:39 -07:00
Ian Lovett b4cc7523b8 changes required for building and publishing docs through ci 2017-08-04 15:21:16 -07:00
Bassam Tabbara e9a2aabdd9 rename ROOKD_ env to ROOK_ 2017-08-04 09:51:23 -07:00
Travis Nielsen 6cd8ed0631 mon: generate the initial monmap at startup 2017-08-04 00:04:50 -07:00
Travis Nielsen bd53efba8d ceph: update to luminous 12.1.2 2017-08-02 15:31:01 -07:00