Skip to content

Missing condition if component to be created already exist. #5

@epcim

Description

@epcim

Creation of guest user, vhost fails if it exists. Issue appear on 2nd and additional run of the formula state.

Please confirm as a bug first or explanation.

----------
          ID: rabbitmq_vhost_/openstack
    Function: rabbitmq_vhost.present
        Name: /openstack
      Result: False
     Comment: Creating vhost "/openstack" ...
              Error: vhost_already_exists: /openstack
     Started: 13:22:49.768614
    Duration: 4428.495 ms
     Changes:   
----------
          ID: rabbitmq_user_openstack
    Function: rabbitmq_user.present
        Name: openstack
      Result: False
     Comment: One or more requisite failed: rabbitmq.server.vhost.rabbitmq_vhost_/openstack
     Started: 
    Duration: 
     Changes:   
----------
          ID: rabbitmq_policy_/openstack_HA
    Function: rabbitmq_policy.present
        Name: HA
      Result: True
     Comment: Setting policy "HA" for pattern "^(?!amq\\.).*" to "{\"ha-mode\": \"all\", \"message-ttl\": 120000}" with priority "0" ...
     Started: 13:22:54.230224
    Duration: 6098.298 ms
     Changes:   
              ----------
              new:
                  None
              old:
----------
          ID: rabbitmq_user_guest
    Function: rabbitmq_user.present
        Name: guest
      Result: False
     Comment: Creating user "guest" ...
              Error: user_already_exists: guest
     Started: 13:23:00.329836
    Duration: 9549.822 ms
     Changes:   
----------

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