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

shrink-osd: various fixes #5599

Merged
merged 1 commit into from Aug 4, 2020
Merged

shrink-osd: various fixes #5599

merged 1 commit into from Aug 4, 2020

Conversation

BenoitKnecht
Copy link
Contributor

@BenoitKnecht BenoitKnecht commented Jul 28, 2020

This handles missing /etc/ceph/osd, by ensuring we actually found files in
/etc/ceph/osd before trying to slurp their content.

This also add a missing | default(False) to avoid fowlloing error:

fatal: [ceph01]: FAILED! =>
    msg: |-
    The conditional check 'ceph_osd_data_json[item.2]['encrypted'] | bool' failed. The error was: error while evaluating conditional (ceph_osd_data_json[item.2]['encrypted'] | bool): 'dict object' has no attribute 'encrypted'

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

Signed-off-by: Benoît Knecht bknecht@protonmail.ch

@dsavineau
Copy link
Contributor

jenkins test centos-non_container-shrink_osd_single

@dsavineau
Copy link
Contributor

jenkins test centos-container-shrink_osd_single

@dsavineau
Copy link
Contributor

jenkins test centos-non_container-shrink_osd_multiple

@dsavineau
Copy link
Contributor

jenkins test centos-container-shrink_osd_multiple

@BenoitKnecht
Copy link
Contributor Author

jenkins test centos-non_container-shrink_osd_single

1 similar comment
@dsavineau
Copy link
Contributor

jenkins test centos-non_container-shrink_osd_single

@dsavineau
Copy link
Contributor

jenkins test centos-non_container-shrink_osd_multiple

@dsavineau
Copy link
Contributor

jenkins test centos-container-shrink_osd_single

@dsavineau
Copy link
Contributor

jenkins test centos-container-shrink_osd_multiple

@guits
Copy link
Collaborator

guits commented Aug 4, 2020

jenkins test centos-non_container-all_daemons

@guits guits changed the title infra-playbooks/shrink-osd: Handle missing /etc/ceph/osd [skip ci] infra-playbooks/shrink-osd: Handle missing /etc/ceph/osd Aug 4, 2020
@guits guits changed the title [skip ci] infra-playbooks/shrink-osd: Handle missing /etc/ceph/osd infra-playbooks/shrink-osd: Handle missing /etc/ceph/osd Aug 4, 2020
@guits guits force-pushed the fix-shrink-osd branch 2 times, most recently from edbcbba to f219421 Compare August 4, 2020 14:57
@guits guits changed the title infra-playbooks/shrink-osd: Handle missing /etc/ceph/osd [skip ci] infra-playbooks/shrink-osd: Handle missing /etc/ceph/osd Aug 4, 2020
This handles missing /etc/ceph/osd, by ensuring we actually found files in
`/etc/ceph/osd` before trying to slurp their content.

This also add a missing `| default(False)` to avoid fowlloing error:

```
fatal: [ceph01]: FAILED! =>
  msg: |-
    The conditional check 'ceph_osd_data_json[item.2]['encrypted'] | bool' failed. The error was: error while evaluating conditional (ceph_osd_data_json[item.2]['encrypted'] | bool): 'dict object' has no attribute 'encrypted'
```

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

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
@guits guits changed the title [skip ci] infra-playbooks/shrink-osd: Handle missing /etc/ceph/osd [skip ci] shrink-osd: various fixes Aug 4, 2020
@guits guits changed the title [skip ci] shrink-osd: various fixes shrink-osd: various fixes Aug 4, 2020
@guits
Copy link
Collaborator

guits commented Aug 4, 2020

jenkins test centos-container-shrink_osd_single

@guits
Copy link
Collaborator

guits commented Aug 4, 2020

jenkins test centos-container-shrink_osd_multiple

@guits
Copy link
Collaborator

guits commented Aug 4, 2020

jenkins test centos-non_container-shrink_osd_single

@guits
Copy link
Collaborator

guits commented Aug 4, 2020

jenkins test centos-non_container-shrink_osd_multiple

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.

None yet

3 participants