Project

General

Profile

Actions

Bug #31754

closed

Unable to re-register using the Global Registration Curl Command

Added by Jaskaran Singh Narula almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When trying to re-register a system using the generated curl command it throws the error mentioning that the system is already registered and it would need to use the option --force.

Error:
---
This system is already registered. Use --force to override
---

When --force option is using the below error is the output.

Error:
---
[root@localhost ~]# curl - X GET "https://foreman.example.com:9090/register?activation_key=new&hostgroup_id=3&location_id=2&operatingsystem_id=3&organization_id=1" - H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2MTE1Njk4ODEsImp0aSI6ImUxMzJkOGU1OGQ2MTc4YTc4ODM3ZjU2ZjY0MzJiZmZhYTZjYmI2OWY0ODFmMGFiYmFjNTJkOGZhZWVlN2JjMDMiLCJleHAiOjE2MTE1ODQyODF9.fLNNZqN_7HNYFcCyspX6Usqt6AN3u5oOUA3DIdEB6Pk' | bash --force
bash: --force: invalid option
....
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10369 100 10369 0 0 20017 0 --:--:-- --:--:-- --:--:-- 20017
curl: (23) Failed writing body (0 != 10369)
---

Actions #1

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8297 added
Actions #2

Updated by Leos Stejskal over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF