Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-2753

undefined method `line_number' for "P":String

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: puppet_agent 1.1.0
    • Fix Version/s: None
    • Component/s: vsphere
    • Labels:
    • Environment:

      Puppet Enterprise 2015.2.2
      Red Hat Enterprise Linux Server release 7.1 (Maipo)

    • Template:
    • Team:
      Modules
    • Story Points:
      1
    • Sprint:
      CLOUD 2015-11-18
    • CS Priority:
      Major
    • CS Business Value:
      5 - $$$$$$
    • CS Impact:
      Without this fixed I am unable to provision vms in vsphere using puppet.

      Description

      After setting up the following module and trying to run puppet resource vsphere_vm --debug
      Debug: Runtime environment: puppet_version=4.2.2, ruby_version=2.1.6, run_mode=user, default_encoding=UTF-8
      Debug: Evicting cache entry for environment 'production'
      Debug: Caching environment 'production' (ttl = 0 sec)
      Debug: Evicting cache entry for environment 'production'
      Debug: Caching environment 'production' (ttl = 0 sec)
      Error: Could not run: Puppet detected a problem with the information returned from vSphere when accessing vsphere_vm. The specific error was:
      undefined method `line_number' for "P":String

      If I use an example provided in the docs to create a manifest and run the manifest in the following way:
      puppet apply myvm.pp --debug --logdest /tmp/out.txt

      It gives pretty much the same information with a lot of debug info. See the attachment.
      I ruled out the incorrect credentials as in this case it explicitly specifies those. The issue seems to be happening after authentication. Unfortunately I don't see any more useful information stored anywhere including in /var/log

      Please let me know if there is any other information I need to provide. I would very much want to have this module working.

        Attachments

        1. debug.log
          21 kB
        2. out.txt
          58 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Alex Rei Alex Pinchuk
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support