Giter VIP home page Giter VIP logo

Comments (4)

skpy avatar skpy commented on August 19, 2024

Can you provide an example brick name that isn't working correctly?

from puppet-gluster.

tux-o-matic avatar tux-o-matic commented on August 19, 2024

If I test with 'gluster volume status brick_name', the complete URL (FQDN and brick name) can in some of my environments be 55 characters long. That leads to a new line in the bash table format. If the Ruby code for the fact depends on the same formatting then the regex can't handle it.

from puppet-gluster.

jyaworski avatar jyaworski commented on August 19, 2024

@tux-o-matic could you give an example of it failing?

Also, this comes close to https://bugzilla.redhat.com/show_bug.cgi?id=1033369, although unrelated.

from puppet-gluster.

tux-o-matic avatar tux-o-matic commented on August 19, 2024

@jyaworski "close but unrelated", it's a bug like millions of others about string length, not even related to Gluster.

I'm not big on Ruby regex so it's hard for me to say how it could handle line return when a brick name is too long.
But if the brick name given to 'bricks' under 'gluster::volumes' uses the FQDN, then the rest of the path doesn't have to be that long to break the parsing.

Taking an example from RedHat's doc

# gluster volume status test-volume
Status of volume: test-volume
Gluster process                        Port    Online   Pid
------------------------------------------------------------
Brick arch:/export/rep1                24010   Y       18474
Brick arch:/export/rep2                24011   Y       18479
NFS Server on localhost                38467   Y       18486
Self-heal Daemon on localhost          N/A     Y       18491

Here you'll the brick URL fits nicely in one line, but add a longer path or a FQDN and the shell table will force a line return to respect the cell's character width.

from puppet-gluster.

Related Issues (20)

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.