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

Lifecycle environments are not shown when changing the host content source,even if the edit_host permission is granted.

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Phoenix - Subscriptions
    • Sprint 140
    • Moderate
    • To Do
    • None

      Description of problem:

      A user with the edit_hosts permission should be able to change the content source on a host. However, in the GUI, the lifecycle environments are not listed. Checking the request to get the LEs, it's like:
      https://satellite.example.com/katello/api/v2/organizations/1/environments/paths?permission_type=promotable&content_source_id=2

      As I understand, it should use permission_type=readable instead..

      How reproducible:

      Easy

      Is this issue a regression from an earlier version:

      Don't think so

      Steps to Reproduce:

      1. create a user with a role that has the minimum permissions:

      hammer --csv role filter --id 33
      Id,Resource type,Search,Unlimited?,Override?,Role,Permissions
      357,Katello::KTEnvironment,none,true,false,takae_test,"view_lifecycle_environments, edit_lifecycle_environments"
      358,Host,none,true,false,takae_test,"view_hosts, edit_hosts, build_hosts"
      359,Katello::ContentView,none,true,false,takae_test,"view_content_views, edit_content_views"
      2. use below procedure to change the content source on a host.:
        * In the Satellite web UI, navigate to Hosts > All Hosts.

      • Click the name of the host you want to modify.
      • Click the vertical ellipsis icon next to the Edit button and select Change content source.
      • Select Content Source, Lifecycle Content View, and Content Source from the lists.
      • click Change content source.

      3.

      Actual behavior:

      Lifecycle environments are not displayed

      Expected behavior:

      Lifecycle environments should be displayed

      Business Impact / Additional info:

       

              rhn-support-chrobert Chris Roberts
              rhn-support-mattj Matt JIA
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: