volumes:
  - id: "contrail-db"
    type: "vg"
    min_size:
      generator: "calc_gb_to_mb"
      generator_args: [256]
    label: "Contrail Database"
    volumes:
      - mount: "/var/lib/contrail_db"
        type: "lv"
        name: "cassandra"
        file_system: "ext4"
        size:
          generator: "calc_total_vg"
          generator_args: ["contrail-db"]
volumes_roles_mapping:
  contrail-db:
    - {allocate_size: "min", id: "os"}
    - {allocate_size: "all", id: "contrail-db"}


volumes:
  - id: "contrail-db"
    type: "vg"
    min_size:
      generator: "calc_gb_to_mb"
      generator_args: [256]
    label: "Contrail Database"
    volumes:
      - mount: "/var/lib/contrail_db"
        type: "lv"
        name: "cassandra"
        file_system: "ext4"
        size:
          generator: "calc_total_vg"
          generator_args: ["contrail-db"]
volumes_roles_mapping:
  contrail-db:
    - {allocate_size: "min", id: "os"}
    - {allocate_size: "min", id: "contrail-db"}
    - {allocate_size: "all", id: "logs"}

# NOTE(gomarivera): It might be needed to specify the partitions
# since the roles could be used in stand alone nodes.
# Furthermore, there is a lot of unallocated space left over.

  contrail-config:
    - {allocate_size: "min", id: "os"}
    - {allocate_size: "all", id: "logs"}
  contrail-control:
    - {allocate_size: "min", id: "os"}
    - {allocate_size: "all", id: "logs"}

Create separate log partition on all contrail roles.
Create separate log partition on all contrail roles.

Change-Id: I1a177be510f240f54f87e2d85f1856697bcf6acd
