master docker-volume-size should be distinct from nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Confirmed
|
Undecided
|
Ricardo Rocha |
Bug Description
Currently the docker-volume-size passed in the magnum cluster template affects both the master and the nodes. This is not a big issue when the volumes are small, but it is when they are large.
As an example, here's a swarm cluster with 1 master, 2 nodes, docker-volume-size 500GB.
$ magnum cluster-
+------
| Property | Value |
+------
| master_flavor_id | m2.medium |
| uuid | 34c6f972-
| docker_volume_size | 500 |
| docker_
| name | myswarm |
| coe | swarm |
| flavor_id | m2.medium |
| ... | ... |
+------
$ magnum cluster-create --name myswarm01 --node-count 2 --keypair-id rocha-cern --cluster-template myswarm
This results in two usable nodes, and a master with the scheduling disabled but which still has a 500GB volume attached to it, for no reason.
The same is true for kubernetes clusters.
We should either separate the docker-volume-size per master and node, or stop having docker volumes on the master and rely on the flavor having enough local storage.
Changed in magnum: | |
status: | New → Confirmed |
Changed in magnum: | |
assignee: | nobody → Ricardo Rocha (rocha-porto) |
I think the first step is to check resources. We should calculate the volume sizes of master and minion nodes and obtain the actual volume sizes. If the resource is not enough, we no longer continue to create the cluster.