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

The "fdi.pxauto" option always works in automatic mode even if we oass the value as 0

XMLWordPrintable

    • Important

      Description of problem:

      Going through https://access.redhat.com/documentation/en-us/red_hat_satellite/6.13/html-single/provisioning_hosts/index#Unattended_Use_Customization_and_Image_Remastering_provisioning , I assumed that , I will be able to customize the discovery ISO with some options but still be able to control few things while discovery starts but It seems the "fdi.pxauto" option does not works exactly the same way as explained in the documentation.

      Version-Release number of selected component (if applicable):

      Satellite 6.13 ( and 6.12\6.11\6.10\6.9 )

      How reproducible:

      100%

      Steps to Reproduce:
      1. Install a Satellite 6.13 and configure discovery service on the same
      2. Install foreman-discovery-image package
      3. Execute the following steps to remaster the ISO:

      1. cd /usr/share/foreman-discovery-image
      2. discovery-remaster foreman-discovery-image-x86_64-4.1.0-10.el8sat.iso "proxy.url=https://satellite.example.com:9090 proxy.type=proxy fdi.pxauto=0 fdi.ipv6.method=ignore" my_discovery_image.iso

      4. Use that my_discovery_image.iso image discover a system i.e. attach the ISO to a system and boot with it.

      Actual results:

      The discovery ISO boots up and starts performing Automatic Discovery on it's own. There are no menu\seletable options provided to mention any custom facts or perhaps switch to a different smart-proxy discovery server.

      Expected results:

      Either "fdi.pxauto=0" should deliver a semi-automatic mode of Discovery process or We should correct our documentation about

      A) How fdi.pxauto is actually expected to work ?
      B) Under which specific circumstances, The discovery-remaster is expected to be used
      C) Is it mandatory to pass the "proxy.url" and "proxy.type" with discovery-remaster while using "fdi.pxauto" option ?

      ( Without that, Discovery will even not begun and say proxy_url declaration is missing or something like that )

      Additional info:

      From Documentation:

      fdi.pxauto:

      To set automatic or semi-automatic mode. If set to 0, the image uses semi-automatic mode, which allows you to confirm your choices through a set of dialog options. If set to 1, the image uses automatic mode and proceeds without any confirmation.

      fdi.pxmac:

      The MAC address of the primary interface in the format of AA:BB:CC:DD:EE:FF. This is the interface you aim to use for communicating with Capsule Server. In automated mode, the first NIC (using network identifiers in alphabetical order) with a link is used. In semi-automated mode, a screen appears and requests you to select the correct interface.

      But I don't see that happening at all.

      Moreover https://github.com/theforeman/foreman-discovery-image/blob/master/root/usr/share/ruby/vendor_ruby/discovery/menu.rb#L169-L208 tells me,

      • We don't need to pass 0 or 1 as a value. Just using "fdi.pxauto" option is good enough to start completely unattended PXEless provisioning. No semi-automatic mode at all.
      • Following tells me that It will either use the interface whose MAC is defined by pxmac or else the first interface that has a link

      mac = cmdline('fdi.pxmac') || detect_first_nic_with_link

      So even here also, I don't see how the semi-automatic mode works ( as mentioned in the definition of fdi.pxmac ).

            jira-bugzilla-migration RH Bugzilla Integration
            rhn-support-saydas Sayan Das
            Adarsh Dubey Adarsh Dubey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: