Git Product home page Git Product logo

chef-ruby-lvm's Issues

Dependency Dashboard

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.

Detected dependencies

bundler
Gemfile

  • Check this box to trigger a request for Renovate to run again on this repository

How to reload the attributes?

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?

Cannot specify additional arguments for LVM commands

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.

undefined local variable or method `line' for LVM::External:Module

Version:

[Version of the project installed]
0.4.1

Environment:

[Details about the environment such as the Operating System, cookbook details, etc...]
RHEL7

Scenario:

[What you are trying to achieve and you can't?]

Steps to Reproduce:

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?]

Expected Result:

[What are you expecting to happen as the consequence of above reproduction steps?]

The volume should be created

Actual Result:

[What actually happens after the reproduction steps?]

Receive error undefined local variable or method line' for LVM::External:Module`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.