sous-chefs / chef-ruby-lvm Goto Github PK
View Code? Open in Web Editor NEWFork of https://github.com/gregsymons/di-ruby-lvm
Fork of https://github.com/gregsymons/di-ruby-lvm
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
Gemfile
It seems like the attributes like vg_free are cached.
When e.g. using
execute 'remove swap' do
command 'swapoff -a && yes | lvremove /dev/debian-8-vg/swap_1 && swapoff -a'
end
execute 'create swap' do
command 'lvcreate --size 100M -Wy -n swap debian-8-vg'
end
Which will result in a 900MB smaller swap partition, this will still result in free 0
LVM::LVM.new do |lvm|
vg = lvm.volume_groups['debian-8-vg']
return unless vg.free > 0
end
While, when checking on the server, 900MB are free. Running the chef-client once again, will then result in vg_free being 900MB as expected.
It seems like something is cached, but i could not find any evidence in the code. Any ideas?
There are circumstances where users may want to add more arguments for LVM commands (such as --ignoreskippedcluster
or --ignorelockingfailure
). This gem should provide an interface for modifying the base command with additional arguments.
[Version of the project installed]
0.4.1
[Details about the environment such as the Operating System, cookbook details, etc...]
RHEL7
[What you are trying to achieve and you can't?]
I am using a cookbook that has worked for several years. This morning while performing a deployment, we started to receive error
undefined local variable or method 'line' for LVM::External:Module
only when using chef-ruby-lvm 0.4.1.
0.4.0 works as expected.
Create a volume using the gem
lvm = LVM::LVM.new
[If you are filing an issue what are the things we need to do in order to repro your problem?]
[What are you expecting to happen as the consequence of above reproduction steps?]
The volume should be created
[What actually happens after the reproduction steps?]
Receive error undefined local variable or method
line' for LVM::External:Module`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.