Registering a machine with Red Hat Satellite 6 fails with error "Validation failed: Attached to can't be blank"
Environment
- Red Hat Satellite 6.6
- Red Hat Satellite 6.11 and above
Issue
-
Registering a machine with Red Hat Satellite 6.6 whose primary interface is a bonded interface fails with the following error:
# subscription-manager register --org="RedHat" --environment="Library" Registering to: satellite.example.com:443/rhsm Username:xxxxxxxx Password: HTTP error (422 - Unknown): Validation failed: Attached to can't be blank -
A similar problem has resurfaced in Red Hat Satellite 6.11 and later, as well.
Resolution
-
This issue has been reported to the Red Hat Engineering team and has been fixed via Bugzilla This content is not included.1766344 and This content is not included.1769898.
-
Please upgrade to Red Hat Satellite 6.6.3 or 6.7 to fix this problem and retry the registration.
-
In case the problem is observed with Red Hat Satellite 6.11 or later versions, then there are two possibilities to look into.
-
The name of the BOND or VLAN-tagged interface perhaps includes a hyphen(-) or underscore(_) whereas, by design, Red Hat Satellite cannot recognize a name with such pattern e.g.
bond-prime. For this example, The end-user needs to rename the interface tobondprimeand then retry the registration. -
If a VLAN-tagged interface has any UPPERCASE letters in the name, then that is also something the satellite cannot recognize. It has been reported to the Red Hat Engineering team via This content is not included.Bugzilla 2250397. Reach out to This content is not included.Red Hat Technical Support for any further assistance or clarification required.
-
For more KB articles/solutions related to Red Hat Satellite 6.x Client Subscription Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Client Subscription Issues
Root Cause
There are different types of Content from github.com is not included.regex predefined for the satellite to be able to detect different types of interface names.
But currently, the use of a hyphen(-) or underscore(_) or the presence of a UPPERCASE letter in the interface name can affect the interface name handling by the Red Hat Satellite server.
Refer to Bugzilla This content is not included.2016717, This content is not included.2246441 and This content is not included.2250397 for more details.
Diagnostic Steps
-
The following types of error messages were observed in the
/var/log/foreman/production.logof the satellite server.2019-11-03T04:46:50 [I|app|804c6219] Import facts for 'client.example.com' completed. Added: 183, Updated: 0, Deleted 0 facts 2019-11-03T04:00:50 [I|aud|804c6219] Nic::Managed (1234) update event on mac , 00:0x:xx:xx:xx:xx 2019-11-03T04:00:50 [I|aud|804c6219] Nic::Managed (1234) update event on virtual false, true 2019-11-03T04:00:50 [I|aud|804c6219] Nic::Managed (1234) update event on identifier , bond0 2019-11-03T04:00:50 [I|app|d375ee09] Started GET "/rhsm/" for x.x.x.x at 2019-11-04 00:00 +0200 2019-11-03T04:00:50 [I|app|d375ee09] Processing by Katello::Api::V2::RootController#rhsm_resource_list as JSON 2019-11-03T04:00:50 [I|app|d375ee09] Parameters: {"root"=>{}} 2019-11-03T04:00:50 [I|app|d375ee09] Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/app/views/katello/api/v2/root/resource_list.json.rabl within katello/api/v2/layouts/collection 2019-11-03T04:00:50 [I|app|d375ee09] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/app/views/katello/api/v2/root/resource_list.json.rabl within katello/api/v2/layouts/collection (1.5ms) 2019-11-03T04:00:50 [I|app|d375ee09] Completed 200 OK in 20ms (Views: 2.3ms | ActiveRecord: 4.9ms) 2019-11-03T04:00:50 [W|app|804c6219] Not queueing Nic::Managed: ["Attached to can't be blank"] 2019-11-03T04:00:50 [W|app|804c6219] Not queueing Nic::Managed: ["Attached to can't be blank"] 2019-11-03T04:00:50 [W|app|804c6219] Not queueing Nic::Managed: ["Attached to can't be blank"]2023-11-18T09:18:19 [I|app|12339203] Import facts for 'rhel8.example.com' completed. Added: 222, Updated: 0, Deleted 0 facts 2023-11-18T09:18:19 [I|app|12339203] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received 2023-11-18T09:18:19 [I|aud|12339203] Nic::Managed (291) update event on mac , 00:50:56:b4:b3:ae 2023-11-18T09:18:19 [I|aud|12339203] Nic::Managed (291) update event on identifier , ens192 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Saving bondBK.134 NIC for host rhel8.example.com failed, skipping because: 2023-11-18T09:18:19 [W|app|12339203] Attached to can't be blank 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Saving bondDB.127 NIC for host rhel8.example.com failed, skipping because: 2023-11-18T09:18:19 [W|app|12339203] Attached to can't be blank 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Saving Datos.306 NIC for host rhel8.example.com failed, skipping because: 2023-11-18T09:18:19 [W|app|12339203] Attached to can't be blank 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Saving HB2.399 NIC for host rhel8.example.com failed, skipping because: 2023-11-18T09:18:19 [W|app|12339203] Attached to can't be blank 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Saving HB1.398 NIC for host rhel8.example.com failed, skipping because: 2023-11-18T09:18:19 [W|app|12339203] Attached to can't be blank 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Not queueing Nic::Managed: ["Attached to can't be blank"] 2023-11-18T09:18:19 [W|app|12339203] Saving Robot.172 NIC for host rhel8.example.com failed, skipping because: 2023-11-18T09:18:19 [W|app|12339203] Attached to can't be blank
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.