Skip to content

os_ratings doesn't update value hashmap service mappings #51

@clopnis

Description

@clopnis

When you want to do code as infra with os_ratings on cloudkitty and update a price, as the hashmap service mappings exist, it's skipped. It doesn't check if the value in place is the correct value wanted.

stackhpc.openstack-0.2.4
ansible 2.16.12

TASK [stackhpc.openstack.os_ratings : List hashmap service mappings] ************************************************************************************************************************************************************************
ok: [ansible] => (item=volume.size)

TASK [stackhpc.openstack.os_ratings : Create hashmap service mappings] **********************************************************************************************************************************************************************
skipping: [ansible] => (item={'service': 'volume.size', 'cost': 1e-05, 'group': 'volume_XXX', 'type': 'flat'}) 
skipping: [ansible]

It's needed to delete it then it works

TASK [stackhpc.openstack.os_ratings : Create hashmap service mappings] **********************************************************************************************************************************************************************
changed: [ansible] => (item={'service': 'volume.size', 'cost': 1e-05, 'group': 'volume_XXXX', 'type': 'flat'})

It should be great to check if the value is correct and fix it if needed.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions