Skip to content

Instantly share code, notes, and snippets.

@bunchc
Last active September 22, 2017 19:32
Show Gist options
  • Save bunchc/a51bde9d95d6ae719584f3e278de6ff6 to your computer and use it in GitHub Desktop.
Save bunchc/a51bde9d95d6ae719584f3e278de6ff6 to your computer and use it in GitHub Desktop.
Cinder hates me

user_variables.yml

## Cinder iscsi
cinder_iscsi_helper: tgtadm
cinder_iscsi_iotype: fileio
cinder_iscsi_num_targets: 100
cinder_iscsi_port: 3260

openstack_user_config.yml

# Changes for Cinder
storage_hosts:
  cinder-volume:
    ip: 172.29.236.100
    container_vars:
      cinder_backends:
        limit_container_types: cinder_volume
        lvm:
          volume_group: cinder-volumes
          volume_driver: cinder.volume.drivers.lvm.LVMISCSIDriver
          volume_backend_name: LVM_iSCSI
          iscsi_ip_address: "172.29.236.100"

Looks like it's running...

root@controller-01-utility-container-a33df818:~# cinder service-list
+------------------+---------------------------------------------------+------+---------+-------+----------------------------+-----------------+
| Binary           | Host                                              | Zone | Status  | State | Updated_at                 | Disabled Reason |
+------------------+---------------------------------------------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller-01-cinder-scheduler-container-18ca83af | nova | enabled | up    | 2017-09-22T19:23:37.000000 | -               |
| cinder-volume    | cinder-volume@lvm                                 | nova | enabled | up    | 2017-09-22T19:23:38.000000 | -               |
+------------------+---------------------------------------------------+------+---------+-------+----------------------------+-----------------+

On the cinder node too:

root@cinder-volume:~# ps -ef | grep cinder
cinder     301     1 97 19:28 ?        00:00:04 /openstack/venvs/cinder-15.1.4/bin/python /openstack/venvs/cinder-15.1.4/bin/cinder-volume --log-file=/var/log/cinder/cinder-volume.log

Attempting to make a volume:

root@controller-01-utility-container-a33df818:~# openstack volume create --size 5 cinder_volume_test-00
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| attachments         | []                                   |
| availability_zone   | nova                                 |
| bootable            | false                                |
| consistencygroup_id | None                                 |
| created_at          | 2017-09-22T19:26:33.508882           |
| description         | None                                 |
| encrypted           | False                                |
| id                  | 4e40d659-e6c6-413a-801e-830caae4c953 |
| migration_status    | None                                 |
| multiattach         | False                                |
| name                | cinder_volume_test-00                |
| properties          |                                      |
| replication_status  | None                                 |
| size                | 5                                    |
| snapshot_id         | None                                 |
| source_volid        | None                                 |
| status              | creating                             |
| type                | None                                 |
| updated_at          | None                                 |
| user_id             | 7d79ffa6b2614377b08339be7eb62af9     |
+---------------------+--------------------------------------+

From the cinder-scheduler:

2017-09-22 19:26:34.509 3394 INFO cinder.scheduler.base_filter [req-d7307d1f-9f4e-47b3-9181-436e250c6ccc 7d79ffa6b2614377b08339be7eb62af9 22e9c54f39f64b2b89fb8dc1fc9c3a7b - default default] Filtering removed all hosts for the request with volume ID '4e40d659-e6c6-413a-801e-830caae4c953'. Filter results: AvailabilityZoneFilter: (start: 0, end: 0), CapacityFilter: (start: 0, end: 0), CapabilitiesFilter: (start: 0, end: 0)
2017-09-22 19:26:34.512 3394 WARNING cinder.scheduler.filter_scheduler [req-d7307d1f-9f4e-47b3-9181-436e250c6ccc 7d79ffa6b2614377b08339be7eb62af9 22e9c54f39f64b2b89fb8dc1fc9c3a7b - default default] No weighed backend found for volume with properties: None
2017-09-22 19:26:34.515 3394 INFO cinder.message.api [req-d7307d1f-9f4e-47b3-9181-436e250c6ccc 7d79ffa6b2614377b08339be7eb62af9 22e9c54f39f64b2b89fb8dc1fc9c3a7b - default default] Creating message record for request_id = req-d7307d1f-9f4e-47b3-9181-436e250c6ccc
2017-09-22 19:26:34.533 3394 ERROR cinder.scheduler.flows.create_volume [req-d7307d1f-9f4e-47b3-9181-436e250c6ccc 7d79ffa6b2614377b08339be7eb62af9 22e9c54f39f64b2b89fb8dc1fc9c3a7b - default default] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid backend was found. No weighed backends available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment