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

Include rh_storage repo/installs when specified #810

Merged
merged 2 commits into from May 25, 2016
Merged

Include rh_storage repo/installs when specified #810

merged 2 commits into from May 25, 2016

Conversation

alfredodeza
Copy link
Contributor

Before the repo configuration for ISOs for RH Storage was in a file that would be included only when:

- name: configure ceph yum repository
  include: redhat_ceph_repository.yml
  when: ceph_origin == 'upstream'

Which would not work for rh_storage. This PR normalizes using the same convention for install_rh_storage_on_debian to create a new install_rh_storage_on_redhat.

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

key: "{{ ceph_stable_rh_storage_repository_path }}/RPM-GPG-KEY-redhat-release"
state: present
when:
- ceph_stable_rh_storage
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you'll need to check ceph_stable_rh_storage anywhere in this file because the when statement that includes this file already does that check.

@alfredodeza
Copy link
Contributor Author

test this please don't be ridiculous

@andrewschoen
Copy link
Contributor

👍

@alfredodeza
Copy link
Contributor Author

test this please

@alfredodeza
Copy link
Contributor Author

test this please because these do not look related. @leseb mind browsing these changes?

@leseb
Copy link
Member

leseb commented May 25, 2016

Looks like we are still hitting, but only on CentOS:

"stderr": "Problem opening /dev/vdb for reading! Error is 2.\nThe specified file does not exist!\nProblem opening '' for writing! Program will now terminate.\nWarning! MBR not overwritten! Error is 2!\nProblem opening /dev/vdb for reading! Error is 2.\nThe specified file does not exist!\nProblem opening '' for writing! Program will now terminate.\nWarning! MBR not overwritten! Error is 2!", "stdout": "Information: Creating fresh partition table; will override earlier problems!\nNon-GPT disk; not saving changes. Use -g to override.\nInformation: Creating fresh partition table; will override earlier problems!\nNon-GPT disk; not saving changes. Use -g to override.", "stdout_lines": ["Information: Creating fresh partition table; will override earlier problems!", "Non-GPT disk; not saving changes. Use -g to override.", "Information: Creating fresh partition table; will override earlier problems!", "Non-GPT disk; not saving changes. Use -g to override.".

state: present
with_items: redhat_package_dependencies
when:
- ansible_distribution == "RedHat"
Copy link
Member

Choose a reason for hiding this comment

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

This is not needed because of the include already checks for RedHat.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But the dependencies are different from redhat to centos, we have both:

  • redhat_package_dependencies
  • centos_package_dependencies

Copy link
Member

Choose a reason for hiding this comment

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

Right my bad.

@leseb
Copy link
Member

leseb commented May 25, 2016

test this please

@alfredodeza
Copy link
Contributor Author

@leseb yeah those CentOS7 machines are coming without a disk from OVH :(

@alfredodeza
Copy link
Contributor Author

test this please

Alfredo Deza added 2 commits May 25, 2016 08:45
Signed-off-by: Alfredo Deza <adeza@redhat.com>

Resolves: rhbz#1339096
…en ceph_stable_rh_storage is on:

Signed-off-by: Alfredo Deza <adeza@redhat.com>

Resolves: rhbz#1339096
@leseb leseb merged commit d373c75 into master May 25, 2016
@alfredodeza alfredodeza deleted the rhbz-1339096 branch May 25, 2016 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants