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

add-osd: unset noup flag after last osd is deployed #5257

Merged
merged 3 commits into from Apr 7, 2020

Conversation

guits
Copy link
Collaborator

@guits guits commented Apr 7, 2020

this commit fixes a bug when using add-osd.yml playbook.
noup flag is set early but it never got unset before the "wait for pgs
clean" check, so the playbook always fails because OSDs aren't never
seen UP.

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

Signed-off-by: Guillaume Abrioux gabrioux@redhat.com

@dsavineau
Copy link
Contributor

jenkins test centos-container-update

@dsavineau
Copy link
Contributor

jenkins test centos-non_container-external_clients

@dsavineau
Copy link
Contributor

jenkins test centos-non_container-add_osds

@dsavineau
Copy link
Contributor

jenkins test centos-container-add_osds

roles/ceph-handler/handlers/main.yml Outdated Show resolved Hide resolved
roles/ceph-osd/tasks/main.yml Outdated Show resolved Hide resolved
this commit fixes a bug when using `add-osd.yml` playbook.
`noup` flag is set early but it never got unset before the "wait for pgs
clean" check, so the playbook always fails because OSDs aren't never
seen UP.

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
This commit makes this playbook gathering facts from all other nodes but
clients.
When collocating OSDs on other nodes it can fail like following:

```
fatal: [vm252-11]: FAILED! => {
    "msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_hostname'"
}
```

In that case, a fact from a RGW node is called when rendering the
`ceph.conf.j2` but it fails because facts are gathered only from mon and
osd nodes.

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
@guits guits requested a review from dsavineau April 7, 2020 13:25
@dsavineau dsavineau added the bug label Apr 7, 2020
@dsavineau dsavineau added this to the 3.3z5 milestone Apr 7, 2020
@dsavineau
Copy link
Contributor

jenkins test centos-non_container-add_osds

@dsavineau
Copy link
Contributor

jenkins test centos-container-add_osds

There's no need to have two plays anymore since we now set/unset osd
flags in `ceph-osd` role.

Also, this commit makes the role `ceph-facts` to be called after
`ceph-defaults`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
@dsavineau
Copy link
Contributor

jenkins test centos-non_container-add_osds

@dsavineau
Copy link
Contributor

jenkins test centos-container-add_osds

@dsavineau dsavineau merged commit a51331b into stable-3.2 Apr 7, 2020
@dsavineau dsavineau deleted the guits-bz1806765 branch April 7, 2020 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants