Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-79412

[RHEL9 image-mode storage role] "Destination /usr/share/ansible/roles/rhel-system-roles.storage/tests/roles/caller/vars not writable

    • No
    • None
    • rhel-sst-system-roles
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      What is the impact of this issue to you?

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      Actual results

      [root@storageqe-104 auto_run_role_local]# bootc status
      ● Booted image: quay.io/guazhang/rhel9-bootc:v3
              Digest: sha256:7b4bfea3b5c95185229a2afe2522142960a5cbe5f4cd61fbb8de2ab2396ded66
             Version: 9.20250210.0 (2025-02-13 09:59:49.834088613 UTC)
      [root@storageqe-104 auto_run_role_local]# 
       

      error 1

      TASK [rhel-system-roles.storage : Set up new/current mounts] ******************************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml:180
      failed: [localhost] (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted', 'owner': None, 'group': None, 'mode': None}) => {"ansible_loop_var": "mount_info", "changed": false, "mount_info": {"dump": 0, "fstype": "xfs", "group": null, "mode": null, "opts": "defaults", "owner": null, "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "msg": "Error making dir /opt/test1: [Errno 30] Read-only file system: b'/opt/test1'"} 

      the image-mode is read-only system for /opt

      to workaround

      we can add  /var/opt /opt none bind 0 0 to fstab

       

      error 2

      TASK [Create var file in caller that can override the one in called role] ****************************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/tests_include_vars_from_parent.yml:6
      failed: [localhost] (item=RedHat-9.6) => {"ansible_loop_var": "item", "changed": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "item": "RedHat-9.6", "msg": "Destination /usr/share/ansible/roles/rhel-system-roles.storage/tests/roles/caller/vars not writable"}
      failed: [localhost] (item=RedHat-9) => {"ansible_loop_var": "item", "changed": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "item": "RedHat-9", "msg": "Destination /usr/share/ansible/roles/rhel-system-roles.storage/tests/roles/caller/vars not writable"}
      failed: [localhost] (item=RedHat_9.6) => {"ansible_loop_var": "item", "changed": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "item": "RedHat_9.6", "msg": "Destination /usr/share/ansible/roles/rhel-system-roles.storage/tests/roles/caller/vars not writable"}
      failed: [localhost] (item=RedHat_9) => {"ansible_loop_var": "item", "changed": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "item": "RedHat_9", "msg": "Destination /usr/share/ansible/roles/rhel-system-roles.storage/tests/roles/caller/vars not writable"}
      failed: [localhost] (item=RedHat) => {"ansible_loop_var": "item", "changed": false, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "item": "RedHat", "msg": "Destination /usr/share/ansible/roles/rhel-system-roles.storage/tests/roles/caller/vars not writable"}PLAY RECAP *******************************************************************************************************************************
      localhost                  : ok=3    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
       

      ansible-playbook -vv -i /home/host tests_include_vars_from_parent_scsi_generated.yml

       

      for the iamge-mode os , should we skip the test ?

       

      rhel-system-roles-1.95.4-0.1.el9.noarch

      [root@storageqe-104 tests]# uname -a
      Linux storageqe-104.rhts.eng.pek2.redhat.com 5.14.0-565.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Feb 7 16:17:23 EST 2025 x86_64 x86_64 x86_64 GNU/Linux
      [root@storageqe-104 tests]

       

              rmeggins@redhat.com Richard Megginson
              guazhang@redhat.com Guangwu Zhang
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: