Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-682 Consolidate xCAT provisioning modules, retire xCAT 1.x support
  3. VCL-677

xCAT2.pm displays "Use of uninitialized value in concatenation" warnings

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3
    • 2.4
    • vcld (backend)
    • None

    Description

      There are a few places in xCAT2.pm where string values aren't checked before manipulating them which results in the following in vcld.log:

      19409 2103947:2192365 new ---- WARNING ----
      19409 2103947:2192365 new 2013-02-24 20:46:03 19409 2103947:2192365 new vcld:warning_handler(613) Use of uninitialized value in concatenation (.) or string at /usr/local/vcl/bin/../lib/VCL/Module/Provisioning/xCAT2.pm line 430.
      19409 2103947:2192365 new ( 0) vcld, warning_handler (line: 613)
      19409 2103947:2192365 new (-1) xCAT2.pm, load (line: 430)
      19409 2103947:2192365 new (-2) new.pm, reload_image (line: 672)
      19409 2103947:2192365 new (-3) new.pm, process (line: 291)
      19409 2103947:2192365 new (-4) vcld, make_new_child (line: 571)
      19409 2103947:2192365 new (-5) vcld, main (line: 350)

      Old code which is calling open() to run commands on the management node should be replaced with $self->mn_os->exectute and the output checked properly.

      Attachments

        Activity

          People

            arkurth Andrew Kurth
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: