-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support of modulemd to combined profile; ENT-834 #1927
Conversation
3eba151
to
29d2aa8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I have mostly some questions around how this works, before requesting any changes.
except ImportError: | ||
dnf = None | ||
libdnf = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably split this into 2 try/except blocks (one for dnf, one for libdnf), because when I installed dnf (but not libdnf), the except block set dnf to None (even though dnf was successfully imported). Unless this is by design, in which case, ignore this.
Also, how can I import the libdnf python module? (pip search doesn't find it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikosmoum I'm sorry that I didn't provide more instruction for testing this PR. It could be possible to install libdnf from Fedora repository, but you will need master branch of libdnf.
This PR can be tested on Fedora 28 (support for modularity). Look at this two articles:
- https://fedoramagazine.org/modularity-fedora-28-server-edition/
- https://fedoramagazine.org/working-modules-fedora-28/
and add install some modules to the system. You will also need master branch of libdnf and master branch of DNF using master branch of libdnf. It is not necessary to install libdnf to the system. Instruction for our feature branch related to libdnf plugins can help you:
When you will test this PR, then you will have to add path of DNF source code to PYTHONPATH
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And you are right. I should split importing of two modules into two try/except blocks.
except AttributeError: | ||
log.info("DNF does not provide modulemd functionality") | ||
return [] | ||
all_module_list = modules.getModulePackages() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I run the code, I always get the AttributeError
exception, because the _moduleContainer
field doesn't exist. Is this always going to be the case? How can I get to the next block, where the _moduleContainer
actually is there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's look at my reply to your previous comment. Master branch of libdnf provides this attribute.
test/test_cache.py
Outdated
@@ -135,6 +151,7 @@ def test_combined_profile_update_check_has_changed(self): | |||
uuid = 'FAKEUUID' | |||
uep = Mock() | |||
uep.has_capability = Mock(return_value=True) | |||
print(self.current_profile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this line? Or is it forgotten debug output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point.
@jirihnidek I know this is a stretch (just asking as extra credit) but can you provide information on whether a module is "locked" or "unlocked" . |
Hi @parthaa, It seems that support for locking of modules was dropped from libdnf and dnf (master branch). See: PYTHONPATH=`readlink -f .` bin/dnf-3 module list --enabled
Last metadata expiration check: 2:03:32 ago on Mon Oct 8 10:14:52 2018.
Fedora Modular 28 - x86_64
Name Stream Profiles Summary
django 1.6 [e] python2_development, default [d] A high-level Python Web framework
Fedora Modular 28 - x86_64 - Updates
Name Stream Profiles Summary
django 1.6 [e] python2_development, default [d] A high-level Python Web framework
reviewboard 3.0 [e] server, default [i] A web-based code review tool
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
* Added support for reporting enabled modules, when DNF is used and Modularity is supported by DNF Python API * Added unit test for modulemd profile * Fixed and refactored unit tests of enabled repositories profile
29d2aa8
to
b935a75
Compare
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams more
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
* Fixes #25086 - Import Subman Combined report This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Add a "profiles" endpoint where subman sends reports * Make sense of the package profile and enabled reports * Make the event queue raise the appropriate events.
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams * Adds basic UI to show enabled/disabled/installed module streams
* Fixes #25087 - Import module inventory from subman Adds code to import module inventory from subscription manager This commit adds routing and api bindings to import the combined report from subscription manager Background: Subscription Manager is going to consolidate * Package Profiles * Module MD Data * Enabled Repository report all in a single payload to a new end point (candlepin/subscription-manager#1927) As a user I would like Katello to accept the new payload from Subscription Manager This commit does the following * Implements the module md inventory endpoint * Adds the models and controller for Available and HostAvailable module streams
and Modularity is supported by DNF Python API