Bug #15559
closedImporting rhsm facts doesn't set the virtual flag
Description
The rhsm_fact_parser doesn't properly set the the virtual flag. This is due to reason, that the
FactParser expects the virtual interface identifier in a form of 'eth0_1' while the rhsm
has 'eth0.1'
This leads to errors when importing the facts for a host, that was provisioned with virtual interfaces:
[ERROR 2016-06-30 03:23:04 main] rake aborted!
ActiveRecord::RecordInvalid: Validation failed: Identifier Can't add or remove `.` from identifier
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/validations.rb:57:in `save!'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods/dirty.rb:29:in `save!'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:273:in `block in save!'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
Updated by Ivan Necas over 8 years ago
- Subject changed from Upgrade failed at step: update_subscription_facet_backend_data with error: Validation failed: Identifier Can't add or remove `.` from identifier to Importing rhsm facts doesn't set the virtual flag
- Description updated (diff)
- Category changed from Upgrades to Subscriptions
Updated by Ivan Necas over 8 years ago
- Translation missing: en.field_release set to 168
Suggesting 3.0.2, as it generates upgrade issues.
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ivan Necas
- Pull request https://github.com/Katello/katello/pull/6160 added
Updated by Ivan Necas over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|7b2e6900777630ad186089c52c0f6fd42373f918.