Project

General

Profile

Actions

Bug #38448

closed

subscription-manager environments --set raises Forbidden error until the user is Admin

Added by Lucy Fu 10 days ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:
Trying to change Host's LCE/CV environment, `subscription-manager environments --set` command is used. The command requires authorization (until SAT-29869 is implemented).

However, the authorized user must be Admin. No non-admin user can authorize the request.

How reproducible:
100%

Is this issue a regression from an earlier version:
probably not

Steps to Reproduce:

1. Create a Satellite user and assign to it all roles. Dont set it as an Administrator

2. Have a Content Host registered to the Satellite.

3. Change the Host's environment from command line (even to the current env):

```
subscription-manager environments --set LCE/my_cv --username new_user --password its_password
```

4. Try the same but for admin user.

Actual behavior:
3. fails, until one sets the user as Admin.

More details in Jira card.

Actions

Also available in: Atom PDF