Comment 4 for bug 2032771

Revision history for this message
Peter Struys (peterstruys) wrote : Re: [Bug 2032771] Re: playbook os-glance-install.yml - "mount_var" is undefined (solved)

Hi Dmitriy,

Thank you for directing my attention to this change variable. I missed it.

What I had in user_variables.yml :

    # glance_nfs_client:
    #   - server: "172.29.244.204"
    #     remote_path: "/openstack/glance/images"
    #     local_path: "/var/lib/glance/images"
    #     type: "nfs4"
    #     options: "_netdev,auto"

What I have now :

    glance_remote_client:
       - what: "172.29.244.204:/openstack/glance/images"
         where: "/var/lib/glance/images"
         type: "nfs4"
         options: "_netdev,auto"

Execution of playbook os-glance-install runs fine now.

    PLAY RECAP
    ****************************************************************************************************************************************************************************************
    ctrl01_glance_container-*** : ok=91   changed=27   unreachable=0
    failed=0 skipped=18   rescued=0    ignored=0
    ctrl02_glance_container-*** : ok=87   changed=27   unreachable=0
    failed=0 skipped=18   rescued=0    ignored=0
    ctrl03_glance_container-*** : ok=128  changed=34   unreachable=0
    failed=0 skipped=25   rescued=0    ignored=0

    EXIT NOTICE [Playbook execution success]
    **************************************

I will also change variable |"glance_nfs_local_directory" into
"||glance_images_local_directory". That old variable was also still there.
Maybe this change in variable names which is announced in the yoga
release notes could be repeated in the zed release notes ?

|Again, thank you for your prompt reply.
Have a nice day.

regards
Peter

Systemgroup
Dept.Computerscience, KU Leuven
Celestijnenlaan 200 A - bus 2402
3001 Leuven (Heverlee)
Belgium

On 8/23/23 12:12, Dmitriy Rabotyagov wrote:
> Hi,
>
> Can you kindly provide the value of glance_nfs_client variable you've
> defined in your overrides?
>
> We've deprecated the variable glance_nfs_client and replaced it with `glance_remote_client` that has a different format:
> https://opendev.org/openstack/openstack-ansible-os_glance/src/branch/master/defaults/main.yml#L236-L241
>
>
> This has been mentioned in Yoga release notes:https://docs.openstack.org/releasenotes/openstack-ansible/yoga.html#relnotes-25-0-0-stable-yoga-deprecation-notes
>
> While we've tried to keep compatibility with older format, it seems that
> there is indeed some bug in there. So my suggestion would be to ensure
> that variable format is updated until we're figuring out what is wrong
> with compatibility.
>