Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-11117

ForemanCustomScript in Host provisioned on Azure CR fails with `command not found`

XMLWordPrintable

    • Sprint 104, Sprint 105, Sprint 110, Sprint 111, Sprint 112, Sprint 113, Sprint 114, Sprint 115, Sprint 116
    • Critical

      Description of problem:
      When Satellite provisions host on Azure CR, a `ForemanCustomScript` Extension that Satellite adds to the Azure host is throwing an error `Enable succeeded: [stout] [stderr] /bin/sh: azurerootpasswd: command not found`.

      This failure probably delayed the VM read operation from Azure python client and failed all QE tests for Azure Provisioning.

      Version-Release number of selected component (if applicable):
      Satellite 6.11 | 6.10 | 6.9

      How reproducible:
      Always

      Steps to Reproduce:
      1. Create an Azure Compute Resource.
      2. Create an Image in Azure CR with marketplace image `marketplace://RedHat:RHEL:7-RAW:latest` (BTW, the issue is reproducible with all the images that Satellite supports to provision the host from)
      3. Using the image above provision an azure host, and make sure the azure host has the following compute attributes:

      script_command = 'touch /var/tmp/text.txt',
      script_uris = `https://raw.githubusercontent.com/SatelliteQE/robottelo/master/tests/foreman/data/uri.sh`

      Actual results:
      1. The VM is being provisioned to Azure but the ForemanCustomScript extention post VM deployment is failing with the error `Enable succeeded: [stout] [stderr] /bin/sh: azurerootpasswd: command not found. Note `azurerootpasswd` is the password set as a password in compute attributes.
      2. The script command in compute attributes was executed successfully.
      3. But, The custom script in `script_uris` in compute attributes is not executed and seems the failure is for that reason only.

      Expected results:
      The VM provisions successfully with the post-deployment script (both script command and script uris) executed successfully.

      Additional info:
      Attachments with screenshots from Azure portal showing failure from VMs `ForemanCustomScript` extention.

            rhn-support-chrobert Chris Roberts
            satellite-focaccia-bot Focaccia Bot
            Ron Lavi Ron Lavi
            Adarsh Dubey Adarsh Dubey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: