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

lvg: resizing existing pv doesn't work against Ubuntu 24.04 #8901

Open
1 task done
PaterSiul opened this issue Sep 23, 2024 · 2 comments
Open
1 task done

lvg: resizing existing pv doesn't work against Ubuntu 24.04 #8901

PaterSiul opened this issue Sep 23, 2024 · 2 comments
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@PaterSiul
Copy link

Summary

I'm using lvg to resize volume groups. This has been working fine against Ubuntu 22.04 as well as SLES 15.5. It doesn't work with Ubuntu 24.04 targets.

Issue Type

Bug Report

Component Name

lvg (volume group)

Ansible Version

$ ansible --version
ansible [core 2.16.3]
  config file = /home/user/ansible/ansible.cfg
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general

# /usr/lib/python3/dist-packages/ansible_collections
Collection        Version
----------------- -------
community.general 8.3.0

Configuration

$ ansible-config dump --only-changed
ANSIBLE_NOCOWS(/home/user/ansible/ansible.cfg) = True
CONFIG_FILE() = /home/user/ansible/ansible.cfg
DEFAULT_GATHERING(/home/user/ansible/ansible.cfg) = smart
DEFAULT_HOST_LIST(/home/user/ansible/ansible.cfg) = ['/home/user/ansible/inventory']
DEFAULT_STRATEGY(/home/user/ansible/ansible.cfg) = mitogen_linear
DEFAULT_STRATEGY_PLUGIN_PATH(/home/user/ansible/ansible.cfg) = ['/usr/local/lib/python3.8/dist-packages/mitogen-0.3.9/ansible_mitogen/plugins/strategy']
PAGER(env: PAGER) = less
RETRY_FILES_ENABLED(/home/user/ansible/ansible.cfg) = False

OS / Environment

Ubuntu 24.04

Steps to Reproduce

- name: resize PV and VG
  become: true
  lvg:
    vg: vg-srv
    pvs: /dev/sdb
    pvresize: yes

Expected Results

TASK [resize PV and VG] ******************************************************************************
changed: [target.example.com]

Actual Results

TASK [resize PV and VG] ******************************************************************************
fatal: [target.example.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "Device /dev/sdb is already in vg-var volume group."}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

2 participants