Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a new ansible rabbitmq password #289

Merged

Conversation

carbonin
Copy link
Member

If the current rabbitmq password contains special characters it
will fail a new preflight check in the setup playbook.

This is fixed for new installations by
ManageIQ/manageiq#18092 but because we
re-run the setup playbook when we upgrade the tower version, we
also need to correct existing ones.

https://bugzilla.redhat.com/show_bug.cgi?id=1638009

end

def up
auth = Authentication.find_by(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will there by multiple of these in the global, or do we not care? Should we do .in_my_region?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it shouldn't matter but we don't want these to get out of sync so I'll do the .in_my_region.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not like the new password is deterministic so it would be particularly bad in this case

@Fryguy
Copy link
Member

Fryguy commented Oct 12, 2018

LGTM

@carbonin carbonin force-pushed the generate_new_ansible_rabbit_password branch from 3743696 to 10f6739 Compare October 12, 2018 18:05
@carbonin
Copy link
Member Author

Damn didn't realize String#match? was 2.4+ ...

@carbonin carbonin force-pushed the generate_new_ansible_rabbit_password branch from 10f6739 to be0e123 Compare October 12, 2018 18:35
If the current rabbitmq password contains special characters it
will fail a new preflight check in the setup playbook.

This is fixed for new installations by
ManageIQ/manageiq#18092 but because we
re-run the setup playbook when we upgrade the tower version, we
also need to correct existing ones.

https://bugzilla.redhat.com/show_bug.cgi?id=1638009
@carbonin carbonin force-pushed the generate_new_ansible_rabbit_password branch from be0e123 to ec81406 Compare October 12, 2018 18:40
@miq-bot
Copy link
Member

miq-bot commented Oct 12, 2018

Checked commit carbonin@ec81406 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. ⭐

@bdunne bdunne merged commit af11356 into ManageIQ:master Oct 12, 2018
@bdunne bdunne added this to the Sprint 97 Ending Oct 22, 2018 milestone Oct 12, 2018
@simaishi
Copy link
Contributor

@bdunne @Fryguy Looks like no schema change involved. Please ack backport to hammer branch.

@bdunne
Copy link
Member

bdunne commented Oct 15, 2018

Please ack backport to hammer branch.

👍

simaishi pushed a commit that referenced this pull request Oct 15, 2018
@simaishi
Copy link
Contributor

Hammer backport details:

$ git log -1
commit ff038c6575afec6cae8e1935fd725889c56b45ab
Author: Brandon Dunne <brandondunne@hotmail.com>
Date:   Fri Oct 12 15:25:32 2018 -0400

    Merge pull request #289 from carbonin/generate_new_ansible_rabbit_password
    
    Generate a new ansible rabbitmq password
    
    (cherry picked from commit af113564ede0f37b3d417e7b0f20760a9be29733)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1638009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants