Re: [ansible-project] Multipathd is not enabling

2023-10-24 Thread Prady A
Thank you for your suggestion. These code are inside our Tower placed in
git.

Right now I ve no idea why they are baking a file to iso instead they could
do using template. I need to dig more ..

Thanks again for your help

On Mon, Oct 23, 2023 at 23:26, Will McDonald  wrote:

> I'd recommend looking at having your role or playbook drop in a sensible,
> templated configuration personally.
>
> Baking a static file into an ISO will almost certainly cause future pain
> unless you only ever deploy one hardware and storage combination with
> absolutely zero variation?
>
>
> On Mon, 23 Oct 2023 at 14:46, Prady A  wrote:
>
>> Thank you so much for your kind reply.
>>
>> For temporary fix I copied the  /etc/multipath.conf from other machine
>> but eventually we need to update our ISO image to include this file.
>>
>> Regards
>> PD
>>
>>
>> On Wed, Oct 18, 2023 at 18:11, Will McDonald  wrote:
>>
>>> This seems like a pretty glaring error:
>>>
>>>
 ConditionPathExists=/etc/multipath.conf was not met
>>>
>>>
>>> This is likely nothing to do with Ansible. You're installing a multipath
>>> package, enabling a service, the service is failing to start automatically
>>> because it doesn't have any valid config. You should see the same problem
>>> if you perform the same steps manually. Figure out your manual process
>>> first, then automate it.
>>>
>>> Either:
>>>
>>> 1. Include a templated /etc/multipath.conf config before
>>> enabling/starting the systemd service
>>> 2. Run something like mpathconf --enable to create a default config
>>> 3. Override/replace the Condition in the systemd unit file (probably a
>>> bad idea).
>>>
>>>
>>>
>>> On Wed, 18 Oct 2023 at 07:25, Prady A  wrote:
>>>
 Thank you . Due to some old iso image the multipath is not able to
 enable . We have to update the iso image it seems

 Thank you

 On Wed, Oct 18, 2023 at 14:08, dulhaver via Ansible Project <
 ansible-project@googlegroups.com> wrote:

> hi,
>
> the syntax of your TASK sems not to match the docs for the service
> module
> .
> Would something like ...
>
>
>- name: Enable service httpd, and not touch the state
>  ansible.builtin.service:
>name: multipathd
>state: started
>enabled: true
>
> ... work?
>
> On 10/18/2023 5:33 AM CEST Prady A  wrote:
>
>
> Hi All..
>
> I ve a very 2 very basic task of enabling multipath.
> The 2 task is failing since the first one is not enabling. But in
> ansible job it is showing as changed but when I checked multipath service
> in system it is showing as Below:
>
> Active: inactive(dead)
> Condition: start condition failed
>|- ConditionPathExists=/etc/multipath.conf was not
> met
>
> *Tasks*
> ———-
> - name: confirm multipathd is enabled
> service: multipathd
> state: started
> enable: yes
>
> - name: check default polling interval
>  shell: multipathd list config | awk ‘/defaults {/,/}’|grep -w
> polling_interval
>   register: polling_interval
>   changed_when: false
>
> Please suggest why ansible not able to enable multipath service
> correctly..
>
> Regards
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1998953809.39642.1697605729025%40office.mailbox.org
> 
> .
>
 --
 You received this message because you are subscribed to the Google
 Groups "Ansible Project" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to ansible-project+unsubscr...@googlegroups.com.

>>> To view this discussion on the web visit
 https://groups.google.com/d/msgid/ansible-project/CAEuB3Aq7dH0AB%3DMrPXBZ%3DtMbTT-uY4tfE6BMPpQEkiVMKUhXOg%40mail.gmail.com
 
 .

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to ansible-project+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> 

Re: [ansible-project] Multipathd is not enabling

2023-10-23 Thread Will McDonald
I'd recommend looking at having your role or playbook drop in a sensible,
templated configuration personally.

Baking a static file into an ISO will almost certainly cause future pain
unless you only ever deploy one hardware and storage combination with
absolutely zero variation?


On Mon, 23 Oct 2023 at 14:46, Prady A  wrote:

> Thank you so much for your kind reply.
>
> For temporary fix I copied the  /etc/multipath.conf from other machine but
> eventually we need to update our ISO image to include this file.
>
> Regards
> PD
>
>
> On Wed, Oct 18, 2023 at 18:11, Will McDonald  wrote:
>
>> This seems like a pretty glaring error:
>>
>>
>>> ConditionPathExists=/etc/multipath.conf was not met
>>
>>
>> This is likely nothing to do with Ansible. You're installing a multipath
>> package, enabling a service, the service is failing to start automatically
>> because it doesn't have any valid config. You should see the same problem
>> if you perform the same steps manually. Figure out your manual process
>> first, then automate it.
>>
>> Either:
>>
>> 1. Include a templated /etc/multipath.conf config before
>> enabling/starting the systemd service
>> 2. Run something like mpathconf --enable to create a default config
>> 3. Override/replace the Condition in the systemd unit file (probably a
>> bad idea).
>>
>>
>>
>> On Wed, 18 Oct 2023 at 07:25, Prady A  wrote:
>>
>>> Thank you . Due to some old iso image the multipath is not able to
>>> enable . We have to update the iso image it seems
>>>
>>> Thank you
>>>
>>> On Wed, Oct 18, 2023 at 14:08, dulhaver via Ansible Project <
>>> ansible-project@googlegroups.com> wrote:
>>>
 hi,

 the syntax of your TASK sems not to match the docs for the service
 module
 .
 Would something like ...


- name: Enable service httpd, and not touch the state
  ansible.builtin.service:
name: multipathd
state: started
enabled: true

 ... work?

 On 10/18/2023 5:33 AM CEST Prady A  wrote:


 Hi All..

 I ve a very 2 very basic task of enabling multipath.
 The 2 task is failing since the first one is not enabling. But in
 ansible job it is showing as changed but when I checked multipath service
 in system it is showing as Below:

 Active: inactive(dead)
 Condition: start condition failed
|- ConditionPathExists=/etc/multipath.conf was not
 met

 *Tasks*
 ———-
 - name: confirm multipathd is enabled
 service: multipathd
 state: started
 enable: yes

 - name: check default polling interval
  shell: multipathd list config | awk ‘/defaults {/,/}’|grep -w
 polling_interval
   register: polling_interval
   changed_when: false

 Please suggest why ansible not able to enable multipath service
 correctly..

 Regards


 --
 You received this message because you are subscribed to the Google
 Groups "Ansible Project" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to ansible-project+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/ansible-project/1998953809.39642.1697605729025%40office.mailbox.org
 
 .

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to ansible-project+unsubscr...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/CAEuB3Aq7dH0AB%3DMrPXBZ%3DtMbTT-uY4tfE6BMPpQEkiVMKUhXOg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAKtKohQsrvv0O5eXWFyVWU%2B84T6SFukHoOQ8Fr4UMj50gokiCw%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop 

Re: [ansible-project] Multipathd is not enabling

2023-10-23 Thread Prady A
Thank you so much for your kind reply.

For temporary fix I copied the  /etc/multipath.conf from other machine but
eventually we need to update our ISO image to include this file.

Regards
PD


On Wed, Oct 18, 2023 at 18:11, Will McDonald  wrote:

> This seems like a pretty glaring error:
>
>
>> ConditionPathExists=/etc/multipath.conf was not met
>
>
> This is likely nothing to do with Ansible. You're installing a multipath
> package, enabling a service, the service is failing to start automatically
> because it doesn't have any valid config. You should see the same problem
> if you perform the same steps manually. Figure out your manual process
> first, then automate it.
>
> Either:
>
> 1. Include a templated /etc/multipath.conf config before enabling/starting
> the systemd service
> 2. Run something like mpathconf --enable to create a default config
> 3. Override/replace the Condition in the systemd unit file (probably a bad
> idea).
>
>
>
> On Wed, 18 Oct 2023 at 07:25, Prady A  wrote:
>
>> Thank you . Due to some old iso image the multipath is not able to enable
>> . We have to update the iso image it seems
>>
>> Thank you
>>
>> On Wed, Oct 18, 2023 at 14:08, dulhaver via Ansible Project <
>> ansible-project@googlegroups.com> wrote:
>>
>>> hi,
>>>
>>> the syntax of your TASK sems not to match the docs for the service
>>> module
>>> .
>>> Would something like ...
>>>
>>>
>>>- name: Enable service httpd, and not touch the state
>>>  ansible.builtin.service:
>>>name: multipathd
>>>state: started
>>>enabled: true
>>>
>>> ... work?
>>>
>>> On 10/18/2023 5:33 AM CEST Prady A  wrote:
>>>
>>>
>>> Hi All..
>>>
>>> I ve a very 2 very basic task of enabling multipath.
>>> The 2 task is failing since the first one is not enabling. But in
>>> ansible job it is showing as changed but when I checked multipath service
>>> in system it is showing as Below:
>>>
>>> Active: inactive(dead)
>>> Condition: start condition failed
>>>|- ConditionPathExists=/etc/multipath.conf was not
>>> met
>>>
>>> *Tasks*
>>> ———-
>>> - name: confirm multipathd is enabled
>>> service: multipathd
>>> state: started
>>> enable: yes
>>>
>>> - name: check default polling interval
>>>  shell: multipathd list config | awk ‘/defaults {/,/}’|grep -w
>>> polling_interval
>>>   register: polling_interval
>>>   changed_when: false
>>>
>>> Please suggest why ansible not able to enable multipath service
>>> correctly..
>>>
>>> Regards
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to ansible-project+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/1998953809.39642.1697605729025%40office.mailbox.org
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ansible-project+unsubscr...@googlegroups.com.
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAEuB3Aq7dH0AB%3DMrPXBZ%3DtMbTT-uY4tfE6BMPpQEkiVMKUhXOg%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAKtKohQsrvv0O5eXWFyVWU%2B84T6SFukHoOQ8Fr4UMj50gokiCw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEuB3ApbBantMgeDiBS%3DB-UG989yRxmeZtWGZuHjjcf5tYDMxA%40mail.gmail.com.


Re: [ansible-project] Multipathd is not enabling

2023-10-18 Thread Will McDonald
This seems like a pretty glaring error:


> ConditionPathExists=/etc/multipath.conf was not met


This is likely nothing to do with Ansible. You're installing a multipath
package, enabling a service, the service is failing to start automatically
because it doesn't have any valid config. You should see the same problem
if you perform the same steps manually. Figure out your manual process
first, then automate it.

Either:

1. Include a templated /etc/multipath.conf config before enabling/starting
the systemd service
2. Run something like mpathconf --enable to create a default config
3. Override/replace the Condition in the systemd unit file (probably a bad
idea).



On Wed, 18 Oct 2023 at 07:25, Prady A  wrote:

> Thank you . Due to some old iso image the multipath is not able to enable
> . We have to update the iso image it seems
>
> Thank you
>
> On Wed, Oct 18, 2023 at 14:08, dulhaver via Ansible Project <
> ansible-project@googlegroups.com> wrote:
>
>> hi,
>>
>> the syntax of your TASK sems not to match the docs for the service module
>> .
>> Would something like ...
>>
>>
>>- name: Enable service httpd, and not touch the state
>>  ansible.builtin.service:
>>name: multipathd
>>state: started
>>enabled: true
>>
>> ... work?
>>
>> On 10/18/2023 5:33 AM CEST Prady A  wrote:
>>
>>
>> Hi All..
>>
>> I ve a very 2 very basic task of enabling multipath.
>> The 2 task is failing since the first one is not enabling. But in ansible
>> job it is showing as changed but when I checked multipath service in system
>> it is showing as Below:
>>
>> Active: inactive(dead)
>> Condition: start condition failed
>>|- ConditionPathExists=/etc/multipath.conf was not
>> met
>>
>> *Tasks*
>> ———-
>> - name: confirm multipathd is enabled
>> service: multipathd
>> state: started
>> enable: yes
>>
>> - name: check default polling interval
>>  shell: multipathd list config | awk ‘/defaults {/,/}’|grep -w
>> polling_interval
>>   register: polling_interval
>>   changed_when: false
>>
>> Please suggest why ansible not able to enable multipath service
>> correctly..
>>
>> Regards
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/1998953809.39642.1697605729025%40office.mailbox.org
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAEuB3Aq7dH0AB%3DMrPXBZ%3DtMbTT-uY4tfE6BMPpQEkiVMKUhXOg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKtKohQsrvv0O5eXWFyVWU%2B84T6SFukHoOQ8Fr4UMj50gokiCw%40mail.gmail.com.


Re: [ansible-project] Multipathd is not enabling

2023-10-18 Thread Prady A
Thank you . Due to some old iso image the multipath is not able to enable .
We have to update the iso image it seems

Thank you

On Wed, Oct 18, 2023 at 14:08, dulhaver via Ansible Project <
ansible-project@googlegroups.com> wrote:

> hi,
>
> the syntax of your TASK sems not to match the docs for the service module
> .
> Would something like ...
>
>
>- name: Enable service httpd, and not touch the state
>  ansible.builtin.service:
>name: multipathd
>state: started
>enabled: true
>
> ... work?
>
> On 10/18/2023 5:33 AM CEST Prady A  wrote:
>
>
> Hi All..
>
> I ve a very 2 very basic task of enabling multipath.
> The 2 task is failing since the first one is not enabling. But in ansible
> job it is showing as changed but when I checked multipath service in system
> it is showing as Below:
>
> Active: inactive(dead)
> Condition: start condition failed
>|- ConditionPathExists=/etc/multipath.conf was not met
>
> *Tasks*
> ———-
> - name: confirm multipathd is enabled
> service: multipathd
> state: started
> enable: yes
>
> - name: check default polling interval
>  shell: multipathd list config | awk ‘/defaults {/,/}’|grep -w
> polling_interval
>   register: polling_interval
>   changed_when: false
>
> Please suggest why ansible not able to enable multipath service
> correctly..
>
> Regards
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1998953809.39642.1697605729025%40office.mailbox.org
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEuB3Aq7dH0AB%3DMrPXBZ%3DtMbTT-uY4tfE6BMPpQEkiVMKUhXOg%40mail.gmail.com.


Re: [ansible-project] Multipathd is not enabling

2023-10-17 Thread dulhaver via Ansible Project
hi,
 
the syntax of your TASK sems not to match the docs for the service module 
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html#ansible-collections-ansible-builtin-service-module.
 Would something like ...
 

- name: Enable service httpd, and not touch the state
ansible.builtin.service:
name: multipathd
state: started
enabled: true

... work?


> On 10/18/2023 5:33 AM CEST Prady A  wrote:
>  
>  
> Hi All..
>  
> I ve a very 2 very basic task of enabling multipath.
> The 2 task is failing since the first one is not enabling. But in ansible job 
> it is showing as changed but when I checked multipath service in system it is 
> showing as Below: 
>  
> Active: inactive(dead)
> Condition: start condition failed
>|- ConditionPathExists=/etc/multipath.conf was not met 
>  
> Tasks
> ———-
> - name: confirm multipathd is enabled 
> service: multipathd
> state: started
> enable: yes
>  
> - name: check default polling interval
>  shell: multipathd list config | awk ‘/defaults {/,/}’|grep -w 
> polling_interval
>   register: polling_interval
>   changed_when: false
>  
> Please suggest why ansible not able to enable multipath service correctly..
>  
> Regards 
>  
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1998953809.39642.1697605729025%40office.mailbox.org.


[ansible-project] Multipathd is not enabling

2023-10-17 Thread Prady A
Hi All..

I ve a very 2 very basic task of enabling multipath.
The 2 task is failing since the first one is not enabling. But in ansible
job it is showing as changed but when I checked multipath service in system
it is showing as Below:

Active: inactive(dead)
Condition: start condition failed
   |- ConditionPathExists=/etc/multipath.conf was not met

*Tasks*
———-
- name: confirm multipathd is enabled
service: multipathd
state: started
enable: yes

- name: check default polling interval
 shell: multipathd list config | awk ‘/defaults {/,/}’|grep -w
polling_interval
  register: polling_interval
  changed_when: false

Please suggest why ansible not able to enable multipath service correctly..

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEuB3Aq8yJc1%2BRic9HHEzmKYcFcfQxXQJ%2Bo-97vJ7vzMD5%3DMEQ%40mail.gmail.com.