Comments (9)
The changes were tested and are working fine.
from gluster-ansible-infra.
from gluster-ansible-infra.
As a workaround I tried installing vdsm-python which required active subscription and then too I see the following failure :
TASK [gluster.infra/roles/backend_setup : Regenerate new LVM filter rules] *****
fatal: [server1.example.com]: FAILED! => {"changed": true, "cmd": "vdsm-tool config-lvm-filter -y \n", "delta": "0:00:00.475788", "end": "2020-10-07 10:22:36.001021", "msg": "non-zero return code", "rc": 1, "start": "2020-10-07 10:22:35.525233", "stderr": "", "stderr_lines": [], "stdout": "Usage: /usr/bin/vdsm-tool [options] <action> [arguments]\nValid options:\n -h, --help\n\t\tShow this help menu.\n -l, --logfile <path>\n\t\tRedirect logging to file.\n -v, --verbose\n\t\tInclude warning (and errors) messages in log.\n -vv, --vverbose\n\t\tInclude information (and above) messages in log.\n -vvv, --vvverbose\n\t\tInclude debug (and above) messages in log.\n -a, --append\n\t\tAppend to logfile instead of truncating it\n(if logging to a file).\n\n Commands in module common:\n\n Commands in module configfile:\n\n Commands in module configurator:\n\n configure\nusage: \n /usr/bin/vdsm-tool [options] configure [-h|...]\n Configure external services for vdsm\n Invoke with -h for complete usage.\n \n\n is-configured\nusage: \n /usr/bin/vdsm-tool [options] is-configured [-h|...]\n Determine if module is configured\n Invoke with -h for complete usage.\n \n\n remove-config\nusage: \n /usr/bin/vdsm-tool [options] Remove vdsm configuration from conf files\n \n\n validate-config\nusage: \n /usr/bin/vdsm-tool [options] validate-config [-h|...]\n Determine if configuration is valid\n Invoke with -h for complete usage.\n \n\n Commands in module confmeta:\n\n Commands in module confutils:\n\n Commands in module dummybr:\n\n dummybr-create\nusage: \n /usr/bin/vdsm-tool [options] dummybr-create\n\n Defines dummy bridge on libvirt network.\n \n\n dummybr\nusage: \n /usr/bin/vdsm-tool [options] dummybr\n\n Defines dummy bridge on libvirt network.\n\n Deprecated in favor of dummybr-create.\n \n\n dummybr-remove\nusage: \n /usr/bin/vdsm-tool [options] dummybr-remove\n\n Undefines dummy bridge on libvirt network.\n \n\n Commands in module network:\n\n clear-nets\nusage: \n /usr/bin/vdsm-tool [options] clear-nets [--exclude-net [network to keep [...]]] [--all]\n\n Remove networks configured by VDSM. Networks that should be kept could\n be listed with --exclude-net argument. In case no network is given,\n explicit --all is required to prevent accidental loss of connectivity.\n\n This command can be executed before VDSM removal to keep the host clean.\n \n\n dump-bonding-options\nusage: \n /usr/bin/vdsm-tool [options] dump-bonding-options\n\n Two actions are taken:\n - Read bonding option defaults (per mode) and dump them to\n BONDING_DEFAULTS in JSON format.\n - Read bonding option possible values (per mode) and dump them to\n BONDING_NAME2NUMERIC_PATH in JSON format.\n \n\n list-nets\nusage: \n /usr/bin/vdsm-tool [options] list-nets\n\n List configured VDSM networks and mark the one with default route.\n \n\n restore-nets\nusage: \n /usr/bin/vdsm-tool [options] restore-nets\n Restores the networks to what was previously persisted via vdsm.\n \n\n restore-nets-init\nusage: \n /usr/bin/vdsm-tool [options] restore-nets-init\n\n Restore IP+link configuration on persisted OVS networks.\n \n\n upgrade-networks\nusage: \n /usr/bin/vdsm-tool [options] upgrade-networks\n\n Upgrade networks configuration to up-to-date format.\n \n\n Commands in module nwfilter:\n\n nwfilter\nusage: \n /usr/bin/vdsm-tool [options] nwfilter\n Defines network filters on libvirt\n \n\n Commands in module service:\n\n service-disable\nusage: \n /usr/bin/vdsm-tool [options] service-disable service-name\n Disable a system service.\n\n Parameters:\n service-name - service to disable\n \n\n service-is-managed\nusage: \n /usr/bin/vdsm-tool [options] service-is-managed service-name\n Check the existence of a service.\n\n Parameters:\n service-name - service to query\n \n\n service-reload\nusage: \n /usr/bin/vdsm-tool [options] service-reload service-name\n Notify a system service to reload configurations.\n\n Parameters:\n service-name - service to notify\n \n\n service-restart\nusage: \n /usr/bin/vdsm-tool [options] service-restart service-name\n Restart a system service.\n\n Parameters:\n service-name - service to restart\n \n\n service-start\nusage: \n /usr/bin/vdsm-tool [options] service-start service-name\n Start a system service.\n\n Parameters:\n service-start - service to start\n \n\n service-status\nusage: \n /usr/bin/vdsm-tool [options] service-status service-name\n Get status of a system service.\n\n Parameters:\n service-name - service to query\n \n\n service-stop\nusage: \n /usr/bin/vdsm-tool [options] service-stop service-name\n Stop a system service.\n\n Parameters:\n service-name - service to stop\n \n\n Commands in module transient:\n\n cleanup-transient-repository\nusage: \n /usr/bin/vdsm-tool [options] cleanup-transient-repository\n Cleanup the unused transient disks present in the repository.\n (NOTE: it is recommended to NOT execute this command when the vdsm\n daemon is running)\n \n\n setup-transient-repository\nusage: \n /usr/bin/vdsm-tool [options] setup-transient-repository\n Prepare the transient disks repository\n \n\n Commands in module upgrade:\n\n Commands in module vdsm-id:\n\n vdsm-id\nusage: \n /usr/bin/vdsm-tool [options] vdsm-id\n Printing host uuid\n ", "stdout_lines": ["Usage: /usr/bin/vdsm-tool [options] <action> [arguments]", "Valid options:", " -h, --help", "\t\tShow this help menu.", " -l, --logfile <path>", "\t\tRedirect logging to file.", " -v, --verbose", "\t\tInclude warning (and errors) messages in log.", " -vv, --vverbose", "\t\tInclude information (and above) messages in log.", " -vvv, --vvverbose", "\t\tInclude debug (and above) messages in log.", " -a, --append", "\t\tAppend to logfile instead of truncating it", "(if logging to a file).", "", " Commands in module common:", "", " Commands in module configfile:", "", " Commands in module configurator:", "", " configure", "usage: ", " /usr/bin/vdsm-tool [options] configure [-h|...]", " Configure external services for vdsm", " Invoke with -h for complete usage.", " ", "", " is-configured", "usage: ", " /usr/bin/vdsm-tool [options] is-configured [-h|...]", " Determine if module is configured", " Invoke with -h for complete usage.", " ", "", " remove-config", "usage: ", " /usr/bin/vdsm-tool [options] Remove vdsm configuration from conf files", " ", "", " validate-config", "usage: ", " /usr/bin/vdsm-tool [options] validate-config [-h|...]", " Determine if configuration is valid", " Invoke with -h for complete usage.", " ", "", " Commands in module confmeta:", "", " Commands in module confutils:", "", " Commands in module dummybr:", "", " dummybr-create", "usage: ", " /usr/bin/vdsm-tool [options] dummybr-create", "", " Defines dummy bridge on libvirt network.", " ", "", " dummybr", "usage: ", " /usr/bin/vdsm-tool [options] dummybr", "", " Defines dummy bridge on libvirt network.", "", " Deprecated in favor of dummybr-create.", " ", "", " dummybr-remove", "usage: ", " /usr/bin/vdsm-tool [options] dummybr-remove", "", " Undefines dummy bridge on libvirt network.", " ", "", " Commands in module network:", "", " clear-nets", "usage: ", " /usr/bin/vdsm-tool [options] clear-nets [--exclude-net [network to keep [...]]] [--all]", "", " Remove networks configured by VDSM. Networks that should be kept could", " be listed with --exclude-net argument. In case no network is given,", " explicit --all is required to prevent accidental loss of connectivity.", "", " This command can be executed before VDSM removal to keep the host clean.", " ", "", " dump-bonding-options", "usage: ", " /usr/bin/vdsm-tool [options] dump-bonding-options", "", " Two actions are taken:", " - Read bonding option defaults (per mode) and dump them to", " BONDING_DEFAULTS in JSON format.", " - Read bonding option possible values (per mode) and dump them to", " BONDING_NAME2NUMERIC_PATH in JSON format.", " ", "", " list-nets", "usage: ", " /usr/bin/vdsm-tool [options] list-nets", "", " List configured VDSM networks and mark the one with default route.", " ", "", " restore-nets", "usage: ", " /usr/bin/vdsm-tool [options] restore-nets", " Restores the networks to what was previously persisted via vdsm.", " ", "", " restore-nets-init", "usage: ", " /usr/bin/vdsm-tool [options] restore-nets-init", "", " Restore IP+link configuration on persisted OVS networks.", " ", "", " upgrade-networks", "usage: ", " /usr/bin/vdsm-tool [options] upgrade-networks", "", " Upgrade networks configuration to up-to-date format.", " ", "", " Commands in module nwfilter:", "", " nwfilter", "usage: ", " /usr/bin/vdsm-tool [options] nwfilter", " Defines network filters on libvirt", " ", "", " Commands in module service:", "", " service-disable", "usage: ", " /usr/bin/vdsm-tool [options] service-disable service-name", " Disable a system service.", "", " Parameters:", " service-name - service to disable", " ", "", " service-is-managed", "usage: ", " /usr/bin/vdsm-tool [options] service-is-managed service-name", " Check the existence of a service.", "", " Parameters:", " service-name - service to query", " ", "", " service-reload", "usage: ", " /usr/bin/vdsm-tool [options] service-reload service-name", " Notify a system service to reload configurations.", "", " Parameters:", " service-name - service to notify", " ", "", " service-restart", "usage: ", " /usr/bin/vdsm-tool [options] service-restart service-name", " Restart a system service.", "", " Parameters:", " service-name - service to restart", " ", "", " service-start", "usage: ", " /usr/bin/vdsm-tool [options] service-start service-name", " Start a system service.", "", " Parameters:", " service-start - service to start", " ", "", " service-status", "usage: ", " /usr/bin/vdsm-tool [options] service-status service-name", " Get status of a system service.", "", " Parameters:", " service-name - service to query", " ", "", " service-stop", "usage: ", " /usr/bin/vdsm-tool [options] service-stop service-name", " Stop a system service.", "", " Parameters:", " service-name - service to stop", " ", "", " Commands in module transient:", "", " cleanup-transient-repository", "usage: ", " /usr/bin/vdsm-tool [options] cleanup-transient-repository", " Cleanup the unused transient disks present in the repository.", " (NOTE: it is recommended to NOT execute this command when the vdsm", " daemon is running)", " ", "", " setup-transient-repository", "usage: ", " /usr/bin/vdsm-tool [options] setup-transient-repository", " Prepare the transient disks repository", " ", "", " Commands in module upgrade:", "", " Commands in module vdsm-id:", "", " vdsm-id", "usage: ", " /usr/bin/vdsm-tool [options] vdsm-id", " Printing host uuid", " "]}
from gluster-ansible-infra.
We are hitting the same problem in our test setups at
https://github.com/gluster/samba-integration/tree/master/vagrant/ansible
The workaround I used was
diff -u /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/regenerate_new_lvm_filter_rules.yml.bak /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/regenerate_new_lvm_filter_rules.yml
--- /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/regenerate_new_lvm_filter_rules.yml.bak 2020-10-13 10:31:18.547469718 +0000
+++ /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/regenerate_new_lvm_filter_rules.yml 2020-10-13 10:31:31.122459225 +0000
@@ -2,3 +2,4 @@
- name: Regenerate new LVM filter rules
shell: >
vdsm-tool config-lvm-filter -y
+ ignore_errors: yes
from gluster-ansible-infra.
We are hitting the same problem in our test setups at
https://github.com/gluster/samba-integration/tree/master/vagrant/ansibleThe workaround I used was
diff -u /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/regenerate_new_lvm_filter_rules.yml.bak /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/regenerate_new_lvm_filter_rules.yml --- /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/regenerate_new_lvm_filter_rules.yml.bak 2020-10-13 10:31:18.547469718 +0000 +++ /etc/ansible/roles/gluster.infra/roles/backend_setup/tasks/regenerate_new_lvm_filter_rules.yml 2020-10-13 10:31:31.122459225 +0000 @@ -2,3 +2,4 @@ - name: Regenerate new LVM filter rules shell: > vdsm-tool config-lvm-filter -y + ignore_errors: yes
Hi @spuiuk
I wouldnt recomment that work around, eventhough im unaware of your use case, and you might not be needing vdsm-tools now but if it changes, and a vital error is thrown then ignoring it wouldnt be a right approach.
from gluster-ansible-infra.
@pkesavap, Do you maintain the copr for the gluster-ansible-infra? Can you please kick off a rebuild of the packages so that we can use the latest changes in our project.
Thanks.
from gluster-ansible-infra.
@spuiuk no ,@gobindadas does it, i have pinged him, he can do a build once this is merged.
from gluster-ansible-infra.
I have merged PR, will provide build.
from gluster-ansible-infra.
closing this issue as the PR is merged and build is provided.
from gluster-ansible-infra.
Related Issues (20)
- gluster_infra_lv_logicalvols['lvsize'] is not optional and doesn't default to 100% of LV
- Unconditionally applying '--maxDiscardSize 16M' on VDO in Gluster HCI breaks CentOS7 deployments
- Getting error while executing task gluster.infra/roles/backend_setup HOT 3
- cachethinpoolname is required instead of deprecated
- gluster.infra package throwing error for firewall_config HOT 3
- vdsm-python package on Debian based systems HOT 1
- Task ensures multipathd is started, and enabled, but should this be systemd? HOT 2
- backend-setup role fails on rhel7
- python-yaml package name changed to python3-yaml on debian bullseye HOT 1
- backend_setup role fails with invalid argument for `lvcreate` HOT 4
- Move to lvol module?
- vg_create is not idempotent HOT 11
- issue with VDO
- backend_setup role fails with ansible-core 2.13.3 and Python 3.9 HOT 3
- Error with deploy glusterfs in ovirt node HOT 2
- Create thick LV is broken
- Cannot find it in the galaxy
- gluster_volumes_by_groupname_pre NoneNoneNone
- gluster.infra fails because lvm2 package is not installed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gluster-ansible-infra.