platform9 / express

Platform9's on-boarding / automation toolkit
Apache License 2.0
12 stars 10 forks source link

Multipath packages don't get installed on Ubuntu hosts #257

Open piyush271291 opened 4 years ago

piyush271291 commented 4 years ago
SUMMARY

Multipath packages don't get installed on Ubuntu 16.04 hosts

ISSUE TYPE
COMPONENT NAME

Multipath module

ANSIBLE VERSION
ansible 2.9.2
  python version = 2.7.5 (default, Aug  7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
CONFIGURATION
OS / ENVIRONMENT
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.5 LTS" 

l##### STEPS TO REPRODUCE

running pf9-express with autoregister switch results in the following multipath roles to fail

This is because ubuntu.yml for this role does nothing.

---
- name: Check if pf9-ostackhost in installed (Ubuntu)
  shell: "`which dpkg-query` -s pf9-ostackhost > /dev/null 2>&1; if [ $? -ne 0 ]; then echo 'not-installed'; fi"
  register: pkg_state_ostackhost_ubuntu
  when:
    - ansible_pkg_mgr == "apt"

- debug: msg="running multipath/tasks/ubuntu.yml"
EXPECTED RESULTS

The multipath task to complete successfully for the ubuntu host and service getting started.

ACTUAL RESULTS
Friday 31 January 2020  16:43:43 +0100 (0:00:00.565)       0:06:43.584 ********
fatal: [hv02]: FAILED! => {"changed": false, "msg": "Could not find the requested service multipathd: host"}