Uploaded image for project: 'CLOUDIFY (R&D)'
  1. CY-141

When running cfy_manager install a second time, KeyError: 'flask_security' is thrown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Unprioritized
    • Resolution: Fixed
    • Fix Version/s: 4.4, 4.3.1
    • Labels:
    • Steps to Reproduce:
      Hide
      Environment:
      A clean Centos machine with the install RPM downloaded and installed.
      ------------------------------------


      Steps to reproduce:
      ------------------
      1. Edit /etc/cloudify/config.yaml to only include:
      ```
      manager:
        private_ip: 127.0.0.1
        public_ip: 127.0.0.1
        security:
          admin_password: admin
      ```
      2. Run cfy_manager install and wait for installation to finish.
      3. Change `/etc/cloudify/config.yaml` again to the same file in step (1).
      4. Run cfy_manager install again.


      Expected result:
      ---------------
      You should receive and error that notifies you to only run the installation with the `--clean-db` flag when running a second time.

      Actual result:
      -------------
      The following error is thrown:
      ```
      [MAIN] - ERROR - KeyError: 'flask_security'
      ```
      Show
      Environment: A clean Centos machine with the install RPM downloaded and installed. ------------------------------------ Steps to reproduce: ------------------ 1. Edit /etc/cloudify/config.yaml to only include: ``` manager:   private_ip: 127.0.0.1   public_ip: 127.0.0.1   security:     admin_password: admin ``` 2. Run cfy_manager install and wait for installation to finish. 3. Change `/etc/cloudify/config.yaml` again to the same file in step (1). 4. Run cfy_manager install again. Expected result: --------------- You should receive and error that notifies you to only run the installation with the `--clean-db` flag when running a second time. Actual result: ------------- The following error is thrown: ``` [MAIN] - ERROR - KeyError: 'flask_security' ```
    • Severity:
      Low
    • Target Version:
      4.4
    • Premium Only:
      yes
    • Found In Version:
      4.3
    • Sprint:
      4.4 Sprint 2, 4.4 Sprint 1
    • Bug Type:
      new feature bug
    • Customer Encountered:
      Yes
    • Customer Name:
      MetaSwitch
    • Release Notes:
      yes

      Description

      This only applies to a specific scenario, as described in steps to reproduce.

        Attachments

          Activity

            People

            • Assignee:
              litalh Lital Hamami (Inactive)
              Reporter:
              pavel Pavel Brodsky (Inactive)
              QA Owner:
              Lital Hamami (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: