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

puppetlabs-apache : apache::mod::remoteip proxy_ips/internal_proxy no longer takes CIDRs

    XMLWordPrintable

    Details

    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      **
      OS Name/Version: Centos 7

       

      With the introduction of datatypes, the proxy_ips/internal_proxy parameter of the module remoteip no longer takes CIDRs (which is something that it used to and is valid for apache [1]).

       Given the input:

      "apache::mod::remoteip::proxy_ips": [
               "fd00:fd00:fd00:2000::/64"
           ],
      

       It breaks with the following error message:

      Error: Evaluation Error: Error while evaluating a Function Call, Class[Apache::Mod::Remoteip]: parameter 'proxy_ips' index 0 expects a Stdlib::Host = Variant[Stdlib::Fqdn = Pattern[/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])*^
      ^*.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])$/], Stdlib::Compat::Ip_address = Variant[Stdlib::Compat::Ipv4 = Pattern[/*^*((([0-9](?Unable to render embedded object: File (\\d)) not found.\\d)|1[0-9]{2}(?Unable to render embedded object: File (\\d)) not found.\\d)|25[0-5](?Unable to render embedded object: File (\\d))[.])\{3}([0-9](?) not found.\\d)|[1-9][0-9](?Unable to render embedded object: File (\\d)) not found.\\d)|2[0-4][0-9](?Unable to render embedded object: File (\\d)) not found.\\d)))(\\/((([0-9](?Unable to render embedded object: File (\\d)) not found.\\d)|1[0-9]{2}(?Unable to render embedded object: File (\\d)) not found.\\d)|25[0-5](?Unable to render embedded object: File (\\d))[.])\{3}([0-9](?) not found.\\d)|[1-9][0-9](?Unable to render embedded object: File (\\d)) not found.\\d)|2[0-4][0-9](?Unable to render embedded object: File (\\d)) not found.*
      *d))|[0-9]+))?$/], Stdlib::Compat::Ipv6 = Pattern[/
      s+*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-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|:)))(%.)?
      s*$/]]] value, got String (file: /etc/puppet/modules/tripleo/manifests/profile/base/horizon.pp, line: 88, column: 5) on node overcloud-controller-0.localdomain
      

       

       [1] https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html#remoteipinternalproxy

       

      Desired Behavior:

       

      It should take CIDRs as input

      Actual Behavior:

      It fails as described above

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jaosorior Juan Antonio Osorio Robles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support